]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* include/grub/misc.h (grub_div_roundup): Remove as it's unused.
[grub2.git] / ChangeLog
CommitLineData
e360b5d1
VS
12015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
4
c453760c
VS
52015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * grub-core/term/gfxterm.c: Avoid division by zero.
8
e95685da
VS
92015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Avoid division by zero in serial.
12
13 * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
14 * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
15
4816dcac
VS
162015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
19
750f4bac
VS
202015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
23 by zero.
24
1b6aaddc
VS
252015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * include/grub/term.h: Avoid returining 0-sized terminal
28 as it may lead to division by zero.
29
475bffea
VS
302015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/fs/zfs.c: Avoid divisions by zero.
33
9deb46e3
VS
342015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/fs/btrfs.c: Avoid divisions by zero.
37
065ed900
VS
382015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
41
111ab3b9
VS
422015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
45 blocksize validity.
46
4200ad44
VS
472015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
50
f1959b16
VS
512015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
54 validity.
55
93586351
VS
562015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
57
58 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
59 divide by zero.
60
98f74998
VS
612015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
64 sanity checks.
65
5ed3a5d0
VS
662015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * grub-core/fs/minix.c: Additional filesystem
69 sanity checks.
70
47cd2645
VS
712015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
74 checks for superblock validity.
75
245e21b2
VS
762015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
77
78 * grub-core/fs/ufs.c (grub_ufs_mount): Check
79 that sblock.ino_per_group is not 0.
80
9201cd79
VS
812015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
82
83 Reject NILFS2 superblocks with over 1GiB blocks.
84
85 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
86 block size is <= 1GiB.
87
f27ccb58
VS
882015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
91 is sane when using CHS addressing.
92
1dfe3f97
VS
932015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
96
44461d5a
VS
972015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
98
99 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
100 division by zero.
101
30e177a0
VS
1022015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
105 potentially returning 0.
106
1072015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
108
109 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
110 the end of file.
111
af435524
VS
1122015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
115 past the end of file.
116
66ce4d1a
VS
1172015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
120 synchronously with line.
121
59d40365
VS
1222015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
123
124 Replace explicit sizeof divisions by ARRAY_SIZE.
125
ba3031f9
KM
1262015-01-19 Kris Moore <kris@pcbsd.org>
127
128 * grub-core/disk/geli.c: Support GELI v6 and v7.
129
bac5d1a6
AB
1302014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
131
132 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
133 option processing.
134
17328db3
DK
1352014-12-07 David Kozub <zub.272@gmail.com>
136
137 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
138 in __aeabi_uidivmod
139 Fixes Savannah bug #43632.
140
58f66137
PN
1412014-12-07 Peter Nelson <peterdn>
142
143 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
144 chunks.
145
cdae5bf2
AB
1462014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
147
148 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
149 non-portable '-n' echo option.
150 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
151 non-portable 'echo -n.
152 * util/grub.d/10_linux.in: Likewise (closes 43668).
153 * util/grub.d/20_linux_xen.in: Likewise.
154 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
155 non-portable 'echo -n'.
156
06eadf5e
CL
1572014-12-07 Curtis Larsen <larsen@dixie.edu>
158
159 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
160 free when multiple empty segments were received (closes 42765).
161
4b94e322
AB
1622014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
163
164 * tests/util/grub-shell.in: Support --files also for netboot.
272e0466
AB
165 * tests/file_filter_test.in: New file with file filters tests.
166 * Makefile.util.def: Add file_filter_test.
167 * conf/Makefile.extra-dist: ... and here.
168 * tests/file_filter/file.gz: Test file for file_filter_test.
169 * tests/file_filter/file.gz.sig: Likewise.
170 * tests/file_filter/file.lzop: Likewise.
171 * tests/file_filter/file.lzop.sig: Likewise.
172 * tests/file_filter/file.xz: Likewise.
173 * tests/file_filter/file.xz.sig: Likewise.
174 * tests/file_filter/keys: Likewise.
175 * tests/file_filter/keys.pub: Likewise.
176 * tests/file_filter/test.cfg: Likewise.
ebb3d958
AB
177 * grub-core/commands/verify.c: Fix memory corruption doing
178 signature check for network files (closes 43601).
4b94e322 179
03d79a87
AB
1802014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
181
3173c750
AB
182 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
183 memory leak (CID 73645, 73782).
03d79a87
AB
184 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
185 (CID 73635).
186
dbbac5a0
AB
1872014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
188
189 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
190 inline array (CID 73610).
191
478b5675
AB
1922014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
193
343dad41 194 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
f07784e8
AB
195 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
196 (Coverity CID 73813, 73710)
ea44693f
AB
197 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
198 and use after free (Coverity CID 73813, 73710, 73730)
199 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
200 CID 73854)
0415dbe2
AB
201 * util/grub-install-common.c (grub_install_get_target): Check return
202 value of grub_util_fd_read (Coverity CID 73819).
478b5675
AB
203 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
204 to hd.magic (Coverity CID 73587, 73888, bug 43690).
205
e2dd6daa
AB
2062014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
207
208 * tests/util/grub-fs-tester.in: Consistently print output
209 of grub ls if test fails.
210
2ccaa3b9 2112014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
004a2b1e
LL
212
213 * grub-core/kern/efi/init.c: check value of *path before
214 dereferencing.
215
72ec399a
MC
2162014-11-03 Michael Chang <mchang@suse.com>
217
218 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
219 of neighbor solicitation packet in grub_netbuff_pull.
220
9a67e1ac
AB
2212014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
222
223 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
224 avoid fatal warnings with older gcc (probably before 4.7).
225 * grub-core/loader/arm64/linux.c: Likewise.
226 * grub-core/loader/i386/linux.c: Likewise.
227 * grub-core/loader/i386/pc/linux.c: Likewise.
228 * grub-core/loader/ia64/efi/linux.c: Likewise.
229 * grub-core/loader/mips/linux.c: Likewise.
230 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
231 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
232
77063f4c
CW
2332014-09-25 Colin Watson <cjwatson@ubuntu.com>
234
235 Fix in-tree --platform=none
236
237 * configure.ac: Only remove include/grub/cpu and
238 include/grub/machine in the --platform=none case, not all of
239 include/grub.
240
5d90f6e5
CW
2412014-09-23 Colin Watson <cjwatson@ubuntu.com>
242
243 Add a new "none" platform that only builds utilities
244
245 * configure.ac: Add "none" platform. Default to it for unsupported
246 CPUs rather than stopping with a fatal error. Don't downgrade
247 x86_64-none to i386. Define COND_real_platform Automake conditional
248 if the platform is anything other than "none". Don't do any include
249 directory linking for "none".
250 * Makefile.am: Skip building grub-core and all bootcheck targets if
251 !COND_real_platform.
252 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
253 is defined.
254
954fe771
AB
2552014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
256
257 Use grub_cpu_to_XXX_compile_time for constants.
258
0f1f95c7
VD
2592014-09-21 Valentin Dornauer <valentin@unimplemented.org>
260
261 The AML parser implements only a small subset of possible AML
262 opcodes. On the Fujitsu Lifebook E744 this and another bug in
263 the parser (incorrect handling of TermArg data types) would lead
264 to the laptop not turning off (_S5 not found).
265
266 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
267 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
268 aren't always simply strings!); Add function to skip TermArgs
269 * include/grub/acpi.h: Add new opcodes
270
41c6f91f
VS
2712014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/normal/main.c: Don't drop to rescue console in
274 case of password-protected prompt and no menu entries.
275
7c378c39
VS
2762014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * grub-core/commands/keylayouts.c: Ignore unknown keys.
279
2988a849
VS
2802014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/gmodule.pl.in: Accept newer binutils which output
283 empty column rather than 0x0.
284
0aece00c
MC
2852014-09-21 Michael Chang <mchang@suse.com>
286
287 * grub-core/osdep/unix/config.c: Remove extraneous comma.
288
2892014-09-21 Peter Jones <pjones@redhat.com>
631a8200
PJ
290
291 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
292 we don't free a random pointer from the stack.
293 * grub-core/loader/arm64/linux.c: Likewise.
294 * grub-core/loader/i386/linux.c: Likewise.
295 * grub-core/loader/i386/pc/linux.c: Likewise.
296 * grub-core/loader/ia64/efi/linux.c: Likewise.
297 * grub-core/loader/mips/linux.c: Likewise.
298 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
299 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
300
60049a0e
CW
3012014-09-15 Khem Raj <raj.khem@gmail.com>
302
a276b840
KR
303 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
304 _BSD_SOURCE to avoid warnings under glibc 2.20+.
305
54bd9a06
MC
3062014-09-08 Michael Chang <mchang@suse.com>
307
308 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
309 check; comparing &data->extent against addresses in the region it
310 points to is unpredictable.
311
2a5a532c
CW
3122014-09-07 Colin Watson <cjwatson@ubuntu.com>
313
314 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
315
316 * configure.ac: Remove -m64 from checks for -mcmodel=large and
317 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
318 already in TARGET_CFLAGS at this point, and they produce incorrect
319 results when building for x32.
320 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
321 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
322 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
323 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
324
4d94b2db
CW
3252014-09-07 Colin Watson <cjwatson@ubuntu.com>
326
327 * configure.ac: Remove several unnecessary semicolons.
328
1de3a480
CW
3292014-08-25 Colin Watson <cjwatson@ubuntu.com>
330
331 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
332 Initialise pend to pacify GCC.
333
c291f47b
AB
3342014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
335
336 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
337 gettext_printf).
338
3c058332
VS
3392014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * grub-core/term/at_keyboard.c: Retry probing keyboard if
342 scancode setup failed.
343
d1224d20
VS
3442014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
347
0af3ae2d
VS
3482014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
351 safety to avoid triggerring VirtualBox bug.
352
33f6ce67
VS
3532014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
356
79c80b06
VS
357 Fixes hang on virtualbox.
358
0901e785
CW
3592014-07-08 Colin Watson <cjwatson@ubuntu.com>
360
361 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
362 kernels whose paths contain regex metacharacters.
363 * util/grub.d/10_kfreebsd.in: Likewise.
364 * util/grub.d/10_linux.in: Likewise.
365 * util/grub.d/20_linux_xen.in: Likewise.
366
367 Reported by: Heimo Stranner.
368
4250f552
CW
3692014-06-26 Colin Watson <cjwatson@ubuntu.com>
370
371 * docs/grub-dev.texi (Finding your way around): The build system no
372 longer uses AutoGen directly.
373
1f6af2a9
РП
3742014-06-21 Роман Пехов <roman_pekhov>
375
376 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
377
fa335308
GW
3782014-06-21 Glenn Washburn <development@efficientek.com>
379
380 * util/grub-install.c: Fix handling of --disk-module.
381
15bd333e
SR
3822014-06-21 Stephane Rochoy <sheda>
383
384 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
385 EFI system table.
386
3f3ec8ef
SR
3872014-06-21 Stephane Rochoy <sheda>
388
389 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
390 EFI system table physical address.
391
87de66d9
TW
3922014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
393
394 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
395
2c2c5c72
VS
3962014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
399
480c8985
VS
4002014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
403 check.
404
4b8b9135
VS
4052014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
408
409 Reported by: Yves Blusseau <blusseau@zetam.org>.
410
5a6db38d
PK
4112014-04-20 Piotr Krysiuk <piotras@gmail.com>
412
413 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
414 GDT in conventional memory.
415
3a310e84
CW
4162014-04-10 Colin Watson <cjwatson@ubuntu.com>
417
418 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
419 UUID. Other parts of grub-mkconfig tolerate these, they were
420 previously allowed here up to commit
421 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
422 practice when the system has active LVM snapshots.
423 Fixes Ubuntu bug #1287436.
424
c4badfe8
CW
4252014-04-10 Colin Watson <cjwatson@ubuntu.com>
426
427 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
428 "logical_volumes" block a little more accurately.
429
a72fc329
VS
4302014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
433
6f6d4aa0
VS
4342014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
437 pulled from libgcc.
438
8063ce19
VS
4392014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
440
441 Replace few instances of memcmp/memcpy in the code that should be
442 grub_memcmp/grub_memcpy.
443
97060667
VS
4442014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
445
446 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
447 device names.
448
4afd0107
TF
4492014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
450
451 btrfs: fix get_root key comparison failures due to endianness
452
453 * grub-core/fs/btrfs.c (get_root): Convert
454 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
455
24024dac
CW
4562014-03-31 Colin Watson <cjwatson@ubuntu.com>
457
458 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
459
460 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
461 no longer to be forgiving of trailing spaces on grub-probe output
462 lines, which among other things means that util/grub.d/10_linux.in
463 no longer detects LVM. To fix this, make grub-probe's output
464 delimiting more consistent. As a bonus, this improves the coverage
465 of the -0 option.
466
467 Fixes Debian bug #735935.
468
469 * grub-core/disk/cryptodisk.c
470 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
471 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
472 Likewise.
473 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
474 Update prototype.
475 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
476 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
477 probe_mods): Adjust for extra user-data arguments.
478 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
479 probe_abstraction): Use configured delimiter. Update callers.
480
9b35fe81
CW
4812014-03-31 Colin Watson <cjwatson@ubuntu.com>
482
483 * util/grub-probe,c (options): Make -0 work again (broken by
484 conversion to argp).
485 (main): Simplify logic.
486
46b74dd3
VS
4872014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
488
489 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
490
68f17b2b
FW
4912014-03-26 Fu Wei <fu.wei@linaro.org>
492
493 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
494
86402b4e
VS
4952014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
498 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
499
500 Suggested by: Markus Müller.
501
bec35dad
VS
5022014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
503
504 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
505 if E820 failed to return any regions.
506
dfc5ccfa
VS
5072014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
508
509 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
510 tables for low memory calculations.
511
4a70fed8
VS
5122014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
515 location to 640K.
516
f94b2b4e
VS
5172014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
520 region.
521
d0949e37
VS
5222014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
525 exclusively.
526
9585647a
PFS
5272014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
528
529 Add bootpath parser for open firmware.
530
531 It enables net boot even when there is no bootp/dhcp server.
532
533 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
534 and call it at grub_ieee1275_net_config_real.
535 * grub-core/kern/ieee1275/init.c: Add bootpath to
536 grub_ieee1275_net_config.
537 * include/grub/ieee1275/ieee1275.h: Likewise.
538
539
e4dbf247
PFS
5402014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
541
542 Add grub_env_set_net_property function.
543
544 * grub-core/net/bootp.c: Remove set_env_limn_ro.
545 * grub-core/net/net.c: Add grub_env_set_net_property.
546 * include/grub/net.h: Likewise.
547
006c78f3
VS
5482014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
551
511ece7c
VS
5522014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
555
9abbaae7
VS
5562014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
559 7 seconds to recover if last poweroff was bad.
560
d6b94c5e
VS
5612014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/disk/ahci.c: Properly handle transactions with no
564 transferred data.
565
07ea8daa
VS
5662014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/disk/ahci.c: Add safety cleanups.
569
3142b2fe
VS
5702014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
573 slots to avoid pointing to uninited area.
574
4686e163
VS
5752014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
576
577 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
578 enabling busmaster for the end.
579
ba424f37
VS
5802014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
581
582 * util/grub-mkfont.c: Downgrade warnings about unhandled features
583 to debug.
584
3beabdc8 5852014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7f64fb59
VS
586
587 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
588
ba584da1
PFS
5892014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
590
591 * .gitignore: add missing files and .exe variants.
592
35f2d96c
MG
5932014-01-26 Mike Gilbert <floppym@gentoo.org>
594
595 grub-install: support for partitioned partx loop devices.
596
597 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
598 /dev/loopX as being the parent of /dev/loopXpY.
599
9afe2053
VS
6002014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
603 Ensure that pointers are inited to NULL and that pointers are not
604 accessed after free.
5ae584c0
AB
605
6062014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
607
608 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
609 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
610 * include/grub/emu/misc.h: ... and here.
611 * include/grub/err.h: ... and here.
612 * util/import_gcry.py: ... and here (in files g10lib.h).
613
1440b7eb
AB
6142014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
615
616 * util/grub-mkimage.c: Make prefix argument mandatory.
617
61c8482b
VS
6182014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
619
620 Fix several translatable strings.
621
622 Suggested by: D. Prévot.
623
95cd131e
VS
6242014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * util/grub-install.c: List available targets.
627
d0805930
CW
6282014-01-23 Colin Watson <cjwatson@ubuntu.com>
629
630 * util/grub-install.c (write_to_disk): Add an info message.
631
eec4237a
AB
6322014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
633
634 * Makefile.am: Allow adding extra files to generated Windows ZIP
635 archive by setting GRUB_WINDOWS_EXTRA_DIST.
636
36387ece
AB
6372014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
638
639 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
443b3222 640 Show detected font path in summary.
36387ece 641
6f65e36c
PFS
6422014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
643
644 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
645 interval gradually.
646 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
647 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
648 * grub-core/net/tftp.c (tftp_open): Likewise.
649 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
650
d99d2f84
PFS
6512014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
652
653 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
654 infinite loops.
655
656 In net/net.c there is a while (1) that only exits if there is a stop
657 condition and more then 10 packages or if there is no package received.
658
659 If GRUB is idle and enter in this loop, the only condition to leave is
660 if it doesn't have incoming packages. In a network with heavy traffic
661 this never happens.
662
049f6382
CW
6632014-01-19 Colin Watson <cjwatson@ubuntu.com>
664
665 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
666 EPERM when modifying kern.geom.debugflags. It is only a problem for
667 such things as installing GRUB to the MBR, in which case there'll be
668 an error later anyway, not for opening files during tests.
669
01504547
AB
6702014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
671
672 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
673 instead of MOD_FILES.
674 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
675 both with and without .exe.
676 * grub-core/genemuinitheader.sh: Same.
677
b204b718
VS
6782014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * util/grub-install.c: Fix a typo.
681
41155a57
VS
6822014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/normal/main.c (read_config_file): Buffer config file.
685 Reduces boot time.
686
e0a85094
AB
6872014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
688
689 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
690 symbolic link to directory. It fails in Msys shell on Windows 2003.
691
0b47c57a
VS
6922014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
693
694 * Makefile.am (default_payload.elf): Add modules
695 multiboot cbmemc linux16 gzio echo help.
696
6972014-01-18 Mike Gilbert <floppym@gentoo.org>
6ba98355
MG
698
699 * Makefile.util.def: Link grub-ofpathname with zfs libs.
700
6c519b5c
VS
7012014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
704 conflicts.
705
706 Reported by: Andrey Borzenkov.
707
f371dd5d
AB
7082014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
709
710 * include/grub/misc.h: Move macros for compiler features to ...
711 * include/grub/compiler.h: ... new file.
712 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
713 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
714 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
715 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
716 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
717 * grub-core/video/capture.c: Include <grub/misc.h>.
718 * include/grub/command.h: Include <grub/misc.h>.
719 * include/grub/dl.h: Include <grub/misc.h>.
720 * include/grub/procfs.h: Include <grub/misc.h>.
721
1ecf96fc
AB
7222014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
723
724 * configure.ac: Add support for BUILD_EXEEXT and use it ...
725 * Makefile.am: ... here.
726 * Makefile.util.def: ... and here.
727 * grub-core/Makefile.am: ... and here.
728
5ef569df
AB
7292014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
730
731 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
732 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
733
3abb9563
VS
7342014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * grub-core/term/terminfo.c: Recognize keys F1-F12.
737
9b9c4686 7382014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
dcecae1a
AB
739
740 * configure.ac: Add support for BUILD_LDFLAGS.
741 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
742 * grub-core/Makefile.am: ... and here.
743 * INSTALL: Mention BUILD_LDFLAGS.
744
ae80f312
VS
7452014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
748
7e7293d7
VS
7492014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
750
751 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
752 and has no //.
753
5acc8020
VS
7542014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * NEWS: Add few missing entries.
757
ff66b8e7
CW
7582014-01-17 Colin Watson <cjwatson@ubuntu.com>
759
760 * util/grub.d/00_header.in (make_timeout): Use && rather than test
761 -a.
762 * util/grub.d/10_windows.in: Likewise.
763 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
764 than test -o.
765 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
766 rather than test -o.
767
7682014-01-17 Colin Watson <cjwatson@ubuntu.com>
09a836e5
CW
769
770 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
771 redundant preprocessor conditional.
772
ccd21a65
CW
7732014-01-08 Colin Watson <cjwatson@ubuntu.com>
774
775 * Makefile.util.def (grub-macbless): Change mansection to 8.
776
4d21c101
LL
7772014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
778
779 * grub-core/loader/arm64/linux.c: correctly set device path end length.
780
e7cfa8d5
AB
7812014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
782
783 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
784 arm64 to comply with EFI specification. Also use grubaa64.efi for
785 consistency.
786 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
787
94cee4a4
AB
7882014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
789
790 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
791 on MinGW-64 when compiling for 32 bits.
792
668add25
AB
7932013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
794
795 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
796
0e309454
VS
7972013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * NEWS: Add few missing entries. Correct existing ones.
800
093dec73
VS
8012013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
802
803 Don't abort() on unavailable coreboot tables if not running on coreboot.
804
989af025
AB
8052013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
806
807 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
808 on mingw.
809
8442d3e9
CW
8102013-12-28 Colin Watson <cjwatson@ubuntu.com>
811
812 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
813 mention of it from 2.02.
814
645ff636 8152013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
5bda44d7
VS
816
817 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
818
819 As these functions are used on pre-ARMv6 CPUs as well we don't want
820 to make assembler assume that architecture is higher than default one.
821
30a33846
CW
8222013-12-27 Colin Watson <cjwatson@ubuntu.com>
823
824 * NEWS: First draft of 2.02 entry.
825
51f941a0
CW
8262013-12-27 Colin Watson <cjwatson@ubuntu.com>
827
828 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
829 * docs/grub.texi (Getting the source code): Likewise.
830
a6e7719b
AB
8312013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
832
833 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
834 detection.
835
e8f07821
VS
8362013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * configure.ac: Set version to 2.02~beta2.
839
dc3286ad
VS
8402013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
841
842 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
843
46f8d358
AB
8442013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
845
846 * util/grub-probe.c: Improve help message and simplify list handling.
847
09c47900
VS
8482013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Fix buffer overflow in grub_efi_print_device_path.
851
4d6c6953
VS
8522013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Show SATA device path.
855
faf4a65e
VS
8562013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
857
858 Revert grub-file usage in grub-mkconfig.
859
e5fa26e5
VS
8602013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
861
862 Make newly-created files other than grub.cfg world-readable.
863
569766e4
AB
8642013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
865
866 * util/grub.d/00_header.in: Improve compatibility with old config.
867
41272068
VS
8682013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
869
870 Make rijndael.c respect aliasing rules.
871
872 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
873
f7c7c4d4
VS
8742013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
875
876 Make grub_util_device_is_mapped_stat available in grub-emu core.
877
57bc5d43
VS
8782013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
879
880 Add -Qn to TARGET_CFLAGS if it's supported.
881 Fixes compilation on cygwin.
882
883 Reported by: Andrey Borzenkov.
884 Suggested by: Andrey Borzenkov.
885
6a7957f9
VS
8862013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
887
888 Save TARGET_CC version in modinfo.sh.
889
890 Suggested by: Andrey Borzenkov.
891
e88f0420
VS
8922013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
893
894 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
895 follow the same algorithm to avoid method mismatch. Don't assume
896 DMRAID- UUID to mean full disk but instead check that mapping is linear.
897
da986226
VS
8982013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
899
900 Declare GRUB_EFI_VENDOR_APPLE_GUID.
901
fba31b5f
VS
9022013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
903
904 Dump type and vendor specific data when printing device path.
905
3d369a01
CW
9062013-12-23 Colin Watson <cjwatson@debian.org>
907
908 Update some documentation to refer to Git rather than Bazaar.
909
910 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
911 than Bazaar.
912 * po/README: Likewise. Fix spelling mistake.
913
5b83ef97
CW
9142013-12-23 Colin Watson <cjwatson@ubuntu.com>
915
916 Don't distribute config.h.
917
918 * Makefile.am (platform_HEADERS): Move to ...
919 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
920 failure when building from a distributed tarball.
921
16f7455b
CW
9222013-12-23 Colin Watson <cjwatson@ubuntu.com>
923
924 * configure.ac: Fix spelling.
925 * grub-core/commands/parttool.c: Fix grammar.
926 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
927 Embedding Partition".
928
808e97c4
VS
9292013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
930
931 ARM64 support for grub-mkrescue.
932
e388db90
VS
9332013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
934
935 Install modinfo.sh to keep build information around.
936
cef39403
VS
9372013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * grub-core/modinfo.sh.in: Add build config information.
940
a4d61002
VS
9412013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
942
943 ARM64 grub-file and grub-mkconfig support.
944
0c930a84
VS
9452013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
946
947 Remove leftover options defines.
948
74fa9ac1
VS
9492013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
952
62956fe7
VS
9532013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/loader/arm64/linux.c: Add missing bracket.
956
26063216
VS
9572013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
958
959 Add arm64-efi recognition to grub-file.
960
4cd0b55f
VS
9612013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Fix ia64-efi recognition in grub-file.
964
95b56e3a
VS
9652013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Recognize raspberry pi kernel in grub-file.
968
bbc52c22
VS
9692013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
970
971 Enable cache on ARM U-Boot port.
972
973 Without it the port is reidiculously slow.
974
943981ff
VS
9752013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
976
977 Fix ARM cache maintainance.
978
979 More code was converted from ASM to C for easier handling.
980
adabfb54
VS
9812013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
984 algorithm on v5.
985
986 Suggested by: Leif Lindholm.
987
77ec462a
AB
9882013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
989
990 * util/grub-mkconfig.in: Fix Xen platform conditions.
991
3bf2db89
AB
9922013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
993
994 * util/grub-mkrescue.c: Split single help message string in several
995 strings used in previous shell version.
996
30a9ab95
LL
9972013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
998
999 Add arm64 Linux loader.
1000
c415eaa9
LL
10012013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
1002
1003 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1004
313fb3ce
VS
10052013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 Add module loading and parsing boot time checkpoints.
1008
37f617c0
VS
10092013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1012 platforms.
1013
3deedfc0
LW
10142013-12-22 Lars Wendler <polynomial-c@gentoo.org>
1015
1016 * util/grub-mkconfig.in: Skip non-executable files.
1017
5ad9f728
VS
10182013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 Workaround buggy timer in raspberry pie by using our own timer
1021 implementation.
1022
eeb84997
VS
10232013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1026 Increase to 16 MiB to allow loading the whole memdisk.
1027
0d8b81f8
VS
10282013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 Fix ARM Linux Loader on non-FDT platforms.
1031
bf082198
VS
10322013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * configure.ac: Choose link format based on host_os on emu.
1035
0b602bf9
VS
10362013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1039
96650a82
VS
10402013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 * grub-core/kern/emu/main.c: Build fix for emu.
1043
ca3e2088
VS
10442013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 Build fixes for argp.h with older gcc.
1047
27db1a9b
VS
10482013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1051 in strings.
1052
1053 Suggested by: David Prévot.
1054
8a913e66
VS
10552013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1058
ae558c2c
VS
10592013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 Enable -Wformat=2 if it's supported.
1062
bbac6789
VS
10632013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1066 -Wmissing-declarations if supported.
1067
ab216512
VS
10682013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1069
1070 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1071 u32 as both HFS and HFS+ have 32-bit inodes.
1072
0d4aa91d
VS
10732013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 * include/grub/misc.h (grub_strtol): Fix overflow.
1076
a997af68
VS
10772013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1080 as return type in both conditionals.
1081
36bcaf29
VS
10822013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1085 to use uint8_t for color.
1086
74763e96
VS
10872013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * util/misc.c (grub_util_get_image_size): Check for overflow.
1090
80b29fc9
VS
10912013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1094 for size.
1095
6e327fcd
VS
10962013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1099 for pointer difference.
1100
62ce03cf
VS
11012013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * util/import_gcry.py: Skip sample keys.
1104
f4d70fd0
VS
11052013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1108
93bf55e6
VS
11092013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * configure.ac: Remove duplicate warning arguments.
1112
579ee114
VS
11132013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 Add missing static qualifiers.
1116
ee5283d6
VS
11172013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Add missing includes.
1120
5dbde526
VS
11212013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 Inline printf templates when possible to enable format checking.
1124
d88ae4f0
VS
11252013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * include/grub/crypto.h: Don't discard const attribute.
1128
17b43559
VS
11292013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1130
1131 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1132 was intended.
1133
76a2a430
VS
11342013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/lib/crypto.c: Don't discard const attribute.
1137
0d26164e
VS
11382013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/lib/disk.c: Fix potential overflow.
1141
2622b1e8
VS
11422013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/lib/arg.c: Don't discard const attribute.
1145
05126706
VS
11462013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/kern/dl.c: Don't discard const attribute.
1149
2f9c4804
VS
11502013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 * grub-core/kern/disk.c: Fix potential overflow.
1153
0438ebf1
VS
11542013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * conf/Makefile.common: Don't include non-existing directory
1157 grub-core/lib/libgcrypt-grub/include.
1158
065adc34
VS
11592013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 Clarify several translatable messages.
1162
496a6b30
DP
11632013-12-21 David Prévot <david@tilapin.org>
1164
1165 Correct some translatable strings.
1166
971038be
CW
11672013-12-21 Colin Watson <cjwatson@ubuntu.com>
1168
1169 * util/grub-mkrescue.c: Rephrase mkrescue description.
1170
bfdfeb25
VS
11712013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
11722013-12-21 Colin Watson <cjwatson@ubuntu.com>
1173
1174 Clarify several translatable messages.
1175
d642d761
CW
11762013-12-20 Colin Watson <cjwatson@ubuntu.com>
1177
1178 Be more verbose about some configure failures.
1179
3bc1b2da
CW
11802013-12-20 Colin Watson <cjwatson@ubuntu.com>
1181
1182 Fix various build problems on GNU/Hurd.
1183
1184 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1185 !defined (__GNU__).
1186 (xgetcwd): Likewise.
1187 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1188 [__GNU__]: Add prototype.
1189 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1190 long int using %ld rather than %d.
1191
871aa709
VS
11922013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * util/grub-install.c: Inform user about install platform.
1195
2fa5a58c
VS
11962013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1197
1198 * configure.ac: Set version to 2.02~beta1.
1199
ee281fd0
AP
12002013-12-18 Allen Pais <allen.pais@oracle.com>
12012013-12-18 Bob Picco <bob.picco@oracle.com>
1202
1203 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1204
2e238b37
VS
12052013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 Make grub_zlib_decompress handle incomplete chunks.
1208
1209 Fixes squash4.
1210
2984035e
VS
12112013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1212
1213 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1214 on i386-multiboot.
1215
b9f03772
AN
12162013-12-18 Aleš Nesrsta <starous@volny.cz>
1217
1218 * grub-core/disk/usbms.c: Retry on unknown errors.
1219 Reuse the same tag on retries.
1220
e3ef0d30
AN
12212013-12-18 Aleš Nesrsta <starous@volny.cz>
1222
1223 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1224
1225 Avoid confusing them with already completed transfers.
1226
72c9a507
VS
12272013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 Remove xen VFB.
1230
1231 Due to XEN bug it prevents Linux boot. Remove it at least, until
1232 workaround is found.
1233
84455670
VS
12342013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 * po/exclude.pot: Add 2 missing excludes.
1237
64dd5fdc
VS
12382013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Add missing license section in macbless.mod and macho.mod.
1241
a29f317a
VS
12422013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Allow compilation without thumb-interwork as long as no thumb is
1245 involved or only thumb2 is used.
1246
113f7869
VS
12472013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1250
eba2afed
VS
12512013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Add __attribute__ ((sysv_abi)) only if it's really needed.
1254
1255 Some compilers don't support it.
1256
1962ed95
VS
12572013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1260
c2be6f7e
VS
12612013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 Remove -Wold-style-definition.
1264
1265 Not very useful and interaction of it with regexp depends on GCC
1266 version.
1267
7a7f5238
VS
12682013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 Make grub_util_get_windows_path_real static.
1271
9246d5c8
VS
12722013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * grub-core/commands/fileXX.c: Silence cast-align.
1275 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1276
b3aea1bc
VS
12772013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1280 rather than LL suffix.
1281
bc8dd119
VS
12822013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1283
e8c360ca
VS
1284 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1285
12862013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * grub-core/loader/arm/linux.c: Use common initrd functions.
bc8dd119 1289
57a691b7
VS
12902013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 Decrease number of strings to translate.
1293
74fa9417
VS
12942013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1297
636977b0
VS
12982013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 Mark strings for translation and add remaining ones to exclude list.
1301
ee4450eb
VS
13022013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 * util/grub-file.c (main): Fix sizeof usage.
1305
13062013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
a43b3e5d
VS
1307
1308 Silence spurious warning.
1309
ee4450eb 13102013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
81294aff
VS
1311
1312 Remove check_nt_hiberfil as it's been superseeded by file command.
1313
a99c0a32
VS
13142013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1317
8f5add13
VS
13182013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 Implement syslinux parser.
1321
8ff35d0a
VS
13222013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1325
ba144760
VS
13262013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 Support cpuid --pae.
1329
daaa89db
VS
13302013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 Use AT keyboard on Yeeloong 3A.
1333
25a7863d
VS
13342013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 Add Yeeloong 3A reboot and halt.
1337
184c61dd
VS
13382013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 Add Radeon Yeeloong 3A support.
1341
fd4650a5
VS
13422013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 Add bonito 3A support.
1345
3e88fbfa
VS
13462013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1349
1123bed9
VS
13502013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1353
ebda165f
VS
13542013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * grub-core/loader/macho.c: Fix compilation on non-i386.
1357
fe7c20bf
VS
13582013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 Add missing format_arg attribute to check that printf with translated
1361 messages has proper arguments.
1362
f4dab3d1
VS
13632013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 Use grub_xasprintf to format translated error messages containing
1366 64-bit quantity.
1367
24d5934d
JM
13682013-12-17 Jon McCune <jonmccune@google.com>
1369
1370 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1371
d6c2782a
VS
13722013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Unify message for unsupported relocation.
1375
50d2e959
VS
13762013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Mark miscompile error for translation.
1379
18e76955
VS
13802013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 Use %I64 and not %ll when using OS printf if compiling for windows.
1383
d218ec97
VS
13842013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 Update Mac code to match new register_efi prototype.
1387
b8765fa0
VS
13882013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 Implement better integration with Mac firmware.
1391
1f032575
VS
13922013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1395 load_addr.
1396
14829755
VS
13972013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 Include serial module in default_payload.elf.
1400
d45067a2
VS
14012013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Add explicit thumb interwork bx in asm files.
1404
1405 Shouldn't matter for armv >= 5 but let's be safe.
1406
30861754
VS
14072013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 Implement Truecrypt ISO loader.
1410
e14d409b
VS
14112013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1414
ec824e0f
VS
14152013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 Implement grub_file tool and use it to implement generating of config
1418 in separate root.
1419
296f7606
VS
14202013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 Change to v1 xen grants.
1423
2c384f1e
VS
14242013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1427
1428 GRUB relied on %ebx being preserved across hypercall which isn't true.
1429
d16ff589
VS
14302013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1433
1434 GRUB relied on %rdi being preserved across hypercall which isn't true.
1435
71669c3b
VS
14362013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 Implement XEN VFB support.
1439
60d1dd3d
VS
14402013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 Remove grub_bios_interrupt on coreboot.
1443
1444 It's not used currently and cannot be used safely currently.
1445
a8201050
VS
14462013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 Update exclude.pot and mark few strings for translation.
1449
6cc89597
VS
14502013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1453
1454 Reported by: Jon McCune
1455
840a2c05
AB
14562013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1457
1458 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1459 Add verbose information which firmware directories were tried.
1460
35248820
AB
14612013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1462
1463 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1464 function to optionally redirect all three standard descriptors.
1465 Redefine grub_util_exec, grub_util_exec_redirect and
1466 grub_util_exec_redirect_null to use it.
1467 * include/grub/emu/exec.h: Define it.
1468 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1469 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1470 Use grub_util_exec_redirect_all to redirect error to NULL.
1471
2a123f4c
VS
14722013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/tests/sleep_test.c: Silence spurious warning.
1475
316c8d9a
VS
14762013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1479 linker trying to "fixup" the code.
1480
8fcce8d5
VS
14812013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1484
6f1f6a0c
VS
14852013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 Add support for converting PE+ to Elf64.
1488
66a07ce2
VS
14892013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1492
cc6fb517
VS
14932013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 Remove practice of assigning random const pointers to device id.
1496
1497 This is not required as cache code already checks driver id as well.
1498
f009f07c
VS
14992013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1502 with mingw.
1503
9fdec226
VS
15042013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1507 mingw or cygwin as API already matches.
1508
d87cb3ae
VS
15092013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1512
3e38c31a
VS
15132013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1516 not on long.
1517
f4171ebd
VS
15182013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 Handle X86_64_PC64 relocation.
1521
1522 Those are generated by some cygwin compilers.
1523
252a289c
VS
15242013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 Determine the need for mingw-related stubs at compile time rather than
1527 using not very significant $target_os.
1528
23d2abc3
VS
15292013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1532 may not work with ELF.
1533
4f979ccb
VS
15342013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 Use unix functions for temporary files and special files on cygwin.
1537
37378f74
VS
15382013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 Define functions explicitly rather than using --defsym in tests
1541 whenever possible. Respect locality in remaining cases.
1542
6a09d83e
VS
15432013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1544
1545 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1546
e477187b
AB
15472013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1548
1549 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1550 unlikely errors when getting EFI variables and make exhaustive search
1551 for all BootNNNN variables to find matching one.
1552
80b865bd
IC
15532013-12-15 Ian Campbell <ijc@hellion.org.uk>
1554
1555 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1556
04b02857
VS
15572013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 New functional test for sleep function.
1560
1561 This test allows to check sleep without qemu. Keep qemu version as
1562 well as functional test won't notice if all clocks are going too fast
1563 or too slow.
1564
39711101
VS
15652013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 Add explicit sysv_abi on amd64 asm routines.
1568
d99af4f0
VS
15692013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1572 num_table_entries.
1573
71043684
VS
15742013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1577 functions.
1578
111bf5db
VS
15792013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1580
1581 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1582 appropriate.
1583
24ca71c9
VS
15842013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1587
48ba5c0c
VS
15882013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1591 appropriate.
1592
8ae67045
VS
15932013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1594
1595 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1596
1597 In case of quick removal of loopback and adding another one it may
1598 get same ID, confusing the cache system.
1599
ed559310
VS
16002013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1603 appropriate.
1604
8fa26279
VS
16052013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1608 than converting to long.
1609
6f5f3337
VS
16102013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1613
e7c418c5
VS
16142013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1617 than almost useless pointer.
1618
7e47e27b
VS
16192013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 Add gcc_struct to all packed structures when compiling with mingw.
1622
1623 Just "packed" doesn't always pack the way we expect.
1624
ae8159b9
VS
16252013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1628
74e7ad66
VS
16292013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 * util/grub-pe2elf.c: Fix handling of .bss.
1632
814442ba
VS
16332013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 Implement windows flavour of EFI install routines.
1636
5f5bb107
VS
16372013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1640
a24725cc
VS
16412013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 Change grub_install_register_efi interface to pass GRUB device.
1644
1645 This allows grub_install_register_efi to request partition info
1646 directly.
1647
38933cee
VS
16482013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1651
6d3cfe50
VS
16522013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 Do not use TCHAR string functions as they are not available on cygwin.
1655
4bad23a1
VS
16562013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 Workaround windows bug when querying EFI system partition parameters.
1659
6a5fe132
VS
16602013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1663 by using bitfields.
1664
bc8fcf4b
VS
16652013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1668
60b967be
VS
16692013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 Make i386-* other than i386-pc compileable under cygwin.
1672
6dc33377
VS
16732013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Fix definition of grub_efi_hard_drive_device_path. Take care that
1676 existing code would work even if by some reason bogus definition is
1677 used by EFI implementations.
1678
f2c6ff15
VS
16792013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1682
6b8a1625
VS
16832013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1686 invocation.
1687
954c723a
VS
16882013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * util/config.c: Remove trailing newline from distributor in simple
1691 parsing.
1692
607a39f9
VS
16932013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * include/grub/efi/api.h: Rename protocol and interface to avoid
1696 conflict.
1697
df6fedca
VS
16982013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1699
ba584da1 1700 * .gitignore: add .exe variants. add missing files. remove few outdated
df6fedca
VS
1701 entries.
1702
f684d7e1
VS
17032013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/osdep/exec.c: Use unix version on cygwin.
1706
0df77d79
VS
17072013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 Implement multiboot2 EFI BS specification.
1710
dafff9ce
VS
17112013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1714 Crash happened only in some cases like a string starting at the
1715 half of the screen of same length.
1716
6644d973
VS
17172013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1720 with EFI counterpart.
1721
44bbfa33
VS
17222013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 Propagate the EFI commits to x86-efi specific parts.
1725
3e3dff24
VS
17262013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1729
316dda71
VS
17302013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 Introduce grub_efi_packed_guid and use it where alignment is not
1733 guaranteed.
1734
219401b8
VS
17352013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1736
1737 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1738 unaligned u16 rather than u8[2].
1739
30d00537
VS
17402013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1743 for relocation range.
1744
979742bc
VS
17452013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1746
1747 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1748 non-function pcrel21b relocation. It happens with .text.unlikely
1749 section.
1750
16c8f785
LL
17512013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1752
1753 * make MAX_USABLE_ADDRESS platform-specific
1754 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1755
3f1423e7
LL
17562013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1757
1758 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1759
dd73313c
JM
17602013-12-09 Jon McCune <jonmccune@google.com>
1761
1762 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1763 in grub-install and grub-bios-setup for x86 BIOS targets.
1764
eaf01c25
VS
17652013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 Add missing compile and link options for sparc64-emu.
1768
7a148da6
VS
17692013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 Implement sparc64 trampolines (needed for sparc64-emu).
1772
21eee750
VS
17732013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1776 range of R_SPARC_HI22.
1777 Implement R_SPARC_LM22.
1778
7b54b626
VS
17792013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1782 Do not explicitly check for symbol table as it's already checked in
1783 platform-independent layer.
1784
9a945e2a
VS
17852013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1788 on ia64 as __clear_cache is a dummy on ia64.
1789
4f4ea1b4
VS
17902013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1793 Do not explicitly check for symbol table as it's already checked in
1794 platform-independent layer.
1795
fe4ae213
CW
17962013-12-09 Colin Watson <cjwatson@ubuntu.com>
1797
1798 * util/grub-mkconfig.in: Add missing newline to output.
1799
78b2b0a1
VS
18002013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1803 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1804
d14772c4
VS
18052013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1808 compilation with GCC <= 4.2.
1809 * grub-core/kern/emu/argp_common.c: Likewise.
1810
388f3cd0
VS
18112013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1814 right platform rather than leaking to sparc64-emu.
1815
11e4167a
VS
18162013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1819 But ensure that the variables in question are indeed unsigned.
1820
fa7eb63d
VS
18212013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1824
50b3a68d
VS
18252013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 Remove grub_memalign on emu.
1828
fbbfb6ab
VS
18292013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1830
1831 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1832 truncate incomplete lines but instead flushes them.
1833
a19293cb
VS
18342013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1835
1836 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1837 and implement windows variant.
1838
d5c14e1e
VS
18392013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 Fix mips-emu compilation.
1842
b75db69a
VS
18432013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * configure.ac: Check for freetype library usability.
1846
c311ced5
VS
18472013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 Make arm-emu work.
1850
c8fd2ddf
VS
18512013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1852
1853 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1854
c50e5f45
AB
18552013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1856
1857 * docs/grub.texi (Environment): Update color_normal and color_highlight
1858 defaults (light-gray instead of white).
1859
bb05e313
AB
18602013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1861
1862 * grub-core/normal/main.c (INIT): Set default color to light-gray
1863 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1864 and apparently BIOS defaults.
1865
f23bc651
VS
18662013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 Transform -C option to grub-mkstandalone to --core-compress available
1869 in all grub-install flavours.
1870
4c4ea9c7
VS
18712013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 Merge GRUBFS and GRUB_FS variables.
1874
92e9352d
AB
18752013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1876
1877 Revert commit 69ca97c820, it caused failures when using OS device name
1878 in grub-install. Instead just strip off parenthesis in grub-install
1879 if (hdX) was passed.
1880
f585c905
AB
18812013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1882
1883 * util/grub-install.c (push_partmap_module): Add helper to convert
1884 partmap names to module names and use it in probe_mods(). Fixes
1885 failure to find partmap modules in diskfilter case.
1886
5ff24907
VS
18872013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * configure.ac: Make unifont mandatory on coreboot.
1890
0277eab7
VS
18912013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * configure.ac: Skip unifont 6.3 pcf and bdf.
1894
4861b6c8
VS
18952013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * Makefile.am: Remove partial font files if generation failed.
1898
3100cdc7
AB
18992013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1900
1901 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1902 strings.
1903 * include/grub/util/misc.h: Define it ...
1904 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1905
ad73cc33
AB
19062013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1907
1908 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1909 ${grub_probe}.
1910
41822625
VS
19112013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 Don't add -mlong-calls when compiling with clang.
1914
896f483d
VS
19152013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * configure.ac: Fix a typo.
1918
8c534b85
VS
19192013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 Revamp relocation handling.
1922
1923 Move more code to common dl.c. Add missing veneers for arm and arm64.
1924 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1925
a846dd4b
VS
19262013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1929
aa437b58
MG
19302013-12-05 Mike Gilbert <floppym@gentoo.org>
1931
1932 * INSTALL: Raise minimum python version to 2.6.
1933 * gentpl.py: Use python3-style print function.
1934
b0f311f4
VS
19352013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * util/grub-install.c: Mention Boot* variable.
1938
59b38922
CW
19392013-12-05 Colin Watson <cjwatson@ubuntu.com>
1940
1941 * grub-core/osdep/linux/hostdisk.c
1942 (grub_util_find_partition_start_os): Initialise start to avoid
1943 spurious compiler warning.
1944
0480665b
CW
19452013-12-05 Colin Watson <cjwatson@ubuntu.com>
1946
1947 On Linux, read partition start offsets from sysfs if possible, to
1948 cope with block device drivers that don't implement HDIO_GETGEO.
1949 Fixes Ubuntu bug #1237519.
1950
1951 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1952 function.
1953 (sysfs_partition_start): Likewise.
1954 (grub_util_find_partition_start_os): Try sysfs_partition_start
1955 before HDIO_GETGEO.
1956
bbeee1c4
LL
19572013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1958
1959 * grub-core/kern/fdt.c: Update struct size when adding node.
1960
e5ed2f69
VS
19612013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 Handle unaligned .bss on sparc64.
1964
1965 Current code improperly assumes that both __bss_start and _end are
1966 aligned to 8-bytes. Eliminating this assumption and explicitly align
1967 modules.
1968
4a73746a
VS
19692013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1972 so it doesn't land in the middle of loaded image.
1973
382b500e
VS
19742013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1975
1976 * configure.ac: Move all warning options that may be absent in
1977 gcc >= 3.1 to optional.
1978
1979 Note: while this allows to compile with older GCC, official requirements
1980 remain the same and no support for older GCC.
1981
3a82f8bb
CW
19822013-12-04 Colin Watson <cjwatson@ubuntu.com>
1983
1984 Copying the themes directory in grub-shell isn't
1985 parallel-test-friendly and breaks on the second test when the source
1986 directory is read-only (as in "make distcheck"). Instead, add a
1987 hidden --themes-directory option to grub-mkrescue et al, and use it
1988 in grub-shell.
1989
e3046431
VS
19902013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1993 as it's no longer necessarry.
1994
bdb6090d
VS
19952013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 * configure.ac: Allow compilation with older GCC for ARM.
1998
b73b70eb
VS
19992013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
2002 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
2003 ppc.
2004
8a3f0a24
VS
20052013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2008
6f07c4e4
VS
20092013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 Pass font config to config.h and not by TARGET_CFLAGS as adding
2012 arguments doesn't work if TARGET_CFLAGS is specified on command
2013 line.
2014
60d5e9cb
VS
20152013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * configure.ac: Add -Wvla if compiler supports it.
2018
cd15c394
VS
20192013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2020
2021 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2022 Remove variable length arrays.
2023 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2024
bb6e299c
VS
20252013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2028
85eb579a
VS
20292013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * include/grub/types.h: Declare all byteswaps as inline functions
2032 except compile-time ones.
2033
2034 Solves variable shadowing in constructions like
2035 cpu_to_le (le_to_cpu(x) + 1).
2036
47f88cc9
VS
20372013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2040
40b5739f
VS
20412013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2044 minutes.
2045
234d9346
VS
20462013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2049 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2050
0c0eab52
CW
20512013-12-03 Colin Watson <cjwatson@ubuntu.com>
2052
2053 * grub-core/Makefile.core.def (setjmp): Distribute
2054 lib/arm64/setjmp.S.
2055
44d48847 20562013-12-03 Colin Watson <cjwatson@ubuntu.com>
8f236c14
CW
2057
2058 Add a new timeout_style environment variable and a corresponding
2059 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2060 controls hidden-timeout handling more simply than the previous
2061 arrangements, and pressing any hotkeys associated with menu entries
2062 during the hidden timeout will now boot the corresponding menu entry
2063 immediately.
2064
2065 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2066 generates a warning, and if it shows the menu it will do so as if
2067 the second timeout were not present. Other combinations are
2068 translated into reasonable equivalents.
2069
10955cda
CW
2070 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2071
9e4e6ddf
VS
20722013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2073
2074 * util/config.c: Add missing pointer adjustment.
2075 Reported by: qwertial
2076
5037aa9a
AB
20772013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2078
2079 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2080 directly, not via `cpu' link, to fix libgrub.pp generation.
2081
8a952d20
VS
20822013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2083
2084 New port arm64-efi.
2085
be0d4555
AB
20862013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2087
2088 * docs/grub.texi (sleep): Document exit codes.
2089
d74b9a1d
VS
20902013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 Ensure that -mno-unaligned-access or some equivalent option is used.
2093
35de6d4b
VS
20942013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2095
2096 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2097 -march=armv3.
2098
ce55ed03
VS
20992013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2102
8ddf84bf
CW
21032013-11-29 Colin Watson <cjwatson@ubuntu.com>
2104
2105 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2106 builds, since we don't have an EPS version of font_char_metrics.png.
2107 Add leading dot to image extension per the Texinfo documentation.
2108
fd0df6d0
CW
21092013-11-29 Colin Watson <cjwatson@ubuntu.com>
2110
2111 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2112 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2113 * util/grub-gen-widthspec.c: Likewise.
2114 * util/grub-mkfont.c: Likewise.
2115
69ca97c8
AB
21162013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2117
2118 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2119 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2120 failed to install on (hdX).
2121 * util/grub-setup.c (get_device_name): Remove, not needed after
2122 above change.
2123
eec893ae
VS
21242013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2127
621e167f
VS
21282013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * util/grub-fstest.c: Remove variable length arrays.
2131
d54f647a
VS
21322013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2135
c8a0f1b2
VS
21362013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2139 computing crc32 rather than handling with md fundtions directly.
2140
726409a5
VS
21412013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2144 checking fwstart.img rather than md fundtions directly.
2145
422e6e88
VS
21462013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * util/grub-mkrescue.c (main): Check that fread succeeded.
2149
af1faca3
VS
21502013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * conf/Makefile.common: Remove -mexplicit-relocs and
2153 -DUSE_ASCII_FALLBACK on yeeloong.
2154
2155 -DUSE_ASCII_FALLBACK is already added by font snippets.
2156 -mexplicit-relocs isn't needed is compiler/assemblera are
2157 configured properly.
2158 If they're not we shouldn't attempt to fix it by ourselves.
2159 Binary compare between before and after shows no difference.
2160
469021b4
VS
21612013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2164 sources in dependencies directly.
2165
2166 This was the only instance of "library" in core config. A bug was
2167 reported that -fno-stack-protector wasn't passed to it. Instead of
2168 figuring out why it failed just remove this construction used
2169 needlessly.
2170
83c256ba
VS
21712013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2174 fgets succeeded.
2175
b67422d3
FL
21762013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2177
2178 * docs/grub.texi (ls): Fix command description in case of a device name
2179 passed as argument.
2180
2d76b4d8
VS
21812013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2182
2183 Eliminate variable length arrays in grub_vsnprintf_real.
2184
2185 A bit tricky because this function has to continue to work without
2186 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2187 but make all stack references use 32-bit offset rather than 8-bit one.
2188 So split va_args preparsing to separate function and put the prealloc
2189 into the caller.
2190
4f954122
VS
21912013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2194 Fixes build for windows.
2195
b1f742c1
VS
21962013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * gentpl.py: Don't generate platform-dependent conditionals for
2199 platform-independent targets.
2200
16ef26fd
CW
22012013-11-27 Colin Watson <cjwatson@ubuntu.com>
2202
2203 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2204 references to mdadm from otherwise generic code.
2205 (grub_util_exec_pipe): Likewise.
2206 (grub_util_exec_pipe_stderr): Likewise.
2207 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2208 This function calls vgs, not mdadm; adjust variable names
2209 accordingly.
2210
cf8c80ff 22112013-11-27 Colin Watson <cjwatson@ubuntu.com>
ab4f1501
CW
2212
2213 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2214 of Autogen. The Autogen definitions files remain intact as they
2215 offer a useful abstraction.
2216
5c7206e4
CW
22172013-11-27 Colin Watson <cjwatson@ubuntu.com>
2218
2219 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2220 into no-ops, and use it in programs that copy files but do not need
2221 to take special care to sync writes (grub-mknetdir, grub-rescue,
2222 grub-mkstandalone).
2223
fc3f2b72
CW
22242013-11-26 Colin Watson <cjwatson@ubuntu.com>
2225
2226 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2227 than hardcoding /usr/local/bin/xorriso.
2228
1e4b3587
VS
22292013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2230
2231 Add PCI command activation to all PCI drivers as required for coreboot
2232 and maybe some other firmwares.
2233
9208367d
VS
22342013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2237 and non-Apple variants of efiemu compile.
2238
67b9b7af
AB
22392013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2240
2241 * configure.ac: Add explicit check for linking format of
2242 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2243 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2244 hardcoding linking format.
2245
bee1b5ce
VS
22462013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2249 and not pkgdatadir.
2250
07e3b047
CW
22512013-11-25 Colin Watson <cjwatson@ubuntu.com>
22522013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 Add a --locale-directory option to grub-install and related tools.
2255
2256 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2257 --locale-directory option.
2258 (enum grub_install_options): Add
2259 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2260 * util/grub-install-common.c (grub_install_help_filter): Handle
2261 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2262 (grub_install_parse): Likewise.
2263 (get_localedir): New function to check for a user-provided option
2264 before trying grub_util_get_localedir.
2265 (copy_locales): Use get_localedir rather than
2266 grub_util_get_localedir. Handle differing locale directory layouts.
2267 (grub_install_copy_files): Likewise.
2268
61e1b9a4
VS
22692013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2272 Don't rely on PATH_MAX.
2273
c98dd165
VS
22742013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/genmoddep.awk: Use more portable && rather than and.
2277
ff1c277e
VS
22782013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2281 an object after data. While it doesn't seem right solution, it
2282 works well enough and OSX isn't main compilation platform.
2283
c8f7614b
VS
22842013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2287 While it doesn't seem right solution, it works well enough and
2288 OSX isn't main compilation platform.
2289
246a434f
VS
22902013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * configure.ac: Add -static to LDFLAGS when using apple linker to
2293 prevent it from pulling in dynamic linker.
2294
5c066a81
VS
22952013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 Apple assembly doesn't handle symbol arithmetic well. So define an
2298 offset symbol in boot.S and use it.
2299
78f961ef
VS
23002013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 Apple assembly doesn't handle symbol arithmetic well. So instead
2303 of getting addres of kernel_sector + 4 define kernel_sector_high.
2304 It also makes code more readable.
2305
09bc0a57
VS
23062013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 With Apple assembly in .macro environvemnt you have to use $$ instead
2309 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2310 to $$x on Apple and to $x on everything else.
2311
b700a427
VS
23122013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2315 OBJCONV.
2316
4480b95d
VS
23172013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2320 and non-Apple. This instruction is shorter and faster,
2321 so no reason not to use it on both.
2322
e77c81f6
VS
23232013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2326 .text when compiling for Apple.
2327
971dbee5
VS
23282013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2331
6f2e82be
VS
23322013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2335 %dx restore the probe worked on non-existant drive. Reorganize the
2336 code a little bit to free 2 bytes necessary for push/pop.
2337
9eec9699
VS
23382013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2341 Add missing cast to silence warning.
2342
5ae5c54c
KPA
23432013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2344
2345 * util/grub-install.c (update_nvram): Support --no-nvram flag
2346 for EFI targets.
2347
7b04fe6c
VS
23482013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2351
e67566ce
VS
23522013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * util/garbage-gen.c: Add missing include of sys/time.h.
2355
f93ddcfd
VS
23562013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 Don't add -mflush-func if it's not supported by compiler.
2359
1bba40f5
VS
23602013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 Move common BIOS/coreboot memory map declarations to
2363 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2364
f65e14dc
AB
23652013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2366
2367 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2368
14a94bba
VS
23692013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * INSTALL: Document why older clang versions aren't appropriate.
2372
8109c5d4
VS
23732013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * INSTALL: Document about clang for mips.
2376
a92b5cb8
VS
23772013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2380 clang.
2381
4a23e2fe
VS
23822013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 Add *-xen to the list of grub-install-common platforms.
2385
a3ba7410
VS
23862013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2389 3 last commits.
2390
e1c22419
VS
23912013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2394
189090ce
VS
23952013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2398 with -mcmodel=large.
2399
1a5b7b40
VS
24002013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2403 range-checking for 32-bit quantities.
2404
9cf12b20
VS
24052013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * configure.ac: Compile with -fPIC when compiling with clang on
2408 mips.
2409
63a45330
VS
24102013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2413 when compiling with clang.
2414
4a0aaad0
VS
24152013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 clang emits calls to abort () under some unknown conditions.
2418 Export abort () when compiling with clang.
2419
095bb1bf
VS
24202013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * docs/grub-dev.texi: Document stack and heap sizes.
2423
3937bd96
VS
24242013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 * include/grub/i386/pc/memory.h: Decrease
2427 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2428 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2429 The binary doesn't change (checked). It's more to better reflect actual
2430 usage.
2431
ddb3efc9
VS
24322013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2433
2434 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2435 at compile time that enough of scratch size is available.
2436
4e42521d
VS
24372013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2440 Previously we misaligned stack by 8 in startup.S and compensated
2441 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2442 right behaviour is to align stack in startup.S and keep it aligned
2443 in callwrap.S. startup.S part was committed few commits before. This
2444 takes care of callwrap.S.
2445 Reported by: Gary Lin.
2446
054efe54
VS
24472013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2450 .data and .bss. May happen if compiler and assembly use different
2451 alignment.
2452
a0e1befb
VS
24532013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2456 way.
2457
c36c73f6
VS
24582013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 Add support for a new magic symbol _gp_disp on mips to handle PIC
2461 binaries.
2462
6f4a19f5
VS
24632013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2466
0d8f04cd
VS
24672013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2470 when rest of GRUB is compiled for hisher stepping. Instead use
2471 .set mips3/.set mips1 around cache and sync opcodes.
2472
49060520
VS
24732013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2476 do essentially the same thing, do it in similar way.
2477
c6a823e2
CW
24782013-11-21 Colin Watson <cjwatson@ubuntu.com>
2479
2480 * util/grub-mkrescue.c (main): If a source directory is not
2481 specified, read platform-specific files from subdirectories of
2482 pkglibdir, not pkgdatadir.
2483
b7f9aedf
CW
24842013-11-21 Colin Watson <cjwatson@ubuntu.com>
2485
2486 * grub-core/normal/progress.c: Remove unused file.
2487
7dd0a303
VS
24882013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2491 array.
2492
ca120e31
VS
24932013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2496 than grub.cfg.
2497
48eb35cd
VS
24982013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * coreboot.cfg: Add missing file.
2501
7f20dbbc
VS
25022013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2505
55e706c9
AK
25062013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2507
2508 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2509 selectively skipping systems.
2510
4e7d433d
CW
25112013-11-19 Colin Watson <cjwatson@ubuntu.com>
2512
2513 * Makefile.util.def (grub-mkimage): Add
2514 grub-core/osdep/aros/config.c to extra_dist.
2515 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2516 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2517 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2518 grub-core/gnulib-no-gets.diff.
2519
7d44ff7d
VS
25202013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 Add automated filesystem checking based on scripts I've used now for
2523 quite some time locally. Most of the test require root so they are
2524 skipped when run without necessarry privelegies.
2525
a8c3e5e3
CW
25262013-11-19 Colin Watson <cjwatson@ubuntu.com>
2527
2528 * util/grub-install.c (main): Adjust info messages to match
2529 installed paths of grub-bios-setup and grub-sparc64-setup.
2530
4402db3e
CW
25312013-11-19 Colin Watson <cjwatson@ubuntu.com>
2532
2533 * util/grub-install-common.c (copy_locales): Consistently use
2534 grub_util_get_localedir () rather than LOCALEDIR.
2535 (grub_install_copy_files): Likewise.
2536
7960d3e1
JT
25372013-11-19 Josh Triplett <josh@joshtriplett.org>
2538
2539 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2540 16-byte boundary, as required by the x86-64 ABI, before calling
2541 grub_main. In some cases, GCC emits code that assumes this
2542 alignment, which crashes if not aligned. The EFI firmware is also
2543 entitled to assume that stack alignment without checking.
2544
d53f4900
JT
25452013-11-18 Josh Triplett <josh@joshtriplett.org>
2546
2547 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2548 4k page boundaries as expected by firmware rather than 1k
2549 boundaries.
2550 (grub_mmap_malign_and_register): Likewise.
2551
bb2b275b
VS
25522013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2555 fragmentation 512M is enough.
2556
45bf8b3a
VS
25572013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2560 pointer to 32K. This is the size of cache element which is the most
2561 common allocation >1K. This way the pointer is always around blocks
2562 of 32K and so we keep performance while decreasing fragmentation.
2563
39ff43c5
VS
25642013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2567 current memory when allocating large chunks. This significantly
2568 decreases memory fragmentation.
2569
60870be8
CW
25702013-11-18 Colin Watson <cjwatson@ubuntu.com>
2571
2572 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2573 but for symmetry).
2574 * tests/lzocompress_test.in: Skip if lzop is not installed.
2575 * tests/xzcompress_test.in: Skip if xz is not installed.
2576
a1f00cc5
CW
25772013-11-18 Colin Watson <cjwatson@ubuntu.com>
2578
2579 * util/grub-mkrescue.c (main): Fix typo.
2580
74e632fe
VS
25812013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2584 clock frequency to 200 MHz,
2585
efb8de49
VS
25862013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2589
b7526e78
VS
25902013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2593 Load config file from (cbfsdisk)/etc/grub.cfg.
2594
b40ce651
VS
25952013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * util/grub-install-common.c (grub_install_copy_files): Fix module
2598 destination directory.
2599
1e8e2e78
CW
26002013-11-18 Colin Watson <cjwatson@ubuntu.com>
2601
2602 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2603 files have not been built.
2604
3bf4088b
CW
26052013-11-18 Colin Watson <cjwatson@ubuntu.com>
2606
2607 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2608 Handle errors from mkstemp.
2609 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2610
35c2851c
VS
26112013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2614 on primary master on pseries.
2615
ea7c1a7d
VS
26162013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2619 already loaded. This saves memory needed for tests,
2620
96adefdb
VS
26212013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2624 work again.
2625
5e3cb8a7
VS
26262013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2629 work again.
2630
256ee7ac
VS
26312013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2634 master since with some combinations of qemu and firmware only primary
2635 IDE channel is available.
2636
f8b4c3b6
VS
26372013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2640 low-memory platforms where we don't have enough memory for them.
2641 * grub-core/tests/videotest_checksum.c: Likewise.
2642
4bf70320
VS
26432013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2646 already loaded. This saves memory needed for tests,
2647
a284320e
VS
26482013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 Fix handling of install lists.
2651
2df8f43d
VS
26522013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2655
6f1bc8bc
VS
26562013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2659 the devices before accessing them.
2660
04f39f6d
VS
26612013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2662
2663 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2664 as file argument.
2665
35d4761c
VS
26662013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2669
33d02a42
VS
26702013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2673 (grub_file_close): Free file->name.
2674
7bbb60cf
VS
26752013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2678 (grub_load_public_key): Likewise.
2679 (grub_verify_signature_real): Likewise.
2680 (grub_cmd_verify_signature): Likewise.
2681
da93d675
VS
26822013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2683
2684 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2685 memory leak.
2686
59c943ec
VS
26872013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2690 (grub_longjmp): Restore r31.
2691 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2692
4336b5d8
VS
26932013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2696 modules to be in line with make_image_abs.
2697
44ce3a93
VS
26982013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2701
2702 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2703
7d400406
IC
27042013-11-17 Ian Campbell <ijc@hellion.org.uk>
2705
2706 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2707
77dae919
VS
27082013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2711 to leave some memory to firmware.
2712
0ab8e025
VS
27132013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2716 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2717 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2718 Load gfxmenu.
2719
b80c2d6d
VS
27202013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2723 now needs full arguments.
2724
6aa6077b
VS
27252013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * util/grub-mkrescue.c (main): Add trailing \n in
2728 .disk_label.contentDetails to be in line with previous shell script.
2729
66c00cb1
VS
27302013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2733
3a129dba
VS
27342013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 * util/grub-install-common.c (grub_install_parse): Recognize
2737 --compress=none like shell script did.
2738
8df6eff6
VS
27392013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * include/grub/misc.h: Replace check for __sparc64__ with one for
2742 __sparc__ as __sparc64__ isn't actually defined.
2743
889ebe92
VS
27442013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2747 counterpart of fixing the naming of escc ports.
2748
d4d55b29
VS
27492013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * util/grub-install-common.c (platforms): Fix the order of entries and
2752 remove useless field val.
2753
55e2c84f
VS
27542013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * util/grub-install.c: Add new option --no-bootsector to skip
2757 installing of bootsector. Accept --grub-setup=/bin/true as
2758 backwards-compatible synonym.
2759
cd46aa6c
VS
27602013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2761
2762 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2763 order of qsort arguments (number of elements vs. element size).
2764
27652013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2768 the function of these files exceeds what can be sanely handled in shell
2769 in posix-comaptible way. Also writing it in C extends the functionality
2770 to non-UNIX-like OS and minimal environments.
2771
9ef81064
VS
27722013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2773
2774 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2775 compiling to thumb2.
2776 * grub-core/kern/arm/cache_armv7.S: Likewise.
2777 * grub-core/lib/arm/setjmp.S: Likewise.
2778
11a77932
LL
27792013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2780
2781 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2782 in grub_uboot_syscall
2783
080603f0
VS
27842013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 Decrease stack usage in lexer.
2787
2788 We have only 92K of stack and using over 4K per frame is wasteful
2789
2790 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2791 as macros so that compiler would remove useless structure on stack.
2792 Better solution would be to fix flex not to put this structure on
2793 the stack but flex is external program.
2794
4f84ae0e
VS
27952013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 Decrease stack usage in signature verification.
2798
2799 We have only 92K of stack and using over 4K per frame is wasteful
2800
2801 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2802 rather than stack.
2803 (grub_verify_signature_real): Likewise.
2804
e6a6182d
VS
28052013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 Decrease stack usage in mdraid 0.9x.
2808
2809 We have only 92K of stack and using over 4K per frame is wasteful
2810
2811 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2812 rather than stack.
2813
1a454efe
VS
28142013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 Decrease stack usage in BtrFS.
2817
2818 We have only 92K of stack and using over 4K per frame is wasteful
2819
2820 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2821 rather than stack.
2822
7b5d51d8
VS
28232013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 Decrease stack usage in JFS.
2826
2827 We have only 92K of stack and using over 4K per frame is wasteful
2828
2829 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2830 stack. Note: this function is recursive.
2831 (grub_jfs_read_inode): Read only part we care about.
2832
593865b9
LL
28332013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2834
2835 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2836 handling
7b5d51d8 2837
31c0cd43
AB
28382013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2839
2840 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2841
c2fdb331
AB
28422013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2843
2844 * docs/grub.texi (Environment): Document cmdpath.
2845
9e18dfe2
AB
28462013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2847
2848 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2849 Remove "unused" attribute from arguments, they are used.
2850
59ba9d14
CW
28512013-11-15 Colin Watson <cjwatson@debian.org>
2852
2853 * .gitignore: Only ignore grub-mk* at the top level.
2854
23012db9
CW
28552013-11-15 Colin Watson <cjwatson@ubuntu.com>
2856
2857 * util/grub-reboot.in (usage): Fix a typo.
2858
6fcec439
VS
28592013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 Replace libgcc version of ctz with our own.
2862
2863 On upcoming arm64 port libgcc ctz* are not usable in standalone
2864 environment. Since we need ctz* for this case and implementation is
2865 in C we may as well use it on all concerned platforms.
2866
a9f25a08
VS
28672013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * configure.ac: Probe for linking format rather than guessing it based
2870 on target_os.
2871
c7995256
VS
28722013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2875 "1" prior to handoff.
2876
2877 Reported by: M A Young.
2878
e1aa5b66
VS
28792013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2880
2881 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2882 \0 to all files.
2883
2884 Reported by: M A Young.
2885
da5ed5cf
VS
28862013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2889 compilation on NetBSD.
2890
5757a93e
VS
28912013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * acinclude.m4: Don't add -P on initial nm test.
2894
2895 Note: even though this patch postdates Andrey's it bears 14 Nov as
2896 date due to timezone difference.
2897
a5986276
AB
28982013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2899
2900 * grub-core/Makefile.core.def (signature_test): Add missing
2901 tests/signatures.h.
2902
0de172a0
CW
29032013-11-14 Colin Watson <cjwatson@ubuntu.com>
2904
2905 * util/grub-install_header: Set localedir here, since this file is
2906 where it's used.
2907 * util/grub-install.in: Remove setting of localedir.
2908 * util/grub-mkrescue.in: Likewise.
2909
da45f43c
VS
29102013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2913
20aea949
VS
29142013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * configure.ac: Move nm checks to the end.
2917 Call grub_PROG_NM_WORKS.
2918 * acinclude.m4: New check grub_PROG_NM_WORKS.
2919 Use $TARGET_CFLAGS -c when compiling test binary.
2920
1326b9ae
CW
29212013-11-14 Colin Watson <cjwatson@ubuntu.com>
2922
2923 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2924 unused variables.
2925
1fe26ab4
MG
29262013-11-14 Matthew Garrett <mjg@redhat.com>
2927
2928 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2929 cmdpath to firmware directory.
2930
83e9c273
VS
29312013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2934 at the start of second iteration.
2935
ec525c18
VS
29362013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2939
93fcc7ad
VS
29402013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2941
2942 * Makefile.am (default_payload.elf): New target for easier coreboot
2943 build.
2944
57ffe934
VS
29452013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2946
2947 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2948 clang (not necessarry with -no-integrated-as).
2949 * include/grub/symbol.h [__arm__]: Likewise.
2950
2312f06c
VS
29512013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * configure.ac: Use -no-integrated-as on arm with clang.
2954 * INSTALL: Mention ARM compilation with clang.
2955
2416415c
VS
29562013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2959 -mthumb-interwork.
2960
5da55172
CW
29612013-11-14 Colin Watson <cjwatson@ubuntu.com>
2962
2963 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2964 code for indirect block handling.
2965
2966 Saves 185 bytes on compressed image.
2967
da770328
PFS
29682013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2969
2970 Fix make clean.
2971
2972 * Makefile.am: Remove build-grub-* in make clean.
2973
f02e6b56
PFS
29742013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2975
2976 New files to gitignore.
2977
2978 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2979 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2980
035a26c1
LL
29812013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2982
2983 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2984
bc8a6137
LL
29852013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2986
2987 * .gitignore: fix rules for .dep* and add *.a post git migration
2988
6fe506b0
CW
29892013-11-13 Colin Watson <cjwatson@ubuntu.com>
2990
2991 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2992 to match INSTALL.
2993
81a2e438
CW
29942013-11-13 Colin Watson <cjwatson@ubuntu.com>
2995
2996 * grub-core/kern/misc.c: Don't redirect divisions in the
2997 GRUB_UTIL case.
2998 * include/grub/misc.h: Likewise.
2999
9b45c073
CW
30002013-11-13 Colin Watson <cjwatson@ubuntu.com>
3001
3002 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
3003 systems that require checking the return value of write.
3004
11b2a9b7
CW
30052013-11-13 Colin Watson <cjwatson@ubuntu.com>
3006
3007 * util/grub-install.in (efi_quiet): Fix inverted logic: make
3008 efibootmgr quiet when --debug is not used, rather than when it is.
3009
d743d22d
CW
30102013-11-13 Colin Watson <cjwatson@ubuntu.com>
3011
3012 * gentpl.py (define_macro_for_platform_dependencies): Remove
3013 first (and thus unused) of two definitions for this function.
3014 (platform_dependencies): Likewise.
3015
11da14b5
CW
30162013-11-13 Colin Watson <cjwatson@ubuntu.com>
3017
3018 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3019 functions, we only need to check this for the target, not the host.
3020 * configure.ac (grub_apple_cc): Likewise.
3021
2bdd0719
VS
30222013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3025 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3026 asm to stay in arm even if surrounding is thumb.
3027
5e77d9cf
VS
30282013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3031 helper functions are needed for thumb.
3032
7d511625
VS
30332013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3036 level / 3 division explicitly unsigned. Saves few bytes.
3037
81023dbd
VS
30382013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3041
b2e9294f
VS
30422013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3045 division.
3046
16a22c38
VS
30472013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3050 grub_uboot_boot_data to asm part.
3051
c9cd02c9
VS
30522013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3055 literal load.
3056 (grub_uboot_syscall): Save/restore r9 and align stack.
3057
81498615
VS
30582013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3061
ea57de18
VS
30622013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3065 occurencies with END.
3066
d0d1e3da
CW
30672013-11-13 Colin Watson <cjwatson@ubuntu.com>
3068
3069 * util/grub-editenv.c (help_filter, argp): Document how to delete
3070 the whole environment block.
3071 Reported by Dan Jacobson. Fixes Debian bug #726265.
3072
3809f016
CW
30732013-11-13 Colin Watson <cjwatson@ubuntu.com>
3074
3075 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3076 sectioning.
3077
46d8a203
JT
30782013-11-13 Josh Triplett <josh@joshtriplett.org>
3079
3080 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3081 increment/decrement.
3082
513eeb61
VS
30832013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3086 compiling with clang.
3087
bc379c1a
VS
30882013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3091 ".".
3092
30932013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 3094
16057d6b
VS
3095 Redirect all divisions to grub_divmod64.
3096
f649a6a8
VS
30972013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3100
ef28ee8b
VS
31012013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 Add missing includes of loader.h.
3104
300f48c5
VS
31052013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * configure.ac: Allow disabling themes.
3108
2d357558
LS
31092013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3110
3111 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3112
0c62a5b2
VS
31132013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3114
3115 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3116 until it becomes operational.
3117
b0720b49
VS
31182013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/Makefile.core.def (legacy_password_test): Disable
3121 on platforms where no legacycfg is compiled.
3122 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3123 load legacy_password_test.
3124
d5bab2c0
VS
31252013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3128
3ea0ccb3
VS
31292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3132
08772054
VS
31332013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3136 strict-aliasing warning.
3137 (fsync): Silence cast warning.
3138
1dcb2715
VS
31392013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/commands/verify.c: Remove variable length arrays.
3142 Load gcry_dsa/gcry_rsa automatically.
3143
61c22fdf
VS
31442013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/tests/signature_test.c: New test.
3147
431e57a7
VS
31482013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3151 API.
3152
b521bb81
VS
31532013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3156 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3157
7d06b24e
VS
31582013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3161
3bbeade4
VS
31622013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * grub-core/fs/proc.c: Allow \0 in proc files.
3165
ba82db7a
VS
31662013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3169
801564c8
VS
31702013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3173
ac8cac1d
VS
31742013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/fs/ext2.c: Remove variable length arrays.
3177
4b85f122
VS
31782013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3181 length arrays.
3182
c35fcdc0
VS
31832013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3186 * grub-core/disk/cryptodisk.c: Likewise.
3187 * grub-core/disk/geli.c: Likewise.
3188 * grub-core/disk/luks.c: Likewise.
3189
15decd26
VS
31902013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 * grub-core/tests/legacy_password_test.c: New test.
3193 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3194
9c6482b8
VS
31952013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3198
41f26e0e
VS
31992013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * grub-core/tests/pbkdf2_test.c: New test.
3202
2def6616
VS
32032013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3206
9e34a34e
VS
32072013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * grub-core/io/lzopio.c: Remove variable length arrays.
3210
5ccaf904
VS
32112013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * include/grub/crypto.h: Add maximums on hash size and cipher block
3214 size.
3215
44a387e0
VS
32162013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3219
a388e255
VS
32202013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/tests/xnu_uuid_test.c: New test.
3223
a1ef7718
VS
32242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3227 covers it).
3228
65ddb300
VS
32292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/commands/hashsum.c: Remove variable length arrays.
3232
31747dd5
VS
32332013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3236 condition.
3237 * tests/grub_func_test.in: Increase memory allocation.
3238
6a74c4df
VS
32392013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3242 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3243 sys/mount.h.
3244
394c3e0a
VS
32452013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3246
3247 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3248 (grub_util_get_fd_size_os): ...this.
3249 (grub_hostdisk_flush_initial_buffer): New empty function.
3250
60d31116
VS
32512013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3254 without --defined-only.
3255
8445b011
VS
32562013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3259 rip-relative addressing in prologue.
3260
8506a641
VS
32612013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3264 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3265
66acd9d6
VS
32662013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3269 Add missing semicolon.
3270
348d0535
VS
32712013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3274
0d2d30bb
VS
32752013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * configure.ac: Check for lzma.h for enabling liblzma and allow
3278 manual disabling.
3279
631187be
VS
32802013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3281
3282 Add missing includes of loader.h.
3283
e756ec82
FZ
32842013-11-11 Fam Zheng <famcool@gmail.com>
3285
3286 * util/grub.d/30_os-prober.in: Add minix entry.
3287
87d62d7d
VS
32882013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3291 right buffer for temporary load.
3292
5460cfeb
VS
32932013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3296
89977306
VS
32972013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3300 payload.
3301
3617c59b
VS
33022013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3305 not Types.h.
3306 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3307 environment.
3308 (LzmaDec_InitDicAndState): Make static.
3309
881c6a10
VS
33102013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3313
2024ade2
VS
33142013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3317
3318 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3319
674ad4f6
VS
33202013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 * docs/grub-dev.texi: Replace bzr references with git ones.
3323
5b99970e
AB
33242013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3325
3326 * docs/grub.texi (Simple configuration): Remove reference to
3327 grub-reboot from saved default entry description - grub-default
3328 does not use it anymore.
3329
3c2304d5
VS
33302013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3333 compiled with.
3334
80cfd940
AB
33352013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3336
3337 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3338
33690255
VS
33392013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 Fix grub_machine_fini bitrot.
3342
3343 Reported by: Glenn Washburn.
3344
c61471fc
VS
33452013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3348
54da019f
VS
33492013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3352 -DELF.
3353 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3354 instead of ELF*.
3355
33562013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
3357
3358 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3359 Add -march=core2 when testing compile of efiemu64.
3360
3361 Thanks Andrey Borzenkov for spotting this.
3362
9612ebc0
VS
33632013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3366 XEN PV environment and load kernels.
3367
1a46a3a4
VS
33682013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3369
3370 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3371 * grub-core/loader/multiboot_mbi2.c: Likewise.
3372
2df12551
VS
33732013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3376 handling.
3377
3c980381
VS
33782013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3381
3382 Tested by: Denis 'GNUtoo' Carikli.
3383
800f63d3
VS
33842013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3387
9f8acdaa
VS
33882013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3389
5620eb53
VS
3390 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3391 Use to get rounded angle rather than truncated.
3392
33932013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
3396 RTS/CTS flow control.
3397
2dc1eb6c
VS
33982013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3399
3400 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3401 divisions.
3402
b9563c94
VS
34032013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3406 Use grub_fatal rather than divide by zero.
3407 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3408
d6d8e9a9
VS
34092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3412 truncate.
3413 (grub_fixed_fsf_divide): Likewise.
3414
d06de6c8
VS
34152013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3418 division by-zero and senseless negative divisions.
3419
6af7d49b
VS
34202013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3423 division by-zero and senseless negative divisions.
3424 (circprog_set_property): Don't accept negative num_ticks.
3425
bcfa6d72
VS
34262013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3429 division by-zero and senseless negative divisions.
3430
dd7f792c
VS
34312013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * configure.ac: Use elf_*_fbsd on kfreebsd.
3434
d061fda7
VS
34352013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * grub-core/tests/div_test.c: New test.
3438
4db22500
VT
34392013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3440
3441 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3442 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3443 * grub-core/gfxmenu/view.c: Likewise.
3444 * grub-core/video/fb/video_fb.c: Introduce new functions:
3445 grub_video_set_area_status, grub_video_get_area_status,
3446 grub_video_set_region, grub_video_get_region.
3447 * grub-core/video/bochs.c: Likewise.
3448 * grub-core/video/capture.c: Likewise.
3449 * grub-core/video/video.c: Likewise.
3450 * grub-core/video/cirrus.c: Likewise.
3451 * grub-core/video/efi_gop.c: Likewise.
3452 * grub-core/video/efi_uga.c: Likewise.
3453 * grub-core/video/emu/sdl.c: Likewise.
3454 * grub-core/video/radeon_fuloong2e.c: Likewise.
3455 * grub-core/video/sis315pro.c: Likewise.
3456 * grub-core/video/sm712.c: Likewise.
3457 * grub-core/video/i386/pc/vbe.c: Likewise.
3458 * grub-core/video/i386/pc/vga.c: Likewise.
3459 * grub-core/video/ieee1275.c: Likewise.
3460 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3461 * include/grub/video.h: Likewise.
3462 * include/grub/video_fb.h: Likewise.
3463 * include/grub/fbfill.h: Updated render_target structure.
3464 grub_video_rect_t viewport, region, area
3465 int area_offset_x, area_offset_y, area_enabled
3466 * include/grub/gui.h: New helper function
3467 grub_video_bounds_inside_region.
3468 * docs/grub-dev.texi: Added information about new functions.
3469
c6b755df
VS
34702013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3473 for alignment.
3474
e2a68100
VS
34752013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3478 missing attribute.
3479 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3480
c4f11a2a
VS
34812013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3484 simple division on arm and ia64.
3485
e0a7bffa
VS
34862013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3489 link with libgcc.
3490
38b864ea
VS
34912013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3494
12359faf
VS
34952013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3498 prefix symbol, not @.
3499
9fdc64a9
VS
35002013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * INSTALL: Add note about older gcc and clang.
3503
665c575b
VS
35042013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3507
47dcf7b1
VS
35082013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3511 NULL pointer dereference.
3512
d59849b2
VS
35132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3516 clang.
3517
7a3f4a18
VS
35182013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3521 warnings.
3522
7f084087
VS
35232013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3526 function.
3527 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3528 * grub-core/disk/geli.c (ascii2hex): Likewise.
3529
d5524ca8
VS
35302013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 * configure.ac: Run linker tests without -Werror.
3533 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3534 Change all occurences of -static-libgcc resp -lgcc to
3535 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3536
390cd7ca
VS
35372013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3540
60375a88
VS
35412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 Allow compiling with clang (not really supported though).
3544
3545 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3546 unconditionally.
3547 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3548 Add -mrtd -mregparm=3 on i386 when not using clang.
3549 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3550
dd07e0c4
VS
35512013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3554 bindings.
3555 * grub-core/lib/reed_solomon.c: Likewise.
3556 * include/grub/i386/gdb.h: Likewise.
3557 * include/grub/i386/pc/int.h: Likewise.
3558 * include/grub/i386/pc/pxe.h: Likewise.
3559 * include/grub/ieee1275/ieee1275.h: Likewise.
3560
9d3ae8ec
VS
35612013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 Import libgcrypt 1.5.3.
3564
c12936c5
VS
35652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * configure.ac: Don't add -Wcast-align on x86.
3568
cdc17f60
VS
35692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * configure.ac: Add -freg-struct-return on all platforms that
3572 support it.
3573
b35ec299
VS
35742013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * acinclude.m4: Use -Werror on parameter tests.
3577 * configure.ac: Likewise.
3578
05f3a0d7
VS
35792013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3582
c966a489
VS
35832013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * configure.ac: Check that -malign-loops works rather than assuming that
3586 either -falign-loops or -malign-loops work.
3587
bb0c57ec
VS
35882013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3591
24f4e57c
VS
35922013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * configure.ac: Prevent cflags leaking to subsequent tests by always
3595 resetting cflags to target_cflags in target tests.
3596
ac319fbc
VS
35972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3600 function.
3601
4bfe934c
VS
36022013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3605
40a5bfde
VS
36062013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3609
a67c755e
VS
36102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 * grub-core/normal/cmdline.c (grub_cmdline_get):
3613 Remove nested functions.
3614
87a04a2d
VS
36152013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * tests/test_sha512sum.in: Make it work on emu.
3618
c03995d2
VS
36192013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3622 functions.
3623 (grub_bidi_line_logical_to_visual): Likewise.
3624
ec0ebb3f
VS
36252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 Remove vestiges of -Wunsafe-loop-optimisations.
3628
3629 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3630 -Wno-unsafe-loop-optimisations.
3631 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3632 pragma.
3633 * grub-core/io/gzio.c: Likewise.
3634 * grub-core/script/parser.y: Likewise.
3635 * grub-core/script/yylex.l: Likewise.
3636 * util/grub-mkfont.c: Likewise.
3637
6ab537e3
VS
36382013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * util/grub-mkfont.c (process_cursive): Remove nested function.
3641
e6c368d4
VS
36422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3643
3644 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3645 (grub_boot_time): Likewise.
3646
4f1cfd22
VS
36472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * include/grub/symbol.h (FUNCTION): Use @function rather than
3650 "function".
3651 (VARIABLE): Likewise.
3652
6d5a4cee
VS
36532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3656
f06c2172
VS
36572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3660 (parse_dhcp_vendor): Likewise.
3661
7cb24eb5
VS
36622013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3665
f30c692c
VS
36662013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3669 Define after defining type and not before.
3670
8b66bb5d
VS
36712013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3674 type.
3675 (grub_gcm_decrypt): Likewise.
3676 (algo_decrypt): Likewise.
3677 (grub_zfs_decrypt_real): Transform error type.
3678
5d17fd0f
VS
36792013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3682
ac35a0f7
VS
36832013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3686 (grub_usbms_cbi_reset): Likewise.
3687 (grub_usbms_bo_reset): Likewise.
3688 (grub_usbms_reset): Likewise.
3689 (grub_usbms_attach): Likewise.
3690 (grub_usbms_transfer_cbi): Likewise.
3691
3ee08697
VS
36922013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3695 "checksum = checksum;".
3696
70bb6c85
VS
36972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3698
3699 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3700 entry_type.
3701
c7f34744
VS
37022013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3705 BIOS disk check.
3706
3f63b4d8
VS
37072013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3710 type.
3711 (grub_ehci_fini_hw): Likewise.
3712 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3713
dac6ce73
VS
37142013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3717 return grub_usb_err_t for cosistency. All users updated.
3718
5701750c
VS
37192013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3722 assigning to itself.
3723
9e236169
GLD
37242013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
37252013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3726
3727 Issue separate DNS queries for ipv4 and ipv6
3728
3729 Adding multiple questions on a single DNS query is not supportted by
3730 most DNS servers. This patch issues two separate DNS queries
3731 sequentially for ipv4 and then for ipv6.
3732
3733 Fixes: https://savannah.gnu.org/bugs/?39710
3734
3735 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3736 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3737 * (grub_net_dns_lookup): Now using separated dns packages.
3738 * (grub_cmd_nslookup): Add error condition.
3739 * (grub_cmd_list_dns): Print DNS option.
3740 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3741 --prefer-ipv4, and --prefer-ipv6.
3742 * include/grub/net.h (grub_dns_option_t): New enum.
3743 * (grub_net_network_level_address): option added.
3744
339eacce
VT
37452013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3746
3747 * grub-core/video/fb/video_fb.c: Merge two blit functions
3748 into one.
3749
810f991b
VS
37502013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/term/terminfo.c: Add sequences for home and end.
3753
386571a2
VS
37542013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3757 graphics console.
3758
3fe63754
VS
37592013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3762 add mode 0x12.
3763
76681e71
VS
37642013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3765
3766 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3767 e-mail by Per Öberg.
3768
46522fb7
VS
37692013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3770
3771 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3772 name.
3773
e7d09ac4
AB
37742013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3775
3776 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3777 emu platforms.
3778 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3779
67508925
VS
37802013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * docs/grub.texi: Document usage of menuentry id.
3783
0c62124e
VS
37842013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3787
9b5d4eed
PL
37882013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3789
3790 * grub-core/commands/i386/nthibr.c: New command.
3791
79054c1d
VS
37922013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3795
44d47bbe
VS
37962013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3799 coordinate.
3800
323de05b
VS
38012013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 Support GRUB_DISABLE_SUBMENU config.
3804
3805 Inspired by patch from Prarit Bhargava.
3806
5a01722e
VS
38072013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * docs/grub.texi: Mention RSA support.
3810
1106c3f0
VS
38112013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * grub-core/commands/verify.c: Add RSA support.
3814
a1dcc2cb
VS
38152013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3816
3817 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3818 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3819 device is known to be ATAPI.
3820
ee7fb780
MF
38212013-11-03 Mike Frysinger <vapier>
3822
3823 * configure.ac: Don't add target-prefix.
3824
5ade4a42
VS
38252013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3826
3827 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3828 variables.
3829
6cd66043
VS
38302013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3831
3832 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3833 if language is English.
3834
090d7c81
VS
38352013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3838
dd614590
VS
38392013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3840
3841 * configure.ac: Don't add -m32/-m64 on emu.
3842
a8686589 38432013-11-02 neil
3844
3845 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3846 broken linux headers.
3847
fb9f12a0
VS
38482013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3851
e25f8e1f
VS
38522013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3855 Reed-Solomon recovery if more than half of redundancy info is 0.
3856
4685200f
VS
38572013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * util/grub-mount.c: Handle symlinks to directories.
3860
1397f0b5
VS
38612013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3864 find_file recursively for symlink.
3865
8b3e6eb6
VS
38662013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * tests/util/grub-shell.in: Copy themes.
3869
a0c9d5c6
VS
38702013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3873
5cf9459c
VS
38742013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * configure.ac: Use 0x8000 for address instead of 8000.
3877
e7b66a28
VS
38782013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3881 signature.
3882
203f53fb
VS
38832013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3886 variable.
3887
02663ee9
VS
38882013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3891
f169f65e
VS
38922013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3895 file_progress_read_hook.
3896 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3897
2855a0fc
VS
38982013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3901 and double.
3902
bf0f3a8c
VS
39032013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3906
cb72aa18
VS
39072013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 Rewrite blocklist functions in order to get progress when
3910 reading large extents and decrease amount of blocklist hook calls.
3911
896f9135
VS
39122013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3915 of SI suffixes.
3916
89295a06
VS
39172013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 Support --base-clock for serial command to handle weird cards with
3920 non-standard base clock.
3921
eb03ede0
VS
39222013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3925 strncpy.
3926 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3927 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3928 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3929 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3930 + strcpy rather than strncpy.
3931
8fbe5c7d
VS
39322013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3935 (check_pool_label): Likewise. Fixes overflow.
3936 (nvlist_find_value): Fix comparison.
3937
e54b8f53
VS
39382013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3941 more appropriate functions.
3942
fa9b3dca
VS
39432013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3946 realloc.
3947
9a021c55
VS
39482013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3951
80e8b13a
VS
39522013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3955 on core size.
3956
b61599ac
VS
39572013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3960
a602dc54
VS
39612013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3964 (initialize_tables): reset tl and td to NULL after freeing.
3965
93c12075
VS
39662013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3969
1ca4b75e
VS
39702013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3973 of supported tags.
3974
329550c4
VS
39752013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3978
00bfa988
VS
39792013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3982 quirks.
3983
81afc5cc
VS
39842013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3985
3986 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3987 a page in protected space.
3988
cb3c4a47
VS
39892013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3992 allocate space for zero-sized modules.
3993
954f7bf5
VS
39942013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3997
526d3d25
FL
39982013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3999
4000 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
4001
74124c34
VS
40022013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4005 safeguards. Fixes a crash with i386/pc/console.c.
4006
5177391e
VS
40072013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4008
4009 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4010 and grub_hostfs_init.
4011
64db14b0
VS
40122013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4015 windows method on other platforms without good stat as well.
4016
effe2036
VS
40172013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4020
82591fa6 40212013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 4022
82591fa6
VS
4023 Make / in btrfs refer to real root, not the default volume.
4024 Modify mkrelpath to work even if device is mounted with subvolid option.
4025
40262013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4027
4028 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
4029 extra_dist.
4030 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4031 extra_dist.
4032
30fd7198
VS
40332013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4036 fails.
4037
8d179dae
BC
40382013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4039
4040 * docs/autoiso.cfg: New file.
4041
3bc9c8cf
VS
40422013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4045 COND_GRUB_PE2ELF conditions.
4046
8b46b0ea
VS
40472013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4050 "vnd", "rd" and "fd" disks.
4051
442b86de
VS
40522013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 Move grub_disk_write out of kernel into disk.mod.
4055
04dea7e6
VS
40562013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4059 handling.
4060
40612013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
4062
4063 * grub-core/kern/misc.c (grub_abort): Make static
4064
04dea7e6 40652013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
4066
4067 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4068 transform invalid unicode codepoints.
4069
04dea7e6 40702013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
4071
4072 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4073 \0 checking.
4074
03dcac7f
VS
40752013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4078
c81acb7f
VS
40792013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 Consolidate cpuid code.
4082
c1bee646
VS
40832013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 Move cpuid code to cpuid.h and TSC code to tsc.c.
4086
f37bf9c7
GS
40872013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4088
4089 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4090
4021132b
GS
40912013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4092
4093 * util/grub-mkconfig.in: Replace $0 with $self.
4094 * util/grub-reboot.in: Likewise.
4095 * util/grub-set-default.in: Likewise.
4096
3ace8d75
BC
40972013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4098
4099 * docs/osdetect.cfg: New file.
4100
1e6ad6a6
BC
41012013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4102
4103 * tests/util/grub-shell.in: Add new --debug option.
4104
188929eb
BC
41052013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4106
4107 * tests/test_unset.in: New test.
4108
7994a09a
BC
41092013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4110
4111 * tests/test_sha512sum.in: New test.
4112
2a8a7585
VS
41132013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4116 * include/grub/misc.h: Remove strncat.
4117 * grub-core/lib/posix_wrap/string.h: Likewise.
4118
cf8d6bbd
VS
41192013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4122 Try to handle more than 0xFFFF packets.
4123 Reported by: Bernhard Übelacker <bernhardu>.
4124 He also spotted few overflows in first version of this patch.
4125
6d1fc99a
VS
41262013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * tests/date_unit_test.c: New test.
4129
10bafa1c
VS
41302013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4131
4132 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4133 of first three years after start of validity of unixtime.
4134
b1c6d037
VS
41352013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4138 division as the one making more sense.
4139 (update_screen): Likewise.
4140 (complete): Likewise.
4141
5f4028d4
VS
41422013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4145
a2856736
VS
41462013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 Make char and string width grub_size_t rather than grub_ssize_t.
4149
0a7e52b2
VS
41502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4151
4152 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4153 unsigned.
4154 (grub_history_replace): Likewise.
4155
42829573
VS
41562013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4157
4158 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4159 appropriate.
4160
3523b8d8
VS
41612013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4162
4163 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4164 appropriate.
4165
d43c6489
VS
41662013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4167
4168 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4169 Use unsigned divisions rather than signed variants.
4170
f690f8b0
VS
41712013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4172
4173 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4174 unsigned arithmetics.
4175 Add missing break.
4176
74ff2c05
VS
41772013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4180
fb56391e
VS
41812013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4182
4183 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4184 rather than signed one.
4185 (recovery): Likewise.
4186
40f29060
VS
41872013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4190
c64577a5
VS
41912013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4194 than signed.
4195
c16535a8
JM
41962013-10-25 Jon McCune <jonmccune@google.com>
4197
4198 * docs/grub.texi: Cleanup security documentation around signatures.
4199
6673d8e7
VS
42002013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4203
a105d375
VS
42042013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4207 than int.
4208
af81ed88
VS
42092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4212 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4213 functions when compiling for kernel.
4214
ea899a57
VS
42152013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4218 unsigned long long when using %llu.
4219
c6dc6fa1
VS
42202013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4223 terminal after updating progress.
4224
ad2dc003
VS
42252013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4228 argument. We don't disable Gate A20 in this code.
4229
b46684ae
VS
42302013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4233 Conceptually based on change in branch "vbe-on-coreboot".
4234
f70d5c07
RM
42352013-10-24 Robert Millan <rmh@gnu.org>
4236
4237 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4238 numeric constants with their symbolic equivalent.
4239 Taken from branch "vbe-on-coreboot".
4240
bca274b4
VS
42412013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4244
238f0489
VS
42452013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4248 divmod64 for offset division.
4249
863c590b
PFS
42502013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4251
4252 Rename .bzrignore to .gitignore. Add "*.o" rule.
4253
4254 * .bzrignore: Renamed to...
4255 * .gitignore: ...this.
4256
84a0e969
PFS
42572013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4258
4259 Add new progress module that displays the load progress of files.
4260
4261 * grub-core/lib/progress.c: New file.
4262 * grub-core/Makefile.core.def (progress): New module.
4263 * grub-core/kern/file.c (grub_file_open): File name added.
4264 * (grub_file_read): Progress hook added.
4265 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4266 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4267 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4268 * include/grub/file.h (struct grub_file): Add progress module members.
4269 * include/grub/term.h (struct grub_term_output): Likewise.
4270 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4271 Terminal velocity added.
4272 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4273 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4274 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4275 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4276 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4277 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4278 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4279 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4280 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4281 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4282 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4283 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4284
0d711431
VS
42852013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 Verify signatures of signatures unless --skip-sig is specified.
4288
f8401f76
VS
42892013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4292 \0 checking.
4293
4294 Saves 70 bytes on compressed image.
4295
ac1feb61
VS
42962013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4299 check.
4300
4301 Saves 10 bytes on compressed image.
4302
00f72e89
VS
43032013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4304
4305 * grub-core/kern/misc.c (grub_isprint): Move to ...
4306 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4307
4308 Saves 20 bytes on compressed image due to remving exporting.
4309
067e6ae7
VS
43102013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4313
4314 Saves 5 bytes on compressed image.
4315
64a6c791
VS
43162013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4319 function get_utf8.
4320
4321 Saves 379 bytes on compressed image.
4322
979d9f52
VS
43232013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4326
1437da54
VS
43272013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4330
4331 Saves 40 bytes on compressed image.
4332
d9ee2269
VS
43332013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4336 mask rather than 64-bit type.
4337
4338 Saves 20 bytes on compressed image.
4339
63efa602
VS
43402013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4343 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4344
47601ffe
VS
4345 Saves 273 bytes on compressed image.
4346
2cc679ad
VS
43472013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4350 variable length arrays.
4351
4352 Saves 50 bytes on compressed image.
4353
2e4659b8
VS
43542013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4357
2a40badf
VS
43582013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/fs/ufs.c: Remove variable length arrays.
4361
1ba6b9b9
VS
43622013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4365
f3e39341
VS
43662013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * grub-core/fs/zfs.c: Remove variable length arrays.
4369 Reduces zfs.mod by 160 bytes (208 compressed).
4370
71523935
VS
43712013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4374
28153eb8
VS
43752013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/net/arp.c: Remove variable length arrays.
4378 * grub-core/net/bootp.c: Likewise.
4379 * grub-core/net/dns.c: Likewise.
4380 * grub-core/net/icmp6.c: Likewise.
4381 * grub-core/net/net.c: Likewise.
4382
88ce4cd7
VS
43832013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 * grub-core/fs/ntfs.c: Remove variable length arrays.
4386 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4387 compressed).
4388
66123940
VS
43892013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4390
4391 * grub-core/fs/hfs.c: Remove variable length arrays.
4392 Reduces hfs.mod by 8 bytes (52 compressed).
4393
0927e5bd
VS
43942013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 4397 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
4398 compressed).
4399
9c12ac97
VS
44002013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 4403 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
4404 compressed).
4405
97ec2d71
VS
44062013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 4409 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
4410 compressed).
4411
156e4ea0
VS
44122013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * grub-core/fs/xfs.c: Remove variable length arrays.
4415 Reduces xfs.mod by 40 bytes (43 compressed).
4416
3b502c29
VS
44172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * grub-core/fs/fshelp.c: Remove variable length arrays.
4420 Reduces fshelp.mod by 116 bytes (23 compressed).
4421
c7037f1d
VS
44222013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * grub-core/normal/completion.c: Remove variable length arrays.
4425 * grub-core/normal/menu_entry.c: Likewise.
4426
4427 Reduces normal.mod by 496 bytes.
4428
a07e6ad0
VS
44292013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4432 by 356 bytes (158 compressed).
4433
2359bf88
VS
44342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4437 by 364 bytes (169 compressed).
4438
d28e1163
VS
44392013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4440
4441 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4442 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4443 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4444
e89c2d48
VS
44452013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4448 bitmasks to small structures of size chosen to fit in registers.
4449
7abdac8e
VS
44502013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * conf/Makefile.common: Use -freg-struct-return on i386. This
4453 decreases code size and improves performance.
4454
518864c0
VS
44552013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4458
bbd2b539
VS
44592013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4460
4461 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4462 "(null)" string.
4463 Simplify expressions to save around 256 bytes in kernel.img.
4464 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4465
99519c15
VS
44662013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4469 Use GRUB_UTIL_FD_O_* rather than O_*.
4470
20285765
VS
44712013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 Add haiku-specific functions.
4474
887c0bb6
VS
44752013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4478
cd78a56f
VS
44792013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4480
4481 Move stat () and device mode checking into OS-dependent files as
4482 long as performance doesn't suffer.
4483
a4012f07
VS
44842013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4485
4486 Split make_system_path_relative_to_its_root into separate file
4487 relpath.c from getroot.c as it's common between unix and haiku
4488 but otherwise haiku doesn't use any functions from unix getroot.c.
4489
31de274d
VS
44902013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4493 New function.
4494 (grub_util_is_special_file): Likewise.
4495
40346de6
VS
44962013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4499 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4500
d3923ab9
VS
45012013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4504 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4505
663f6eb1
VS
45062013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4509 (load_image): Likewise.
4510
44d1c20a
VS
45112013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * util/grub-render-label.c: Move backend part to ...
4514 * util/render-label.c: ... here.
4515
d0a116ee
VS
45162013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4519 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4520
b47fcae6
VS
45212013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4524
0f7c00c1
VS
45252013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4526
4527 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4528 CD-ROM in case when it's declared as having subpartitions.
4529
29013cba
VS
45302013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4531
4532 Don't add -lm on haiku.
4533
4534 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4535 and empty on haiku.
4536 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4537 -lm.
4538
e8559d24
VS
45392013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * configure.ac: Use -melf_*_haiku as target on haiku.
4542
8104063c
VS
45432013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * Makefile.util.def: Add util/setup.c to extra_dist.
4546
fc3182c7
VS
45472013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4550 unknown types through.
4551
f90a3cc0
VS
45522013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4553
4554 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4555 (grub_util_check_char_device): Likewise.
4556 * include/grub/emu/getroot.h: Likewise.
4557
1e3e7419
VS
45582013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4561 memset rather than inline static function.
4562
92c88fc8
VS
45632013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4566 not doing embedded decompressor.
4567
3cd910a2
VS
45682013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4571 shadowing.
4572 * grub-core/kern/disk.c: Likewise.
4573 * grub-core/kern/misc.c: Likewise.
4574 * include/grub/parser.h: Likewise.
4575 * include/grub/script_sh.h: Likewise.
4576 * include/grub/zfs/zfs.h: Likewise.
4577
7b3aca00
VS
45782013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4581
97dfe7e4
VS
45822013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4585 defined before trying to use it.
4586
bf919aa9
VS
45872013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4590 warning.
4591
f4ccf29d
VS
45922013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4595 Use __unused__ rather than __used__ on gcc < 3.2.
4596
0d3a6f85
VS
45972013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4600 gcc < 4.0.
4601 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4602
757e3eb7
VS
46032013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4606
fb320faf
VS
46072013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4610 * include/grub/emu/misc.h: Likewise.
4611
ea73acd2
VS
46122013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4615 cur_color.
4616
71237a6f
VT
46172013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4618
4619 * grub-core/tests/checksums.h: Regenerated due to progress bar
4620 get_minimal_size changes.
4621
3d46c22f
BC
46222013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4623
4624 Added `tr' command support.
4625
4626 * grub-core/commands/tr.c: New file.
4627 * grub-core/Makefile.core.def: Build rules for new module.
4628
4629 * tests/grub_cmd_tr.in: New test.
4630 * Makefile.util.def: Build rules for new test.
4631
47e0a61f
VT
46322013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4633
4634 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4635
946fd073
VT
46362013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4637
4638 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4639 * docs/gurb.texi: Likewise.
4640
9c13c576
VT
46412013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4642
4643 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4644 Pixmap highlighted section with east and west slices was displayed
4645 incorrectly due to negative width of the central slice.
4646
ad543f12
VT
46472013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4648
4649 * docs/grub.texi: Graphical options information update.
4650 Removed outdated. Updated current. Inserted missed.
4651
6176a0cd
VS
46522013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * docs/grub.texi: Mention few new platform-specific commands.
4655
9688cae2
VS
46562013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4659 currently used so this doesn't really have any effect.
4660 Reported by: Douglas Ray <dougray>
4661
f7b69a3f
VS
46622013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4665 compilation but prevents gcc from displaying messages in non-Latin
4666 alphabets.
4667 * conf/Makefile.common: Likewise.
4668
ceca6ddf
HY
46692013-10-16 Hiroyuki YAMAMORI
4670
4671 Handle Japanese special keys.
4672 Reported by: Hiroyuki YAMAMORI.
4673 Codes supplied by: Hiroyuki YAMAMORI.
4674
ac48d334
VT
46752013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4676
4677 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4678
b2b71bff
VT
46792013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4680
4681 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4682 * docs/grub.texi: Likewise.
4683
669fc449
VS
46842013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4687 value in case of incomplete read.
4688 (grub_util_fd_write): Likewise.
4689
59381678
VS
46902013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4693
bacfefbb
VS
46942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * util/grub-editenv.c (create_envblk_file): More from here ...
4697 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4698
f7c49570
VS
46992013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4702 canonicalize file name before doing the rest.
4703
7b83ca44
VS
47042013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4705
4706 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4707 mingw32.
4708
df1e64c9
VS
47092013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4710
4711 Define grub_util_is_directory/regular/special_file and
4712 use OS-dependent versions rather than to rely on stat().
4713
ec16e026
VS
47142013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * util/grub-mkimage.c: Move backend part to ...
4717 * util/mkimage.c: ... here.
4718
4b4eeb3c
VS
47192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 Allow compilation with mingw64 albeit with warnings due to lack of
4722 %llx/%llu.
4723
4724 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4725 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4726 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4727 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4728 on mingw64.
4729 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4730
f4e0adc0
VS
47312013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 Remove leftover references to some of the system headers.
4734
e0127364
VS
47352013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4738 read.
4739
20d53541
VS
47402013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4743 of strerror.
4744
5a869940
VS
47452013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 Split out blocklist retrieving from setup.c to
4748 grub-core/osdep/blocklist.c and add windows implementation since
4749 generic version doesn't work on NTFS on Windows due to aggressive
4750 unflushable cache.
4751
c06c7520
VS
47522013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4755 files.
4756
8f53bb3f
VS
47572013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4760 Cut tailing newline. Remove arbitrary limitation. Always use
4761 grub_util_tchar_to_utf8.
4762
148f1007
VS
47632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4766 * tests/printf_unit_test.c (printf_test): Add %% tests.
4767 Reported by: Paulo Flabiano Smorigo.
4768
af3b06be
VS
47692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4772 implement fsync.
4773
27f9d02e
VS
47742013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4777 use nvlist_lookup_string and don't use nvlist_print.
4778
f6a81f0a
VS
47792013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4782 closedir to handle filename charset translation.
4783
d7750b32
VS
47842013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * include/grub/emu/hostdisk.h: Move file operations to
4787 * include/grub/emu/hostfile.h: ... here.
4788
2859196e
VS
47892013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4792 unicode path.
4793
c018c968
VS
47942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4797
7e45abce
VS
47982013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4801 and remove export.h.
4802
23934da2
VS
48032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * grub-core/kern/emu/error.c: Removed.
4806 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4807 explicitly as it's already in libgnu.a.
4808
c11ebcc8
VS
48092013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4812 config-util.h include.
4813
70671037
VS
48142013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 Split emunet into platform-dependent and GRUB-binding parts. Keep
4817 platform-dependent part in kernel for easy access to OS functions.
4818
25ac643a
VS
48192013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4822 open/read/write.
4823
69ca5876
VS
48242013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/osdep/windows/emuconsole.c: New file.
4827
d9d68ef0
AB
48282013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4829
4830 * conf/Makefile.extra-dist: Add osdep/*/init.c
4831
58e211cc
VS
48322013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4835
588744d0
VS
48362013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * util/grub-probe.c (probe): Separate different drives in hint-str
4839 by spaces and not newlines.
4840 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4841
44016e52
AB
48422013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4843
4844 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4845 Handle CD-ROMs.
4846
6de9ee86
VS
48472013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4848
4849 Pass-through unknown E820 types. It required reorganisation of mmap
4850 module.
4851
f8f3f155
AB
48522013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4853
4854 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4855
b73249d2
VS
48562013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4857
4858 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4859 fseeko.
4860
dac86b18 48612013-10-14 qwertial <qwertial>
4862
4863 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4864
17614b84
JM
48652013-10-14 Jon McCune <jonmccune@google.com>
4866
4867 * docs/grub.texi: Document new signatures possibility.
4868
6de292cb
VS
48692013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4872
84379b61
VS
48732013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4874
4875 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4876 missing prototype.
4877 (grub_util_tchar_to_utf8): Likewise.
4878
21d85db1
VS
48792013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4882 * grub-core/kern/emu/main.c: Add missing include.
4883 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4884 Don't call grub_util_init_nls.
4885 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4886 Likewise.
4887
66a1b3ee
VS
48882013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4891 stat.
4892
e19bec17
VS
48932013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4896
ee8c1b29
VS
48972013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4900
bb338aaf
VS
49012013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 Add a wrapper for fopen. On unix-like systems just pass-through. On
4904 windows use unicode version.
4905
ae5540d3
VS
49062013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 Move set_program_name and init_nls to host_init. On windows
4909 fix in this fuction console and argument charset as well.
4910
4cd3c4fe
AB
49112013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4912
4913 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4914 GRUB_ENABLE_CRYPTODISK.
4915
4916 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4917 GRUB_ENABLE_CRYPTODISK.
4918 * util/grub-mkconfig_lib.in: Likewise.
4919
78170f3e
CCZ
49202013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4921
4922 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4923
3414b6c0
MC
49242013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4925
4926 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4927 error when enabling debug.
4928
6d0740e8
IB
49292013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4930
4931 * configure.ac: Use -melf_*_obsd on openbsd.
4932
ff2d4dc4
VS
49332013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4936
eac6ae82
VS
49372013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * include/grub/misc.h: Use gnu_printf rather than printf as format
4940 template since our functions are independent of libc.
4941
ba9baabe
VS
49422013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * util/grub-setup.c (setup): Move copying of partition table as
4945 futher up as possible to avoid possible overwrite by floppy routines.
4946
49472013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
4948
4949 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4950
145e2369
VT
49512013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4952
4953 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4954 * docs/grub.texi: Likewise.
4955
3530bc9d
VS
49562013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4959 it's mostly unused. Move vestiges to the callers.
4960
fb9f59c3
VS
49612013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4964 version of salt and hash. Use grub_snprintf rather than snprintf.
4965
9be1c255
VS
49662013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * docs/grub.texi: Fix problem with braces.
4969
ed8c0887
VS
49702013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * conf/Makefile.extra-dist: Fix extra-dist list.
4973 * grub-core/Makefile.core.def: Likewise.
4974
f72ab14e
VS
49752013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * docs/grub.texi: Document disk names used on Windows and AROS.
4978
2fe53a22
VS
49792013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4982 with AROS devs.
4983 * grub-core/osdep/aros/hostdisk.c: Likewise.
4984
71c1d67a
VS
49852013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4986
4987 Avoid including hostfile.h when not necessarry as it pulls
4988 in OS-specific headers which may redefine generic names
4989 like "far".
4990
ad297ec7
VT
49912013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4992
4993 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4994 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4995 scrollbar_bottom_pad
4996 * docs/grub.texi: Likewise.
4997
6e9e5dc9
VT
49982013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4999
5000 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
5001
761c718b
VS
50022013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5005
37149a2f
VS
50062013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5007
5008 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5009 Removed.
5010 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5011 Made static.
5012
3837a151
VS
50132013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5014
5015 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5016 leftover.
5017
caca1c70
VS
50182013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 Move OS-specific driver configuration to grub_util_fd_open. This
5021 moves OS-dependent parts from kern/emu/hostdisk.c to
5022 grub-core/osdep/*/hostdisk.c.
5023
f7676b70
VS
50242013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 * util/grub-mkimage.c (generate_image): Use size_t instead of
5027 grub_size_t.
5028 * util/grub-mkimagexx.c (locate_sections): Likewise.
5029 (load_image): Likewise.
5030
22f98db2
VS
50312013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5034 size_t.
5035 (grub_util_write_image): Likewise.
5036
b102ce69
VS
50372013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5040 get random when no RNG is available.
5041 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5042
acbbe5cb
VS
50432013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * include/grub/util/lvm.h: Removed.
5046
2112fb3f
VS
50472013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5050 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5051
79f78fbf
VS
50522013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5055
c2e6f705
VS
50562013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5059
aabe433a
VS
50602013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5061
5062 * grub-core/net/drivers/emu/emunet.c: Move to ..
5063 * grub-core/osdep/linux/emunet.c: ..here.
5064
9a2c903f
VS
50652013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5066
5067 * util/ieee1275/ofpath.c: Move to ...
5068 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5069 * grub-core/osdep/basic/ofpath.c: ..here.
5070
4a445f58
VS
50712013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 Move password-querying (util-version) routines to grub-core/osdep.
5074
c1ca4244
VS
50752013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 Move sleep routines to grub-core/osdep.
5078
672fa55e
VS
50792013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 Move OS-dependent files to grub-core/osdep and document it.
5082
a5b0365a
VS
50832013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5084
5085 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5086 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5087
29072e99
VS
50882013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5091
f8772ea7
VS
50922013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * util/misc.c: Remove leftover inclusion of malloc.h.
5095
a1a315e7
VS
50962013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * include/grub/setjmp.h: Remove leftover GRUBOF.
5099
cef86fef
VS
51002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 * util/raid.c: Fold into ...
5103 * util/getroot_linux.c: ... here. Make all functions static.
5104
c4cf25ee
VS
51052013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5108 macros to GRUB ones.
5109
53a5f5c2
VT
51102013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5111
5112 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5113 occasional bug. If there are too many boot entries or too low
5114 scrollbar height then we need to use another formula to calculate
5115 the position and size of the scrollbar thumb.
5116
de300af2
VS
51172013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5118
c4cf25ee 5119 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 5120
c5827364
VT
51212013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5122
5123 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5124 * docs/grub.texi: Likewise.
5125
dd2ed8b0
VT
51262013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5127
5128 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5129 viewport.
5130
7286c384
VT
51312013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5132
ffdfc1f3
VT
5133 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5134 minimal width calculations.
7286c384 5135
ea547e14
VS
51362013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * docs/grub.texi: Update note on colors on emu console.
5139
b726be76
VS
51402013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5143 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5144 it's FS and not GRUB limitation.
5145
a5f6ade6
VS
51462013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5149
3b0f3aa2
VS
51502013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5153
1db38304
ST
51542013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5155
5156 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5157 kernels by version order.
5158
fb295fc0
VS
51592013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5162
47345010
VS
51632013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 Add AROS hostdisk and getroot routines.
5166
bf25f879
VS
51672013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 Make cryptodisk and diskfilter probe data retrievable programmatically
5170 and not just printable.
5171
24ca4512
VS
51722013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 Split random retrieving code into separate files.
5175
c7c177f0
VS
51762013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5179 R_ARM_V4BX.
5180
d71b45ae
VS
51812013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5182
5183 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5184 condition.
5185 * grub-core/tests/fake_input.c: Likewise.
5186 * grub-core/tests/cmdline_cat_test.c: Likewise.
5187
e44b9a83
VS
51882013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * grub-core/video/capture.c: Do not do finalization when .fini
5191 is called as there is explicit capture_end.
5192
4fa60739
VS
51932013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5196 changing windows to avoid crash.
5197
17c8bc37
VS
51982013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5201
9d4d7977
VS
52022013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * po/exclude.pot: Add several strings to exclude.
5205
0caa407c
VS
52062013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5209
9ae393da
VS
52102013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5213 ./util/grub-gen-asciih.c to exclude list.
5214
498d5033
VS
52152013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5216
5217 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5218 and don't mark error strings for translation.
5219
7d93298f
VS
52202013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5223 properly in case of missing block size.
5224
b2cae20c
VS
52252013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/lib/arm/setjmp.S: Add missing license section.
5228
3896d6b4
VS
52292013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * po/swiss.sed: Add replacement for key names and for term computer.
5232
ebc1da55
VT
52332013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5234
5235 * grub-core/gfxmenu/theme_loader.c: New global options for the
5236 theme background image handling. desktop-image-scale-method,
5237 desktop-image-h-align, desktop-image-v-align.
5238 * grub-core/gfxmenu/view.c: Likewise.
5239 * include/gfxmenu_view.h: Likewise.
5240 * include/bitmap_scale.h: Proportional scale functions introduced.
5241 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5242 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5243 cases of unexpected input variables for scale functions.
5244 * docs/grub.texi: Updated documentation for new options.
5245
c5739143
VS
52462013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5247
5248 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5249
be74aeb3
VT
52502013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5251
5252 * grub-core/tests/checksums.h: Corrected due to changes in
5253 bilinear interpolation function.
5254
d999ac72
VT
52552013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5256
5257 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5258 to eliminate artefacts in bilinear interpolation.
5259
2b131610
VS
52602013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * grub-core/video/readers/tga.c: Support paletted tga.
5263
de6e5ff8
VS
52642013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5265
5266 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5267 incorrect cbcr setting when in color mode.
5268
fa31ee9c
VS
52692013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/video/readers/png.c: Support paletted images and clean up
5272 greyscale support.
5273
e84f8188
VS
52742013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5277 usage of wrong table which resulted in mishandling of 4-byte
5278 sequences.
5279
52802013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
5281
5282 * grub-core/term/terminfo.c: Add Home and End key sequences.
5283
d72bff09
VS
52842013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5287 Fix formula for computing total number of bytes.
5288
29648c5d
VS
52892013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5292 image processing, fix big-endian and support grayscale.
5293
4a876492
VS
52942013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5297 Correctly will with maximum transparency when using index color.
5298
3ccf16df
VS
52992013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/video/readers/png.c: Support grayscale
5302
53032013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
5304
5305 * grub-core/video/readers/jpeg.c: Support grayscale.
5306
3ccf16df 53072013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
5308
5309 * grub-core/commands/loadenv.c: Support skipping signature check
5310 and variable names filtering.
5311
30b7f58f
VS
53122013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5315 * grub-core/kern/emu/hostfs.c: Likewise.
5316 * util/getroot_unix.c: Likewise.
5317
bab7b1eb
VS
53182013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5321 Migrate all explicit defines to this new one.
5322
43b1c99d
VS
53232013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5324
5325 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5326 grub_util_fd_strerror when using grub_util_fd_*.
5327 (grub_util_fd_open_device): Likewise.
5328 (grub_util_biosdisk_read): Likewise.
5329 (grub_util_biosdisk_write): Likewise.
5330 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5331 (grub_util_fd_strerror): Likewise.
5332 (grub_util_fd_sync): Likewise.
5333 (grub_util_fd_close): Likewise.
5334 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5335 (grub_util_fd_close): Likewise.
5336 (grub_util_fd_strerror): Likewise.
5337 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5338 function proto rather than macro.
5339 (grub_util_fd_sync): Likewise.
5340 (grub_util_fd_open): Likewise.
5341 (grub_util_fd_strerror): New proto.
5342
e8fd80bc
VS
53432013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5346 platforms on which it doesn't work.
5347
bf645fda
VS
53482013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5351 stat immediately to where it's used.
5352
5177ba14
VS
53532013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * util/getroot.c (grub_util_check_block_device): Move to ...
5356 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5357 * util/getroot.c (grub_util_check_char_device): Move to ...
5358 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5359
9db826e1
VS
53602013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5363 disk closing logic.
5364
49120085
AB
53652013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5366
5367 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5368
b3328b68
AB
53692013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5370
5371 * docs/grub.texi (File name syntax): Document ZFS filenames
5372 (/volume@snapshot/...).
5373
3fff48ab
VS
53742013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5375
5376 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5377 Always return full path. Fixes a problem with mkrelpath.
5378
39cfdaa9
PFS
53792013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5380
5381 * util/grub-install.in: Add GPT PReP support.
5382 * util/grub-probe.c (probe): Support GPT partition type.
5383 (main): Support -t gpt_parttype.
5384
7c680e1f 53852013-09-23 Aleš Nesrsta <starous@volny.cz>
5386
5387 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5388
890bdabe
MM
53892013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5390
5391 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5392
9c262ff9
TH
53932013-09-23 Tim Hardeck <thardeck>
5394
5395 * util/grub.d/10_hurd.in: Filter out character for the class.
5396 * util/grub.d/10_kfreebsd.in: Likewise.
5397 * util/grub.d/10_linux.in: Likewise.
5398 * util/grub.d/20_linux_xen.in: Likewise.
5399
d755342a
MC
54002013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5401
5402 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5403 "changed".
5404
68b77707
JT
54052013-09-23 Josh Triplett <josh@joshtriplett.org>
5406
5407 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5408 boot partition.
5409
efa68bfa
VS
54102013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5413 doesn't use posix_wrap. Keep literal -fno-builtin however.
5414
d9104204
VS
54152013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5416
5417 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5418
c248781a 54192013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54202013-09-23 neil
5421
5830df88 5422 * configure.ac: Do not enable -Wmissing-noreturn as its
5423 usefulness is limited and creates problems on some OS notably with
5424 code generated by bison.
5425
54262013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54272013-09-23 neil
5428
5429 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 5430 supported by all gcc and when it is, it's already enabled by -Wall.
5431
621bed69
VS
54322013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5433
5434 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5435 desactivated use of EDID at all.
5436
71764dc8 54372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54382013-09-23 neil
5439
5440 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5441 video if no text is available.
5442
affce7d4 54432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
54442013-09-23 neil
5445
5446 * configure.ac: Substitute TARGET_RANLIB.
5447
54482013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
54492013-09-23 neil
affce7d4
VS
5450
5451 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5452
5453 Based on patches from AROS.
5454
0e8daad0 54552013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 54562013-09-23 neil
0e8daad0
VS
5457
5458 * grub-core/Makefile.am: Override STRIP and RANLIB.
5459 * configure.ac: compute TARGET_RANLIB.
5460 * INSTALL: Document TARGET_RANLIB
5461
5462 Based on patches from AROS.
5463
3f7d9c82
VS
54642013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5467 that floppies are unpartitioned.
5468
bca8873a
VS
54692013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5470
5471 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5472 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5473
54742013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5477 less nice but more portable.
5478 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5479
a47a78be
VS
54802013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5483 for cheat_fd.
5484 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5485 functions.
5486 (grub_cryptodisk_cheat_insert): Likewise.
5487 (grub_cryptodisk_close): Likewise.
5488
e85a5d5c
VS
54892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5492 Use windows path for DEFAULT_DIRECTORY.
5493
dad9fa6b
VS
54942013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5495
5496 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5497 difference was likely just gcc version, not anything mingw-related.
5498
7e518ca8
VS
54992013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 Use Winapi on both cygwin and mingw32 to share more code between both.
5502
d68d0157
AB
55032013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5504
5505 * util/grub-install.in: Add --grub-editenv option.
5506 * util/grub-install_header (grub_compress_file): Explicitly check for
5507 plain file to avoid cp error.
5508
775b284d
AB
55092013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5510
5511 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5512 names; fix LVM driver name (lvm, not lv).
5513 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5514 names.
5515
3ff4063d
VS
55162013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5519 files rather than one file with loads of #if's.
5520 * util/getroot.c: Likewise.
5521
287faafe
VS
55222013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5525
d1983764
VS
55262013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5529 GNU/Hurd to the list of checked PRNG.
5530
15ce95c4
VS
55312013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5534
207862dd 55352013-09-21 Ales Nesrsta <starous@volny.cz>
5536
7c680e1f 5537 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 5538
63653cfd
VS
55392013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5542 * grub-core/disk/lvm.c: Add LVM UUIDs.
5543 * util/getroot.c: Use LVM UUIDs whenever possible.
5544
f5d3e7ef
AB
55452013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5546
5547 * docs/grub.texi (Networking commands): Add documentation for
5548 network related commands.
5549
53c6b7d6
VS
55502013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5553 to determine if device is handled by devmapper.
5554 (convert_system_partition_to_system_disk): Likewise.
5555 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5556 already done in grub_util_open_dm.
5557
e70d6736
LL
55582013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5559
5560 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5561 Clean up stack manipulation (sync_caches_armv*)
5562
90379808
VS
55632013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * util/lvm.c: Remove since unused. Remove remaining references.
5566
386701a8
VS
55672013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 Handle the case of partitioned LVM properly.
5570
5571 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5572 Stop on meeting LVM, mpath or DMRAID.
5573 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5574 (read_device_map): Likewise.
5575 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5576 device is full disk rather than erroring out on LVM and similar cases.
5577
53070787
VS
55782013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5581
1bc783bd
VS
55822013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5585 4K before the end.
5586 Reported by: Leif Lindholm
5587
436ad5c3
PW
55882013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
55892013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5592 codes.
5593
607319c9
CW
55942013-09-18 Colin Watson <cjwatson@ubuntu.com>
5595
5596 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5597 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5598
d404d154
DR
55992013-09-18 Douglas Ray <dougray@cpan.org>
5600
5601 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5602 as secure.
5603
28851ef6
AN
56042013-09-18 Aleš Nesrsta <starous@volny.cz>
5605
5606 * docs/grub.texi: Fix broken link.
5607
897c3bc6
MC
56082013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5609
5610 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5611 to break endless loop.
5612
f1630459
VS
56132013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * util/grub-fstest.c: Fix several printf formats.
5616 * util/grub-mkimage.c: Likewise.
5617 * util/grub-mkimagexx.c: Likewise.
5618 * util/grub-script-check.c: Likewise.
5619
64463dfd
VS
56202013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5623 error.
5624
48972495
VS
56252013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5628
5dd5e64b
VS
56292013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5632 removed in current versions cygwin_conv_*.
5633
1c1f31e5
VS
56342013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * configure.ac: Disable efiemu runtime on cygwin.
5637
c546a259
VS
56382013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5641 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5642
81690478
VS
56432013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5646 error message.
5647
6b87c10a
VS
56482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5651 windows variant.
5652 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5653 data.
5654
8f0baaac
VS
56552013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5658 when on x86 and not cygwin.
5659 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5660 -Wl,-melf_x86_64.
5661
b224c266
VS
56622013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * configure.ac: Set CPP to build one when checkoing for freetype for
5665 build.
5666
506b336b
VS
56672013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5670 [!GRUB_BUILD]: Remove has_argument.
5671
8c8c87b7
VS
56722013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5675 Replace with a dummy.
5676
7dc5ca13
VS
56772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * configure.ac: Don't change host_os from mingw to cygwin.
5680
c3302aa5
VS
56812013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * configure.ac: Change target_os from windows to cygwin.
5684
7b780018
VS
56852013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5686
5687 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5688
5689 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5690 (build-grub-gen-asciih): Likewise.
5691 (build-grub-gen-widthspec): Likewise.
5692 * Makefile.util.def (grub-pe2elf): Remove.
5693 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5694 * configure.ac: Separate tests for build.
5695 Move ./build-grub-pe2elf to grub-core.
5696 Fix typo.
5697 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5698 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5699 defined.
5700 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5701 constants.
5702 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5703 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5704 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5705
984cfd8a
VS
57062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5709 mingw32 as well based on grub_util_get_disk_size.
5710 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5711 grub_util_get_fd_size.
5712 (sync): Removed.
5713 (fsync): Moved to ...
5714 * grub-core/kern/emu/misc.c (fsync): ... here.
5715
f82d79c9
VS
57162013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * include/grub/mm.h (grub_extend_alloc): Remove.
5719 * grub-core/loader/i386/pc/plan9.c: Use own version of
5720 grub_extend_alloc with appropriate types.
5721
fd7dd66d
VS
57222013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5725
43ffba7c
VS
57262013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5729
3c7eac44
VS
57302013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 Fix dependencies on cygwin.
5733
5734 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5735 dependencies when used and defined.
5736 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5737
bdb5ba47
VS
57382013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5741 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5742
ed7fbf43
VS
57432013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5744
5745 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5746 implementation available to cause compile-time rather than runtime
5747 error.
5748
fc46e9fc
VS
57492013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * util/grub-fstest.c: Don't check for symlinks on windows.
5752
7f68269a
VS
57532013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5754
5755 * INSTALL: Mention unavailability of man pages when cross-compiling.
5756
8ed358e0
VS
57572013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5760 and gcry_log_bug.
5761 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5762
fc97214f
VS
57632013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * INSTALL: Document cross-compilation.
5766 * acinclude.m4: Determine whether nm support -P and --defined-only.
5767 * configure.ac: Add TARGET_ to all variables pertaining to target
5768 that don't have it yet.
5769 * gentpl.py: Likewise.
5770 * grub-core/Makefile.am: Likewise.
5771 * grub-core/genmod.sh.in: Likewise.
5772 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5773 as well.
5774
ca1fb563
IB
57752013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5776
5777 * configure.ac: Remove -Wempty-body. It's not essential and needs
5778 recent gcc.
5779
0031b229
IB
57802013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5781
5782 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5783 * util/getroot.c: Likewise.
5784
54ea2f44
VS
57852013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5786
5787 * grub-core/disk/ahci.c: Add needed explicit cast.
5788 * grub-core/lib/backtrace.c: Likewise.
5789 * grub-core/net/ip.c: Likewise.
5790 * grub-core/net/tcp.c: Likewise.
5791 * grub-core/net/udp.c: Likewise.
5792
3c601f8c
VS
57932013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5796
1d679dda
VS
57972013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 * util/import_gcry.py: Add final newline in visibility.h.
5800
00c28dd9
VS
58012013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * conf/Makefile.common: Fix typo.
5804
32af299a
VS
58052013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5808
e733cf52
VS
58092013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * Makefile.am (widthspec.h): Fix typo.
5812 * util/grub-gen-widthspec.c: Likewise.
5813
c6b066f2
VS
58142013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 Move ascii.h and widthspec.h generation to a separate build-time-only
5817 tool.
5818
ad1fe3f9 58192013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5820
5821 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5822 Always fill bootdisk info and improve check for NetBSD disklabel.
5823
92a52dd4
VS
58242013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * conf/Makefile.extra-dist: Add util/bin2h.c.
5827 Reported by: floppym.
5828
b2e9d276
VS
58292013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5832
7b966834
VS
58332013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * configure.ac: Disable unifont and starfield if no freetype was found.
5836
d5c1eef1
VS
58372013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5838
5839 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5840 on NetBSD and OpenBSD.
5841
66345b50 58422013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
5843
5844 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5845
66345b50 58462013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
5847
5848 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5849 reduced. Inheritant options are processed during the theme loading.
5850
66345b50 58512013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
5852
5853 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5854
369508b3
AS
58552013-08-14 Avik Sil <aviksil@in.ibm.com>
5856
5857 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5858
58592013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
5860
5861 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5862 using qemu.
5863
6f27a3f6
PFS
58642013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5865
5866 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5867 remove-potcdate.sed.
5868
c6ed362a
AB
58692013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5870
5871 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5872 unused attribute from pull argument.
5873
5e7d9464
AB
58742013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5875
5876 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5877 memory leak.
5878
dea55e2a
AB
58792013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5880
5881 * util/getroot.c (pull_lvm_by_command): add --separator option
5882 to vgs call to disable padding of output to 10 characters.
5883
f0b94ded
VS
58842013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5887 here ...
5888 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5889 here.
5890
b828fb5d
VS
58912013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5892
5893 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5894 length.
5895
7c9d0c39
VS
58962013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5897
5898 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5899 full Canadian cross. Tested with build=x86_64, host=arm,
5900 target=ppc-ieee1275.
5901
816719c8
VS
59022013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5903
5904 * configure.ac: Error if no $BUILD_CC could be found.
5905 Reported by: DevHC.
5906
2af2353b
VS
59072013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5910 i386-multiboot.
5911
797abd0a
VS
59122013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5913
5914 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5915 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5916
36e87d25
CW
59172013-08-13 Colin Watson <cjwatson@ubuntu.com>
5918
5919 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5920 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5921 falling back to the partition device, otherwise a later call to this
5922 function may fail spuriously.
5923 Reported by Axel Beckert. Fixes Debian bug #708614.
5924
273349fe
GS
59252013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5926
5927 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5928
418f86c6
GS
59292013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5930
5931 Prevent shadowing of stdlib's devname(3) on BSD.
5932
5933 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5934 and devlast to diskname and disklast, respectively.
5935
c137aea0
CW
59362013-08-11 Colin Watson <cjwatson@ubuntu.com>
5937
5938 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5939
272dc8df 59402013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
5941
5942 * docs/grub.texi: Introduce terminal window position options:
5943 terminal-left: terminal window's left position
5944 terminal-top: terminal window's top position
5945 terminal-width: terminal window's width
5946 terminal-height: terminal window's height
5947 terminal-border: terminal window's border width
5948 * grub-core/gfxmenu/theme-loader.c: Likewise.
5949 * include/grub/gfxmenu_view.h: Likewise.
5950 * po/exlude.pot: Likewise.
5951 * grub-core/gfxmenu/view.c: Likewise.
5952 Also updated minimal window size.
5953 Also terminal_sanity_check function has been introduced.
272dc8df
VT
5954 * grub-core/tests/checksums.h: Update (terminal window height
5955 is adjusted now for low resolution screen)
b4743461 5956
748a4533
VS
59572013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5960 position).
5961
fca5f944
VS
59622013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 * po/exclude.pot: Add few recent exceptions.
5965
4f47d809
VS
59662013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * tests/grub_func_test.in: Add unicode.pf2.
5969
a62ae90c
VS
59702013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5973 standard rather than noral color, in line with other terminals.
5974
4ed41392
VS
59752013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5978 analysis.
5979
3719fbc5
VS
59802013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5981
5982 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5983
459b1d91
VS
59842013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5987 inappropriate printf.
5988
f4e1ab9d
AB
59892013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5990
5991 * .bzrignore: Remove grub-core/lib/dtc-grub,
5992 grub-core/Makefile.libfdt.def
5993 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5994
fa471bfa
VS
59952013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * include/grub/video.h (grub_video_register): Keep double-linked as
5998 well as single-linked invariants.
5999 Reported by: qwertial.
6000
d65be02b
VS
60012013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * grub-core/commands/nativedisk.c (get_uuid): Handle
6004 GRUB_DISK_DEVICE_UBOOTDISK_ID.
6005
ba8bc620
VT
60062013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
6007
6008 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6009 maximum of NW, N, NE heights instead of N's height and maximum of
6010 NW, W, SW widths instead of W's width. (So the box will be always
6011 correctly drawn)
6012
4f0ad029
GS
60132013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6014
6015 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6016 Fix misuse of variable count.
6017
43d53b72
LL
60182013-07-18 Leif Lindholm <leif.lindholm@arm.com>
60192013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
60202013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 6021
43d53b72
LL
6022 New ports to arm-uboot and arm-efi.
6023 Mostly by Leif Lindholm with some additions from
6024 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 6025
88f8d146
VS
60262013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6029 and not before.
6030 Reported by: Leon Drugi.
6031
3f42504c
VS
60322013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6035 Reported by: Paulo Flabiano Smorigo.
6036
d110499b
VT
60372013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6038
6039 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6040
a8674ad3
VT
60412013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6042
6043 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6044
286fe4b3
VS
60452013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6048
1bd57aa3
VS
60492013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6052
7a87d69f
AB
60532013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6054
6055 * grub-core/net/bootp.c: Export net_* variables.
6056 * grub-core/net/net.c: Likewise.
6057
b2182299
VS
60582013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6061
795b3dc0
VS
60622013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6065
68714c43
VS
60662013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6069
af211bab
VS
60702013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6073
0036f02d
MM
60742013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6075
6076 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6077 <= 0.
6078
6d0ddff3
MM
60792013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6080
6081 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6082 functions.
6083
038016f4
MM
60842013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6085
6086 * grub-core/fs/zfs/zfs_lz4.c: New file.
6087 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6088
776bdce2
MM
60892013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6090
6091 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6092
c71dbd40
MM
60932013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6094
6095 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6096 (check_pool_label): Likewise.
6097 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6098
60992013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
6100
6101 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6102
8e67b50f
AB
61032013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6104
6105 * docs/grub.texi (Commands): Document postition parameters
6106 for menuentry command.
6107
f5ae3717
AB
61082013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6109
6110 * util/grub-mknetdir.in: Remove stray line from help output.
6111
9c28da2a
VS
61122013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6113
6114 Remove early sm712 init as there is no reason for it (the "watchdog"
6115 effect was due to wrong GPIO map).
6116
139072b8
VS
61172013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/commands/pcidump.c: Remove static variables.
6120
c6a61bda
VS
61212013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6124
51369614
VS
61252013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * configure.ac: Move delimiter after the infos.
6128
efa8640a
VS
61292013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6132
6f80a7b2
VS
61332013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6134
6135 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6136 not filling whole 8x16 space.
6137
a2371e19
VS
61382013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6141
64fce2d8
VS
61422013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * configure.ac: Indicate which liblzma is used if any.
6145
eb272d84
PW
61462013-06-21 Paul Wise <pabs3@bonedaddy.net>
61472013-06-21 Craig Sanders <savannah@taz.net.au>
6148
6149 * util/grub-reboot.in: Document submenu usage.
6150
a9e5abee
CW
61512013-06-25 Colin Watson <cjwatson@ubuntu.com>
6152
6153 * .bzrignore: Update with a number of new test-related files.
6154
e639c204
CW
61552013-06-25 Colin Watson <cjwatson@ubuntu.com>
6156
6157 * util/grub-script-check.c: Fail on scripts containing no
6158 commands, to guard against corrupted grub-mkconfig setups that
6159 produce no useful output.
6160 * tests/grub_script_no_commands.in: New test.
6161 * Makefile.util.def (grub_script_no_commands): Add.
6162 Reported by Hans Putter. Fixes Debian bug #713886.
6163
a4c89b17
AB
61642013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6165
6166 * grub-core/disk/diskfilter.c: Forgot to remove comment
6167 from previous commit.
6168
5b06b53c
AB
61692013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6170
6171 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6172 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6173
702da5c9
AB
61742013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6175
6176 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6177
aa62a5b7
AB
61782013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6179
6180 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6181 rescan diskfilter devices until nothing new is found.
6182
4aa237c8
VS
61832013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6186
93d8479b
VS
61872013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 Don't try to detect cbfs on *-emu.
6190
837222cc
VS
61912013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6194
99c971af
VS
61952013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 Add support for processed coreboot payload chainloading.
6198
e6930a45
VS
61992013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 Enable coreboot information commands even when not loaded as
6202 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6203
5027af38
VS
62042013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 Support for cbfs. Also factor out the part which is common
6207 for all archives to a separate module. This splits tar from cpio
6208 as they are very different but keeps cpio, cpio_be, odc and newc
6209 together since they're very similar.
6210
a5b55c4b
DM
62112013-06-15 David Michael <fedora.dm0@gmail.com>
6212
6213 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6214 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6215
0301a8b3
VS
62162013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * tests/grub_script_eval.in: Really add the eval test.
6219
3d84cb17
VS
62202013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 Move flavour-specific parts out of common cpio.c file and
6223 rename remaining to cpio_common.c
6224
593e430c
AB
62252013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6226
6227 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6228 off new function grub_script_execute_new_scope. Change callers to use
6229 either of them as appropriate.
6230 * grub-core/commands/eval.c: New command eval.
6231 * docs/grub.texi (Commands): Document it.
6232
63c29849
AB
62332013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6234
6235 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6236 to fetch values when listing.
6237
cc284112
AB
62382013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6239
6240 Fix make dist on non-pc.
6241
62422013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
6243
6244 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6245 without a device name.
6246
69544d1e
VS
62472013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 Remove enable_executable_check as it's not needed anymore.
6250 Reported by: dougray.
6251
96dbe648
VS
62522013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6255 ambigouos RAID before discovering RAIDs on top of it.
6256 Reported by: bodom.
6257
ccfc0bdb
VS
62582013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 Fix typo (failback vs fallback).
6261
f2587088
AB
62622013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6263
6264 * util/grub.d/30_os-prober.in: Add support for probing EFI
6265 System Partition (as of os-prober 1.58).
6266
cec5cf0c
VS
62672013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * configure.ac: Add yet another path to unifont. For parabola.
6270
e40b4596
JT
62712013-05-30 Josh Triplett <josh@joshtriplett.org>
6272
6273 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6274 handling to copy the killed characters to the kill buffer as
6275 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6276 stored as char. Eliminates UCS4 truncation and corruption
6277 observed when killing characters with Ctrl-u and yanking them
6278 back with Ctrl-y.
6279
fc4c4fdd
VS
62802013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 Detach optional parts of gfxterm and integrate in with coreboot init.
6283
6570b205
VS
62842013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 Move blit and fill dispatcher to appropriate files to decrease export
6287 and relocation overhead.
6288
b8323067
VS
62892013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6290
6291 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6292 functions.
6293
3cc1878f
VS
62942013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 * grub-core/Makefile.am: Fix compilation problem with some
6297 automake versions.
6298
4b80e43c
VS
62992013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6302
57e0c20c
VS
63032013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6306 automake versions.
6307
4fd42c53
VS
63082013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6311 SSDT.
6312
1e908b34
RS
63132013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6314
6315 * grub-core/partmap/dfly.c: New partition map.
6316
1359e474
VS
63172013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6320 checking.
6321 Reported by: Francesco Lavra.
6322
17806392
AB
63232013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6324
6325 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6326 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6327 false conditions.
6328 * conf/Makefile.common: define dist_grubconf_DATA
6329
cdce14fa
VS
63302013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 Progressively skip menu elements on small terminals rather
6333 than crashing.
6334
c8d6cc3c
VS
63352013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6338 to avoid losing last column.
6339
a73b31ce
VS
63402013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * po/exclude.pot: Add missing string "%C".
6343
1202c764
VS
63442013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6347 after the test.
6348
50268344
VS
63492013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * util/grub-install.in: Gettextize "Not found" message.
6352
62b15edf
VS
63532013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 Fix distfiles list.
6356 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6357
63582013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
6359
6360 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6361 present.
6362 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6363
709ad61b
VS
63642013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6367
d128901a
VS
63682013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6371 attribute since structure is not necessarily aligned.
6372
34b22f5c
AB
63732013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6374
6375 * docs/grub.texi (Device syntax): Clarify description of network
6376 drives.
6377
0f7e980b
VS
63782013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6381 for vasprintf presence.
6382
30b03dc2
VS
63832013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * util/grub-install.in: Handle efibootmgr presence check.
6386 Reported by: Leif Lindholm.
6387
0dc11c08
VS
63882013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6391 new strings to translate.
6392
f8024c3f
VS
63932013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6394
6395 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6396 yet another string (pun intended) to translate.
6397
b4c1da62
VS
63982013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 * po/POTFILES-shell.in: Autogenerate it.
6401
0ef7478b
VS
64022013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6405
8200fa15
VS
64062013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6409 misnomer.
6410
091945b2
AB
64112013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6412
6413 * docs/grub.texi (Network): Add description of net_default_interface,
6414 net_default_ip and net_default_mac. Rewrite variables description
6415 to emphasize that they are per-interface.
6416
0e7b2e32
VS
64172013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 New test: cmdline and cat.
6420
16f7c8f6
VS
64212013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * grub-core/commands/cat.c: Show UTF-8 characters.
6424
3e912fda
VS
64252013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * conf/Makefile.common: Poison float and double on non-emu.
6428
ee0220bc
VS
64292013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * configure.ac: Don't disable extended registers on emu.
6432
89e0240c
VS
64332013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6434
6435 * configure.ac: Don't use extended registers on x86_64.
6436 Reported by: Peter Jones.
6437
e56d9637
VS
64382013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * grub-core/term/efi/console.c: Fix compile error.
6441
8098f655
VS
64422013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 Compressed HFS+ support.
6445
16940e07
VS
64462013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6449 pixel".
6450
c5dbc13d
VS
64512013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 Menu color test.
6454
011f8ae8
VS
64552013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * grub-core/tests/setjmp_test.c: New test.
6458
2aa072d7
VS
64592013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 New variables 'net_default_*' to determine MAC/IP of default interface.
6462
43fe02cb
VS
64632013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 * tests/gettext_strings_test.in: A test to check for strings not
6466 marked for translation.
6467
bed06142
VS
64682013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * autogen.sh: Exclude unused libgcrypt files from translation.
6471
fb2666b5
VS
64722013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 Simplify few strings.
6475
d22840ec
VS
64762013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 Mark few forgotten strings for translation.
6479
e34092fd
VS
64802013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6481
6482 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6483 rather than printf.
6484
47cf82b4
VS
64852013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6486
6487 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6488 rather than printf.
6489 * grub-core/video/readers/tga.c: Likewise.
6490
1eed0e6e
VS
64912013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * tests/priority_queue_unit_test.cc: New test.
6494
c5b7697b
VS
64952013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6498 than printf.
6499
5945c2f8
AB
65002013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6501
6502 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6503 variable for one time boot menu entry.
6504
fa292343
B
65052013-05-05 Bean <bean123ch@gmail.com>
6506
6507 * grub-core/commands/testspeed.c: New command testspeed.
6508
310d4214
VS
65092013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 Factor-out human-size printing.
6512
85002bf3
VS
65132013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 Agglomerate more mallocs to speed-up gfxterm.
6516
22b06e96
VS
65172013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 Speed-up gfxterm by slightly agglomerating mallocs.
6520
b7c036bc
VS
65212013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 More video checks.
6524
92323d1f
VS
65252013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 Speed-up gfxterm by saving intermediate results in index+alpha
6528 format.
6529
0fb356a3
VS
65302013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6533 test.
6534
44dea3f9
VS
65352013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6538 line of timeout as it may contain the rest of long line.
6539
14af86e4
VS
65402013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * grub-core/normal/main.c: Fix freed memory dereference.
6543
03f7c8c3
VS
65442013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 Fix several memory leaks.
6547
c686014c
VS
65482013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6551
0788a695
VS
65522013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6555
daf01d61
VS
65562013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 Fix test -a and -o precedence.
6559 Reported by: adrian15.
6560
82ae74d7
VS
65612013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6564
8cec7bd4
AB
65652013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6566
6567 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6568 and add it as source to functional_test module.
6569
aa73d688
VS
65702013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6573
c104b6f9
VS
65742013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 New series of tests for gfxterm and gfxmenu.
6577
7391c4d5
VS
65782013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6581 the theme path relative to $prefix/themes.
6582
cff50118
VS
65832013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6586 Fix order bug.
6587 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6588
7c332bdc
VS
65892013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6592 descriptor.
6593
a4f9a5ff
VS
65942013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6597 grub_gfxmenu_timeout_notifications.
6598 (grub_gfxmenu_view_destroy): Likewise.
6599
b5a2114d
VS
66002013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6603
a8905e8a
VS
66042013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 Several fixes to ieee1275 and big-endian video.
6607
813c1622
VS
66082013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 Add missing exports on mips.
6611
3f3e7326
VS
66122013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6615 if no unifont is found.
6616 Restore original keyboard.
6617
095accd1
VS
66182013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6621 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6622
50361660
VS
66232013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 First automated video test (running videotest and comparing results)
6626
cd0f6eec
VS
66272013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6630 instead of 2 to have full RGB/CMY test pattern.
6631
3f9634e5
VS
66322013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 Add few more tests.
6635
583e5b64
VS
66362013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6639 ARCS. All users updated.
6640
aa7bcb99
VS
66412013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6644
95ef1a54
VS
66452013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6648
46546fc5
VS
66492013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6652 Reported by: qwertial.
6653
3476e0ef
VT
66542013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6655
6656 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6657 with syntax "XXX deg"/"XXX °".
6658
96f33fed
VS
66592013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 Make PCI init in i386-qemu port more robust.
6662
66632013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
6664
6665 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6666 cached view is reused.
6667 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6668 open boot menus.
6669
c53b4e67
VS
66702013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 Unify more code in grub-install_header.
6673
f7457fb2
VS
66742013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 Add few new tests.
6677
e2f27a8c
VS
66782013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 Enforce disabling of firmware disk drivers when native drivers kick in.
6681
ef9d8cd5
VS
66822013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * grub-core/commands/nativedisk.c: Customize the list of modules on
6685 platform. Don't try to search for disks already using native drivers.
6686
f7bf6c31
VS
66872013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6690 platforms.
6691
bdc4add8
VS
66922013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6693
6694 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6695 handling of variables containing backslash.
6696
e9e46c9a
VS
66972013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6700 dereference.
6701 Reported by: qwertial.
6702
0e90dee8
VS
67032013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6706
e0aacf24
VS
67072013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6710 dereference.
6711 Reported by: qwertial.
6712
3c0003c3
VS
67132013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6716
adb7d667
VS
67172013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6720
7cd0df84
VS
67212013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 New command `nativedisk'.
6724
02adbb93
VS
67252013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6728 * grub-core/loader/i386/bsd.c: Likewise.
6729
9fb0fd4f
VS
67302013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6733
bd69257a
VS
67342013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6735
6736 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6737 grub_get_unaligned16 rather than shifts.
6738
178c2764
VS
67392013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/kern/file.c: Use const char * rather than casting to
6742 non-const.
6743
eadfad24
VS
67442013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/commands/probe.c: Add missing grub_device_close.
6747
9f73ebd4
VS
67482013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * INSTALL: Document linguas.sh.
6751
965fa829
VS
67522013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 Remove POTFILES.in and regenerate it in autogen.sh.
6755
d417ddc4
VS
67562013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 Move --directory/--override-directorry to grub-install_header and unify.
6759
f97ec546
VS
67602013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/term/morse.c: Macroify dih and dah.
6763
b2d7470c
PFS
67642013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6765
6766 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6767
141e2a78
VS
67682013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/term/ns8250.c: Systematically probe ports by writing
6771 to SR before using them.
6772
1dd70ebd
PFS
67732013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6774
6775 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6776 disks.
6777 (check_sas): Get sas_adress info.
6778
c796a107
VS
67792013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6782 ports.
6783
43168646
LD
67842013-04-27 Leon Drugi <eyak>
6785
6786 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6787 BSS clearing.
6788
e7b8fd08
VS
67892013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 Core compression test.
6792
17f9fd29
VS
67932013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Implement grub_machine_get_bootlocation for ARC.
6796
dc2a6c8b
VS
67972013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 Improve AHCI detection and command issuing.
6800
f25a2ba6
VS
68012013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 Fix pseries test.
6804
a6393224
VS
68052013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 Make 'make check' work on emu.
6808
db99fbe8
VS
68092013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6810
6811 Replace libcurses with our own vt100 handling for the ease of testing
6812 and decreasing prerequisites.
6813
b24ca7cd
VS
68142013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6817
63314aa4
VS
68182013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6821 compile when not needed.
6822
c1b00fff
VS
68232013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 * tests/pseries_test.in: New test.
6826
f93e89ef
VS
68272013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 Add test to check that different boot mediums work.
6830
c4b456d3
VS
68312013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6834 ofw limited ISO support.
6835
5fe67f39
VS
68362013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 * configure.ac: Fix loongson conditional.
6839
7f63a64f
VS
68402013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 Enable mipsel-arc.
6843
b04b5990
VS
68442013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 Add serial on ARC platform.
6847
88d2f302
VS
68482013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6851 commit.
6852
86eb23bc
VS
68532013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * tests/partmap_test.in: Add missing double semicolon.
6856
eec3bb75
VS
68572013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * util/grub-mkrescue.in: Fix loongson filename.
6860
e0810df3
VS
68612013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * util/grub-mkrescue.in: Move all files that don't have a location
6864 set in stone under /boot/grub. Use ISO hard links rather than copies
6865 to save some space.
6866
65a6b30b
VS
68672013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6870 bogus SLOF values.
6871
6aff0107
VS
68722013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 Make check work on mips-arc.
6875
5e013e56
VS
68762013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * util/grub-mkrescue.in: Alias sashARCS as sash.
6879
d1989e2e
VS
68802013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6883 it's serial.
6884
1a25e72c
VS
68852013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * util/grub-install.in: Fix target fo qemu_mips.
6888 Fix extension on EFI.
6889
a59a9826
VS
68902013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6893 in front of chosen entry to mark it even if highlighting is lost.
6894
1a40f80c
VS
68952013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6898 gfxpayload=keep if cbfb is active.
6899
e343549c
VS
69002013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6903
45fbd9a2
VS
69042013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 Add missing video ids to coreboot and ieee1275 video.
6907
ab1440bd
VS
69082013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * util/grub-mkrescue.in: Add mips-arc support.
6911
cdeb8324
VS
69122013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6915
8528c879
VS
69162013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 Move mips-arc link address. Previous link address was chosen
6919 in belief that RAM on SGI platforms grows down while in fact it
6920 grows up from an unusual base.
6921
17fca573
VS
69222013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6925 Fix a type which prevented CD-ROM and floppy boot.
6926
d178788e
VS
69272013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6928
6929 Support coreboot framebuffer.
6930
6931 * grub-core/video/i386/coreboot/cbfb.c: New file.
6932
fe4c3e7e
VS
69332013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6934
6935 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6936 detecting too small regions.
6937
ec2dd179
VS
69382013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6941
872dac83
VS
69422013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6945 Remove dprintf.
6946 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6947
90ec4b7f
VS
69482013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6951 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6952 * grub-core/loader/powerpc/ieee1275/linux.c
6953 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6954
f32555dd
VS
69552013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6958 Look for /boot-rom as well as /rom/boot-rom.
6959
38649799
VS
69602013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6963 handling when creating text_layer failed.
6964 * grub-core/video/video.c (grub_video_create_render_target):
6965 Set result to 0 on error.
6966 (grub_video_delete_render_target): Do not dereference NULL.
6967
aeace7f7
VS
69682013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6971 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6972 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6973 (grub_linux_load64): Mask out 2 high bits.
6974
4eafa175
AB
69752013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6976
6977 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6978 more place.
6979
daaa64bd
VS
69802013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 Add support for pseries and other bootinfo machines to grub-mkrescue.
6983
6984 Tested by: Paulo Flabiano Smorigo.
6985
d0d2daa6
VS
69862013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * util/grub-mkrescue.in: Add GPT for EFI boot.
6989
b193e100
VS
69902013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6993 It improves performance in qemu.
6994
a0f8f3ac
VS
69952013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 * build-aux/snippet: Add missing gnulib files.
6998
284df0e2
AB
69992013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7000
7001 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
7002
740201f3
AB
70032013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7004
7005 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7006
a7e03923
PJ
70072013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
70082013-04-15 Peter Jones <pjones@redhat.com>
7009
7010 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7011 sectors.
7012 Based on patch by Peter Jones.
7013
25fc51a8
VS
70142013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 Fix DMRAID partition handling.
7017
88017d47
VS
70182013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * tests/grub_cmd_date.in: Skip on sparc64.
7021
fa7d914e
VS
70222013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7025 firmware error messages.
7026
cbe57a48
VS
70272013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7030 source and destination differ.
7031
21aecce0
VS
70322013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7035 detection.
7036
25092d29
VS
70372013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7040 match config-util.h to avoid warnings and increase compatibility.
7041
79451522 70422013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 70432013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
7044
7045 Add option to compress files on install/image creation.
7046
78b7d77b
VS
70472013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7048
7049 * docs/grub-dev.texi: Rearrange menu to match the section order.
7050 Reported by: Bryan Hundven.
7051
cc2fa5ec
VS
70522013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7055
b49fe879
VS
70562013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 Move GRUB out of system area when using xorriso 1.2.9 or later.
7059
5351da81
VS
70602013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * tests/grub_cmd_date.in: Add missing exit 1.
7063
c9d586ea
VS
70642013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 * tests/partmap_test.in: Skip on sparc64.
7067
3f729741
VS
70682013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 Support grub-shell on sparc64.
7071
8ca86b3a
VS
70722013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Support mkrescue on sparc64.
7075
aa1af9bb
VS
70762013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7077
7078 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7079 Needed on OpenBIOS due to incomplete device tree.
7080
ac4fea79
VS
70812013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7082
7083 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7084 would be otherwise excluded.
7085
70862013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
7087
7088 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7089 Inline name defines used only once.
7090
fe22b071
VS
70912013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 Fix memory leaks in ofnet.
7094 Reported by: Francesco Lavra.
7095
9d21381b
VS
70962013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 * docs/man/grub-glue-efi.h2m: Add missing file.
7099
07aec23c
VS
71002013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7103
67ab8353
VS
71042013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 Better support Apple Intel Macs on CD.
7107
ba44ca6d
VS
71082013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 Replace stpcpy with grub_stpcpy in tools.
7111
bbdd6305
VS
71122013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 Handle Japanese special keys.
7115 Reported by: Hiroyuki YAMAMORI.
7116 Codes supplied by: Hiroyuki YAMAMORI.
7117
8573d302
VS
71182013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 * util/grub-mkimage.c: Document memdisk implying --prefix.
7121
d70dbab7
VS
71222013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7125 much we can do about it anyway.
7126
51a4c3e3
AN
71272013-04-12 Aleš Nesrsta <starous@volny.cz>
7128
7129 Fix handling of split transfers.
7130
92c8f58d
VS
71312013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/net/http.c: Fix bad free.
7134
b7d17a49
VS
71352013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7136
7137 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7138 than buffer size.
7139
a3d566d4
VS
71402013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7143
a936af56
VS
71442013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * tests/util/grub-shell.in: Fix it on powerpc.
7147
51212234
VS
71482013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 Turn off QEMU ACPI-way since new releases don't have shutdown port
7151 anymore.
7152
a21eec9e
VS
71532013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * docs/grub.texi: Update coreboot status info.
7156
e3734b84
VS
71572013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * tests/grub_cmd_date.in: New test for datetime.
7160
f9d40055
VS
71612013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * tests/partmap_test.in: Fix missing qemudisk setting.
7164
dbc56d8f
VS
71652013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 Support i386-ieee1275 grub-mkrescue and make check on it.
7168
a79b8a15
VS
71692013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7170
7171 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7172 feature for it.
7173
48f39bb4
VS
71742013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7177 GRUB_CMDLINE_XEN_DEFAULT.
7178 Reported by: Marc Warne (GigaTux) <gigatux>
7179
053cfcdd
VS
71802013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 Import new gnulib.
7183
93cd84df
VS
71842013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 Use ACPI shutdown intests as traditional port was removed.
7187
f4b1fa4f
AB
71882013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7189
7190 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7191 distinction.
7192
49818a59
VS
71932013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7196 Fix few warining messages and leaks while on it.
7197
9277a306
AB
71982013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7199
7200 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7201 links under grub-core/lib/libgcrypt-grub/mpi.
7202
d5e2a158
VS
72032013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Fix ia64-efi image generation on big-endian machines. Deduplicate
7206 some code while on it.
7207 Reported by: Leif Lindholm.
7208
18866643
AB
72092013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7210
7211 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7212 as extra_dist.
7213
ca53deb8
AB
72142013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7215
7216 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7217
d4c4b8e1
BH
72182013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7219
7220 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7221 texinfo-5.1.
7222
47043f95
VS
72232013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * grub-core/normal/term.c: Few more fixes for menu entry editor
7226 rendering.
7227 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7228
a3216068
VS
72292013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/normal/term.c: Few more fixes for menu entry editor
7232 rendering.
7233 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7234
21026747
AB
72352013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7236
7237 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7238 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7239
59624ca8
AB
72402013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7241
7242 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7243 instead of hardcoding grub.mo.
7244
1f44478c
FN
72452013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7246
7247 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7248
eeada7b1
VS
72492013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7252 grub-core/disk/geli.c.
7253
132867de
VS
72542013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * util/grub-mkfont.c: Prefer enum to #define.
7257
de73de17
VS
72582013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7261
1865baa7
VS
72622013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7265
ce7d92a9
VS
72662013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7269
52eab656
VS
72702013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7273
98b23b95
VS
72742013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7275
7276 * include/grub/bsdlabel.h: Use enums.
7277
0467a5dd
VS
72782013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 Move GRUB_CHAR_BIT to types.h.
7281
16cc9f03
AB
72822013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7283
7284 * docs/grub.texi: Document more user commands.
7285
3152aecb
AB
72862013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7287
7288 * docs/grub.texi: Document menuentry --id option.
7289
c506fc30
FL
72902013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7291
7292 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7293
aa428238
VS
72942013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 Unify file copying setup across different install scripts. Add
7297 options for performing partial install.
7298
efe0cdda
PJ
72992013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
73002013-04-04 Peter Jones <pjones@redhat.com>
7301
7302 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7303
f75835bd
VS
73042013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 Use TSC as a possible time source on i386-ieee1275.
7307
2cd5ce6c
VS
73082013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7311 Init err.
7312
c9625630
VS
73132013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * util/grub-setup.c (setup): Handle some corner cases.
7316
be008941
VS
73172013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7320
1a78d573
VS
73212013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7322
7323 * grub-core/commands/verify.c: Save verified file to avoid it being
7324 tampered with after verification was done.
7325
db8ff59f
VS
73262013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7329 reported width by one to compensate for curesor algorithm problem.
7330
91bf46b1
VS
73312013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 Fix screen corruption in menu entry editor and simplify the code
7334 flow while on it.
7335
a7b1d693
AB
73362013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7337
7338 * util/grub-mount.c (fuse_init): Return error if fuse_main
7339 failed.
7340
31df9ad8
FL
73412013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7342
7343 * include/grub/elf.h: Add missing ARM relocation codes and fix
7344 existing ones.
7345
07f392eb
VT
73462013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7347
7348 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7349
9efd73ec 73502013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
73512013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7352
7353 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7354 into account when calculating radius.
7355
73562013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
7357
7358 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7359
4985ddaa
VT
73602013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7361
7362 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7363
8c3635ff
RS
73642013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7365
7366 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7367 missing closing bracket.
7368
74a35e69
RS
73692013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7370
7371 * INSTALL: Mention xorriso requirement.
7372
40f1c000
AB
73732013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7374
7375 * grub-core/commands/verify.c: Fix hash algorithms values for
7376 the first three hashes - they start with 1, not with 0.
7377
e75fdee4
VS
73782013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7381 Try terminating EFI services several times due to quirks in some
7382 implementations.
7383
33028f4c
CW
73842013-03-26 Colin Watson <cjwatson@ubuntu.com>
7385
7386 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7387 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7388 BankField extended opcodes.
7389 (get_sleep_type): Add minimal scope handling (just enough to
7390 handle setting the scope to the root path).
7391 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7392 * include/grub/acpi.h: Add enumeration values for Event, Device,
7393 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7394
33871a10
VT
73952013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7396
7397 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7398 memory leak.
7399
8990963a
VS
74002013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/disk/ahci.c: Give more time for AHCI request.
7403
daae8f9e
VS
74042013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7407 command.
7408
6a7fb94b
VS
74092013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7410
7411 Replace the region at 0 from coreboot tables to available in BSD
7412 memory map.
7413
ff99babd
VS
74142013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7417 non-BIOS platforms.
7418
30d6b1b2
VS
74192013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7422 platforms.
7423
6ccd0b31
VS
74242013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7427 handling of multi-device filesystems.
7428
23c9cc04
VS
74292013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7430
7431 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7432 platforms.
7433
ce50dbd7
VS
74342013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 Add new 'proc' filesystem framework and put luks_script into it.
7437
d975e8d5
VS
74382013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7441 and qemu.
7442
e73ba5e8
VS
74432013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7446
92750e4c
VS
74472013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 Add ability to generate newc additions on runtime.
7450
0ec45a68
VS
74512013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7454 description.
7455
320abd43
VS
74562013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * po/POTFILES.in: Regenerate.
7459
d7a6506e
VS
74602013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/commands/verify.c (hashes): Add several hashes
7463 from the spec.
7464
8fe05def
VS
74652013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 Slight improve in USB-related boot-time checkpoints.
7468
524e2766
VS
74692013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/commands/boottime.c: Fix copyright header.
7472
cc19857a
VS
74732013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7476 coreboot tables content. Support for cbmemc.
7477
ef8810e9
VS
74782013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 Fix a conflict between ports structures with 2 controllers of
7481 same kind.
7482
e9dabdfa
VS
74832013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 * include/grub/boottime.h: Add missing file.
7486
f6df57d2
VS
74872013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 Initialize USB ports in parallel to speed-up boot.
7490
d745dda7
VS
74912013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Fix USB devices not being detected when requested
7494 due to delayed attach.
7495
e5a2dd7b
VS
74962013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7497
e744219b
VS
7498 Implement boot time analysis framework.
7499
75002013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
7503 descriptor to just receive it as argument rather than endpoint
7504 address.
7505
5dd6f587
VS
75062013-03-19 Aleš Nesrsta <starous@volny.cz>
7507
7508 Better estimate the maximum USB transfer size.
7509
2f1071d5
VS
75102013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 Resend a packet if we got the wrong buffer in status.
7513
46ecfc49
VS
75142013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7517 multiplication rather than division.
7518
ea811130
VS
75192013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7522 than divisions.
7523
d2789cf0
VS
75242013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7527 operations to have intended shifts and not divisions.
7528
a9c94590
VS
75292013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7532 intended shifts rather than division.
7533
84cfe81b
VS
75342013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7535
7536 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7537 computation for some years before epoch. Avode confusing division
7538 while on it.
7539
21344ef6
VS
75402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/video/i386/pc/vbe.c
7543 (grub_video_vbe_print_adapter_specific_info): Replace division by
7544 shifts.
7545
3f2b4d1a
VS
75462013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 Adjust types in gdb module to have intended unsigned shifts rather than
7549 signed divisions.
7550
3dac5878
VS
75512013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7554 maximum size is 4G - 1 on hfs
7555
5341c0fb
VS
75562013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7559
fc3ff2a2
VS
75602013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7563 function.
7564
81455e8e
AB
75652013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7566
7567 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7568 causing gcc error with gcc 4.7.1.
7569
efd4f117
NZ
75702013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7571
7572 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7573 dereference null pointer. While the code is technically correct, gcc
7574 may eliminate a null check if pointer is already dereferenced.
7575
e11645f4
NZ
75762013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7577
7578 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7579 OOM check.
7580 * grub-core/normal/term.c (read_terminal_list): Likewise.
7581
77468368
VS
75822013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7583
7584 Lift up core size limits on some platforms. Fix potential memory
7585 corruption with big core on small memory systems. Document remaining
7586 limits.
7587
f6b58fe5
VS
75882013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7591 gotoxy to 0,0.
7592
19ce697d
VS
75932013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 Remove all trampoline support. Add -Wtrampolines when
7596 present. Remove symbols used for trampolines to make
7597 link fail if trampolines are present.
7598
73b5d90f
VS
75992013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7602 append out of its parent.
7603
cb758e96
VS
76042013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7607 parent.
7608
3188131f
VS
76092013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7610
7611 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7612 all vars to a macro. All users updated.
7613
e42b2514
VS
76142013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7617 i386-ieee1275.
7618
83e1a1a1
VS
76192013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7622
1d5a880f
VS
76232013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7626
6e4146c4
VS
76272013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 Move to more hookless approach in IEEE1275 devices handling.
7630
99fcda8a
VS
76312013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * grub-core/kern/term.c (grub_term_normal_color),
7634 (grub_term_highlight_color): Add back lost defaults.
7635
73bf57e2
VS
76362013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 Make elfload not use hooks. Opt for flags and iterators instead.
7639
7f8c105f
VS
76402013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7643 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7644
396d4091
VS
76452013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7648
76492013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7652 hook pass-through parameter. All users updated and unnested.
7653
74a27421
VS
76542013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7655
7656 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7657 out of its parent.
7658
b46d4213
VS
76592013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/fs/hfs.c: Remove nested functions.
7662
e114c3cc
VS
76632013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7666 the context through.
7667 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7668
f9b7d780
VS
76692013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * util/grub-editenv.c (list_variables): Move print_var out of its
7672 parent.
7673
ca9c2608
VS
76742013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7675
7676 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7677 function.
7678
5d983f5f
VS
76792013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7680
7681 * grub-core/gentrigtables.c: Make tables const.
7682
3056d3e7
VS
76832013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 Remove nested functions from videoinfo iterators.
7686
e2303774
VS
76872013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7688
7689 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7690 for 64-bit platforms.
7691
f42e3a2f
VS
76922013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7695 a FOR_CHILDREN macro.
7696
be174e5e
VS
76972013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7698
7699 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7700 platform from firmware path.
7701
0789b672
VS
77022013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 Enable linux16 on non-BIOS systems for i.a. memtest.
7705
7706 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7707 correctly.
7708 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7709
005a9c32
VS
77102013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7713 Fix end of table condition.
7714
ff2b3cd9
VS
77152013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7718 out of its parent.
7719
4fc40ff8
VS
77202013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/fs/jfs.c: Remove nested functions.
7723
be42d97a
VS
77242013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * grub-core/fs/minix.c: Remove nested functions.
7727
99373ce4
VS
77282013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/fs/iso9660.c: Remove nested functions.
7731
5aec2afe
VS
77322013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7735 of parent function.
7736
6c69e691
VS
77372013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * util/grub-fstest.c: Remove nested functions.
7740
43c91882
VS
77412013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7742
7743 * grub-core/loader/machoXX.c: Remove nested functions.
7744
4eb8b756
CW
77452013-02-27 Colin Watson <cjwatson@ubuntu.com>
7746
7747 Remove nested functions from disk and file read hooks.
7748
7749 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7750 (struct grub_disk): Add read_hook_data member.
7751 * include/grub/file.h (struct grub_file): Likewise.
7752 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7753 argument.
7754
7755 Update all callers.
7756
df6da5a5
AB
77572012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7758
7759 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7760 Fix off by one error in enumerating extended partitions.
7761
21aecde5
AB
77622013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7763
7764 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7765 memory leak if device name is not found.
7766
f1a19118
AB
77672013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7768
7769 * grub-core/normal/menu_entry.c (update_screen): remove
7770 unused variable `off' which caused scroll down arrow to be always shown.
7771
958bfd20
AB
77722013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7773
7774 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7775 access to unallocated memory.
7776
b7b78edb
AB
77772013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7778
7779 * Makefile.util.def: Add partmap/msdos.c to common library.
7780 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7781 * grub-core/disk/ldm.c: Check for existence of
7782 GRUB_PC_PARTITION_TYPE_LDM.
7783
28d468d6
VS
77842013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7787 sizes and display sector size.
7788
d55ffb02
VS
77892013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7790
7791 Implement new command cmosdump.
7792
b5ea6ce0
VS
77932013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7794
7795 Support Openfirmware disks with non-512B sectors.
7796
7797 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7798 size of the disk.
7799 * (grub_ofdisk_get_block_size): New function.
7800 * (grub_ofdisk_prepare): Use the correct block size.
7801 * (grub_ofdisk_read): Likewise.
7802 * (grub_ofdisk_write): Likewise.
7803 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7804 New proto.
7805
cc0e476f
VS
78062013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7809
c5dbdc33
VS
78102013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7813 on first error.
7814
3f078c0f
VS
78152013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7818 freeing it.
7819
66a93674
VS
78202013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 Implement USBDebug (full USB stack variant).
7823
c9f0c134
VS
78242013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7827 unless they have unexpected values.
7828
cfe1288b
VS
78292013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7832 grub_print_error.
7833
e42b9969
VS
78342013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7837 zero-out of port structure.
7838
cf94fd62
VS
78392013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7842 of extended attributes.
7843
f81ef4b5
AB
78442013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7845
7846 * util/grub-install.in: change misleading comment about
7847 device.map creation
7848
af18fdb4
VS
78492013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7852 when menu highlight color isn't set.
7853
08bcec50
M
78542013-01-27 C. Masloch <pushbx@38.de>
7855
7856 Improve FreeDOS direct loading support compatibility.
7857
7858 * include/grub/i386/relocator.h (grub_relocator16_state):
7859 New member ebp.
7860 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7861 variable.
7862 (grub_relocator16_boot): Handle %ebp.
7863 * grub-core/lib/i386/relocator16.S: Likewise.
7864 * grub-core/loader/i386/pc/freedos.c:
7865 Load BPB to pass kernel which partition to load from.
7866 Check that kernel file is not too large.
7867 Set register dl to BIOS unit number as well.
7868
7782b8a6
CW
78692013-01-22 Colin Watson <cjwatson@ubuntu.com>
7870
7871 * util/grub-reboot.in (usage): Document the need for
7872 GRUB_DEFAULT=saved.
7873 * util/grub-set-default.in (usage): Likewise.
7874 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7875
e661c180
VS
78762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7879 than defining WORDS_BIGENDIAN manually.
7880
1c22ca9a
VS
78812013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7884 invariants.
7885
d44892fe
CW
78862013-01-21 Colin Watson <cjwatson@ubuntu.com>
7887
7888 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7889 nested.
7890 (blit_comb: add_device_width): Likewise.
7891
5fdbaed1
CW
78922013-01-21 Colin Watson <cjwatson@ubuntu.com>
7893
7894 Remove nested functions from USB iterators.
7895
7896 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7897 (grub_usb_controller_iterate_hook_t): Likewise.
7898 (grub_usb_iterate): Add hook_data argument.
7899 (grub_usb_controller_iterate): Likewise.
7900 (struct grub_usb_controller_dev.iterate): Likewise.
7901
7902 Update all implementations and callers.
7903
4250985a
VS
79042013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7907 margin when not needed.
7908
7d8848f3
VS
79092013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7910
bc136973 7911 Make color variables global instead of it being per-terminal.
7d8848f3
VS
7912
79132013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7914
bc136973
VS
7915 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7916 asterisk.
7d8848f3 7917
ed12a003
CW
79182013-01-21 Colin Watson <cjwatson@ubuntu.com>
7919
7920 Fix powerpc and sparc64 build failures caused by un-nesting memory
7921 map iterators.
7922
6a0db449
CW
79232013-01-21 Colin Watson <cjwatson@ubuntu.com>
7924
7925 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7926 parameter declarations.
7927
ccd86b21
VS
79282013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7931
822b726b
VS
79322013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 Improve spkmomdem reliability by adding a separator between bytes.
7935
115c2cc1
CW
79362013-01-21 Colin Watson <cjwatson@ubuntu.com>
7937
7938 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7939 an Acer registration utility with several sightings in the wild.
7940 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7941
fc524edf
CW
79422013-01-21 Colin Watson <cjwatson@ubuntu.com>
7943
7944 Remove nested functions from filesystem directory iterators.
7945
7946 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7947 (struct grub_fs.dir): Add hook_data argument.
7948
7949 Update all implementations and callers.
7950
53d3e4e3
CW
79512013-01-21 Colin Watson <cjwatson@ubuntu.com>
7952
7953 * docs/grub.texi (Multi-boot manual config): Fix typo for
7954 "recommended".
7955
c821711f
LL
79562013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7957
7958 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7959 until after its use in generate_image.
7960
6a0debbd
CW
79612013-01-20 Colin Watson <cjwatson@ubuntu.com>
7962
7963 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7964 initrd size to addr_min, since the initrd will be allocated after
7965 this address.
7966
f41e08db
AB
79672013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7968
7969 * conf/Makefile.common: Fix autogen rules to pass definition
7970 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7971
77529e0f
LL
79722013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7973
7974 * include/grub/elf.h: Update ARM definitions based on binutils.
7975
b879aa7b
VS
79762013-01-20 Aleš Nesrsta <starous@volny.cz>
7977
7978 Split long USB transfers into short ones.
7979
8eb8284d
AB
79802013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7981
7982 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7983 is interrupted by ESC.
7984
08dad2dc
VS
79852013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 * util/grub-script-check.c (main): Uniform the error message.
7988
6c724b85
CW
79892013-01-20 Colin Watson <cjwatson@ubuntu.com>
7990
7991 Remove nested functions from ELF iterators.
7992
25239370
CW
79932013-01-20 Colin Watson <cjwatson@ubuntu.com>
7994
7995 Remove nested functions from device iterators.
7996
7997 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7998 (grub_arc_iterate_devs): Add hook_data argument.
7999 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8000 (struct grub_ata_dev.iterate): Add hook_data argument.
8001 * include/grub/device.h (grub_device_iterate_hook_t): New type.
8002 (grub_device_iterate): Add hook_data argument.
8003 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8004 (struct grub_disk_dev.iterate): Add hook_data argument.
8005 (grub_disk_dev_iterate): Likewise.
8006 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8007 Likewise.
8008 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8009 Likewise.
8010 * include/grub/partition.h (grub_partition_iterate_hook_t): New
8011 type.
8012 (struct grub_partition_map.iterate): Add hook_data argument.
8013 (grub_partition_iterate): Likewise.
8014 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8015 (struct grub_scsi_dev.iterate): Add hook_data argument.
8016
8017 Update all callers.
8018
6c0314d6
CW
80192013-01-20 Colin Watson <cjwatson@ubuntu.com>
8020
8021 Fix typos for "developer" and "development".
8022
600dc5f1
VS
80232013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 Add license header to spkmodem-recv.c.
8026
17334a6b
VS
80272013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 Rewrite spkmodem to use PIT for timing. Double the speed.
8030
7d462559
VS
80312013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8032
8033 Add new command pcidump.
8034
b78d6c32
VS
80352013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 New terminal outputs using serial: morse and spkmodem.
8038
34f71cb8
VS
80392013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 Improve bidi handling in entry editor.
8042
4542e71b
VS
80432013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8044
8045 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8046 argument to prevent name collision.
8047
09fd6d82
CW
80482013-01-15 Colin Watson <cjwatson@ubuntu.com>
8049
8050 Remove nested functions from script reading and parsing.
8051
8052 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8053 getline_data argument, passed to getline.
8054 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8055 getline_data argument, passed to grub_parser_split_cmdline.
8056 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8057 lexerstate->getline_data to lexerstate->getline.
8058 (grub_script_lexer_init): Add getline_data argument, saved in
8059 lexerstate->getline_data.
8060 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8061 argument, passed to grub_script_parse.
8062 * grub-core/script/script.c (grub_script_parse): Add getline_data
8063 argument, passed to grub_script_lexer_init.
8064 * include/grub/parser.h (grub_parser_split_cmdline): Update
8065 prototype. Update all callers to pass appropriate getline data.
8066 (struct grub_parser.parse_line): Likewise.
8067 (grub_rescue_parse_line): Likewise.
8068 * include/grub/reader.h (grub_reader_getline_t): Add void *
8069 argument.
8070 * include/grub/script_sh.h (struct grub_lexer_param): Add
8071 getline_data member.
8072 (grub_script_parse): Update prototype. Update all callers to pass
8073 appropriate getline data.
8074 (grub_script_lexer_init): Likewise.
8075 (grub_normal_parse_line): Likewise.
8076
8077 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8078 data argument.
8079 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8080 static instead of nested. Rename to ...
8081 (grub_parser_execute_getline): ... this.
8082 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8083 data argument.
8084 * grub-core/normal/main.c (read_config_file: getline): Make static
8085 instead of nested. Rename to ...
8086 (read_config_file_getline): ... this.
8087 (grub_normal_read_line): Add unused data argument.
8088 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8089 getline): Make static instead of nested. Rename to ...
8090 (grub_script_execute_sourcecode_getline): ... this.
8091 * util/grub-script-check.c (main: get_config_line): Make static
8092 instead of nested.
8093
d0d4b8a0
CW
80942013-01-15 Colin Watson <cjwatson@ubuntu.com>
8095
8096 Remove nested functions from memory map iterators.
8097
8098 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8099 argument, passed to hook.
8100 * grub-core/kern/i386/coreboot/mmap.c
8101 (grub_linuxbios_table_iterate): Likewise.
8102 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8103 instead of nested.
8104 (grub_machine_mmap_iterate): Add hook_data argument.
8105 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8106 Add hook_data argument, passed to hook.
8107 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8108 Likewise.
8109 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8110 Likewise.
8111 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8112 Likewise.
8113 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8114 Likewise.
8115 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8116 Likewise.
8117 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8118 Likewise.
8119 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8120 (grub_machine_mmap_iterate): Likewise.
8121 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8122 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8123 prototype.
8124 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8125 Remove NESTED_FUNC_ATTR from here and from all users.
8126 (grub_mmap_iterate): Update prototype.
8127 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8128 pass appropriate hook data.
8129 (grub_machine_mmap_iterate): Likewise.
8130
8131 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8132 static instead of nested.
8133 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8134 Rename to ...
8135 (lsmmap_hook): ... this.
8136 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8137 Likewise.
8138 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8139 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8140 heap_init): Likewise.
8141 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8142 Rename to ...
8143 (mmap_iterate_hook): ... this.
8144 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8145 Likewise.
8146 * grub-core/lib/ieee1275/relocator.c
8147 (grub_relocator_firmware_get_max_events: count): Likewise.
8148 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8149 to ...
8150 (grub_relocator_firmware_fill_events_iter): ... this.
8151 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8152 hook): Likewise. Rename to ...
8153 (grub_relocator_alloc_chunk_align_iter): ... this.
8154 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8155 Rename to ...
8156 (generate_e820_mmap_iter): ... this.
8157 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8158 Rename to ...
8159 (count_hook): ... this.
8160 (grub_linux_boot: hook): Likewise. Rename to ...
8161 (grub_linux_boot_mmap_find): ... this.
8162 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8163 (grub_linux_boot_mmap_fill): ... this.
8164 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8165 hook): Likewise. Rename to ...
8166 (grub_fill_multiboot_mmap_iter): ... this.
8167 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8168 hook): Likewise. Rename to ...
8169 (count_hook): ... this.
8170 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8171 hook): Likewise. Rename to ...
8172 (grub_fill_multiboot_mmap_iter): ... this.
8173 * grub-core/loader/powerpc/ieee1275/linux.c
8174 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8175 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8176 Likewise. Rename to ...
8177 (alloc_phys_choose): ... this.
8178 (determine_phys_base: get_physbase): Likewise.
8179 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8180 find_hook): Likewise.
8181 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8182 (malloc_hook: count_hook): Likewise.
8183 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8184 Likewise. Rename to ...
8185 (lower_hook): ... this.
8186 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8187 (upper_hook): ... this.
8188 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8189 (post64_hook): ... this.
8190 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8191 Likewise. Rename to ...
8192 (lower_hook): ... this.
8193 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8194 (upper_hook): ... this.
8195 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8196 (grub_mmap_iterate: fill_hook): Likewise.
8197 (fill_mask): Pass addr and mask within a single struct.
8198 (grub_cmd_badram: hook): Make static instead of nested. Rename
8199 to ...
8200 (badram_iter): ... this.
8201 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8202 (cutmem_iter): ... this.
8203
22099030
VS
82042013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8207 delimit path in strings using quotes.
8208 * util/getroot.c (grub_guess_root_devices): Likewise.
8209 (grub_make_system_path_relative_to_its_root): Likewise.
8210 * util/grub-probe.c (probe): Likewise.
8211 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8212 (xrealpath): Likewise.
8213
4a9950ec
VS
82142013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8215
8216 Fix compilation with older compilers.
8217
8218 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8219 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8220 declarations.
8221 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8222 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8223 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8224 identifier with b.
8225 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8226 * include/grub/crypto.h: Add type defines.
8227 * util/import_gcrypth.sed: Remove duplicate type defines.
8228
adcc6020
VS
82292013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 New command list_trusted.
8232
8233 * grub-core/commands/verify.c (grub_cmd_list): New function.
8234
a4528937
CW
82352013-01-13 Colin Watson <cjwatson@ubuntu.com>
8236
8237 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8238 info message.
8239
ca3a7446
CW
82402013-01-13 Colin Watson <cjwatson@ubuntu.com>
8241
8242 Remove nested functions from PCI iterators.
8243
8244 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8245 passed to hook. Update all callers to pass appropriate hook data.
8246 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8247 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8248 Remove NESTED_FUNC_ATTR from here and from all users.
8249 (grub_pci_iterate): Update prototype.
8250 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8251 instead of nested. Rename to ...
8252 (grub_cs5536_find_iter): ... this.
8253 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8254 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8255 Likewise.
8256 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8257 Likewise.
8258 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8259 Likewise.
8260 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8261 Likewise.
8262 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8263 * grub-core/video/radeon_fuloong2e.c
8264 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8265 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8266 find_card): Likewise.
8267 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8268 Likewise.
8269
f8e98fee
VS
82702013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * grub-core/commands/verify.c: Mark messages for translating.
8273
055b36b6
VS
82742013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8277 fatal.
8278
f7ff879b
VS
82792013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8282 fatal.
8283
82842013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
8285
8286 * autogen.sh: Do not try to delete nonexistant files.
8287 * util/import_gcrypth.sed: Add some missing header removals.
8288
01323d49
CW
82892013-01-12 Colin Watson <cjwatson@ubuntu.com>
8290
8291 Clean up dangling references to grub-setup.
8292 Fixes Ubuntu bug #1082045.
8293
8294 * docs/grub.texi (Images): Refer generally to grub-install rather
8295 than directly to grub-setup.
8296 (Installing GRUB using grub-install): Remove direct reference to
8297 grub-setup.
8298 (Device map) Likewise.
8299 (Invoking grub-install): Likewise.
8300 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8301 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8302 * util/grub-install.in (usage): Likewise.
8303
8304 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8305 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8306 grub-setup.
8307 * configure.ac: Remove grub_setup output variable.
8308
8309 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8310 to grub-bios-setup.
8311 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8312 grub-setup to grub-sparc64-setup.
8313
5e3b8dcb
VS
83142013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8315
8316 Import gcrypt public-key cryptography and implement signature checking.
8317
535714bd
VS
83182013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * grub-core/fs/ntfs.c: Ue more appropriate types.
8321 * grub-core/fs/ntfscomp.c: Likewise.
8322 * include/grub/ntfs.h: Likewise.
8323
3e4f3566
VS
83242013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 Support Apple FAT binaries on non-Apple platforms.
8327
8328 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8329 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8330 Likewise.
8331 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8332 Apple FAT binaries.
8333
4dedb13f
VS
83342013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8337 sector devices.
8338
f8861eaf
CW
83392013-01-07 Colin Watson <cjwatson@ubuntu.com>
8340
8341 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8342 explicitly zeroing elements.
8343 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8344 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8345 of elements in a structure already allocated using grub_zalloc.
8346 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8347
86065b0a
CW
83482013-01-07 Colin Watson <cjwatson@ubuntu.com>
8349
8350 * docs/grub.texi (grub_cpu): New subsection.
8351 (grub_platform): Likewise.
8352
c6f1e92f
VS
83532013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8354
8355 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8356
f797ec85
VS
83572013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8360 divisions.
8361
033d0b4b
VS
83622013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8365 * grub-core/fs/ntfscomp.c: Likewise.
8366 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8367 (grub_ntfs_comp): Likewise.
8368
21d1b9a0
VS
83692013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8370
8371 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8372 Rename to ...
8373 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8374 of groups_per_block. All users updated.
8375
10ca8645
VS
83762013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8377
8378 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8379 grub_error properly.
8380 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8381 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8382
a4c3ed4c
VS
83832013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8386 always in /boot/zfs.
8387 Reported by: Yuta Satoh.
8388
0b716507
YS
83892013-01-03 Yuta Satoh <nigoro>
8390
8391 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8392 ${grub_probe}
8393
00c05e22
VS
83942013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * configure.ac: Extend -Wno-trampolines to host.
8397
dadddb76
VS
83982013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8399
8400 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8401 entry->len = 0.
8402
54ce53ca
CW
84032013-01-03 Colin Watson <cjwatson@ubuntu.com>
8404
8405 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8406 (Invoking grub-script-check): Likewise.
8407
8912efca
CW
84082013-01-03 Colin Watson <cjwatson@ubuntu.com>
8409
8410 * docs/grub.texi (Invoking grub-mount): New section.
8411 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8412
c3fc8394
CW
84132013-01-02 Colin Watson <cjwatson@ubuntu.com>
8414
8415 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8416 test failures, so that a failing unit test correctly causes 'make
8417 check' to fail.
8418
45d26abb
CW
84192013-01-02 Colin Watson <cjwatson@ubuntu.com>
8420
8421 Fix failing printf test.
8422
8423 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8424 '$' in the correct order when collecting type information.
8425
971dd2c6
CW
84262013-01-02 Colin Watson <cjwatson@ubuntu.com>
8427
8428 * docs/grub.texi (configfile): Explain environment variable
8429 handling.
8430 (source): New section.
8431 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8432
5c67ea6c
CW
84332012-12-31 Colin Watson <cjwatson@ubuntu.com>
8434
8435 Remove several trivially-unnecessary uses of nested functions.
8436
8437 * grub-core/commands/i386/pc/sendkey.c
8438 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8439 instead of nested.
8440 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8441 Rename to ...
8442 (legacy_file_getline): ... this.
8443 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8444 Likewise.
8445 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8446 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8447 to ...
8448 (probe_dummy_iter): ... this.
8449 * grub-core/kern/i386/coreboot/mmap.c
8450 (grub_linuxbios_table_iterate: check_signature): Likewise.
8451 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8452 check_varstate): Likewise. Mark inline.
8453 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8454 an additional parameter.
8455 (find_long: fnd_long): Likewise. Pass two additional parameters.
8456 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8457 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8458 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8459 Likewise. Rename to ...
8460 (grub_cmos_find_port_iter): ... this.
8461 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8462 Rename to ...
8463 (find_rtc_iter): ... this.
8464
8465 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8466 function directly into the function body, since it is only called
8467 once.
8468
33a68ac6
CW
84692012-12-30 Colin Watson <cjwatson@ubuntu.com>
8470
8471 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8472 __attribute__ ((unused)).
8473 * grub-core/video/bochs.c (find_card): Likewise.
8474 * grub-core/video/cirrus.c (find_card): Likewise.
8475 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8476 * grub-core/video/sis315pro.c (find_card): Likewise.
8477 * grub-core/video/sm712.c (find_card): Likewise.
8478
608b647a
CW
84792012-12-28 Colin Watson <cjwatson@ubuntu.com>
8480
8481 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8482 Fixes Savannah bug #37821.
8483
fd49ceb3
CW
84842012-12-28 Colin Watson <cjwatson@ubuntu.com>
8485
8486 Apply program name transformations at build-time rather than at
8487 run-time. Fixes Debian bug #696465.
8488
8489 * acinclude.m4 (grub_TRANSFORM): New macro.
8490 * configure.ac: Create output variables with transformed names for
8491 most programs.
8492 * util/bash-completion.d/grub-completion.bash.in: Use
8493 pre-transformed variables for program names.
8494 * util/grub-install.in: Likewise.
8495 * util/grub-kbdcomp.in: Likewise.
8496 * util/grub-mkconfig.in: Likewise.
8497 * util/grub-mkconfig_lib.in: Likewise.
8498 * util/grub-mknetdir.in: Likewise.
8499 * util/grub-mkrescue.in: Likewise.
8500 * util/grub-mkstandalone.in: Likewise.
8501 * util/grub-reboot.in: Likewise.
8502 * util/grub-set-default.in: Likewise.
8503 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8504 * tests/util/grub-shell-tester.in: Remove unused assignment.
8505 * tests/util/grub-shell.in: Likewise.
8506 * util/grub.d/00_header.in: Likewise.
8507
7024b3c0
CW
85082012-12-28 Colin Watson <cjwatson@ubuntu.com>
8509
8510 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8511
8512 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8513 HAVE_RAW_DECL_GETS.
8514 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8515
e3501b13
VS
85162012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8519 Reported by: Eriks Latosheks <foresterlv>.
8520
b40c88a9
VS
85212012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8522
8523 * docs/grub.texi (Network): Update instructions on generating netboot
8524 image.
8525
ce96d01c
VS
85262012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8529 around device name if necessarry.
8530
0f596201
PFS
85312012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8532
8533 * util/grub-install.in: Follow the symbolic link parameter added
8534 to the file command.
8535
600d5bdb
AB
85362012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8537
8538 * util/grub-install.in: Remove stale TODO.
8539
64ebd2f4
PFS
85402012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8541
8542 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8543 dynamic allocation for the bootpath buffer.
8544
74b2fe3e
DTB
85452012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8546
8547 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8548 window too small.
8549
969b804f
VS
85502012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8553 argument rather than font name. All users updated.
8554 (grub_gfxterm_set_window): Likewise.
8555
b9f5ebd6
VT
85562012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8557
8558 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8559 from working.
8560
258f43b7
VS
85612012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8562
8563 * util/getroot.c (convert_system_partition_to_system_disk): Support
8564 nbd disks.
8565
cc1ce5f9
VS
85662012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8567
8568 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8569 infinite loop on corrupted FS.
8570
e77a16ca
VS
85712012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8572
8573 Fix big-endian mtime.
8574
8575 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8576 together sec and usec.
8577 (grub_ufs_dir): Use correct byteswapping for UFS time.
8578
d9c48c7b
VS
85792012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 Support big-endian UFS1.
8582
8583 * Makefile.util.def (libgrubmods): Add ufs_be.c
8584 * grub-core/Makefile.core.def (ufs1_be): New module.
8585 * grub-core/fs/ufs_be.c: New file.
8586 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8587 the file.
8588
2f9f40ba
LL
85892012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8590
8591 * include/grub/types.h: Fix functionality unaffecting typo in
8592 GRUB_TARGET_WORDSIZE conditional macro.
8593
48ff0889
PFS
85942012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8595
8596 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8597
03711240
GS
85982012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8599
8600 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8601 that /netbsd appears first (when it exists).
8602
a31b11bd
CJ
86032012-10-12 Christoph Junghans <ottxor@gentoo.org>
8604
8605 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8606 Fixes Savannah bug #37558.
8607
e8a5d5d4
CW
86082012-10-12 Colin Watson <cjwatson@ubuntu.com>
8609
8610 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8611 description of extract_entries_configfile.
8612
86132012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
8614
8615 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8616 preferred_address.
8617 (grub_cmd_linux): Likewise.
8618 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8619 preferred_lifetime. Update all users.
8620
288c757d
CW
86212012-09-26 Colin Watson <cjwatson@ubuntu.com>
8622
8623 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8624 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8625
0d35da3f
CW
86262012-09-26 Colin Watson <cjwatson@ubuntu.com>
8627
8628 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8629 errors from grub-probe to /dev/null, not stdout.
8630
b78c3127
VS
86312012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8634 sector 1.
8635
473959f0
CW
86362012-09-24 Colin Watson <cjwatson@ubuntu.com>
8637
8638 * util/grub-install.in: Make the error message if $source_dir
8639 doesn't exist more useful.
8640
794c8c33
CW
86412012-09-22 Colin Watson <cjwatson@ubuntu.com>
8642
8643 Fix grub-emu build on FreeBSD.
8644
8645 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8646 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8647 headers on Linux.
8648 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8649 implementation is currently Linux-specific.
8650 * util/getroot.c (exec_pipe): Define only on Linux or when either
8651 libzfs or libnvpair is unavailable.
8652 (find_root_devices_from_poolname): Remove unused path variable.
8653
86d08fdb
CW
86542012-09-19 Colin Watson <cjwatson@ubuntu.com>
8655
8656 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8657 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8658 should fit before end == 63.
8659
735abf54
CW
86602012-09-19 Colin Watson <cjwatson@ubuntu.com>
8661
8662 * util/grub-setup.c (write_rootdev): Remove unused core_img
8663 parameter. Update all callers.
8664 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8665 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8666 GRUB_SETUP_BIOS.
8667
140acd3c
VS
86682012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8669
8670 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8671 (grub_add_tab): New function.
8672 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8673 * util/grub.d/10_illumos.in: Likewise.
8674 * util/grub.d/10_kfreebsd.in: Likewise.
8675 * util/grub.d/10_linux.in: Likewise.
8676 * util/grub.d/10_netbsd.in: Likewise.
8677 * util/grub.d/10_windows.in: Likewise.
8678 * util/grub.d/10_xnu.in: Likewise.
8679 * util/grub.d/20_linux_xen.in: Likewise.
8680 * util/grub.d/30_os-prober.in: Likewise.
8681
7ddffdad
VS
86822012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8685 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8686 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8687 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8688 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8689 ieee1275-nocursor.
8690 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8691 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8692
4e092454
VS
86932012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8696 le-conversion.
8697 Reported by: BURETTE, Bernard.
8698
735abf54 86992012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
8700
8701 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8702 from comment.
8703
dfd39dbd
CW
87042012-09-14 Colin Watson <cjwatson@ubuntu.com>
8705
8706 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8707 IEEE1275 machines. Fixes powerpc-emu compilation.
8708 * include/grub/terminfo.h: Likewise.
8709
3bfa763c
VS
87102012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8711
8712 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8713 a const pointer.
8714 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8715 const pointer.
8716 (efiemu_set_variable): Make vendor_guid a const pointer.
8717
250e475b
VS
87182012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 Don't require grub-mkconfig_lib to generate manpages for programs.
8721
8722 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8723 dependencies, don't add grub-mkconfig_lib.
8724 (program): Pass empty adddeps.
8725 (script): Pass grub-mkconfig_lib as adddeps.
8726
592fd0e4
VS
87272012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8728
8729 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8730 * util/getroot.c (grub_find_device): Likewise.
8731 (get_mdadm_uuid): Likewise.
8732 (grub_util_is_imsm): Likewise.
8733 (grub_util_pull_device): Likewise.
8734 * util/grub-probe.c (probe): Likewise.
8735
801a3027
BG
87362012-09-10 Benoit Gschwind <gschwind>
8737
8738 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8739 (devs): Add devpath_8.
8740
c5052c81
PJ
87412012-09-08 Peter Jones <pjones@redhat.com>
8742
8743 * grub-core/Makefile.core.def (efifwsetup): New module.
8744 * grub-core/commands/efi/efifwsetup.c: New file.
8745 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8746 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8747 New define.
8748 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8749
8e832f71
JS
87502012-09-05 Jiri Slaby <jslaby@suse.cz>
8751
8752 * configure.ac: Add SuSe path.
8753
f0f55752
CW
87542012-09-05 Colin Watson <cjwatson@ubuntu.com>
8755
8756 * NEWS: Fix typo.
8757
ecadc4c2
CW
87582012-09-05 Colin Watson <cjwatson@ubuntu.com>
8759
8760 * util/import_gcry.py: Sort cipher_files, to make build system
8761 generation more deterministic.
8762
64498f25
VS
87632012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8766 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8767 (grub_set_datetime): Likewise.
8768
9cc836a2
VS
87692012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8772 warnings.
8773
bcfcea01
VS
87742012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8777
a4099485
VS
87782012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8781
265c162a
CW
87822012-09-04 Colin Watson <cjwatson@ubuntu.com>
8783
8784 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8785 required for checkouts from bzr, but it may be useful for users or
8786 distributors wishing to update translations against a tarball
8787 distribution, and it can be helpful for the tarball to be a superset
8788 of what's in bzr.
8789
3d171e95
CW
87902012-09-04 Colin Watson <cjwatson@ubuntu.com>
8791
8792 * Makefile.am (EXTRA_DIST): Add
8793 grub-core/tests/boot/linux.init-mips.S,
8794 grub-core/tests/boot/linux.init-ppc.S, and
8795 grub-core/tests/boot/linux-ppc.cfg.
8796
f2c2503e
CW
87972012-09-04 Colin Watson <cjwatson@ubuntu.com>
8798
8799 * grub-core/mmap/mips/loongson: Remove empty directory.
8800
88012012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
8802
8803 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8804 gone.
8805
ab2163d5
CW
88062012-09-04 Colin Watson <cjwatson@ubuntu.com>
8807
8808 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8809 grub-sparc64-setup.
8810
ce938140
GS
88112012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8812
8813 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8814
529f58a5
GS
88152012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8816
8817 * po/POTFILES.in: Regenerated.
8818
16cf79e9
GS
88192012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8820
8821 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8822 (NetBSD): New subsection.
8823
39b27f1e 88242012-07-22 Ales Nesrsta <starous@volny.cz>
8825
8826 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8827 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8828
a885261b
VS
88292012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8832 * util/grub.d/10_hurd.in: Add missing quoting.
8833 * util/grub.d/10_illumos.in: Likewise.
8834 * util/grub.d/10_kfreebsd.in: Likewise.
8835 * util/grub.d/10_linux.in: Likewise.
8836 * util/grub.d/20_linux_xen.in: Likewise.
8837
7bd29c01
VS
88382012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 New command `lsefi'.
8841
8842 * grub-core/Makefile.core.def (lsefi): New module.
8843 * grub-core/commands/efi/lsefi.c: New file.
8844 * include/grub/efi/api.h: Add more GUIDs.
8845
ac625d8f
VS
88462012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8849 (grub_bsd_elf32_hook): Likewise.
8850 (grub_bsd_elf64_size_hook): Likewise.
8851 (grub_bsd_elf64_hook): Likewise.
8852 (grub_bsd_load_elf): Likewise.
8853
e73bb801
VS
88542012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8857 if hash function is unavailable.
8858 (dec_stream_header): Likewise.
8859
e81db8b5
VS
88602012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8863 filter state.
8864
d187a1c3
VS
88652012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8866
8867 Fix coreboot compilation.
8868
8869 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8870 (grub_vga_text_init_real): ... this.
8871 (grub_vga_text_fini): Rename to ...
8872 (grub_vga_text_fini_real): ... this.
8873
91a05f64
VS
88742012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8877
6af96df7
VS
88782012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/lib/legacy_parse.c: Support clear and testload.
8881
4d569e12
VS
88822012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8885
073b57bb
VS
88862012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8889
a706f4cc
VS
88902012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 * grub-core/net/tftp.c (ack): Fix endianness problem.
8893 (tftp_receive): Likewise.
8894 Reported by: Michael Davidsaver.
8895
e7850aa9
VS
88962012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8899
89002012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8901
8902 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8903 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8904 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8905
35692881
VS
89062012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8909 efi_mmap_size.
8910 Reported by: Stuart Hayes.
8911
c35fc5bd
VS
89122012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8915
8916 * grub-core/Makefile.core.def (mda_text): New module.
8917 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8918 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8919 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8920 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8921 here.
8922 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8923 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8924 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8925 here.
8926 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8927 to ..
8928 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8929 ... here
8930 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8931 here.
8932 * grub-core/term/i386/vga_common.c: Removed.
8933 * include/grub/i386/vga_common.h: Likewise.
8934 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8935 (grub_vga_cr_bw_read): Likewise.
8936 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8937 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8938 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8939 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8940 grub_vga_cr_read/grub_vga_cr_write.
8941 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8942
5f91f701
VS
89432012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * configure.ac: Bump version to 2.00.
8946 * grub-core/normal/main.c (features): Add feature_200_final.
8947
0c4f85f6
VS
89482012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
89492012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8950
8951 * NEWS: Fix unclarity and language mistakes.
8952
f923ad22
VS
89532012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8956 additional size to 3 pages.
8957 Reported by: Stuart Hayes.
8958
d22029ba
VS
89592012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8960
8961 * NEWS: Add 2.00 entry.
8962
58eee08f
VS
89632012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8966 put explicit "/" for empty path.
8967 (wildcard_expand): Improve dprintf.
8968
c59bdff7
VS
89692012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8970
8971 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8972 it's equal to currnode. This can happen with "" symlink.
8973
5e6a440a
YB
89742012-06-27 Yves Blusseau <blusseau@zetam.org>
8975
8976 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8977 echo shell command by printf command.
8978
73a68bcb
VS
89792012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8982 the value returned by firmware is the maximal position, not diumension.
8983 (grub_terminfo_output_state): Use a more sane fallback.
8984
392a603b
VS
89852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8988
42d0867f
VS
89892012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8992 frequency to 150 MHz.
8993
489509f4
VS
89942012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 Apple fixes.
8997
8998 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8999 __APPLE_
9000 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
9001 definition.
9002 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
9003
9f3fc883
VS
90042012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 Handle slash in HFS label.
9007
9008 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9009 (grub_hfs_dir): Tanslate slash.
9010 (grub_hfs_label): Don't translate slash.
9011
54853fd7
VS
90122012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9015 network protocol listing since it introduces problematic dependency on
9016 net module.
9017
4dc02ddf
VS
90182012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9021
c50c867d
VS
90222012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 Init video early on yeeloong to avoid being rebooted by watchdog.
9025
9026 * grub-core/Makefile.am (gensm712): New target.
9027 (sm712_start.S): Likewise.
9028 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9029 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9030 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9031 description.
9032 * include/grub/vga.h: Move registry definitions to...
9033 * include/grub/vgaregs.h: ... here.
9034
5f92c8a1
VS
90352012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9036
9037 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9038 signedness.
9039
e9e6f111
VS
90402012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9041
9042 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9043 platforms with firmware disk drivers in the core.
9044
754ad9eb
VS
90452012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9048 informative verbose message.
9049 (read_lv): Handle 64-bit segment size.
9050
315654c2
VS
90512012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9052
9053 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9054
fb022c79
VS
90552012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9058 character but still remove trainling spaces.
9059 (grub_fat_label): Ignore archive flag.
9060
8645f72c
VS
90612012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9062
9063 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9064 cast between linux_kernel_header and linux_kernel_params.
9065
36498496
VS
90662012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9069 type for size.
9070 (grub_raid6_recover_func_t): Likewise.
9071 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9072 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9073
0b5ea6b8
VS
90742012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9077
650cfcfe
GS
90782012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9079
9080 Fix overflow.
9081
9082 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9083 [__NetBSD__]: Add explicit cast before bitshift.
9084
8a4d6a44
VS
90852012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * configure.ac: Bump to 2.00~rc1.
9088
2fb97ed3
VS
90892012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9092 half of $a0.
9093
1fa097dc
VS
90942012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
90952012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9096
9097 * docs/grub.texi: Fix search syntax.
9098 (Multi-boot manual config): Put msdos rather than GPT example.
9099 Grammar corrections.
9100
c890ba78
VS
91012012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9104
0f92dca7
VS
91052012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9108
3988c4a0
VS
91092012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9110
9111 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9112 message on double free. Put the value of magic in case of mismatch.
9113
9e86d4c5
VS
91142012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9115
9116 Speed-up video on yeeloong.
9117
9118 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9119 add cached_ptr.
9120 (grub_video_sm712_video_fini): Unmap cached_ptr.
9121 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9122 (grub_video_sm712_set_active_render_target): Removed.
9123 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9124 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9125 sync caches.
9126
ed24c312
VS
91272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Avoid flushing the same line multiple times on loongson.
9130
9131 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9132 Step in 32 bytes and not 1 byte.
9133 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9134 Likewise.
9135
d1718e7d
VS
91362012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9139 subvolumes.
9140
982f1909
VS
91412012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 Implement flow control for http.
9144
9145 * grub-core/net/http.c (parse_line): Handle response 206.
9146 (http_receive): Stall if too many packets are in the queue.
9147 (http_establish): Fix range header.
9148 (http_seek): Fix double free.
9149 (http_close): Likewise.
9150 (http_packets_pulled): New function.
9151 (grub_http_protocol): Set http_seek
9152 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9153 (ack_real): Set window depending on i_stall.
9154 (grub_net_send_tcp_packet): Likewise.
9155 (grub_net_tcp_stall): New function.
9156 (grub_net_tcp_unstall): Likewise.
9157 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9158 (grub_net_tcp_unstall): Likewise.
9159
bd407d6e
VS
91602012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9163
c7564b8e
VS
91642012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9167
a3706162
VS
91682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 * tests/util/grub-shell.in: Fix a typo.
9171
b27069e0
VS
91722012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9173
9174 Implement flow control for tftp.
9175
9176 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9177 packets but stop only if stop condition is satisfied.
9178 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9179 `stall' instead of `eof' as stop condition.
9180 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9181 (http_err): Likewise.
9182 * grub-core/net/tftp.c (ack): Replace the first argument with data
9183 instead of socket.
9184 (tftp_receive): Stall if too many packets are in wait queue.
9185 (tftp_packets_pulled): New function.
9186 (grub_tftp_protocol): Set packets_pulled.
9187 * include/grub/net.h (grub_net_packets): New field count.
9188 (grub_net_put_packet): Increment count.
9189 (grub_net_remove_packet): Likewise.
9190 (grub_net_app_protocol): New field `packets_pulled'.
9191 (grub_net): New field `stall'.
9192
6b9cfac6
VS
91932012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9194
9195 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9196 sync part to handle them.
9197
f35abd81
VS
91982012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9199
9200 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9201 * grub-core/net/drivers/ieee1275/ofnet.c
9202 (grub_ieee1275_net_config_real): Likewise.
9203
0e7ec820
VS
92042012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9205
9206 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9207 the direct route for server/gateway.
9208
9d611a31
VS
92092012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9210
9211 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9212 IP address to server name since we may not hame the DNS.
9213
418f45ab
VS
92142012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9217 freeing random buffer on failure.
9218 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9219
44a0efc1
VS
92202012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9223
531e2241
VS
92242012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9225
9226 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9227 reserved bytes.
9228 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9229 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9230 Handle malloc error correctly.
9231
cde393c9
VS
92322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9235 blocks.
9236
538478d0
VS
92372012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9240 increment.
9241
9b55efe0
VS
92422012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9245 none is explicitly specified.
9246
9eb832c3
VS
92472012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9250 while reallocating.
9251
d6b7c7c9
VS
92522012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 Respect netmask from bootp/dhcp.
9255
9256 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9257 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9258 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9259 into ...
9260 (grub_net_add_ipv4_local): ... this.
9261 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9262 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9263 (grub_net_add_ipv4_local): New proto.
9264
67caf9eb
VS
92652012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9266
9267 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9268 determining EFI memory map size.
9269
43657558
VS
92702012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9273
eb6d0dd3
VS
92742012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9277 when looking for partition separator.
9278
31230544
VS
92792012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9280
9281 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9282 Escape commas.
9283
918a2517
VS
92842012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 Restructure FAT driver to avoid hook in label reading as it hits a
9287 GCC bug.
9288
9289 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9290 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9291 (grub_fat_iterate_dir): Split into ...
9292 (grub_fat_iterate_init): ... this, ...
9293 (grub_fat_iterate_fini): ... this, ...
9294 (grub_fat_iterate_dir_next): ... and this. All users updated.
9295
9f1d654e
VS
92962012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9299 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9300 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9301 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9302 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9303 New fields last_key and last_key_time.
9304 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9305 extended key-esc into extended key-extended key.
9306
52f0f643
VS
93072012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 Avoid unnecessary memcpy of whole video buffer.
9310
9311 * grub-core/video/fb/video_fb.c (dirty): New struct.
9312 (framebuffer): Add members current_dirty and previous_dirty.
9313 (dirty): New function.
9314 (grub_video_fb_fill_rect): Update dirty.
9315 (common_blitter): Likewise.
9316 (grub_video_fb_scroll): Likewise.
9317 (doublebuf_blit_update_screen): Copy only dirty part.
9318 (doublebuf_pageflipping_update_screen): Likewise.
9319 (grub_video_fb_doublebuf_blit_init): Init dirty.
9320 (doublebuf_pageflipping_init): Likewise.
9321 (grub_video_fb_setup): Likewise.
9322
e169a180
VS
93232012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9326 poll rate.
9327
48556879
VS
93282012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 Fix wildcard regexp dot and other special characters handling.
9331 Reported by: Robert Mabee.
9332
9333 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9334 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9335 (split_path): Trigger expansion on '?'.
9336 (unescape): New function.
9337 (wildcard_expand): Unescape parts copied without globbing.
9338 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9339 (grub_script_arglist_to_argv): Don't unescape expansions.
9340
0494408e
VS
93412012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9342
9343 * include/grub/net.h (grub_net_card): New member txbufsize.
9344 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9345 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9346 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9347 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9348 txbufsize.
9349 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9350 compatible property to check for macs. Set
9351 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9352 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9353 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9354 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9355 (send_card_buffer): Use txbuf.
9356 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9357 nested function out of the parent while on it.
9358
cc35fe8f
VS
93592012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9362 presence check.
9363 (grub_ieee1275_net_config_real): Fix config pointer.
9364
970a0a09
VS
93652012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9368 filename parsing to non-block devices.
9369
3e19bf87
VS
93702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9373
c62d1a0c
VS
93742012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9375
9376 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9377 All users updated.
9378
ef76bec3
VS
93792012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9382 UUID search command even if hints probing failed.
9383
93842012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
9385
9386 * po/POTFILES.in: Regenerated.
9387
70aaf305
VS
93882012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9389
9390 Speed-up video on fuloong.
9391
9392 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9393 New function.
9394 (grub_pci_device_unmap_range): Handle non-cached address.
9395 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9396 add direct_ptr.
9397 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9398 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9399 (grub_video_sis315pro_set_active_render_target): Removed.
9400 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9401 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9402 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9403 sync caches.
9404 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9405 New proto.
9406
10400f0b
VS
94072012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * docs/grub.texi (Multi-boot manual config): New section.
9410
ba67e2c6
VS
94112012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9412
9413 Avoid slow read-back from VRAM.
9414
9415 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9416 Move from here ...
9417 * grub-core/video/fb/video_fb.c
9418 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9419 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9420 (front_target): Remove front_target. Add pages.
9421 (grub_video_fb_init): Skip setting front_pages.
9422 (grub_video_fb_fini): Likewise.
9423 (doublebuf_blit_update_screen): Use pages.
9424 (grub_video_fb_doublebuf_blit_init): Likewise.
9425 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9426 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9427 (grub_video_fb_setup): Prefer doublebuffing.
9428
377c98cb
VS
94292012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9432 gzio.
9433
eac49cff
VS
94342012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9435
9436 Add loongson tests.
9437
9438 * tests/util/grub-shell.in: Handle loongson.
9439 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9440 drivers.
9441 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9442 Reboot instead of shutdown if REBOOT is defined.
9443
0321415e
VS
94442012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9447 sized ports since unlike on real hardware qemu supports only 32-bit
9448 regs.
9449
3f2bdd8f
VS
94502012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9453 * util/grub-mkrescue.in: Handle loongson.
9454
29a049c9
VS
94552012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9458 Set is_part appropriately.
9459 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9460 names. Canonicalize partition without full disk.
9461
4abde346
VS
94622012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9463
9464 Revert usb-quiesce since it's wrong.
9465
9466 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9467 (grub_ofdisk_init): Don't do quiesce.
9468
61f1d93b
VS
94692012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9472 PowerMac workaround to Xserves as well.
9473 Information supplied by: Benjamin Herrenschmidt.
9474
a09eb541
VS
94752012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 Don't assume that beginning address is also the entry point on ppc.
9478
9479 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9480 (grub_linux_boot): Use linux_entry.
9481 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9482 (grub_linux_load64): Likewise.
9483
505b3c9b
VS
94842012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9487
cbe0b4ef
VS
94882012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9491 needlessly lose the console.
9492
3006e981
VS
94932012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9494
9495 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9496 space.
9497
4e5a96b0
VS
94982012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9499
7da036bb
VS
9500 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9501 than current grub_get_rtc() not implemented when booted with
9502 coreboot without TSC.
9503
9504 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9505 Add machine/time.h to kernel headers on loongson.
9506 * grub-core/Makefile.core.def (kernel): Remove
9507 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9508 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9509 (grub_get_rtc): Likewise.
9510 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9511 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9512 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9513 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9514 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9515 rather than installing known non-working time source.
9516 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9517 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9518 * include/grub/time.h: Don't include machine/time.h.
9519 * include/grub/efi/time.h: Removed.
9520 * include/grub/i386/efi/time.h: Likewise.
9521 * include/grub/i386/ieee1275/time.h: Likewise.
9522 * include/grub/powerpc/ieee1275/time.h: Likewise.
9523 * include/grub/sparc64/ieee1275/time.h: Likewise.
9524 * include/grub/x86_64/efi/time.h: Likewise.
9525
95262012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
9529
9530 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9531 value.
9532 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9533 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9534 with dotless variants when any combining above is present.
9535
5561c22d
VS
95362012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9539 text and not binary.
9540
96f7e60e
VS
95412012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9542
9543 Stop polling as soon as we have the packet we were waiting for.
9544
9545 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9546 All users updated.
9547 * grub-core/net/arp.c (have_pending): New var.
9548 (pending_req): Likewise.
9549 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9550 stop indicator.
9551 (grub_net_arp_receive): Set have_pending.
9552 * grub-core/net/dns.c (recv_data): New field stop.
9553 (recv_hook): Set stop.
9554 (grub_net_dns_lookup): Init stop and use as stop condition.
9555 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9556 condition.
9557 * grub-core/net/net.c (grub_net_poll_cards): New argument
9558 stop_condition. Stop when it goes true.
9559 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9560 indicator.
9561 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9562
3e747239
VS
95632012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 Keep TX and RX buffers on EFI rather than always allocate new ones.
9566
9567 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9568 card. All users updated.
9569 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9570 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9571 (get_card_packet): Likewise.
9572 (grub_efinet_findcards): Init new fields.
9573
f695e99a
VS
95742012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9575
9576 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9577 compilation error on sparc64.
9578
9e5e66d1
VS
95792012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 Use ITC on IA64 rather than broken routine based on daytime.
9582
9583 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9584 ia64.
9585 (grub_get_rtc) [__ia64__]: Likewise.
9586 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9587 (get_itc): New function.
9588 (grub_rtc_get_time_ms): Likewise.
9589 (grub_machine_init): Calibrate ITC.
9590 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9591 Keep only on non-ia64. Don't export since it's broken and used only
9592 if TSC is unavailable.
9593
a1767404
VS
95942012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9597 even if it's used.
9598 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9599 Skip if parent is unused.
9600
34b2bced
VS
96012012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9604
5e619f40
VS
96052012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9606
9607 Fix wildcard escaping.
9608
9609 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9610 * grub-core/script/execute.c (wildcard_escape): .. to here.
9611 Don't escape dot.
9612 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9613 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9614 Don't escape dot.
9615 * grub-core/script/execute.c (gettext_append): Always escape.
9616 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9617 * grub-core/script/yylex.l: Don't cut away the escaping.
9618 * tests/grub_script_echo1.in: Add tests with wildcard.
9619
c8ca5855
VS
96202012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9623 (ftdi_hw_configure): Likewise.
9624 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9625 define.
9626 (real_config): Handle 1.5 stop bits.
9627 (pl2303_hw_configure): Likewise.
9628
7183452c
VS
96292012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * Makefile.am: Add ppc linux bootcheck.
9632 * grub-core/tests/boot/linux-ppc.cfg: New file.
9633 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9634
f57c84cd
VS
96352012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * tests/grub_script_expansion.in: Skip network protocols.
9638
ecfc6207
VS
96392012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9642
8d03d284
VS
96432012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9644
9645 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9646 --rom-directory.
9647 Add -graft-points.
9648
61c42af0
VS
96492012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 ESCC serial driver for conducting sautomated tests in qemu.
9652 Not tested on real hardware.
9653
9654 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9655 * grub-core/term/ieee1275/escc.c: New file.
9656 * grub-core/Makefile.core.def (escc): New module.
9657
08fd1291
VS
96582012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9661 invalid on error.
9662 (serial_hw_fetch): Don't read invalid handle.
9663 (serial_hw_put): Don't write into invalid handle.
9664
08dafeea
VS
96652012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 Add a 1.5 stop bits value.
9668
9669 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9670 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9671 GRUB_SERIAL_STOP_BITS_1_5.
9672
9068fdcf
VS
96732012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9676 value rather than let it uninited.
9677
f4d5820f
VS
96782012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/commands/wildcard.c (+check_file): New function.
9681 (wildcard_expand): Don't expand to non-existing files, expand with
9682 suffix and not attempt to expand if not needed.
9683
3d2de9a7
VS
96842012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9687 out of partitions containing other partitions.
9688
c5c81ff9
VS
96892012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9692 on some qemu versions with GRUB.
9693
9694 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9695 define.
9696 (grub_openbsd_bootarg_pcibios): New struct.
9697 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9698 Add PCIINFO.
9699
08a14e0b
VS
97002012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * tests/util/grub-shell.in: Trim firmware output on EFI.
9703
cede3ca3
VS
97042012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9705
9706 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9707 and coreboot since it's already in kernel.
9708
558d3a60
VS
97092012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9712 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9713 to here. New return value start. All users updated.
9714 Recursively scan linear mappings.
9715 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9716 proto.
9717 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9718 Use grub_util_get_dm_node_linear_info.
9719 * util/getroot.c (convert_system_partition_to_system_disk): Use
9720 grub_util_info rather than grub_dprintf.
9721 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9722
60fde14d
VS
97232012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9726
9727 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9728 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9729
24bd8838
VS
97302012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * include/grub/types.h (grub_set_unaligned64): New function.
9733 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9734 (setup): Likewise.
9735
7bc06a49
VS
97362012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9737
9738 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9739 (grub_ofdisk_fini): Quiesce USB devices.
9740
49cea015
VS
97412012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9744 caches.
9745
8dcbe03b
VS
97462012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9749
5b258735
VS
97502012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9751
9752 * grub-core/disk/pata.c (grub_pata_pio_read)
9753 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9754 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9755
37ba07eb
VS
97562012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 Extend automated tests to qemu-mips.
9759
9760 * Makefile.am: reorganise tests and enable qemu-mips.
9761 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9762 * grub-core/tests/boot/linux.init-mips.S: New file.
9763 * tests/partmap_test.in: Handle ata0 disks.
9764 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9765 non-pc i386.
9766
070038f8
VS
97672012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9770 ia64.
9771 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9772 quotes while on it.
9773
004be2cd
VS
97742012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9777 (grub_halt): Likewise.
9778 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9779
b1622487
VS
97802012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 * grub-core/term/serial.c (grub_serial_register)
9783 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9784 the behaviour in line with x86 platforms.
9785
b7b4ab33
VS
97862012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9789 (grub_ata_strncpy): Likewise.
9790 (grub_ata_identify): Add missing byteswaps.
9791
5e3535ae
VS
97922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9795 byte-swap.
9796 (screen_read_char): Likewise.
9797 (grub_vga_text_cls): Likewise.
9798
c21b17e6
VS
97992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9802 filenames.
9803 (make_file_path): Likewise.
9804
bf293dec
VS
98052012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9806
9807 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9808 machines.
9809 Tested by: Paulo Flabiano Smorigo.
9810 Crucial information about API supplied by: Coleen <Last name unknown>.
9811 Reviewed by: Coleen <Last name unknown>.
9812
81f6ef0e
VS
98132012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * util/grub-mkimage.c: Disable -Wcast-align.
9816
7284143a
VS
98172012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9818
9819 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9820 as they are fatal.
9821
b99f3e00
VS
98222012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9825
944f752d
VS
98262012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * util/grub-probe.c (escape_of_path): Fix double free.
9829
6cce6f38
VS
98302012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * grub-core/commands/videoinfo.c (hook): Show pitch.
9833
1e1eb50e
VS
98342012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9837
1c715b5a
VS
98382012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9841 (probe): Add ieee1275 to OFW devices.
9842
007ae52d
VS
98432012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9846
4557a36d
VS
98472012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 Handle IBM OFW path.
9850
9851 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9852 available.
9853 (of_path_of_scsi): Handle vdevice.
9854
efbeefe9
VS
98552012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9856
9857 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9858 Allocate in multiples of 16 to avoid adding a few bytes free region the
9859 windows bugs upon.
9860
15a940bb
VS
98612012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9862
9863 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9864 Allocate in multiples of 16 to avoid adding a few bytes free region the
9865 windows bugs upon.
9866 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9867
6e5efd60
VS
98682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9871 resolutions.
9872 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9873 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9874
0d3d137e
IS
98752012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9876
9877 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9878
45dbe300
VS
98792012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9880
9881 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9882 resulted in \\ at the end of the line.
9883
6d8db947
VS
98842012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9887 (grub_parser_cmdline_state): Likewise.
9888 (grub_parser_split_cmdline): Likewise.
9889
de89d338
VS
98902012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9893 /dev/root and /dev/dm-*.
9894
00d41dee
VS
98952012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9896
9897 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9898 fix partially stale display.
9899
f95d1f11
VS
99002012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9903 substraction.
9904
6297e197
VS
99052012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9908 Fix MBR remapping workaround.
9909 (grub_util_biosdisk_read) [__linux__]: Likewise.
9910
8a7ecad3
VS
99112012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9914
2b34f944
VS
99152012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * configure.ac: Bump to beta6.
9918
684aef11
CW
99192012-05-31 Christer Weinigel <christer@weinigel.se>
9920
9921 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9922
05b0bb91
VS
99232012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9926 (grub_cmd_linux): Likewise.
9927
bda36bfa
CW
99282012-05-31 Christer Weinigel <christer@weinigel.se>
9929
9930 Fix EHCI low-speed.
9931
9932 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9933 (GRUB_EHCI_MULT_TWO): Likewise.
9934 (GRUB_EHCI_MULT_THREE): Likewise.
9935 (GRUB_EHCI_CMASK_MASK): New enum value.
9936 (GRUB_EHCI_SMASK_MASK): Likewise.
9937 (GRUB_EHCI_CMASK_OFF): Likewise.
9938 (GRUB_EHCI_SMASK_OFF): Likewise.
9939 (grub_ehci_pci_iter): Enable periodic schedule.
9940 (grub_ehci_parse_notrun): Likewise.
9941 (grub_ehci_restore_hw): Likewise.
9942 (grub_ehci_setup_qh): Set flags for low speed transfers.
9943 (grub_ehci_find_qh): Use periodic list for low speed.
9944 (grub_ehci_setup_transfer): Check periodic queue as well.
9945 (grub_ehci_check_transfer): Likewise.
9946 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9947
e12bcb1c
PFS
99482012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9949
9950 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9951 parameter is used.
9952
bcc75fb3
PJ
99532012-05-31 Peter Jones <pjones@redhat.com>
9954
9955 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9956 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9957 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9958
f19cb95e
VS
99592012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9962 uninited variable. Allocate at least setup_sects.
9963
a4e5ca80
VS
99642012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 Fix handling of EFI with big memory maps.
9967
9968 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9969 (real_mode_mem): Likewise.
9970 (real_mode_target): Likewise.
9971 (real_mode_pages): Likewise.
9972 (prot_mode_pages): Likewise.
9973 (linux_params): New var.
9974 (linux_cmdline): Likewise.
9975 (free_pages): Don't set real mode variables.
9976 (allocate_pages): Don't allocate real mode memory.
9977 (grub_e820_add_region): Remove the limit.
9978 (grub_linux_boot): Allocate and copy real mode memory.
9979 (grub_linux_unload): Free linux_cmdline.
9980 (grub_cmd_linux): Use temporary storage for parameters.
9981 (grub_cmd_initrd): Likewise.
9982 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9983 (linux_kernel_params): Make it 1K big.
9984
ddb73558
VS
99852012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9986
9987 * Makefile.util.def: Remove -Wno-format.
9988 * grub-core/Makefile.core.def: Likewise.
9989
1c4afb60
VS
99902012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 * tests/cmp_unit_test.c: Add missing failure message.
9993 * tests/example_unit_test.c: Likewise.
9994 * tests/printf_unit_test.c: Likewise.
9995
941e3a6d
VS
99962012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9999 relaxation of protective MBR requirements.
10000
b105df76
VS
100012012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10002
10003 * configure.ac: Add condition for COND_HOST_XNU.
10004 * Makefile.util.def (10_xnu): New script.
10005 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10006
84e1569e
VS
100072012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10010 objconv bug.
10011
130c0f77
VS
100122012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10015 Binary on other platforms stays identical.
10016
6fd0b143
VS
100172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10020 Apple.
10021
0af1751d
VS
100222012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10025
176d5f7d
VS
100262012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10029 rather than defining size_t ourselves to avoid conflict.
10030
7de5e20a
VS
100312012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10034 initialisation to avoid __bzero reference.
10035
f7143efe
VS
100362012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10037
10038 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10039 version.
10040 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10041 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10042 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10043 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10044 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10045
e6ad0555
VS
100462012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10049 * grub-core/kern/misc.c: Likewise.
10050 * grub-core/loader/i386/xnu.c: Likewise.
10051 * include/grub/i386/tsc.h: Likewise.
10052 * include/grub/symbol.h: Likewise.
10053
4a5a3c4a
VS
100542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10055
10056 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10057 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10058 on older compiler.
10059
037f6d90
VS
100602012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10063 Implement Apple flavour.
10064 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10065
f7194551
VS
100662012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10067
10068 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10069 (memmove) [__APPLE__]: Likewise.
10070 (memcpy) [__APPLE__]: Likewise.
10071 (memset) [__APPLE__]: Likewise.
10072 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10073 (memmove) [__APPLE__]: Likewise.
10074 (memcpy) [__APPLE__]: Likewise.
10075 (memset) [__APPLE__]: Likewise.
10076
85a730ca
VS
100772012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10080 dependency discard.
10081
40e80b94
VS
100822012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 * grub-core/normal/main.c (read_config_file): Provide config_file and
10085 config_directory.
10086 * util/grub.d/41_custom.in: Use config_directoy when available.
10087
9da59c32
VS
100882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10089
10090 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10091 (grub_bfs_dir): Likewise.
10092
2787ae53
PJ
100932012-05-27 Peter Jones <pjones@redhat.com>
10094
10095 The old code gives arguments to a printf function which can't work
10096 correctly, and the compiler complains.
10097
10098 * grub-core/tests/example_functional_test.c (example_test): Add
10099 missing text.
10100 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10101 * include/grub/test.h (grub_test_assert_helper): New declaration.
10102 (grub_test_assert): Use grub_test_assert_helper.
10103
526ef13d
VS
101042012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10107 (exfctest): ... this to avoid overlong filenames.
10108 All users updated.
10109
20dd511c
VS
101102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 Handle "." and ".." on squashfs.
10113
10114 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10115 Make inode numbers into stack.
10116 (grub_squash_read_symlink): Use stack.
10117 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10118 (make_root_node): Fill stack.
10119 (grub_squash_open): Use stack.
10120
1d80c62a
VS
101212012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10124 freeing.
10125
d336f652
VS
101262012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10129 stderr on test calls.
10130
8b43f587
VS
101312012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10134
80a3dc3f
VS
101352012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10138
47e297d4
VS
101392012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10140
10141 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10142 "..".
10143
df042ccb
VS
101442012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10147 (grub_hfsplus_iterate_dir): Add "." and "..".
10148
fc977f48
VS
101492012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10152 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10153
f3250e5f
VS
101542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10155
10156 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10157 (find_path): Handle "." and "..".
10158
fd8ed4c5
VS
101592012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10160
10161 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10162 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10163 (grub_affs_iterate_dir): Handle hardlinks.
10164
4ce776d2
MG
101652012-05-26 Matthew Garrett <mjg@redhat.com>
10166
10167 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10168 (grub_efi_console_fini): Likewise.
10169 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10170 (grub_video_gop_fill_mode_info): Rename to ...
10171 (grub_video_gop_fill_real_mode_info): ... this.
10172 (grub_video_gop_fill_mode_info): New function.
10173 (grub_video_gop_setup): Setup double framebuffer.
10174 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10175 Free offscreen.
10176 (grub_video_gop_swap_buffers): Copy framebuffer.
10177 (grub_video_gop_fini): Free offscreen buffer.
10178 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10179 New enum.
10180 (grub_efi_gop_blt_pixel): New struct.
10181
683031ba
VS
101822012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * gentpl.py: Remove error disabling for objconv.
10185
c2deb798
VS
101862012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10187
10188 * configure.ac: Remove -Wunitialized as it's not available on older
10189 compilers.
10190
101912012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
10192
10193 Fix extent overflow comparator.
10194
10195 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10196 (grub_hfsplus_read_block): Set type.
10197 (grub_hfsplus_cmp_extkey): Compare type.
10198
d6b1fd36
VS
101992012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10202
0a9aa0f6
VS
102032012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10206 than 0.
10207
8360e159
VS
102082012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10211 (dejavu_bold_14.pf2): New target.
10212
501b9e4b
VS
102132012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * configure.ac: Fix djvu font detection.
10216
7026b0e2
VS
102172012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10220 ext* instead of ext2.
10221
c2a51ade
VS
102222012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10225 name with \0.
10226
8f803a5d
JU
102272012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10228
10229 * docs/grub-dev.texi: Remove dot from .png.
10230
13c6353f
VS
102312012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10234 protective entry in any slot.
10235 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10236 if protective entry is found in any slot.
10237
10238 Protective entry in non-first slot make no sense but is a widespread
10239 brain damage.
10240
4cf6be1b
VS
102412012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10244
937d1c44
VS
102452012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10246
10247 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10248 with old reiserfs.
10249 (grub_reiserfs_open): Don't free root.
10250
021d90ec
VS
102512012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10252
10253 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10254 after freeing for safety.
10255
967b2b64
VS
102562012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10259 Reported by: Jordan Uggla.
10260
34274d02
JU
102612012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10262
967b2b64
VS
10263 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10264 actual implementation. Specifically, clarify that the grub menu will
10265 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10266 passed.
34274d02 10267
dcaaae9d
BH
102682012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10269
10270 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10271 of r0.
10272
7086ad52
VS
102732012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 Remove unjustified hard dependency of normal.mod on gfxterm.
10276
10277 * include/grub/term.h (grub_term_output): New member fullscreen.
10278 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10279 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10280 (grub_gfxterm): Set .fullscreen.
10281 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10282 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10283
37ed2c9b
VS
102842012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10285
10286 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10287 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 10288 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 10289
a4469c88
VS
102902012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10293
4e461486
VS
102942012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10297 a bad FS.
10298
aa78f5c4
VS
102992012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10302 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10303
197626b5
VS
103042012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10307 (grub_jfs_mount): Fill caseins.
10308 (grub_jfs_find_file): Respect caseins.
10309
8ad3f28c
VS
103102012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10313 through UTF-16.
10314
0c6c324e
VS
103152012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10318 New argument origpath. All users updated.
10319
c6666ba6
VS
103202012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10323 (read_attr): Ensure that we read start of possibly compressed block.
10324
e28e5fe5
VS
103252012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10328 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10329 All users updated.
10330
5fc23ab2
VS
103312012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10334 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10335 (dejavu.pf2): Replace with ...
10336 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10337 this.
10338
79dbc21c
VS
103392012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * util/grub.d/20_linux_xen.in: Add missing line.
10342
d2fcfb0c
VS
103432012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10346 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10347 (grub_utf16_to_utf8): Likewise.
10348
5560e9d6
VS
103492012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10352 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10353 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10354 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10355 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10356 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10357
103582012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
10359
10360 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10361 a bad FS.
10362
5560e9d6 103632012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
10364
10365 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10366 (grub_udf_read_symlink): Handle read_string failure.
10367
5eae3175
VS
103682012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10371 comment.
10372
c1ad82db
VS
103732012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Fix handling of UDF symlinks.
10376
10377 * grub-core/fs/udf.c (read_string): New argument outbuf.
10378 All users updated.
10379 (grub_ufs_read_symlink): Rename to ...
10380 (grub_udf_read_symlink): ... this. All users updated.
10381 Handle symlinks with more than one component.
10382
33eca6e0
VS
103832012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10384
10385 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10386 symlinks. Replace leading colon with a slash.
10387
57f4a70b
VS
103882012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10391 filename.
10392
38c8ee20
VS
103932012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10396 match in inner node.
10397
2e57f28f
VS
103982012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10401 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10402 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10403 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10404 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10405 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10406 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10407 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10408 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10409
fe8c2f11
VS
104102012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 Use grub-probe and not cmp to check that disk is empty.
10413
10414 * util/grub-install.in: Use grub-probe for zero-check.
10415 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10416 (probe): Handle PRINT_ZERO_CHECK.
10417 (argp_parser): Handle -t zero_check.
10418
104192012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
10420
10421 Flush block cache on adding disk to device map.
10422
10423 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10424 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10425 adding.
10426 (read_device_map): Likewise.
10427 (open_device): Flush on opening.
10428
690434e8
VS
104292012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10432 (handle_symlink): Fix off-by-one error.
10433 Canonicalize the target.
10434 (grub_cpio_dir): Canonicalize the name.
10435 Fix memory leak.
10436 Set directory.
10437 (grub_cpio_open): Canonicalize the name.
10438
742d2be6
VS
104392012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10440
10441 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10442 handling.
10443
3244fe96
VS
104442012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10447 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10448
8aeb1837
VS
104492012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10452 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 10453 All users updated.
8aeb1837 10454
9133fd05
VS
104552012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10458 counterpart.
10459
6d521c5b
VS
104602012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 Fix UFS1 big file support.
10463
10464 * grub-core/fs/ufs.c (INODE): Removed.
10465 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10466 64-bit.
10467 (INODE_MODE): Simplify.
10468 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10469 (grub_ufs_lookup_symlink): Don't use INODE.
10470
21b82e17
VS
104712012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10472
10473 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10474
10475 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10476 (grub_minix_data): Replace log_block_size with block_size.
10477 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10478 (grub_minix_mount): Fill block_size.
10479
104802012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
10481
10482 * configure.ac: Bump to beta5.
10483
f417ed04
VS
104842012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10485
10486 Fix wrapped HFS+ handling.
10487
10488 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10489 blocks_start. All users updated.
10490 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10491 wrapping offset.
10492 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10493
607d282b
VS
104942012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 Fix long symlinks on reiserfs.
10497
10498 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10499 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10500 (grub_reiserfs_iterate_dir): Save size for non-directories.
10501 (grub_reiserfs_open): Don't reread stat block as we already know the
10502 size.
10503 (grub_reiserfs_read): Split into...
10504 (grub_reiserfs_read_real): ... and ...
10505 (grub_reiserfs_read): ...this.
10506
ae16024d
VS
105072012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10508
10509 Fix non-indexed JFS.
10510
10511 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10512 (grub_jfs_data): New field namecomponentlen.
10513 (grub_jfs_mount): Fill namecomponentlen.
10514 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10515
eea1e26e
VS
105162012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10517
10518 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10519 * tests/grub_script_echo1.in: Add tests.
10520
df760f77
VS
105212012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * util/grub-install.in: Ignore empty devicetree directory.
10524
5efb817d
B
105252012-05-08 Bean <bean123ch@gmail.com>
10526
10527 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10528 All users updated.
10529 (free_rsm): Free header as well.
10530 (free_old_fragments): Fix memory leak.
10531 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10532 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10533 (destroy_pq): Likewise.
10534 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10535
668ea6d2
VS
105362012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10539 resulting hash as a precaution.
10540
1739b1fe
VS
105412012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10544 '_' in variable names.
10545 * grub-core/net/net.c (grub_net_network_level_interface_register):
10546 Likewise.
10547
6ae485aa
VS
105482012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10549
10550 Fix AFFS with non-512B blocks.
10551
10552 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10553 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10554 (grub_affs_data): Replace blocksize with log_blocksize.
10555 (grub_affs_read_block): Fix non-512B blocks.
10556 (grub_affs_read_symlink): Likewise.
10557 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10558 (grub_affs_read): Fix non-512B blocks.
10559 (grub_affs_label): Likewise.
10560 (grub_affs_mtime): Likewise.
10561 (grub_affs_mount): Fix block detection routine.
10562
d20fab84
VS
105632012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10564
10565 Add filesystem mtime to AFFS.
10566
10567 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10568 (aftime2ctime): New function.
10569 (grub_affs_dir): Use aftime2ctime.
10570 (grub_affs_label): Fix return value.
10571 (grub_affs_mtime): New function.
10572 (grub_affs_fs): Add mtime.
10573
e87b10f5
VS
105742012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10577 UTF-8.
10578
7dceec9b
VS
105792012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10582 UTF-8.
10583
2f48221f
VS
105842012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10587
dacd85cf
VS
105882012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10589
10590 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10591 flags.
10592 (FLAGS_CASE_SENSITIVE): New enum value.
10593 (cache_entry): New struct.
10594 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10595 cache_size and cache.
10596 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10597 Add log_blocksize and fshelp_flags.
10598 (grub_sfs_read_extent): Handle non-512 blocks.
10599 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10600 (grub_sfs_read_file): Handle non-512 blocks.
10601 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10602 fshelp_flags.
10603 (grub_sfs_read_symlink): Handle non-512 blocks.
10604 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10605 (grub_sfs_dir): Free cache.
10606 (grub_sfs_close): Likewise.
10607
24e9a854
VS
106082012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10611 filesystems.
10612
62ace64d
VS
106132012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10616
83b2e89c
VS
106172012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10620
75ccaea3
VS
106212012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10624 (grub_sfs_read_extent): Likewise.
10625 (grub_sfs_read_block): Likewise.
10626 (grub_sfs_mount): Likewise.
10627 (grub_sfs_iterate_dir): Likewise.
10628 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10629 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10630
1b8463f2
VS
106312012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10632
10633 Fix errors on compressed NTFS with 512B clusters.
10634
10635 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10636 types.
10637 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10638 not 0.
10639 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10640 Relax check for inline extents.
10641 (ntfscomp): Return correct -1 on error and not 0.
10642
4f8e368f
VS
106432012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * util/grub-install.in: Fix handling of prefix containing spaces.
10646
6f5d5ee8
VS
106472012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10648
10649 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10650 (grub_squash_read_data): Fix offset byte-swapping.
10651
ce41ab7a
VS
106522012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10653
10654 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10655 per common usage and preffered in several parts of code.
10656 (grub_memcmp): Likewise.
10657 (grub_strncmp): Likewise.
10658 * include/grub/misc.h (grub_strcasecmp): Likewise.
10659 (grub_strncasecmp): Likewise.
10660 * Makefile.util.def (cmp_test): New test.
10661 (grub_script_strcmp): Likewise.
10662 * tests/cmp_unit_test.c: New file.
10663 * tests/grub_script_strcmp.in: Likewise.
10664 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10665
49717bf4
VS
106662012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * include/grub/pci.h: Move enums into no-asm part.
10669
0a308f64
VS
106702012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10673
1796965f
ST
106742012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10675
10676 * util/getroot.c (find_hurd_root_device): Try to make error message
10677 and comments to translators clearer.
10678
4e9b2819
VS
106792012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10682
076aeb50
VS
106832012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10686 btrfs.
10687
19424d94
VS
106882012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * docs/grub.cfg: Update.
10691
ebb73076
VS
106922012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * docs/grub.texi (PXE): Remove not present variables.
10695
9a1b669c
VS
106962012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 * grub-core/net/net.c (defserver_set_env): New function.
10699 (defserver_get_env): Likewise.
10700 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10701
d38bf7d3
VS
107022012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10703
10704 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10705 entries.
10706
107072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
10708
10709 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10710 * grub-core/kern/emu/hostdisk.c: Likewise.
10711
e5e4ca48
ST
107122012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10713
10714 Handle hurd userspace partitions.
10715
10716 * util/getroot.c (find_hurd_root_device): New function.
10717 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10718
56bb5dd5
VS
107192012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10720
10721 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10722 names.
10723 Reported by: Bastian Blank.
10724
9e8bc27a
VS
107252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10728 crossing page boundary.
10729
aa01499d
VS
107302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 Fix B-tree search in BFS, especially in presence of non-ASCII
10733 characters.
10734
10735 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10736 (find_in_b_tree): Use standard bsearch + btree algorithm.
10737
57006035
VS
107382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10741 and so on.
10742
9d34bb85
MG
107432012-05-03 Matthew Garrett <mjg@redhat.com>
107442012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10745
10746 Suspend broadcom cards in order to stop their DMA.
10747
10748 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10749 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10750 (pci): Don't build on x86 EFI.
10751 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10752 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10753 New function.
10754 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10755 stop_broadcom if running on EFI.
10756 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10757 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10758 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10759 (grub_pci_find_capability): New proto.
10760
01aab997
VS
107612012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * docs/grub.texi: Remove dot from the extension as it apparently
10764 doesn't work with some makeinfo versions.
10765
fbd8dca6
VS
107662012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10769 with GRUB expectance.
10770
dab797f4
VS
107712012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10774
1516bfb4
VS
107752012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10778 zero after directory block since last entry may be not 0-terminated if
10779 it ends on block boundary. Use continue instead of if spanning whole
10780 loop.
10781
a3a0eace
VS
107822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10783
10784 Support 4K sectors UDF inline files.
10785
10786 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10787 (grub_udf_extended_file_entry): Likewise.
10788 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10789 All users updated.
10790 (get_fshelp_size): New function.
10791 (grub_udf_read_icb): Read whole block.
10792 (grub_udf_iterate_dir): Likewise.
10793 (grub_udf_dir): Likewise.
10794 (grub_udf_open): Likewise.
10795
c82f16c1
VS
107962012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10799
59fd2aac
VS
108002012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10803 inline symlinks in addition to workaround.
10804
3b4afb4d
VS
108052012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10808
f45c794a
VS
108092012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10812
f25cecbd
VS
108132012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10816
bb9a34e8
VS
108172012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 Fix reiserfs big seek times.
10820
10821 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10822 exact. All users updated.
10823 (grub_reiserfs_read): Use nearest btree search for seeking.
10824 Fix return value on error.
10825
dc478aea
VS
108262012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10829 entries.
10830 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10831 * docs/grub.texi: Update menuentry description.
10832
8db10f47
VS
108332012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10834
10835 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10836 crash when embedding onto filesystem.
10837
bcb288ed
VS
108382012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10841 name.
10842
a626fdd7
VS
108432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10846
b2f68477
VS
108472012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10850 commit.
10851
ba15b2af
B
108522012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
108532012-05-01 Bean <bean123ch@gmail.com>
10854
10855 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10856
a188012e
VS
108572012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10860 Special behaviour for len = 0 to read whole file isn't used anywhere and
10861 can cause buffer ovewrflows in several places.
10862
f0a53ed2
VS
108632012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10864
10865 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10866
5ed554f0
VS
108672012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 Handle RAIDZ on non-512B sectors.
10870
10871 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10872 max_children_ashift.
10873 (fill_vdev_info_real): Fill max_children_ashift.
10874 (read_device): Use max_children_ashift.
10875
ddc58357
VS
108762012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10879
e3282399
VS
108802012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10883 disk names.
10884 * docs/grub.texi: Update device.map parts.
10885
ee618bd4
VS
108862012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 Don't scan into non-diskfilter devices having diskfilter names.
10889
10890 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10891 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10892 handling.
10893 (scan_disk_hook): New function.
10894
bdf88864
B
108952012-04-29 Bean <bean123ch@gmail.com>
10896
10897 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10898 allocation.
10899
32745f51
MK
109002012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10901
10902 * configure.ac: Detect starfield theme font path
10903 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10904
bc95c8c0
VS
109052012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10908 geometry on serial consoles.
10909
147fbcab
VS
109102012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10913 because of network consoles.
10914
0f42c889
VS
109152012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10916
10917 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10918 handling.
10919
4a3594c9
VS
109202012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10921
10922 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10923 falls on Q syndrom.
10924
5cb53879
VS
109252012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10928 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10929
b282dfe5
VS
109302012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10931
10932 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10933 Allocate at lest 8192 for temporary buffer as required for lzo.
10934
daa59f47
VS
109352012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10936
10937 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10938 to cluster_bits, since it's already added in.
10939 (grub_fat_read_data): Likewise.
10940
986748ce
VS
109412012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10944 as long as cluster size is multiple of 512 bytes.
10945
a20f6ad0
VS
109462012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * util/grub-mkrescue.in: Fix locale directory.
10949
385f9abb
VS
109502012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10951
10952 * grub-core/kern/emu/hostdisk.c (map): Make static.
10953
1c557d30
B
109542012-04-23 Bean <bean123ch@gmail.com>
10955
10956 * util/grub-fstest.c (fstest): Add missing break.
10957
524b5d3a
ST
109582012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10959
10960 Fix hurd build.
10961
10962 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10963 not define nr variable.
fe4824e9 10964 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10965 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10966 grub_find_device): Do not define.
524b5d3a 10967
9a06490c
VS
109682012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 Fix kfreebsd compile and behaviour.
10971
10972 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10973 format-security.
10974 * util/getroot.c: Fix wait.h include.
10975 (grub_guess_root_devices): Error if grub_find_device fails.
10976 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10977 (grub_util_get_dev_abstraction): Likewise.
10978 (grub_util_pull_device): Likewise.
10979 (grub_util_get_grub_dev): Likewise.
10980 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10981
48143d96
VS
109822012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10983
10984 Fix and unify wholedisk detection.
10985
10986 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10987 is_part. All users updated.
10988 (device_is_wholedisk): Removed.
10989 (grub_util_biosdisk_get_grub_dev): Use is_part.
10990
ebbd24f3
VS
109912012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10994 mode.
10995
56f7aa1e
VS
109962012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10997
10998 * configure.ac: Bump to beta4.
10999
9c815e01
VS
110002012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11001
11002 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
11003 --fs-uuid --set UUID syntax.
11004
59e2651a
VS
110052012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11008 disunification.
11009
54e03cfc
VS
110102012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11013
81092a75
MK
110142012-04-18 Mads Kiilerich <mads@kiilerich.com>
11015
11016 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11017
f8315e14
MG
110182012-04-18 Mike Gilbert <floppym@gentoo.org>
11019
11020 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11021
1501ac21
B
110222012-04-18 Bean <bean123ch@gmail.com>
11023
11024 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11025 place.
11026
cb7f944e
VS
110272012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11028
11029 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11030 users updated.
11031 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11032 corresponding to GRUB partitions.
11033 (grub_util_biosdisk_write): Likewise.
11034
b72d44a1
VS
110352012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11036
11037 Scan mdraid before LVM.
11038
11039 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11040 (grub_diskfilter_register_front): ... this.
11041 (grub_diskfilter_register_back): New function.
11042 All users of grub_diskfilter_register updated.
11043
33d918b8
VS
110442012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 * util/grub-install.in: Fix an automatic target detection bug.
11047
c6ca973d
VS
110482012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 * util/grub-install.in: New option --efi-directory.
11051
b41be562
VS
110522012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11053
11054 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11055 boot services if we have no other choice.
11056
110572012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11058
11059 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11060 document it.
11061 * tests/util/grub-shell.in: Update to --directory.
11062
e0595a73
VS
110632012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11066
4ed80652
VS
110672012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11070 (grub_minix_read_file): Likewise.
11071 (grub_minix_read_inode): Likewise.
11072 (grub_minix_find_file): Likewise.
11073 (grub_minix_dir): Likewise.
11074
56008077
VS
110752012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * util/grub-setup.c (setup): Fix partition handling and blocklist
11078 check.
11079
ee520775
VS
110802012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11083 redundant buggy overlap check.
11084
16fc9293
VS
110852012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11088 and grub-mknetdir.
11089
9bab65c4
VS
110902012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11093 kh.loadflags on pre-2.00 kernels.
11094
3c491b47
VS
110952012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11096
11097 Terminate UNDI and PXE before launching the payload to avoid problems
11098 with DMA.
11099
11100 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11101 (grub_loader_flags): ... this. All users updated.
11102 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11103 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11104 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11105 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11106 function.
11107 (grub_pxe_restore): Likewise.
11108 (fini_hnd): New var.
11109 (GRUB_MOD_INIT): Register shutdown hook.
11110 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11111 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11112 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11113 (grub_loader_set): Rename second argument to flags.
11114
851ffada
VS
111152012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11116
11117 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11118 written bytes.
11119 (grub_get_num_of_utf8_bytes): New function.
11120 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11121 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11122 executing it.
11123 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11124 (grub_ucs4_to_utf8): Change return type.
11125
491c57a8
VS
111262012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11129 warning.
851ffada
VS
11130 * grub-core/fs/bfs.c (hop_level): Likewise.
11131 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 11132
756773df
VS
111332012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * grub-core/lib/adler32.c: Recode due to license unclearness.
11136
fd556a96
VS
111372012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11140 (test_header): Likewise.
11141
9f9d3f69
VS
111422012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 Fix --help formatting.
11145
11146 * util/grub-mkconfig_lib.in (print_option_help): New function.
11147 (grub_fmt): Likewise.
11148 * util/grub-install.in: Use print_option_help and grub_fmt.
11149 * util/grub-kbdcomp.in: Likewise.
11150 * util/grub-mkconfig.in: Likewise.
11151 * util/grub-mknetdir.in: Likewise.
11152 * util/grub-mkrescue.in: Likewise.
11153 * util/grub-mkstandalone.in: Likewise.
11154 * util/grub-reboot.in: Likewise.
11155 * util/grub-set-default.in: Likewise.
11156 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11157
561ec77e
VS
111582012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * linguas.sh: Remove autogenerated *.po.
11161
7ec2b021
VS
111622012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11163
11164 * po/README: Move language fetcing to ...
11165 * linguas.sh: ... here.
11166 * po/README: Point to linguas.sh.
11167
a88f3270
VS
111682012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * po/README: Exclude ko.po due to disclaimer problems.
11171
d61357ce
VS
111722012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11173
11174 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11175 len = 0.
11176 (grub_gettext_translate_real): Handle 0th string.
11177 (grub_gettext_translate): Ensure that "" isn't translated.
11178
505e41dc
VS
111792012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11180
11181 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11182 TRANSLATORS comment.
11183 (grub_diskfilter_print_partmap): Propagate changing of error into
11184 warning.
11185
e44092db
VS
111862012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11187
11188 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11189 to uint64_t to prevent overflow.
11190 (grub_diskfilter_lv): Increase start_extent and extent_count
11191 to uint64_t to prevent overflow.
11192
9b83956a
VS
111932012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11194
11195 * configure.ac: Increase version.
11196
da0d5b3f
VS
111972012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11198
11199 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11200
11201 * po/Rules-translit: New file.
11202 * po/arabic.sed: Likewise.
11203 * po/cyrillic.sed: Likewise.
11204 * po/greek.sed: Likewise.
11205 * po/hebrew.sed: Likewise.
11206 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11207 * po/Makefile.in.in: Add extra_dist4.
11208
ac66b453
VS
112092012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11212
11213 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11214 modify names. Introduce MODE_BIGENDIAN.
11215 * grub-core/fs/minix_be.c: New file.
11216 * grub-core/fs/minix2_be.c: Likewise
11217 * grub-core/fs/minix3_be.c: Likewise.
11218 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11219 minix3_be.
11220 * grub-core/Makefile.core.def (minix_be): New module.
11221 (minix2_be): Likewise.
11222 (minix3_be): Likewise.
11223
112242012-04-01 Felix <email@hamburg.de>
11225
11226 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11227 (devs): Add MBP 2011.
11228
0a2d5a82
VS
112292012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11232
d1625889
VS
112332012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 * grub-core/normal/cmdline.c (print_completion): New field
11236 prompt_len.
11237 (grub_cmdline_get): Handle width properly.
11238
6d36a236
VS
112392012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11240
11241 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11242
9576977e
VS
112432012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11244
11245 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 11246 after 29th of February.
9576977e 11247
d73ff15d
VS
112482012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 Fix exfat endianness handling.
11251
11252 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11253 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11254 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11255 Byte-swap utf16 when necessary.
11256 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11257
bbb39a45
AB
112582012-03-31 Anton Blanchard <anton@samba.org>
112592012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11260
11261 Fix btrfs endianness handling.
11262
11263 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11264 (lower_bound): Make root uint64_t. Use root in le.
11265 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11266 (find_path): Fix template key init.
11267 (grub_btrfs_dir): Fix mtime byteswap.
11268 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11269
354e0af7
VS
112702012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11271
11272 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11273 recursion_depth. Break infinite resursions. All users updated.
11274
4e75f21c
VS
112752012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11276
11277 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11278 after free.
11279 Reported by: Peter Jones.
11280
25581802
AB
112812012-03-31 Anton Blanchard <anton@samba.org>
11282
11283 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11284 8 bit values.
11285
08fbf92e
VS
112862012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11287
11288 * util/grub-install.in: Fix nvram call for PreP.
11289
5d1182a6
VS
112902012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11293 the error when some elements are missing into a warning.
11294
3f8cdd90
VS
112952012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11298
51006716
CW
112992012-03-28 Colin Watson <cjwatson@ubuntu.com>
11300
11301 * docs/grub.texi (Invoking grub-probe): New section.
11302 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11303
e1bd676b
VS
113042012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 Fix tab and wide character handling in editor and menu.
11307
11308 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11309 agglomerate control characters with combining marks.
11310 (bidi_line_wrap): Allow break on tab.
11311 (grub_unicode_get_comb_start): New function.
11312 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11313 and tab correctly.
11314 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11315 with a space.
11316 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11317 fixed_tab_size. All users updated.
11318 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11319 (grub_term_getcharwidth): Handle \t.
11320 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11321 and copy.
11322
22e6a774
VS
113232012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 Handle big-endian mdraid.
11326
11327 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11328 * grub-core/Makefile.core.def (mdraid09_be): New module.
11329 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11330 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11331 * grub-core/disk/mdraid_linux_be.c: New file.
11332
3c0eae66
VS
113332012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11336
b6cf74c9
VS
113372012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11338
11339 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11340 missing quotes which caused confusion among translators.
11341
83c93b9c
VS
113422012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * util/grub-mkconfig_lib.in: Fix typo.
11345
ac6fd218
VS
113462012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11347
11348 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11349 spaces.
11350 * tests/grub_script_leading_whitespace.in: New file.
11351 * Makefile.util.def (grub_script_leading_whitespace): New test.
11352
ba287dd8
VS
113532012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11356 to work.
11357
d2d58d0a
VS
113582012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11361 starts with control character.
11362
0382d9bb
VS
113632012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11366 overflow.
11367 (grub_gdb_outbuf): Likewise.
11368
d83ff9f9
VS
113692012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11372 zero terminator. Fixes a crash.
11373
2282da4a
VS
113742012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11375
11376 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11377 beyond 4 GiB.
11378 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11379 images independently of preffered adderss field.
11380
0ae4f0bd
VS
113812012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11384 * grub-core/commands/regexp.c: Likewise.
11385 * grub-core/loader/i386/linux.c: Likewise.
11386 * grub-core/partmap/msdos.c: Likewise.
11387 * grub-core/script/execute.c: Likewise.
11388 * grub-core/term/gfxterm.c: Likewise.
11389
546fbe9b
VS
113902012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 Add variable parsing in $"..." and fix several mismatches with bash.
11393
11394 * Makefile.util.def (grub_script_gettext): New test.
11395 * grub-core/script/execute.c (parse_string): New function.
11396 (gettext_append): Likewise.
11397 (grub_script_arglist_to_argv): Use gettext_append.
11398 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11399 * tests/grub_script_gettext.in: New file.
11400
9fdb2d7b
VS
114012012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 Fix handling of leading spaces in scripts.
11404
11405 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11406 spaces.
11407 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11408 other than skipping \r. All users updated.
11409 * tests/grub_script_echo1.in: Add space-related tests.
11410 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11411
1a1ac4f6
VS
114122012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11415
b63d89b6
VS
114162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 * configure.ac: Bump up the version to beta2.
11419
17f38c0f
VS
114202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 Fix gettext reload bugs (e.g. inability to disable gettext
11423 once enabled).
11424
11425 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11426 main_context and secondary_context. All functions updated.
11427 (grub_gettext_translate): Rename to ...
11428 (grub_gettext_translate_real): ... this. Return NULL on failed
11429 translate.
11430 (grub_gettext_translate): Handle secondary context.
11431 (grub_gettext_delete_list): Close file and zero-out the context.
11432 (grub_mofile_open): Don't call grub_gettext_delete_list.
11433 Don't close file.
11434 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11435 if locale="" to avoid pointless error message.
11436 (grub_gettext_env_write_lang): Update lang even if load fails.
11437 Handle secondary context.
11438 (grub_gettext_reread_prefix): New function.
11439 (read_main): Likewise.
11440 (read_secondary): Likewise.
11441 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11442 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11443 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11444 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11445
8e56f870
VS
114462012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * configure.ac: Decrease warning level to avoid spurious warnings and
11449 to be able to compile with GCC 4.2.
11450 * Makefile.util.def: Remove -Wno-error=logical-op.
11451
82f6d455
WB
114522012-03-10 William Bittner <william.bittner@gmail.com>
11453
11454 * util/import_unicode.py: Add missing brackets around string for
11455 python 3 support.
11456
1ecd61a4
VS
114572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11458
11459 Fix efi chainloader on network root.
11460
11461 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11462 network devices.
11463 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11464 New function.
11465
14361ee8
VS
114662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11467
11468 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11469 unused show_text member.
11470 * docs/grub.texi: Document "text" property.
11471
922aabf3
VS
114722012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11475 in dprintf.
11476
ec316771
VS
114772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 Fix IMSM handling on Fedora.
11480
11481 * util/getroot.c (grub_util_is_imsm): New function.
11482 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11483
0f021838
VS
114842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * Makefile.am: Strip gold section.
11487 * conf/Makefile.common: Likewise.
11488 * gentpl.py: Likewise.
11489 * grub-core/Makefile.core.def: Likewise.
11490 * grub-core/genmod.sh.in: Likewise.
11491
1039c8eb
VS
114922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11493
11494 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11495 * util/grub.d/20_linux_xen.in: Likewise.
11496 Based on Debian patch.
11497
6dd412cd
VS
114982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * util/grub.d/10_linux.in: Fix syntax error resulting in
11501 Richard Laager's patch.
11502 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11503
3fd8bae5
VS
115042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11505
11506 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11507 dependencies.
11508
7eea1671
RL
115092012-03-10 Richard Laager <rlaager@wiktel.com>
11510
11511 * util/grub.d/10_linux.in: Fix ZFS root passing.
11512
e8e0566b
VS
115132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11516 * grub-core/commands/xnu_uuid.c: Likewise.
11517 * grub-core/loader/efi/appleloader.c: Likewise.
11518 * grub-core/script/execute.c: Likewise.
11519 * grub-core/script/main.c: Likewise.
11520 * util/grub-mkfont.c: Likewise.
11521
1acc5b1f
VS
115222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11523
11524 * util/grub-mkfont.c (options): Use more appropriate "select" that
11525 "set" for face index.
11526
35d70620
VS
115272012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * util/grub-editenv.c (options): Gettextize command summaries.
11530
c9eb96b5
VS
115312012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11534 "out of memory" error messagge.
11535
1f493136
VS
115362012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11537
11538 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11539 of diskfilter for diskfilter on diskfilter support.
11540
6d790129
VS
115412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11544
005f46c9
VS
115452012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11546
11547 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11548 themes/starfield.
11549
c8f778a0
VS
115502012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11553
de1e64eb
VS
115542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11557
c6d54211
VS
115582012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11561 of error message.
11562
dd390777
VS
115632012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11566
5fd1c522
VS
115672012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11570 message.
c6d54211 11571 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 11572
fae01f6c
VS
115732012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11576 Gettextize.
11577 * util/grub-mount.c (options): Likewise.
11578
292fdaff
VS
115792012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11582 gettextize.
11583 * grub-core/commands/search_wrap.c (options): Likewise.
11584
ecdbae77
VS
115852012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11588
52bfedfa
VS
115892012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11592 size calculation.
11593 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11594 none is known.
11595
55b20e58
VS
115962012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11599 "temporary" since it's used in identifier and is limited in space.
11600
fda9d101
VS
116012012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 * po/POTFILES.in: Regenerate. Include *.h since they contain
11604 translatable strings as well.
11605
6a0295e2
VS
116062012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11609 byte-swap on big-endian.
11610 Reported by: Lennart Sorensen
11611
807fb77c
VS
116122012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11613
11614 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11615 (allocate_pages): Improve dprintf.
11616 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11617 code32_start. Fill code32_start and kernel_alignment in params.
11618 (grub_cmd_initrd): Use prot_init_space.
11619
61ac50ba
VS
116202012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11621
11622 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11623
abdd26dd
VS
116242012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11625
11626 * util/grub-install.in: Add missing dot at the end of sentence.
11627
6e69da9c
VS
116282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11629
11630 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11631 * grub-core/commands/videotest.c: Likewise.
11632 * grub-core/loader/i386/linux.c: Likewise.
11633
4a929343
VS
116342012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11635
11636 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11637 sentence.
11638 Reported by: Milo Casagrande.
11639
bb51c6c6
VS
116402012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11641
11642 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11643 * grub-core/commands/gptsync.c: Likewise.
11644 * grub-core/commands/hashsum.c: Likewise.
11645 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11646 * grub-core/commands/legacycfg.c: Likewise.
11647 * grub-core/io/gzio.c: Likewise.
11648 * grub-core/net/net.c: Likewise.
11649 * grub-core/term/gfxterm.c: Likewise.
11650 * grub-core/term/terminfo.c: Likewise.
11651 * grub-core/tests/test_blockarg.c: Likewise.
11652 * grub-core/video/video.c: Likewise.
11653 * util/grub-install.in: Likewise.
11654 * util/grub-mkfont.c: Likewise.
11655
b2b149cb
VS
116562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11659
c7c080ad
VS
116602012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 11663 Reported by: David Prévot.
c7c080ad 11664
f2e243c0
VS
116652012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11668 description.
11669
09963c76
VS
116702012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11671
11672 * util/grub-script-check.c (main): Fix a syntax error message which was
11673 unclear.
11674
a50514a8
VS
116752012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11678
4650daec
VS
116792012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11680
11681 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11682 messages.
11683
116842012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
11685
11686 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11687 without argument.
11688 * util/grub-mount.c (options): Likewise.
11689
bbc5a342
VS
116902012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11693
ef292a87
VS
116942012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11695
11696 * grub-core/net/http.c: Add TRANSLATORS comments.
11697 * grub-core/normal/cmdline.c: Likewise.
11698 * grub-core/normal/misc.c: Likewise.
11699 * grub-core/partmap/msdos.c: Likewise.
11700 * grub-core/parttool/msdospart.c: Likewise.
11701 * grub-core/script/execute.c: Likewise.
11702 * grub-core/script/main.c: Likewise.
11703 * grub-core/term/terminfo.c: Likewise.
11704 * grub-core/video/bitmap.c: Likewise.
11705 * util/grub-install.in: Likewise.
11706 * util/grub-mkimage.c: Likewise.
11707 * util/grub-mklayout.c: Likewise.
11708 * util/grub-setup.c: Likewise.
11709
0fc19bd0
VS
117102012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11713 with similar messages in grub-fstest.
11714
d95862ef
VS
117152012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11716
11717 * util/grub-install.in: Unify "option requires an argument" message
11718 with similar messages in other files.
11719 * util/grub-mkconfig.in: Likewise.
11720
b7308f90
VS
117212012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11722
11723 * util/grub-set-default.in: Replace printf with gettext_printf (the
11724 string in in question is already translated from grub-reboot)
11725
559dc587
VS
117262012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 * configure.ac: Bump up the version to beta1.
11729
1a11761f
VS
117302012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11733 case when min_align = 0.
11734
24539abd
VS
117352012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11736
11737 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11738 and fix a case when line_start overflows.
11739
32bd735b
VS
117402012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11741
11742 * util/grub-reboot.in (usage): Mention id posibility.
11743 * util/grub-set-default.in (usage): Likewise.
11744
1a2fd1e6
VS
117452012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11748 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11749 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11750 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11751 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11752 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11753 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11754
90eeab76
VS
117552012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11756
11757 * grub-core/commands/menuentry.c (options): Remove
11758 GRUB_ARG_OPTION_REPEATABLE.
11759 Reported by: Andreas Vogel
11760
5ad1be82
AV
117612012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11762
11763 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11764
cb055286
HE
117652012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11766
11767 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11768 error.
11769
93b1cd79
VS
117702012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 Use sort -V by the idea of Georgi Georgiev.
11773
11774 * util/grub-mkconfig_lib.in (version_sort): New function.
11775 (version_test_numeric): Use version_sort.
11776
0cdc126c
VS
117772012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11778
11779 Use submenus in grub-mkconfig.
11780
11781 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11782 * util/grub-mkconfig_lib.in (grub_quote): New function.
11783 (gettext_printf): Use gettext and not gettext_quoted to fix several
11784 messages.
11785 * util/grub.d/10_hurd.in: Use submenus.
11786 * util/grub.d/10_kfreebsd.in: Likewise.
11787 * util/grub.d/10_linux.in: Likewise.
11788 * util/grub.d/10_netbsd.in: Likewise.
11789 * util/grub.d/20_linux_xen.in: Likewise.
11790 * util/grub.d/30_os-prober.in: Likewise.
11791 * util/grub.d/10_illumos.in: Add missing quoting.
11792 * util/grub.d/10_windows.in: Likewise.
11793
d9bef9bc
VS
117942012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11795
11796 Fix menu title instability bug.
11797
11798 * grub-core/commands/menuentry.c (options): New option --id.
11799 (grub_normal_add_menu_entry): New argument id. All users updated.
11800 (grub_cmd_menuentry): Handle --id.
11801 (grub_menu_init): Accept unknown arguments.
11802 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11803 feature_menuentry_options.
11804 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11805 saved_entry.
11806 (get_entry_number): Match with id as well.
11807 * include/grub/menu.h (grub_menu_entry): New member id.
11808 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11809 * util/grub.d/00_header.in: Define menuentry_id_option.
11810 * util/grub.d/10_hurd.in: Define id.
11811 * util/grub.d/10_illumos.in: Likewise.
11812 * util/grub.d/10_kfreebsd.in: Likewise.
11813 * util/grub.d/10_linux.in: Likewise.
11814 * util/grub.d/10_netbsd.in: Likewise.
11815 * util/grub.d/10_windows.in: Likewise.
11816 * util/grub.d/20_linux_xen.in: Likewise.
11817 * util/grub.d/30_os-prober.in: Likewise.
11818
118192012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
11820
11821 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11822 "scope" with "body".
11823
7c8d0ce7
VS
118242012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11827 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11828 prot_size and prot_file_size.
11829
49de079b
VS
118302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11833 All users updated. If easily=1 require raid-5/-6 to be full.
11834 (is_node_readable): Likewise.
11835 (scan_devices): Scan incomplete but readable LVs at the end.
11836 (grub_diskfilter_memberlist): Pull missing devices.
11837 (insert_array): Skip scanning until device is complete or scan is
11838 done otherwise.
11839 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11840 check.
11841 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11842 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11843
aff05d45
MG
118442012-03-03 Matthew Garrett <mjg@redhat.com>
118452012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 Avoid EFI boot services when loading Linux.
11848
11849 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11850 avoid_efi_bootservices. All users updated.
11851 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11852 argument avoid_efi_bootservices. All users updated.
11853 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11854 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11855 align, min_align, relocatable, prefered_address. All users updated.
11856 Allocate avoiding boot services if kernel is relocatable.
11857 (grub_cmd_linux): Check if kernel is relocatable.
11858 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11859 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11860 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11861 avoid_efi_boot_services.
11862 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11863 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11864 (linux_kernel_params): Likewise.
11865
3935dde2
MG
118662012-03-03 Matthew Garrett <mjg@redhat.com>
118672012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 Use EDID on EFI.
11870
11871 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11872 datasize_out.
11873 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11874 modes. Set gop_handle.
11875 (grub_video_gop_get_edid): New function.
11876 (grub_gop_get_preferred_mode): Likewise.
11877 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11878 (grub_video_efi_gop_adapter): Set .get_edid.
11879 * include/grub/efi/edid.h: New file.
11880 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11881
32107ec0
VS
118822012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 * util/grub-install.in: Load efivars unconditionally.
11885
e70a2c50
VS
118862012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * po/Rules-piglatin: Change suffix from .po-update-en to
11889 .po-update-en-piglatin.
11890
8f9cace1
VS
118912012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11892
11893 Add a pig farm.
11894
11895 * po/piglatin.sed: New file.
11896 * po/en@piglatin.header: Likewise.
11897 * po/Rules-piglatin: Likewise.
11898 * po/README: Add en@piglatin to autogenerated languages.
11899
8f95d002
VS
119002012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11901
11902 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11903 "Command for ...".
11904 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11905 "Check" since we don't check anything.
11906 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11907 is 64-bit one.
11908 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11909 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11910 (grub_md_sha512_real): Likewise.
11911
805a8dcc
VS
119122012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * grub-core/commands/gptsync.c: Fix typographic quoting.
11915 * grub-core/commands/ieee1275/suspend.c: Likewise.
11916 * grub-core/commands/parttool.c: Likewise.
11917 * grub-core/commands/search_wrap.c: Likewise.
11918 * grub-core/commands/videoinfo.c: Likewise.
11919 * grub-core/gfxmenu/gui_label.c: Likewise.
11920 * grub-core/hello/hello.c: Likewise.
11921 * grub-core/kern/emu/main.c: Likewise.
11922 * grub-core/net/net.c: Likewise.
11923 * grub-core/normal/menu.c: Likewise.
11924 * grub-core/normal/menu_text.c: Likewise.
11925 * grub-core/normal/misc.c: Likewise.
11926 * util/grub-editenv.c: Likewise.
11927 * util/grub-install.in: Likewise.
11928 * util/grub-kbdcomp.in: Likewise.
11929 * util/grub-mkconfig.in: Likewise.
11930 * util/grub-mknetdir.in: Likewise.
11931 * util/grub-mkrescue.in: Likewise.
11932 * util/grub-mkstandalone.in: Likewise.
11933 * util/grub-reboot.in: Likewise.
11934 * util/grub-set-default.in: Likewise.
11935 * util/grub-setup.c: Likewise.
11936 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11937
40211ab8
VS
119382012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11941 * grub-core/commands/keystatus.c: Likewise.
11942 * grub-core/commands/loadenv.c: Likewise.
11943 * grub-core/commands/probe.c: Likewise.
11944 * grub-core/commands/regexp.c: Likewise.
11945 * grub-core/commands/true.c: Likewise.
11946 * grub-core/commands/videoinfo.c: Likewise.
11947 * grub-core/disk/cryptodisk.c: Likewise.
11948 * grub-core/disk/ldm.c: Likewise.
11949 * grub-core/disk/loopback.c: Likewise.
11950 * grub-core/disk/luks.c: Likewise.
11951 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11952 * grub-core/kern/disk.c: Likewise.
11953 * grub-core/kern/emu/hostdisk.c: Likewise.
11954
0c7d99c7
VS
119552012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11956
11957 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11958 * util/grub-install.in: Add missing quote in the comment.
11959
e7d2559b
VS
119602012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11963 * grub-core/commands/lsmmap.c: Likewise.
11964 * grub-core/commands/minicmd.c: Likewise.
11965 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11966 * grub-core/commands/regexp.c: Likewise.
11967 * grub-core/gdb/gdb.c: Likewise.
11968 * grub-core/term/gfxterm.c: Likewise.
11969 * util/grub-mkconfig.in: Likewise.
11970 * util/grub-mkfont.c: Likewise.
11971 * util/grub-mklayout.c: Likewise.
11972 * util/grub-mknetdir.in: Likewise.
11973 * util/grub-mkrescue.in: Likewise.
11974 * util/grub.d/30_os-prober.in: Likewise.
11975
49ce9e50
VS
119762012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11977
11978 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11979 with "Direct color" and "Packed" with "Packed pixel".
11980 (grub_cmd_videoinfo): Simplify legend.
11981
e4b791fa
VS
119822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11983
11984 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11985 absolutely unclear error message.
11986
fd1265cb
VS
119872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * util/grub-mkstandalone.in: Remove confusing leftover print.
11990
8822a8a0
VS
119912012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11992
11993 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11994 comments.
11995 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11996 (GRUB_MOD_INIT): Likewise.
11997 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11998 VGA mode.
11999 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
12000 comments.
12001 * util/grub-install.in (usage): Likewise.
12002 Spell ID in whole letters.
12003 Add missing ending dot.
12004 Quote variables.
12005 * util/grub-reboot.in: Fix capitalisation.
12006 * util/grub-set-default.in: Likewise.
12007
937fd0cc
VS
120082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12009
12010 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12011 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12012 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12013 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12014 Disable -Werror for -Wdeprecated-declarations.
12015 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12016 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12017 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12018 (grub_util_get_grub_dev): Make luks handling dependent on
12019 HAVE_DEVICE_MAPPER and not __linux__.
12020 (get_win32_path): Fix format security.
12021 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12022 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12023 Don't try grub_find_zpool_from_dir.
12024 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12025 #ifdef-out paresdir.
12026
1bab1ae3
VS
120272012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 * util/grub-pe2elf.c (usage): Add missing noreturn.
12030 (write_section_data): Rename name to shname to avoid shadowing.
12031 (write_symbol_table): Rename name to symname to avoid shadowing.
12032 Fix write_reloc_section call.
12033
ef023e42
VS
120342012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12037 to ensure that it's after the last byte of .text.
12038
48afcb75
VS
120392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12040
12041 * util/ieee1275/ofpath.c (my_isdigit): New function.
12042 (trailing_digits): Use my_isdigit.
12043 (strip_trailing_digits): Likewise.
12044
88d51eff
VS
120452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12048 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12049
17edc2ba
VS
120502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * grub-core/kern/i386/pc/startup.S: Define __start.
12053
ad5518d7
VS
120542012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12055
12056 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12057 strip already transforms he format.
12058
9e95e1bf
VS
120592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12062
9cc3ee5c
VS
120632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * util/grub-install.in: Add missing gettext init.
12066 * util/grub-kbdcomp.in: Likewise.
12067 * util/grub-mkconfig.in: Likewise.
12068 * util/grub-mknetdir.in: Likewise.
12069 * util/grub-mkrescue.in: Likewise.
12070 * util/grub-mkstandalone.in: Likewise.
12071 * util/grub-reboot.in: Likewise.
12072 * util/grub-set-default.in: Likewise.
12073 * util/grub.d/00_header.in: Likewise.
12074 * util/grub.d/10_hurd.in: Likewise.
12075 * util/grub.d/10_windows.in: Likewise.
12076 * util/grub.d/30_os-prober.in: Likewise.
12077 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12078
49e08a06
VS
120792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * po/Rules-swiss: Fix header comment.
12082
3809cb41
AV
120832012-02-29 Andreas Vogel <anvoit>
12084
12085 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12086 resulted in leak of arguments.
12087
fa6ec573
VS
120882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12091 reed_solomon_size const definition instead of computing it since
12092 Apple assembler doesn't support the later.
12093
22899b9c
VS
120942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * gentpl.py (kernel): Rewrite Apple part.
12097
a132afc3
VS
120982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12101
9d742bd4
VS
121022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12103
12104 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12105 ELF section gap.
12106 (load_image): Likewise.
12107
f04a9a21
VS
121082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 * configure.ac: Fix a typo in previous commit.
12111
46cf439c
VS
121122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12113
12114 Don't add -Wl,-N on Apple platform.
12115
12116 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12117 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12118
c4c48c54
VS
121192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * grub-core/Makefile.core.def (lzma_decompress): Use
12122 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12123
31a12124
VS
121242012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * grub-core/genmod.sh.in: Rewrite the Apple part.
12127
4f3aa1af
VS
121282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12131 comparison.
12132
7bd8b0c7
VS
121332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 * acinclude.m4 (grub_CHECK_PIC): New test.
12136 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12137
97304d7c
VS
121382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12139
12140 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12141 to avoid the warning.
12142
fb883812
VS
121432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12144
12145 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12146 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12147 after. All users updated.
12148
a121c964
VS
121492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 Use the common size routine in hostfs so we can read disks as well.
12152
12153 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12154 (grub_util_get_fd_size): ... this. Return size in bytes.
12155 All users updated.
12156 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12157 grub_util_get_fd_size.
12158
c66d6410
VS
121592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12162 Add blocksize retrieval.
12163
dfc8aeb0
VS
121642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 * configure.ac: Restore CFLAGS after efiemu check.
12167
403e25a5
VS
121682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12169
12170 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12171 Apple bug.
12172
382775d1
VS
121732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12176
6fd4e6e4
VS
121772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12180 (grub_cmd_halt): Likewise.
12181
bea359d6
VS
121822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12185 for local arithmetics.
12186 Break %sp init into 2 instructions.
12187 Add 0 byte at the end.
12188
32eb6ee1
VS
121892012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12190
12191 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12192 before loops.
12193
e8377389
VS
121942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12195
12196 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12197 for context.
12198
8cb17de7
VS
121992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * grub-core/disk/ldm.c (make_vg): Init part.name.
12202 (grub_ldm_detect): Silence spurious warning.
12203 (grub_util_is_ldm): Likewise.
12204
595717e6
VS
122052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12208 sane value to avoid a spurious warning.
12209
c4b7e588
VS
122102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12213 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12214
59824957
VS
122152012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12216
12217 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12218 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12219
70115b99
VS
122202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12223 hardcoding the relevant info.
12224
56733740
VS
122252012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12226
12227 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12228 missing const qualifiers.
12229 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12230
43481481
VS
122312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12232
12233 * util/getroot.c [__APPLE__]: Add missing includes.
12234 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12235
3cb38f01
VS
122362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12239
d9dbf11e
VS
122402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12243 avoid conflicts.
12244
0c42a45d
VS
122452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12246
12247 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12248
46c34eb0
VS
122492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12252 and grub_file_close call.
12253
99ce1597
VS
122542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 Add LZSS Mach-O support (needed for new xnu kernelcache).
12257
12258 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12259 * grub-core/loader/lzss.c: New file.
12260 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12261 on Mach-O open failure.
12262 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12263 Don't free cmdsXX in uncompressedXX is set.
12264 (grub_macho_file): Init new fields.
12265 New argument is_64bit. All users updated.
12266 Handle compressed. Error out if no suitable architecture is found.
12267 Don't close file.
12268 (grub_macho_open): New argument is_64bit. All users updated.
12269 * grub-core/loader/macho32.c: Add defines for new fields.
12270 * grub-core/loader/macho64.c: Likewise.
12271 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12272 (grub_macho_parse): Handle compressed.
12273 Defer actual processing if compressed.
12274 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12275 "filename". All users updated.
12276 (grub_macho_size): New argument "filename". All users updated.
12277 (grub_macho_get_entry_point): Likewise.
12278 (grub_macho_load): Handle compressed.
12279 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12280 (GRUB_MACHO_LZSS_OFFSET): New define.
12281 (grub_decompress_lzss): New proto.
12282 * include/grub/machoload.h (grub_macho_file): New fields to handle
12283 compressed.
12284 (grub_macho_contains_macho64): Remove proto.
12285 (grub_macho_contains_macho32): Likewise.
12286 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12287
ebd17d6f
VS
122882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12291
2702b4e4
VS
122922012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 Fix make dist.
12295
12296 * Makefile.am (starfield_theme_files): New var.
12297 (starfield_DATA): Use starfield_theme_files.
12298 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12299 Add bootcheck-related files.
12300 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12301 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12302 and font_char_metrics.txt.
12303 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12304 (setjmp): Add lib/ia64/longjmp.S.
12305 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12306 * po/POTFILES.in: Regenerate.
12307 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12308 DISTFILES.common.extra1.
12309 * util/devicemap.c: Removed.
12310 * grub-core/lib/i386/relocator_backward.S: Likewise.
12311 * util/import_gcry.py: Remove unused files. Add extra_dist for
12312 ChangeLog.
12313
cf1adfdf
VS
123142012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12315
12316 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12317 grub_gettext_delete_list before changing grub_gettext_max to avoid
12318 running out of array bounds.
12319
123202012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
12321
12322 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12323 grub_vga_text_init/grub_vga_text_fini.
12324
cf1adfdf 123252012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
12326
12327 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12328
541d92e9
VS
123292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 * configure.ac: Bump to 2.00~beta0.
12332
7931dddf
VS
123332012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12334
12335 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12336 missing initialisation.
12337
f1b16fa3
VS
123382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12339
12340 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12341
83ddae23
VS
123422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 Support v2 xnu boot arguments.
12345
12346 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12347 New argument fsbfreq_out.
12348 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12349 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12350 be used.
12351 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12352 darwin_version.
12353 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12354 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12355 (grub_xnu_boot_params): Rename to ...
12356 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12357 (grub_xnu_boot_params_v2): New struct.
12358
dc693fe6
VS
123592012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12360
12361 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12362 zeroing of CRC field before computing CRC.
12363
5a6e39c2
VS
123642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12365
12366 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12367 Change order of allocations to decrease fragmentation.
12368
6c21f5d7
VS
123692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370
12371 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12372
cfe456dc
CW
123732012-02-27 Colin Watson <cjwatson@ubuntu.com>
12374
12375 Use write-combining MTRR to speed up video with buggy BIOSes.
12376
12377 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12378 (cpuid): New define.
12379 (rdmsr): Likewise.
12380 (wrmsr): Likewise.
12381 (mtrr_base): Likewise.
12382 (mtrr_mask): Likewise.
12383 (grub_vbe_enable_mtrr_entry): New function.
12384 (grub_vbe_enable_mtrr): Likewise.
12385 (grub_vbe_disable_mtrr): Likewise.
12386 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12387 control off to BIOS.
12388 (grub_video_vbe_init): Fill mtrr.
12389 (grub_video_vbe_fini): Disable mtrr.
12390 (grub_video_vbe_get_info_and_fini): Likewise.
12391 (grub_video_vbe_setup): Enable mtrr.
12392
e3c78337
CW
123932012-02-27 Colin Watson <cjwatson@ubuntu.com>
12394
12395 * include/grub/partition.h (grub_partition_map): Change prototype of
12396 embed to take a maximum value for nsectors.
12397 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12398 * include/grub/fs.h (grub_fs): Likewise.
12399 * grub-core/partmap/msdos.c (embed_signatures): New array.
12400 (pc_partition_map_embed): Check for and avoid sectors matching any
12401 of the signatures in embed_signatures, up to max_nsectors.
12402 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12403 returned sector map to max_nsectors.
12404 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12405 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12406 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12407 * util/grub-setup.c (setup): Allow for the embedding area being
12408 split into multiple blocklists. Tell dest_partmap->embed the
12409 maximum number of sectors we care about.
12410
124112012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12412
12413 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12414 Specify blocklist_install and reserver_first_sector for all fs.
12415 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12416 blocklists.
12417
984b973f
VS
124182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 * util/grub-install.in: Clarify strings.
12421 Fix source dir check.
12422
f122e0d6
RL
124232012-02-27 Richard Laager <rlaager@wiktel.com>
12424
12425 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12426 "zfs" and "fuse.zfs" as synonyms.
12427
071114bb
VS
124282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * configure.ac: Put platform and target_cpu substitutions back since
12431 they are used for directories.
12432
817e6abc
RL
124332012-02-27 Richard Laager <rlaager@wiktel.com>
124342012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12435
12436 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12437 * util/grub.d/20_linux_xen.in: Likewise.
12438
897b7419
RL
124392012-02-27 Richard Laager <rlaager@wiktel.com>
12440
12441 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12442 with full paths.
12443
a414bd15
RL
124442012-02-27 Richard Laager <rlaager@wiktel.com>
12445
12446 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12447 unescape.
12448
30ac48c4
VS
124492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12450
12451 Don't use insecure popen in getroot.
12452
12453 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12454 (exec_pipe): ... here.
12455 (find_root_devices_from_poolname): Use exec_pipe.
12456
53f13848
VS
124572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 Remove platform and target_cpu replacement.
12460
12461 * configure.ac: Remove platform and target_cpu substitutions.
12462 * tests/util/grub-shell.in: Use modinfo.
12463 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12464 explicitly.
12465
90cb2803
VS
124662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 Autodetect platform in grub-install but allow override.
12469
12470 * util/grub-install.in: Autodetect platform. Support --target and
12471 --directory. Read platform from modinfo.sh.
12472
b9136427
VS
124732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 Support btrfs multi-volume probe.
12476
12477 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12478 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12479 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12480 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12481 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12482 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12483 grub_find_root_devices_from_btrfs if on btrfs.
12484
c36e5cd1
VS
124852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 Remove any awareness of *.c util files about target.
12488
12489 * Makefile.util.def (grub-setup): Split to ...
12490 (grub-bios-setup): ... and this.
12491 (grub-sparc64-setup): ... and this.
12492 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12493 * docs/man/grub-setup.h2m: Split into ...
12494 * docs/man/grub-sparc64-setup.h2m: ... this.
12495 * docs/man/grub-bios-setup.h2m: ... and this.
12496 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12497 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12498 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12499 (grub_target_addr_t): Remove.
12500 (grub_target_size_t): Remove.
12501 (grub_target_ssize_t): Remove.
12502 * util/grub-install.in: Use new grub-*-setup.
12503 * util/grub-mkimagexx.c (Elf_Word): New define.
12504 (Elf_Half): Likewise.
12505 (Elf_Section): Likewise.
12506 (ELF_ST_TYPE): Likewise.
12507 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12508 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12509
584b2f8a
VS
125102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 Replace grub_target_addr with more appropriate types.
12513
12514 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12515 grub_target_addr with grub_addr.
12516 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12517 grub_target_addr with grub_port.
12518 (grub_cmd_write): Likewise.
12519 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12520 grub_target_addr with grub_addr.
12521 (grub_cmd_write): Likewise.
12522 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12523
5a0dc6fb
VS
125242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12525
12526 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12527 const qualifier for vendor_guid.
12528
786aff6e
VS
125292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12532 const qualifier.
12533 (efiemu_memequal): Likewise.
12534 (find_variable): Likewise.
12535
49017b17
VS
125362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12537
12538 Fix missing console prototype on qemu-mips.
12539
12540 * include/grub/mips/qemu_mips/console.h: New file.
12541
c5988629
MG
125422012-02-27 Matthew Garrett <mjg@redhat.com>
125432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12544
12545 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12546 * include/grub/efi/efi.h: Likewise.
12547 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12548 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12549 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12550 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12551 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12552 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12553
e33f8d69
MG
125542012-02-27 Matthew Garrett <mjg@redhat.com>
12555
12556 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12557
fb312cd9
VS
125582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12559
12560 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12561 error.
12562
7134247c
VS
125632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 * configure.ac: Remove inappropriate use of program_transform_name
12566 on grubdir and bootdir but allow explicit specification of those
12567 variables.
12568
6a313124
VS
125692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * util/grub-mknetdir.in (grub_prefix): Removed.
12572 (subdir): Use @bootdirname@ and @grubdirname@.
12573
2311c5ca
VS
125742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12577
7d5d60f7
VS
125782012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12579
12580 * po/POTFILES.in: Regenerated.
12581
8151bc82
VS
125822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 Remove improper use of program_transform_name on pkglibrootdir.
12585
12586 * configure.ac (pkglibrootdir): Removed.
12587 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12588 * util/grub-mkimage.c: Likewise.
12589
b4a6a533
VS
125902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12591
12592 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12593 warning.
12594
668f304f
VS
125952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * util/grub-install.in: Use file identifier if no UUID is available
12598 or user explicitly prompted for it.
12599
665f2341
NP
126002012-02-27 Navdeep Parhar <nparhar@gmail.com>
12601
12602 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12603 (freebsd_get_zfs): New function.
12604 (grub_freebsd_boot): Pass zfs UUID.
12605 (grub_cmd_freebsd): Set zfs UUID.
12606
8151bc82 126072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
12608
12609 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12610 pkglibrootdir.
12611
e4c498a1
MG
126122012-02-27 Mike Gilbert <floppym@gentoo.org>
12613
12614 Add configure flag to control libzfs integration.
12615
12616 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12617
1e9a9a3f
VS
126182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12621 device.
12622 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12623 small devices.
12624
036985b8
VS
126252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12626
12627 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12628 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12629 be used on non-modules.
12630
12631 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12632 Rename to grub_boot_init.
12633 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12634 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12635 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12636 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12637 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12638 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12639 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12640 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12641 includes.
12642 (grub_machine_init): Remove empty inits.
12643 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12644 includes.
12645 (grub_machine_init): Remove empty inits.
12646 * grub-core/term/arc/console.c: Remove explicit proto.
12647 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12648 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12649 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12650 grub_at_keyboard_fini.
12651 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12652 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12653 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12654 grub_gfxterm_fini.
12655 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12656 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12657 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12658 grub_vgatext_fini.
12659 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12660 * grub-core/term/serial.c (GRUB_MOD_INIT)
12661 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12662 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12663 grub_serial_fini.
12664 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12665 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12666 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12667 grub_terminfo_fini.
12668 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12669 (GRUB_MOD_FINI): Likewise.
12670 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12671 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12672 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12673 grub_video_radeon_fuloong2e_fini.
12674 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12675 [LOONGSON]: Rename to grub_video_sis315pro_init.
12676 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12677 grub_video_sis315pro_fini.
12678 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12679 [LOONGSON]: Rename to grub_video_sm712_init.
12680 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12681 grub_video_sm712_fini.
12682 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12683 (grub_at_keyboard_fini): Likewise.
12684 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12685 Don't declare grub_{modname}_init.
12686 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12687 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12688 New proto.
12689 (grub_keylayouts_fini) [!EMU]: Likewise.
12690 * include/grub/serial.h (grub_serial_init) [!EMU]:
12691 New proto.
12692 (grub_serial_fini) [!EMU]: Likewise.
12693 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12694 New proto.
12695 (grub_terminfo_fini) [!EMU]: Likewise.
12696 * include/grub/video.h (grub_font_init) [!EMU]:
12697 New proto.
12698 (grub_font_fini) [!EMU]: Likewise.
12699 (grub_gfxterm_init) [!EMU]: Likewise.
12700 (grub_gfxterm_fini) [!EMU]: Likewise.
12701 (grub_video_sm712_init) [!EMU]: Likewise.
12702 (grub_video_sm712_fini) [!EMU]: Likewise.
12703 (grub_video_sis315pro_init) [!EMU]: Likewise.
12704 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12705 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12706 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12707
d5534665
VS
127082012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12709
12710 Make nand a prefix for nand devices.
12711
12712 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12713
10133b5f
VS
127142012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12715
12716 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12717 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12718
8e307a62
VS
127192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 * include/grub/env.h (grub_env_find): Remove prototype.
12722 * grub-core/kern/env.c (grub_env_find): Make static.
12723 (grub_env_set): Remove useless set.
12724
a4c65f34
VS
127252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726
12727 * grub-core/kern/i386/realmode.S: Remove useless align.
12728
d87893d5
VS
127292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12730
12731 * include/grub/dl.h (grub_dl_load_file): Don't export.
12732
50159add
VS
127332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12736 grub_dprintf.
12737
b2582b84
VS
127382012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12741 grub_errors.
12742 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12743 not reloading whole superblock but only the part which is really needed.
12744 Remove useless grub_errors.
12745 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12746 grub_errors.
12747
e2a83395
VS
127482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 Don't export grub_get_rtc.
12751
12752 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12753 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12754
e7d2a906
VS
127552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12758
6cf1363b
VS
127592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 12762 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 12763
eece3349
VS
127642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 Remove prio_list.
12767
12768 * include/grub/list.h (grub_prio_list): Removed.
12769 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12770 GRUB_COMMAND_PRIO_MASK.
12771 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12772 GRUB_COMMAND_FLAG_ACTIVE.
12773 (grub_prio_list_insert): Removed.
12774 (grub_prio_list_remove): Likewise.
12775 (GRUB_AS_PRIO_LIST): Likewise.
12776 (GRUB_AS_PRIO_LIST_P): Likewise.
12777 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12778 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12779 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12780 * grub-core/kern/command.c (grub_register_command_prio): Inline
12781 the prio_list code.
12782 (grub_unregister_command): Likewise.
12783
94f064b4
VS
127842012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 Fix interrupt mixup from previous commit.
12787
12788 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12789 (grub_realidt): New var.
12790 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12791 Load idt.
12792 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12793 New declaration.
12794 (grub_relocator16_boot): Set grub_relocator16_idt.
12795 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12796 (LOCAL(realidt)): ... this.
12797 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12798 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12799 (grub_realidt): New variable.
12800
27317084
VS
128012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12804 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12805 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12806 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12807 Gettextize.
12808 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12809 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12810 * po/POTFILES.in: Regenerate.
12811
47b40053
VS
128122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12815 errors.
12816
2b343101
VS
128172012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12818
12819 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12820 \0.
12821 (add_length): Likewise.
12822
ff27c3dd
LK
128232012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
128242012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12825
12826 GDB serial and backtrace support.
12827
12828 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12829 (prot_to_real): Likewise.
12830 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12831 * grub-core/Makefile.core.def (backtrace): New module.
12832 (gdb): Likewise.
12833 * grub-core/gdb/cstub.c: New file.
12834 * grub-core/gdb/gdb.c: Likewise.
12835 * grub-core/gdb/i386/idt.c: Likewise.
12836 * grub-core/gdb/i386/machdep.S: Likewise.
12837 * grub-core/gdb/i386/signal.c: Likewise.
12838 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 12839 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
12840 * include/grub/backtrace.h: Likewise.
12841 * include/grub/gdb.h: Likewise.
12842 * include/grub/i386/gdb.h: Likewise.
12843
128442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
12845
12846 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12847 New function.
12848 (add_length): Likewise.
12849 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12850 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12851 proto.
12852 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12853 __argp_get_display_len.
12854
ff27c3dd 128552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
12856
12857 $"..." support in scripts.
12858
12859 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12860 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12861 * grub-core/script/yylex.l: Likewise.
12862 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12863 value.
12864
ff27c3dd 128652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
12866
12867 * gentpl.py: Remove obsolete pkglib_DATA handling.
12868
ff27c3dd 128692012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
12870
12871 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12872 mailing list.
12873
12874 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12875 * util/grub-kbdcomp.in: Likewise.
12876 * util/grub-mkconfig.in: Likewise.
12877 * util/grub-mkconfig_lib.in: Likewise.
12878 * util/grub-mknetdir.in: Likewise.
12879 * util/grub-mkrescue.in: Likewise.
12880 * util/grub-mkstandalone.in: Likewise.
12881 * util/grub-reboot.in: Likewise.
12882 * util/grub-set-default.in: Likewise.
12883 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12884
ff27c3dd 128852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
12886
12887 Remove GRUB_PREFIX.
12888
12889 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12890 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12891 used for backward compatibility.
12892
ff27c3dd 128932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
12894
12895 Add new all_video module.
12896
12897 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12898 * grub-core/Makefile.core.def (all_video): New module.
12899 * grub-core/genmoddep.awk: Generate dependency of all_video from
12900 video.lst.
12901 * grub-core/lib/fake_module.c: New file.
12902 * grub-core/normal/main.c (features): Add feature_all_video_module.
12903 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12904 don't do explicit search again.
47454da5 12905 insmod all_video in load_video if available.
22c7ce85 12906
ff27c3dd 129072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
12908
12909 Another round of string clarification and adding TRANSLATORS comments.
12910
ff27c3dd 129112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
12912
12913 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12914
ff27c3dd 129152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
12916
12917 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12918 to grub_ssize_t.
12919 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12920 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12921
ff27c3dd 129222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
12923
12924 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12925 trailing newline implicitly. All users updated.
12926
ff27c3dd 129272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
12928
12929 Implement serial on IEEE1275 and EFI.
12930
12931 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12932 on emu. Mention arc and emu as the only platforms without serial
12933 support.
12934 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12935 ieee1275 platforms.
12936 * grub-core/term/efi/serial.c: New file.
12937 * grub-core/term/ieee1275/serial.c: Likewise.
12938 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12939 specification if no ns8250 driver is available.
12940 (grub_cmd_serial): Likewise.
12941 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12942 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12943 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12944 (grub_efi_parity_type_t): New type.
12945 (grub_efi_stop_bits_t): Likewise.
12946 (grub_efi_serial_io_interface): New struct.
12947 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12948 available for all interfaces.
12949 Add EFI and IEEE1275 fields.
12950 (grub_ofserial_init): New proto.
12951 (grub_efiserial_init): Likeiwse.
12952 * util/grub.d/00_header.in: Don't check for the presence of serial
12953 module.
12954
ff27c3dd 129552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
12956
12957 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12958 name as if it was an alias.
12959
114076ef
VS
129602012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * grub-core/commands/lsacpi.c (options): Fix typo.
12963
6a656b0e
VS
129642012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 Convert grub-emu to argp.
12967
12968 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12969 emu.
12970 * util/argp_common.c: Rename to ...
12971 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12972 Add missing includes.
12973 * grub-core/kern/emu/main.c: Convert to argp.
12974 * po/POTFILES.in: Regenerate.
12975 * util/grub-install.in (usage): Make first letter lowcase in messages
12976 for uniformity.
12977 * util/grub-setup.c (options): Likewise.
12978
1e3f8ae8
VS
129792012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12982 Put back accidently commented-out code.
12983
ed167a80
VS
129842012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12987 loop check using Brent algorithm.
12988 (grub_hfsplus_btree_search): Likewise.
12989
6753c0ec
VS
129902012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * util/grub-install.in: Fix usage of wrong device for PreP install.
12993
4e27343f
VS
129942012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12995
12996 * conf/Makefile.common (CFLAGS_GNULIB): Add
12997 -Wno-unsafe-loop-optimizations.
12998 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12999 on tools.
13000 * grub-core/commands/legacycfg.c: Add pragma to skip
13001 -Wunsafe-loop-optimizations.
13002 (check_password_md5_real): Fix loop counter type.
13003 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13004 reading.
13005 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13006 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13007 loop condition.
13008 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13009 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13010 * grub-core/net/net.c (grub_net_route_address): Add safety loop
13011 condition.
13012 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13013 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13014 avoid possible infinite loops.
13015 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13016 and -Wunsafe-loop-optimizations.
13017 * grub-core/script/yylex.l: Likewise.
13018 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13019 (print_glyphs): Avoid infinite loops.
13020 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13021
697f18b0
GS
130222012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13023
13024 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13025 to avoid infinite loop.
13026 (disp_acpi_rsdt_table): Likewise.
13027
274416e8
VS
130282012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 * grub-core/font/font.c (grub_font_load): Add support for default
13031 path for fonts ($prefix/fonts).
13032 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13033 for checking if string is a path.
13034 * grub-core/normal/main.c (features): Add feature_default_font_path.
13035 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13036 * util/grub.d/00_header.in: Use default directory if possible.
13037 * util/grub-install.in: Install unicode.pf2.
13038
b3e08622
VS
130392012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13040
13041 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13042 * po/Rules-swiss: New file.
13043 * po/swiss.sed: Likewise.
13044
fe42ce09
VS
130452012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * grub-core/fs/btrfs.c (find_device): Fix typos.
13048 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13049 * util/grub-mkrelpath.c (argp_parser): Likewise.
13050 Reported by: Yuri Chornoivan.
13051
72f1d065
DO
130522012-02-23 Dalet Omega <daletomega@gmail.com>
13053
13054 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13055 for usual informative messages.
13056
c5884973
DO
130572012-02-23 Dalet Omega <daletomega@gmail.com>
13058
13059 Starfield theme.
13060
13061 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13062 * conf/Makefile.common: Define starfielddir.
13063 * configure.ac: Configure starfield.
13064 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13065 * themes/starfield/README: Likewise.
13066 * themes/starfield/blob_w.png: Likewise.
13067 * themes/starfield/boot_menu_c.png: Likewise.
13068 * themes/starfield/boot_menu_e.png: Likewise.
13069 * themes/starfield/boot_menu_n.png: Likewise.
13070 * themes/starfield/boot_menu_ne.png: Likewise.
13071 * themes/starfield/boot_menu_nw.png: Likewise.
13072 * themes/starfield/boot_menu_s.png: Likewise.
13073 * themes/starfield/boot_menu_se.png: Likewise.
13074 * themes/starfield/boot_menu_sw.png: Likewise.
13075 * themes/starfield/boot_menu_w.png: Likewise.
13076 * themes/starfield/slider_c.png: Likewise.
13077 * themes/starfield/slider_n.png: Likewise.
13078 * themes/starfield/slider_s.png: Likewise.
13079 * themes/starfield/src/blob_nw.xcf: Likewise.
13080 * themes/starfield/src/bootmenu/: Likewise.
13081 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13082 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13083 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13084 * themes/starfield/src/slider_c.xcf: Likewise.
13085 * themes/starfield/src/slider_n.xcf: Likewise.
13086 * themes/starfield/src/slider_s.xcf: Likewise.
13087 * themes/starfield/src/terminalbox/: Likewise.
13088 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13089 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13090 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13091 * themes/starfield/starfield.png: Likewise.
13092 * themes/starfield/terminal_box_c.png: Likewise.
13093 * themes/starfield/terminal_box_e.png: Likewise.
13094 * themes/starfield/terminal_box_n.png: Likewise.
13095 * themes/starfield/terminal_box_ne.png: Likewise.
13096 * themes/starfield/terminal_box_nw.png: Likewise.
13097 * themes/starfield/terminal_box_s.png: Likewise.
13098 * themes/starfield/terminal_box_se.png: Likewise.
13099 * themes/starfield/terminal_box_sw.png: Likewise.
13100 * themes/starfield/terminal_box_w.png: Likewise.
13101 * themes/starfield/theme.txt: Likewise.
13102
17d73325
VS
131032012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * util/grub.d/00_header.in: Add missing export theme.
13106
dbebaf92
VS
131072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13110 already included.
13111 Reported by: Eren D.
13112
3d68bffb
VS
131132012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13114
13115 * conf/Makefile.common (grubdatadir): Removed.
13116 (Makefile.am): Move eveything grubdata to pkgdata.
13117
4b59234d
VS
131182012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13119
13120 * grub-core/commands/acpihalt.c (get_sleep_type):
13121 Remove unused variable.
13122
463dcadc
VS
131232012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13126 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13127 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13128 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13129 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13130 i18n with gettext no-op.
13131 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13132 GRUB_ACPI_OPCODE_STRING_CONST.
13133 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13134 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13135
e5b90c82
VS
131362012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * po/POTFILES.in: Regenerate.
13139
2a704ca9
VS
131402012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13141
13142 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13143 -Wno-error=missing-noreturn.
13144
84f9d341
VS
131452012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13148 condition to avoid possibly infinite loops.
13149 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13150 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13151
d46683f9
VS
131522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13155 condition to avoid possibly infinite loops.
13156
c44866b2
VS
131572012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13160 on show_error.
13161
96790539
VS
131622012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13163
13164 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13165
1ba7e295
VS
131662012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13169
21ffe8f1
VS
131702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * util/bin2h.c (usage): Add missing attribute noreturn.
13173
0ccb6b3c
VS
131742012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13175
13176 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13177 if the size isn't divisible by 512.
13178
b00d7fb6
VS
131792012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13180
13181 Make list_push and list_remove functions rather than inline functions
13182 to decrease size and avoid aliasing violations.
13183
13184 * include/grub/list.h (grub_list_push): Move to ...
13185 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13186 * include/grub/list.h (grub_list_remove): Move to ...
13187 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13188
9d369087
VS
131892012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13190
13191 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13192 and -Wunused-result.
13193
af0250d9
VS
131942012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13195
13196 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13197 Reported by: Seth Goldberg
13198
aad32b14
VS
131992012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13202
ac96441c
ST
132032012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13204
13205 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13206 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13207 command line.
13208 * docs/grub.texi (Simple configuration): Document
13209 GRUB_CMDLINE_GNUMACH.
13210
132112012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
13212
13213 * conf/Makefile.common (platform_SCRIPTS): New variable.
13214 (platform_PROGRAMS): Likewise.
13215 * gentpl.py: Mark *,module and *.image for install.
13216 * grub-core/gdb_grub.in: Add a notice of expected environment.
13217 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13218 (gmodule.pl): Likewise.
13219
ac96441c 132202012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
13221
13222 Replace grub_checkkey with grub_getkey_noblock.
13223
13224 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13225 (grub_getkey_noblock): ... this. All users updated.
13226
ac96441c 132272012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
13228
13229 * grub-core/kern/emu/console.c: Move to ...
13230 * grub-core/term/emu/console.c: ...here.
13231 (grub_ncurses_getkey): Fix return value if no key is detected.
13232
e51b5666
VS
132332012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13236 (grub_unit_test_fini): Likewise.
13237 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13238
132392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * include/grub/test.h (GRUB_UNIT_TEST)
13242
d9a62292
VS
132432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13244
13245 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13246 Better error handling.
13247 (grub_script_return): Likewise.
13248 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13249
77c9182f
VS
132502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13253 rimplicit redifinition.
13254
edb13cf9
VS
132552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13256
13257 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13258 GRUB.
13259
a9e9dc7c
VS
132602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13261
13262 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13263 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13264 prompt here.
13265
b4ba8e02
VS
132662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13269 as GRUB_ERR_BUG. Don't malloc if no device is available.
13270
dded5540
VS
132712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13274 Mark calling with invalid term as GRUB_ERR_BUG.
13275
0cf69874
VS
132762012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13279 packets rather than raising an error.
13280
59bfe502
VS
132812012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13284 in if.
13285
db5fc596
VS
132862012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13287
13288 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13289 diagnostic to dprintf.
13290 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13291
e4b7f404
VS
132922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13295 device name.
13296
e7b02f9e
VS
132972012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13298
13299 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13300 (grub_ntfs_iterate_dir): Likewise.
13301
0331e102
VS
133022012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13303
13304 Efiemu stylistic fixes and gettext.
13305
13306 * grub-core/efiemu/i386/loadcore32.c
13307 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13308 * grub-core/efiemu/i386/loadcore64.c
13309 (grub_arch_efiemu_relocate_symbols64): Likewise.
13310 * grub-core/efiemu/i386/pc/cfgtables.c
13311 (grub_machine_efiemu_init_tables): Likewise.
13312 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13313 (grub_efiemu_loadcore_initXX): Add a filename argument.
13314 All users updated.
13315 Improved error message.
13316 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13317 Add a filename argument.
13318 All users updated.
13319 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13320 Reclassify double relocation as GRUB_ERR_BUG.
13321
306fc074
VS
133222012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13325 handling.
13326
794d8ef2
VS
133272012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13328
13329 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13330 on partition.
13331
133322012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
13333
13334 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13335
794d8ef2 133362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
13337
13338 Improve string. Gettextize.
13339
78dde88e
VS
133402012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13341
13342 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13343 utils.
13344 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13345
4786a90f
VS
133462012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13349 [GRUB_UTIL]: New function.
13350 (insert_array) [GRUB_UTIL]: Store partmaps.
13351 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13352 partmaps.
13353 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13354 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13355 (probe_abstraction): Print diskfilter and not raid.
13356 Reported by: Lennart Sorensen
13357
0b6225bd
VS
133582012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13359
13360 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13361 * util/grub-mkimagexx.c (MASK3): New define.
13362 (add_value_to_slot_20b): Use MASK3.
13363 (add_value_to_slot_21): Likewise.
13364 (relocate_addresses): Fix format specification.
13365 (load_image): Explicitly init symtab_section.
13366
b055f8f6
VS
133672012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13368
13369 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13370 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13371
b77c2fb7
VS
133722012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13375 on powerpc.
13376 Reported by: Lennart Sorensen
13377
e3ec28ab
VS
133782012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 * gentpl.py: Add missing license header.
13381 * docs/grub.texi: Update copyright year.
13382
c8d9ead6
GS
133832012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13384
13385 Source grub-mkconfig_lib from the build directory at build time.
13386 Suggested by: Vladimir Serbinenko.
13387
13388 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13389 * util/grub-install.in: Define pkgdatadir if not already set, and source
13390 grub-mkconfig_lib from there.
13391 * util/grub-kbdcomp.in: Likewise.
13392 * util/grub-mkconfig.in: Likewise.
13393 * util/grub-mknetdir.in: Likewise.
13394 * util/grub-mkrescue.in: Likewise.
13395 * util/grub-mkstandalone.in: Likewise.
13396 * util/grub-reboot.in: Likewise.
13397 * util/grub-set-default.in: Likewise.
13398 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13399
ebcecdf1
VS
134002012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 Increase warning level.
13403
13404 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13405 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13406 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13407 (TARGET_CFLAGS): Likewise.
13408 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13409 * grub-core/Makefile.core.def (decompressor_xz): Add
13410 -Wno-unreachable-code.
13411 (normal): Add -Wno-redundant-decls.
13412 (xzio): Add -Wno-unreachable-code.
13413 (lzopio): Add -Wno-redundant-decls -Wno-error.
13414 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13415 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13416 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13417 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13418 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13419 * grub-core/kern/i386/coreboot/init.c: Add exception to
13420 -Wsuggest-attribute=noreturn.
13421 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13422 * grub-core/kern/ia64/dl_helper.c: Likewise.
13423 * grub-core/kern/mips/dl.c: Likewise.
13424 * grub-core/kern/sparc64/dl.c: Likewise.
13425 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13426 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13427 (memcmp): Likewise.
13428 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13429 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13430 * grub-core/loader/mips/linux.c: Likewise.
13431 * grub-core/loader/multiboot_elfxx.c: Likewise.
13432 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13433 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13434 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13435 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13436 fixme.
13437 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13438 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13439 Fix prototype.
13440
37bb97fe
VS
134412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13444 address.
13445
29a3550b
VS
134462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13449 Avoid improper use of strings.
13450 (grub_cmd_legacy_initrdnounzip): Likewise.
13451
dfdffd0d
VS
134522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13453
13454 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13455 attribute.
13456 (grub_util_info): Likewise.
13457 (grub_util_error): Likewise.
13458
102fae4a
VS
134592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13462 * util/grub-fstest.c (fstest): Likewise.
13463
7e94d044
VS
134642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13467 (grub_md_sha512_real): Likewise.
13468 (grub_util_get_geli_uuid): Likewise.
13469 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13470 (grub_util_biosdisk_open): Fix format specification.
13471 Respect format security.
13472 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13473 (xrealloc): Likewise.
13474 (xasprintf): Likewise.
13475
5ebd9769
VS
134762012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * util/import_gcry.py: Include grub/crypto.h in init.c.
13479
495fc8c1
VS
134802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13483 (generate_image): Make prefix a const char *.
13484 Fix format specifications. Respect format security.
13485 Avoid void * arithmetics.
13486 Avoid shadowing.
13487 (argp_parser): Remove unused variable. Respect format security.
13488 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13489 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13490 (count_funcs): Remove unused variable.
13491 (relocate_addresses): Fix format specification.
13492 Disable x86-64 with elf32. Remove unused variables.
13493 (add_fixup_entry): Avoid shadowing.
13494 (make_reloc_section): Fix format specification.
13495 Use assert.
13496 (locate_sections): Fix format specifications.
13497 (load_image): Avoid shadowing.
13498
043c2ea3
VS
134992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13500
13501 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13502 Fix format specifications. Respect format security.
13503 Don't translate already translated grub_errmsg.
13504 (argp_parser): Remove unused variable
13505
3ec65a81
VS
135062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13509
a4d9fe4a
VS
135102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13511
13512 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13513 (main): Likewise. Use xmalloc. Respect format security.
13514
15b81d49
VS
135152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13518 a const char *.
13519 (argp_parser): Remove unused variable.
13520
31731fc0
VS
135212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13524 (add_pixel): Make static.
13525 (add_font): Likewise.
13526 (write_string_section): Make name and str a const char *.
13527 (write_be16_section): Make name a const char *.
13528 (print_glyphs): Make static.
13529 (write_font_ascii_bitmap): Likewise.
13530 (write_font_width_spec): Likewise.
13531 (write_font_pf2): Likewise.
13532 (argp_parser): Remove unused variable.
13533 Respect format security.
13534 (main): Avoid shadowing. Respect format security.
13535
0809527b
VS
135362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 * util/grub-editenv.c (argp_parser): Make static.
13539 (create_envblk_file): Use xmalloc.
13540 (open_envblk_file): Likewise.
13541 Resepect format security.
13542 (set_variables): Respect format security.
13543
45b0c8b7
VS
135442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * util/getroot.c (grub_find_device): Respect format security.
13547 (get_mdadm_uuid): Remove unused variable.
13548 (grub_util_pull_device): Dont call gettext on already translated
13549 grub_errmsg.
13550 (find_system_device): Remove unused variable.
13551 (grub_util_get_grub_dev): Likewise.
13552 (grub_make_system_path_relative_to_its_root): Respect format security.
13553
1b024b4e
VS
135542012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13555
13556 * util/grub-fstest.c (execute_command): Make first argument
13557 a const char *.
13558 (read_file): Avoid shadowing.
13559 Reuse underlying error message if device open fails.
13560 (cmd_cmp): Respect format security.
13561 (root): Make const char *.
13562 (fstest): Remove args argument and use global copy.
13563 Respect format security.
13564 (argp_parser): Make static.
13565 (main): Make default_root const char *.
13566
5d1d4e28
VS
135672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * util/grub-mount.c (root): Make const char *.
13570 (execute_command): Make first argument a const char *.
13571 (fuse_init): Respect format security.
13572 (argp_parser): Make static. Remove unused variable.
13573 (main): Make default_root a const char *.
13574 Respect format security.
13575
36eb7379
VS
135762012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * util/grub-probe.c (probe): Don't call gettext on already translated
13579 grub_errmsg.
13580 Remove unused variables.
13581 (argp_parser): Remove unused variable.
13582
76fb2ea9
VS
135832012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 * util/grub-script-check.c (argp_parser): Remove unused variable.
13586 (main): Rename read to curread to avoid shadowing.
13587
56c98584
VS
135882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13589
13590 * util/misc.c (grub_util_write_image_at): Fix format specification.
13591 (grub_util_write_image): Likewise.
13592 (grub_script_execute_argument_to_string): Removed (unused).
13593 (grub_script_execute_menuentry): Likewise.
13594 (grub_putchar): Likewise.
13595
164ebb48
VS
135962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13597
13598 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13599 (FUNCTION) [GRUB_UTIL]: Likewise.
13600 (VARIABLE) [GRUB_UTIL]: Likewise.
13601
44318d61
VS
136022012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13603
13604 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13605 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13606
31a26002
VS
136072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13610 buffer.
13611
136122012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13615 (LzmaEnc_SaveState): Removed (unused).
13616 (LzmaEnc_RestoreState): Likewise.
13617 (LzmaEnc_InitPriceTables): Made static.
13618 (LzmaEnc_Construct): Likewise.
13619 (LzmaEnc_FreeLits): Likewise.
13620 (LzmaEnc_Destruct): Likewise.
13621 (LzmaEnc_Init): Likewise.
13622 (LzmaEnc_InitPrices): Likewise.
13623 (LzmaEnc_Finish): Likewise.
13624 (LzmaEnc_PrepareForLzma2): Removed (unused).
13625 (LzmaEnc_MemPrepare): Likewise.
13626 (LzmaEnc_GetNumAvailableBytes): Likewise.
13627 (LzmaEnc_GetCurBuf): Likewise.
13628 (LzmaEnc_CodeOneMemBlock): Likewise.
13629
6fa67967
VS
136302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13633 (grub_util_ldm_embed): Likewise.
13634
9a7428e6
VS
136352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * util/grub-editenv.c (print_var): Rename name to varname to
13638 avoid shadowing.
13639 (main): Rename index to curindex to avoid shadowing.
31a26002 13640 Make filename a const char *.
9a7428e6 13641
4f96abd1
VS
136422012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13645 to arg_getline to avoid shadowing.
13646
44d10dad
VS
136472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13650 disk_ to avoid shadowing.
13651
340ba63e
VS
136522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13655 curindex to avoid shadowing.
13656 Make static.
13657 (MatchFinder_GetNumAvailableBytes): Make static.
13658
22965bce
VS
136592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13662 avoid shadowing.
13663
7b5784d4
VS
136642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13667 argument from encrypt to do_encrypt to avoid shadowing.
13668
6f48ca01
VS
136692012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13672 incorrect nesting of #if's.
13673
a4ea2dff
VS
136742012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13675
13676 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13677 checks which are always false on some platforms.
13678 (grub_cmd_lsacpi): Likewise.
13679 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13680 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13681 Likewise.
13682
def9fc1b
VS
136832012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13686 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13687
a67b2a04
VS
136882012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13689
13690 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13691 re_dfa_t to avoid breaking alignment invariants.
13692 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13693 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13694
44c6828d
VS
136952012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13696
13697 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13698 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13699
bebe0dd0
VS
137002012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13701
13702 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13703 Fix declaration.
13704
a9cdb3cf
VS
137052012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13706
13707 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13708 conserve alignment invariants.
13709 (grub_ehci_ehcc_read16): Likewise.
13710 (grub_ehci_oper_read32): Likewise.
13711 (grub_ehci_oper_write32): Likewise.
13712 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13713 Conserve alignment invariants.
13714
ccc3b1b8
VS
137152012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13718 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13719 declarations.
13720
987fbd95
VS
137212012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13724 Remove unused variable.
13725
0df363f3
VS
137262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13729 Remove set in if.
13730
b2c0c4a6
VS
137312012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * include/grub/net.h: Remove double declarations.
13734
690c531f
VS
137352012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 Remove "payload" command in ia64 Linux loader since I couldn't
13738 find any evidence of it being used for anything.
13739 Replace "relocate" command with an environment variable
13740
13741 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13742 fields.
13743 (ia64_boot_payload): Removed.
13744 (last_payload): Likewise.
13745 (RELOCATE_OFF): Likewise.
13746 (RELOCATE_ON): Likewise.
13747 (RELOCATE_FORCE): Likewise.
13748 (relocate): Likewise.
13749 (free_pages): Don't free payloads.
13750 (grub_load_elf64): Use common error messages.
13751 Use "linux_relocate" variable.
13752 Increase the space after boot_params.
13753 (grub_cmd_payload): Removed.
13754 (grub_cmd_relocate): Likewise.
13755 (grub_cmd_fpswa): Improve messages.
13756 (cmd_payload): Removed.
13757 (cmd_relocate): Likewise.
13758 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13759 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13760
01783768
VS
137612012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13762
13763 Convert UHCI to DMA framework.
13764
13765 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13766 (grub_uhci_pci_iter): Fill new members
13767 (grub_alloc_td): Use P2V and V2P functions.
13768 (grub_free_queue): Likewise.
13769 (grub_alloc_qh): Likewise.
13770 (grub_uhci_setup_transfer): Likewise.
13771 (grub_uhci_check_transfer): Likewise.
13772
43206939
VS
137732012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13774
13775 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13776 Remove assignment in if while on it.
13777
571e140e
VS
137782012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 * util/grub-mkstandalone.in: Fix modules directory.
13781
a9d96eeb
VS
137822012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13785 on i386-pc target.
13786 (argp_parser): Accept "auto" as compression specification.
13787
e4e37e8d
VS
137882012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13789
13790 Fix `help' with unloaded modules.
13791
13792 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13793 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13794 (grub_dyncmd_dispatcher): Small stylistic fix.
13795 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13796 explicit help is requested.
13797
e1ea3ade
VS
137982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13801 Explicitly init restart while on it.
13802
27556881
VS
138032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13806 uninited variable.
13807
d65f6b36
VS
138082012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13809
13810 * util/grub-mknetdir.in: Use . rather than source for POSIX
13811 compatibility.
13812
0a1e473c
VS
138132012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13816
ce6647c8
VS
138172012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13820 variable.
13821
66747894
VS
138222012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13825 without quotes.
13826
71645f6e
VS
138272012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13830
0e1c1f61
VS
138312012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13832
13833 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13834 iteration of partitions.
13835
9c4b5c13
VS
138362012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 Improve gettext support. Stylistic fixes and error handling fixes while
13839 on it.
13840
215c90cb
VS
138412012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13844 part. Instead setup the correct stack in RM.
13845 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13846 for stack.
13847 * include/grub/i386/relocator_private.h: New file.
13848
b5c1f9bf
VS
138492012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13852 argument.
13853 * util/grub-fstest.c (options): Add missing DEVICE part.
13854
b525fd83
VS
138552012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 Clarify and unify messages.
13858
13859 * grub-core/commands/hashsum.c (options): Unify messages.
13860 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13861 literal-only message as translatable.
13862 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13863 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13864 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13865 commands.
13866 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13867 key, not the key used to unlock. Clarify what it's used for.
13868 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13869 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13870 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13871 * util/grub-editenv.c (options): Unify "verbose" message.
13872 * util/grub-fstest.c (read_file): Unify error message.
13873 (fstest): Add quotes around commands.
13874 (options): Unify "verbose" message.
13875 * util/grub-install.in: Add quotes around variable name.
13876 * util/grub-kbdcomp.in: Unify error message.
13877 * util/grub-mkfont.c (main): Likewise.
13878 * util/grub-mkrescue.in: Likewise.
13879 * util/grub-mklayout.c (options): Unify "verbose" message.
13880 * util/grub-mkstandalone.in: Unify help and verbose messages.
13881 * util/grub-mount.c (options): Unify "verbose" message.
13882 * util/grub-probe.c (options): Likewise.
13883 * util/grub-script-check.c (options): Likewise.
13884 * util/grub-setup.c (setup): Unify no-terminator message.
13885 (options): Use DEVICE and not DEV.
13886 Unify "verbose" message.
13887 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13888
0ae70393
VS
138892012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13890
13891 Improve and unify messages.
13892
13893 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13894 name. All users updated.
13895 Print filename in error.
13896 (read_device_map): Print filename in error.
13897 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13898 (grub_util_get_os_disk): Likewise.
13899 (grub_util_biosdisk_get_grub_dev): Likewise.
13900 (grub_util_check_block_device): Likewise.
13901 (grub_util_check_char_device): Likewise.
13902 (grub_make_system_path_relative_to_its_root): Likewise.
13903 * util/grub-editenv.c (create_envblk_file): Likewise.
13904 (open_envblk_file): Likewise.
13905 (write_envblk): Likewise.
13906 * util/grub-fstest.c (cmd_cp): Likewise.
13907 (cmd_cat): Likewise.
13908 (cmd_cmp): Likewise.
13909 * util/grub-menulst2cfg.c (main): Likewise.
13910 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13911 (write_font_width_spec): Likewise.
13912 (write_font_pf2): Likewise.
13913 * util/grub-mkimage.c (generate_image): New argument outname.
13914 All users updated.
13915 Remove unreacheable message.
13916 (options): Unify messages.
13917 (help_filter): Likewise.
13918 * util/grub-mklayout.c (usage): Removed (unused).
13919 (main): Print filename in error.
13920 * util/grub-mkrescue.in: Fix wrong quoting.
13921 * util/grub-setup.c (setup): Print filename in error.
13922 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13923 (check_sas): Likewise.
13924 * util/misc.c (grub_util_get_fp_size): Removed.
13925 (grub_util_get_image_size): Print filename in error.
13926 (grub_util_read_at): Removed.
13927 (grub_util_read_image): Print filename in error.
13928 (grub_util_load_image): Likewise.
13929 (grub_util_write_image_at): New argument filename. All users updated.
13930 Print filename in error.
13931 (grub_util_write_image): New argument filename. All users updated.
13932 Print filename in error.
13933 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13934 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13935
0a96117d
VS
139362012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * grub-core/Makefile.core.def (pxechain): New module.
13939 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13940 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13941 function.
13942 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13943 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13944
aca002f7
VS
139452012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13948 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13949 * include/grub/err.h (grub_error_saved): New struct.
13950 (grub_errmsg): Make array size explicit.
13951 * include/grub/misc.h (grub_error_save): New function.
13952 (grub_error_load): Likewise.
13953 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13954 (grub_error_push): Update `errno' member name.
13955 (grub_error_pop): Likewise
13956 * grub-core/net/tftp.c (tftp_data): New member save_err.
13957 (tftp_receive): Save error.
13958 (tftp_open): Restore error.
13959
a51dab13
VS
139602012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13963 to real mode down to execute A20-related code in protected mode as
13964 intended.
13965
eb6e6649
GS
139662012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13967
13968 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13969 NULL when the argument `level' has an unexpected value.
13970
92cd0f6e
VS
139712012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 Move platform-dependent files from $prefix to $prefix/$platform.
13974
13975 * config.h.in (GRUB_TARGET_CPU): New definition.
13976 (GRUB_PLATFORM): Likewise.
13977 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13978 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13979 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13980 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13981 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13982 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13983 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13984 * grub-core/normal/term.c (read_terminal_list): Likewise.
13985 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13986 $prefix/locale.
13987 (grub_gettext_init_ext): Likewise.
13988 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13989 grub_platform.
13990 * util/grub-install.in: Update directories.
13991 * util/grub-mknetdir.in: Likewise.
13992 * util/grub-mkrescue.in: Likewise.
13993
db606889
VS
139942012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13995
13996 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13997 grub_error framework. All users updated.
13998
c39992a4
VS
139992012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14000
14001 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
14002 lists (by always binsearching), improve caching (cache strings
14003 used for binsearch, not only results), improve
14004 maintainability (by using more structured binary search) and correct
14005 error handling.
14006
1e5ec32f
VS
140072012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14008
14009 * grub-core/script/execute.c (grub_script_return): Fix warning.
14010
ac576cde
VS
140112012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * grub-core/script/execute.c (grub_script_return): Fix potential
14014 NULL-dereference.
14015 Reported by: Jim Meyering.
14016
498453f6
VS
140172012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * po/POTFILES.in: Regenerate.
14020 * util/grub-install.in: Gettextize the strings missed in first pass.
14021
8be63f2e
VS
140222012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14023
14024 * Makefile.util.def (grub-mkdevicemap): Removed.
14025 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14026 * include/grub/util/deviceiter.h: Removed.
14027 * util/deviceiter.c: Likewise.
14028 * util/getroot.c (grub_util_get_os_disk): New function.
14029 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14030 replacement for EFI.
14031 * util/grub-mkdevicemap.c: Removed.
14032 * util/grub-probe.c (probe): Handle PRINT_DISK.
14033 (argp_parser): Handle -t disk.
14034
8e1e4e39
VS
140352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * util/grub-mkfont.c: Migrate to argp.
14038 * util/grub-mklayout.c: Likewise.
14039 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14040 * util/grub-mkrelpath.c: Likewise.
14041 * util/grub-probe.c: Likewise.
14042 * util/grub-script-check.c: Likewise.
14043
4459819a
VS
140442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14045
14046 * util/grub-reboot.in: Add missing datarootdir.
14047 Add missing newline.
14048 * util/grub-set-default.in: Add missing datarootdir.
14049 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14050 * util/grub-mkrescue.in: Likewise.
14051
f65741c7
VS
140522012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14055
c1a33466
VS
140562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * util/grub-kbdcomp.in: Add decent help and gettextize.
14059 * docs/man/grub-kbdcomp.h2m: New file.
14060
c76899a0
VS
140612012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 Migrate grub-mkimage.c to argp.
14064
14065 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14066 (grub-setup): Likewise.
14067 * util/grub-setup.c (print_version): Move to ...
14068 * util/argp_common.c (print_version): ... here.
14069 * util/grub-setup.c (argp_program_version_hook): Move to ...
14070 * util/argp_common.c (argp_program_version_hook): ... here.
14071 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14072 safety.
14073 * util/grub-mkimage.c (main): Migrate to argp.
14074
57db0757
VS
140752012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 * util/grub-mkrescue.in: Use same message as
14078 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14079 for better translations.
14080
18534ad9
VS
140812012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14084 options with generic grub-mkrescue.in with the goal of future
14085 merge.
14086
c84ba308
VS
140872012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14088
14089 * grub-core/kern/mm.c: Add missing include of i18n.h
14090 * grub-core/lib/relocator.c: Likewise.
14091
347998c2
VS
140922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14093
14094 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14095 error.
14096 (allocate_pages): Check return value.
14097 Replace fatal with error.
14098 (grub_linux_boot): Replace printf with dprintf.
14099 Check find_mmap_size return value.
14100 Replace fatal with error.
14101 Don't call grub_machine_fini.
14102 (grub_load_elf64): Replace printf with dprintf.
14103 (grub_cmd_linux): Likewise.
14104 (grub_cmd_initrd): Likewise.
14105 (grub_cmd_payload): Likewise.
14106
c779226e
VS
141072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14108
14109 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14110 message.
14111 * grub-core/video/radeon_fuloong2e.c
14112 (grub_video_radeon_fuloong2e_setup): Likewise.
14113 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14114 * grub-core/video/video.c (grub_video_set_mode): Don't override
14115 standard out of memory message.
14116
dc87d45a
GS
141172012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14118
14119 NetBSD disk wedge support.
14120
14121 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14122 [__NetBSD__]: Handle NetBSD disk wedges.
14123 * util/getroot.c (convert_system_partition_to_system_disk)
14124 [__NetBSD__]: Likewise.
14125
055f856f
MW
141262012-02-03 Mark Wooding <mdw@distorted.org.uk>
14127
14128 * util/grub-mkconfig.in: Use umask rather than chmod to create
14129 grub.cfg.new to avoid insecure grub.cfg.
14130
4a9f8346
VS
141312012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14132
14133 * grub-core/commands/ls.c: Gettextize.
14134 * grub-core/commands/setpci.c: Likewise.
14135 * grub-core/commands/videotest.c: Likewise.
14136 * grub-core/disk/geli.c: Likewise.
14137 * grub-core/kern/mm.c: Likewise.
14138 * grub-core/lib/relocator.c: Likewise.
14139 * grub-core/loader/efi/appleloader.c: Likewise.
14140 * grub-core/loader/i386/xnu.c: Likewise.
14141 * grub-core/loader/ia64/efi/linux.c: Likewise.
14142 * grub-core/loader/xnu.c: Likewise.
14143 * grub-core/net/dns.c: Likewise.
14144 * grub-core/net/net.c: Likewise.
14145 * grub-core/script/lexer.c: Likewise.
14146 * grub-core/script/parser.y: Likewise.
14147 * grub-core/script/yylex.l: Likewise.
14148 * util/getroot.c: Likewise.
14149 * util/grub-setup.c: Likewise.
14150
a646a366
VS
141512012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14154 number.
14155
54e2be26
VS
141562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14159
f7c71e68
VS
141602012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14161
14162 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14163 macro.
14164 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14165 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14166
a32d5c71
VS
141672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14170 * util/grub-install.in: Gettextize.
14171 * util/grub-mkconfig.in: Likewise.
14172 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14173 if not available.
14174 (grub_warn): Gettextize.
14175 * util/grub-mknetdir.in: Gettextize.
14176 * util/grub-mkrescue.in: Likewise.
14177 * util/grub-mkstandalone.in: Likewise.
14178 * util/grub-reboot.in: Likewise.
14179 * util/grub-set-default.in: Likewise.
14180 * util/grub.d/00_header.in: Likewise.
14181 * util/grub.d/10_hurd.in: Likewise.
14182 * util/grub.d/10_kfreebsd.in: Likewise.
14183 * util/grub.d/10_linux.in: Likewise.
14184 * util/grub.d/10_netbsd.in: Likewise.
14185 * util/grub.d/10_windows.in: Likewise.
14186 * util/grub.d/20_linux_xen.in: Likewise.
14187 * util/grub.d/30_os-prober.in: Likewise.
14188 * po/POTFILES-shell.in: Regenerate.
14189
69edd81a
RL
141902012-02-03 Richard Laager <rlaager@wiktel.com>
14191
14192 * util/grub-mkimage.c (main): Fix format-security warning.
14193 * util/grub-mkrelpath.c (main): Likewise.
14194 * util/grub-probe.c (main): Likewise.
14195
65f08dbf
RL
141962012-02-03 Richard Laager <rlaager@wiktel.com>
14197
14198 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14199 failure.
14200 Put back lost PRINT_DRIVE.
14201
e9084abe
RL
142022012-02-03 Richard Laager <rlaager@wiktel.com>
14203
14204 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14205 (grub_guess_root_devices): Replace strlen with sizeof.
14206 Avoid crash.
14207 (find_root_devices_from_poolname): Remove unused variable.
14208 Handle raidzN.
14209
cf5f7ee7
VS
142102012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14211
14212 Support install on multi-device filesystems.
14213
14214 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14215 (grub_guess_root_devices): ...this. Return char **. All users updated.
14216 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14217 Removed.
14218 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14219 (find_root_devices_from_poolname): ... here.
14220 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14221 Support zfs-fuse.
14222 (grub_guess_root_device): Rename to ...
14223 (grub_guess_root_devices): ... this. Return char **. All users updated.
14224 * util/grub-install.in: Handle multi-device filesystems.
14225 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14226 argument. All users updated.
14227 Handle multi-device filesystems.
14228 Use 'delim' as separator.
14229 Remove device check to allow filesystems on file.
14230 (main): Support -0 argument. Handle multi-device.
14231 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14232 Fix a cross-device check while on it.
14233 (arguments): Remove root_dev.
14234 (argp_parser): Remove -r.
14235 (main): Remove root_dev.
14236
2f53a9ed
VS
142372012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14240
17e1d934
VS
142412012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14244 symbol.
14245 Reported by: NODA, Kai <nodakai>.
14246
d3e3fab5
VS
142472012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 Fix ehci on amd64.
14250
14251 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14252 pointers.
14253 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14254 (grub_ehci_setup_qh): Likewise.
14255 (grub_ehci_find_qh): Likewise.
14256 (grub_ehci_transaction): Likewise.
14257 (grub_ehci_setup_transfer): Likewise.
14258 (grub_ehci_check_transfer): Likewise.
14259 (grub_ehci_portstatus): Likewise.
14260 (grub_ehci_detect_dev): Likewise.
14261 (grub_ehci_transfer_controller_data): New field td_last_phys.
14262 (grub_ehci_setup_transfer): Fill td_last_phys.
14263 (grub_ehci_check_transfer): Use td_last_phys.
14264
3008675b
SG
142652012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14266
14267 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14268 if no submenu is present.
14269
fc9b5652
AN
142702012-02-01 Aleš Nesrsta <starous@volny.cz>
14271
14272 CBI support.
14273
14274 * include/grub/usb.h (grub_usbms_protocol_t): New values
14275 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14276 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14277 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14278 (grub_usbms_dev): Add subclass, protocol and intrpt.
14279 Remove in_maxsz and out_maxsz.
14280 (grub_usbms_reset): Rename to ...
14281 (grub_usbms_bo_reset): .. this.
14282 (grub_usbms_cbi_cmd): New function.
14283 (grub_usbms_cbi_reset): Likewise.
14284 (grub_usbms_reset): Likewise.
14285 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14286 (grub_usbms_transfer): Rename to ...
14287 (grub_usbms_transfer_bo): ... this.
14288 (grub_usbms_transfer_cbi): Likewise.
14289 (grub_usbms_transfer): Likewise.
14290
a2b81d53
AN
142912012-02-01 Aleš Nesrsta <starous@volny.cz>
142922012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14295 the support for the CS5536 modification thereos and few bugfixes.
14296
14297 * grub-core/Makefile.core.def (ehci): New module.
14298 * grub-core/bus/usb/ehci.c: New file.
14299 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14300 port and hubaddr. All users updated.
14301 Save port and hubaddr into dev structure.
14302 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14303 define.
14304 * include/grub/pci.h (grub_dma_phys2virt): New function.
14305 (grub_dma_virt2phys): Likewise.
14306 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14307
b1d51f02
VS
143082012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14311 check as some mkfs implementations omit it.
14312
fc694106
VS
143132012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14316
6c0920e3
VS
143172012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14318
14319 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14320 Add new member volname2.
14321 (grub_jfs_label): Use volname2 if available.
14322
d1a46f9a
VS
143232012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14324
14325 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14326 over last_mounted as seen in image generated by mkfs.nilfs2.
14327 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14328
dec8ed14
VS
143292012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14332 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14333 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14334
7397c69b
VS
143352012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14336
14337 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14338 over the sector.
14339
b3fe42ad
VS
143402012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14341
14342 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14343 subvolume name (by removing a bogus and useless check).
14344
10476bb0
VS
143452012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14346
14347 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14348 sizeof while on it.
14349
9c08ad87
VS
143502012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14353 (grub_scsi_read_capacity10): ... this.
14354 (grub_scsi_read_capacity16): New function.
14355 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14356 0xffffffff.
14357 Fix off-by-one error.
14358 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14359 64-bit unsigned.
14360 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14361 (grub_scsi_read_capacity10): ... this.
14362 (grub_scsi_read_capacity_data): Rename to ...
14363 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14364 (grub_scsi_read_capacity16): New struct.
14365 (grub_scsi_read_capacity16_data): Likewise.
14366 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14367 grub_scsi_cmd_read_capacity10.
14368 New command grub_scsi_cmd_read_capacity16.
14369
bc8d0f45
VS
143702012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14371
14372 SCSI >2TiB support.
14373
14374 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14375 (grub_scsi_write16): Likewise.
14376 (grub_scsi_read): Use read16 when necessary.
14377 (grub_scsi_write): Likewise.
14378 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14379 (grub_scsi_write16): Likewise.
14380 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14381
cc774926
VS
143822012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14383
14384 SCSI write support (for usbms mainly).
14385
14386 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14387 a const pointer.
14388 (grub_scsi_write): Implement.
14389 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14390
67639fd7
VS
143912012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14392
14393 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14394 variable.
14395
9079d3ed
VS
143962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14399
c6a6f204
VS
144002012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * po/POTFILES.in: Regenerate.
14403
ecbf8cd1
VS
144042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14407 with grub_printf to avoid unnecessary fatal failure.
14408
0b3b3b38
VS
144092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14412 (INT_MAX): Likewise.
14413 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14414 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14415 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14416 (strcpy): Likewise.
14417 (strstr): Likewise.
14418 (strchr): Likewise.
14419 (strncpy): Likewise.
14420 (strcat): Likewise.
14421 (strncat): Likewise.
14422 (strcoll): Likewise.
14423 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14424 (GRUB_INT_MAX): Likewise.
14425
db7337a3
VS
144262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14427
14428 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14429 unexpected error.
14430 (optimize_utf8): Likewise.
14431 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14432
f37c87e1
VS
144332012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 * grub-core/boot/i386/pc/lnxboot.S: Use
14436 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14437 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14438 location.
14439 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14440 definition.
14441 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14442
63fe43f3
VS
144432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14444
14445 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14446 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14447 now to avoid double free.
14448 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14449 hostdisk.
14450 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14451 * util/grub-probe.c (escape_of_path): Always return a new copy.
14452 (print_full_name): Escape path.
14453 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14454 Fix hints on abstractions.
14455
ebe2c961
VS
144562012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14457
14458 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14459 Don't add "root" line if no compatibility hont is available.
14460 Suggested by: Seth Goldberg.
14461
2b5336a2
VS
144622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14463
14464 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14465 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14466 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14467 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14468
74310bd8
VS
144692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14472
c30582ba
VS
144732012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * util/grub-pe2elf.c (ehdr): Make static.
14476 (shdr): Likewise.
14477 (num_sections): Likewise.
14478 (offset): Likewise.
14479
5f47782c
VS
144802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 Eliminate ofpath limits and possible overflows.
14483
14484 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14485 (OF_PATH_MAX): Removed.
14486 (MAX_DISK_CAT): New const.
14487 (find_obppath): Use allocated rather than preallocated buffer.
14488 Return result. Argument of_path removed. All users updated.
14489 Add missing fdstat.
14490 (xrealpath): New function.
14491 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14492 Allocate rather than use preallocated buffer. All users updated.
14493 (__of_path_common): Use allocated rather than preallocatecd buffer.
14494 Return result. Argument of_path removed. All users updated.
14495 (vendor_is_ATA): Read only needed part form the file.
14496 (check_sas): Allocate depending on contents rather than fixed.
14497 (main) [STANDALONE]: Handle NULL result.
14498
f990cbf9
VS
144992012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14502
9c6e84b8
VS
145032012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Cryptodisk write support.
14506
14507 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14508 (grub_cryptodisk_decrypt): Moved logic to ...
14509 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14510 (grub_cryptodisk_write): Implement.
14511 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14512 (grub_util_fd_write): ... this. Make global.
14513 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14514
87cf9744
VS
145152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 * include/grub/list.h (grub_list_remove): Don't crash if element is
14518 removed twice.
14519
ca8c0baf
VS
145202012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14521
14522 Rename ofconsole to console.
14523
14524 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14525 as sysnonym to console.
14526 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14527 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14528 Rename grub_ofconsole_ to grub_console_. All users updated
14529 (grub_console_term_output): Rename "ofconsole" to "console".
14530 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14531 as "console".
14532
64c8b8f6
VS
145332012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14536 handling.
14537 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14538 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14539 GRUB_DISK_DEVICE_FILE_ID.
14540
f6c434d5
VS
145412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14544 and improve performance.
14545
5858b42d
VS
145462012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14547
14548 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14549 missing ieee1275/ prefix on whole disk.
14550
4ed3c26b
VS
145512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14552
14553 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14554 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14555
df71143e
VS
145562012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14557
14558 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14559
076e7c0f
VS
145602012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14561
14562 Merge common RAID and LVM logic to an abstract diskfilter.
14563 Add LDM support using the same framework.
14564
14565 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14566 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14567 (libgrubmods): Remove grub-core/disk/raid.c and
14568 grub-core/partmap/gpt.c.
14569 * grub-core/Makefile.core.def (ldm): New module.
14570 (raid): Renamed to diskfilter. All users updated.
14571 * grub-core/disk/raid.c: Moved to ...
14572 * grub-core/disk/diskfilter.c: ... here.
14573 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14574 (lv_num): New var.
14575 (find_array): Renamed to ...
14576 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14577 (grub_is_array_readable): Renamed to ...
14578 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14579 (insert_array): New argument id.
14580 (is_node_readable): New function.
14581 (scan_device): Rename to ...
14582 (scan_disk): .. this. Restrict to one disk.
14583 (scan_devices): New function.
14584 (grub_diskfilter_iterate): Support multi-LV.
14585 Skip invisible and nameless LVs.
14586 (grub_diskfilter_memberlist): Support multi-LV.
14587 (grub_diskfilter_read_node): New function.
14588 (grub_raid_read): Most of logic moved to ...
14589 (read_segment): ... here
14590 (read_lv): New function.
14591 (grub_diskfilter_get_vg_by_uuid): New function.
14592 (grub_diskfilter_make_raid): Likewise.
14593 * grub-core/disk/ldm.c: New file.
14594 * grub-core/disk/lvm.c (vg_list): Removed.
14595 (lv_count): Likewise.
14596 (scan_depth): Likewise.
14597 (is_lv_readable): Likewise.
14598 (grub_lvm_getvalue): Advance pointer past the number.
14599 (find_lv): Removed.
14600 (do_lvm_scan): Refactored into ...
14601 (grub_lvm_detect): ... this. Support raid.
14602 (grub_lvm_iterate): Removed.
14603 (grub_lvm_memberlist): Likewise.
14604 (grub_lvm_open): Likewise.
14605 (grub_lvm_close): Likewise.
14606 (read_lv): Likewise.
14607 (read_node): Likewise.
14608 (is_node_readable): Likewise.
14609 (is_lv_readable): Likewise.
14610 (grub_lvm_read): Likewise.
14611 (grub_lvm_write): Likewise.
14612 (grub_lvm_dev): Use diskfilter
14613 (GRUB_MOD_INIT): Likewise.
14614 (GRUB_MOD_FINI): Likewise.
14615 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14616 new interface.
14617 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14618 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14619 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14620 grub_diskfilter_read_node.
14621 Fix a bug with xor.
14622 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14623 grub_diskfilter_read_node.
14624 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14625 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14626 (grub_disk_dev_iterate): Move from here...
14627 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14628 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14629 Make global.
14630 (grub_hostdisk_find_partition_start): Likewise.
14631 (grub_hostdisk_os_dev_to_grub_drive): New function.
14632 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14633 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14634 * util/getroot.c (make_device_name): ... here.
14635 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14636 Move to ...
14637 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14638 * grub-core/kern/emu/hostdisk.c
14639 (convert_system_partition_to_system_disk): Move to ...
14640 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14641 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14642 * util/getroot.c (device_is_wholedisk): ... here.
14643 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14644 * util/getroot.c (find_system_device): ... here.
14645 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14646 Move to ...
14647 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14648 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14649 Move to ...
14650 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14651 Handle LDM.
14652 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14653 Move to ...
14654 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14655 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14656 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14657 DISKFILTER.
14658 * include/grub/raid.h: Renamed to ...
14659 * include/grub/diskfilter.h: ... this.
14660 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14661 (GRUB_RAID_LAYOUT_*): Make into array.
14662 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14663 (grub_diskfilter_vg): New struct.
14664 (grub_diskfilter_pv_id): Likewise.
14665 (grub_raid_member): Removed.
14666 (grub_raid_array): Likewise.
14667 (grub_diskfilter_pv): New struct.
14668 (grub_diskfilter_lv): Likewise.
14669 (grub_diskfilter_segment): Likewise.
14670 (grub_diskfilter_node): Likewise.
14671 (grub_diskfilter_get_vg_by_uuid): New proto.
14672 (grub_raid_register): Inline.
14673 (grub_diskfilter_unregister): Likewise.
14674 (grub_diskfilter_make_raid): New proto.
14675 (grub_diskfilter_vg_register): Likewise.
14676 (grub_diskfilter_read_node): Likewise.
14677 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14678 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14679 (grub_util_is_ldm): Likewise.
14680 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14681 (grub_hostdisk_find_partition_start): Likewise.
14682 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14683 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14684 New definition.
14685 (grub_gpt_partition_map_iterate): New proto.
14686 * include/grub/lvm.h (grub_lvm_vg): Removed.
14687 (grub_lvm_pv): Likewise.
14688 (grub_lvm_lv): Likewise.
14689 (grub_lvm_segment): Likewise.
14690 (grub_lvm_node): Likewise.
14691 * util/getroot.c [...]
14692 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14693 (probe_abstraction): Likewise.
14694 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14695 (main): Remove dead logic.
14696
8a7f9b9c
VS
146972012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 Simplify root device discover and don't fail when trying to open
14700 incorrect devices.
14701
14702 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14703 function.
14704 (get_diskname_from_path): Likewise.
14705 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14706 of iterating.
14707
30545b85
VS
147082012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14711
28ea58cf
VS
147122012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14713
14714 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14715 pastthe end.
14716
692dabca
VS
147172012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14718
14719 * util/grub-install.in: Add missing \.
14720 Reported by: gentoofan
14721
f6e4ea70
VS
147222012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14723
14724 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14725 (direct_read): Use correct compressed size.
14726 (grub_squash_read_data): Likewise.
14727
147282012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
14729
14730 * docs/grub.texi (Platform limitations): New section.
14731 (Platform-specific operations): Likewise.
14732 * docs/grub-dev.texi (Porting): Likewise.
14733
76261110
VS
147342012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 IEEE1275 disk write support.
14737
14738 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14739 const void *.
14740 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14741 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14742 and seek loginc to ...
14743 (grub_ofdisk_prepare): ... here.
14744 (grub_ofdisk_write): Implement.
14745
fc36d603
VS
147462012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 ARC disk write support.
14749
14750 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14751 (reopen): New argument writable. All users updated.
14752 Handle required access mode.
14753 (grub_arcdisk_write): Implement.
14754 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14755 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14756
e06c2e7a
VS
147572012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14758
14759 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14760 (read_sblock): Don't attempt to read superblocks outside the disk size.
14761
ff447958
VS
147622012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14763
14764 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14765 first superblock to find the second one when possible.
14766
9e88df39
VS
147672012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * util/grub-install.in: Fix an ARC bug.
14770 Print a warning if no platform-specific setup is available.
14771
bb26e4ff
VS
147722012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 Use static allocation rather than scratch pointer in reed_solomon.
14775 It decreases its size significantly and avoids a variable in .text.
14776
14777 * grub-core/lib/reed_solomon.c (scratch): Removed.
14778 (chosenstat): New const or static array.
14779 (sigma): Likewise.
14780 (errpot): Likewise.
14781 (errpos): Likewise.
14782 (sy): Likewise.
14783 (mstat): Likewise.
14784 (errvals): Likewise.
14785 (eqstat): Likewise.
14786 (pol_evaluate): Replace x with log_x argument. All users updated.
14787 (syndroms): Removed.
14788 (gauss_solve): Use statically allocated arrays.
14789 (rs_recover): Likewise.
14790 Calculate syndroms directly.
14791 (decode_block): Use statically allocated arrays.
14792 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14793 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14794
2e13ede5
VS
147952012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 Eliminate fixed limit on reed solomon decoder length.
14798
14799 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14800 rather than hardcoding the address.
14801 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14802 no_reed_solomon_length.
14803 Move gate_a20 to no-reed-solomon part.
14804 Don't force a particular size of no reed-solomon part.
14805 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14806 Removed.
14807 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14808 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14809
f8a9ab12
VS
148102012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 * grub-core/commands/wildcard.c (match_files): Handle filenames
14813 without explicit device.
14814 (wildcard_expand): Don't add explicit device if not already present.
14815 * tests/grub_script_echo1.in: Add a new expansion test.
14816
87edb894
VS
148172012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14818
14819 Replace single-linked with double-linked lists. It results in more
14820 compact and more efficient code.
14821
14822 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14823 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14824 (grub_list_remove): Moved from here ...
14825 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14826 (grub_prio_list_insert): Set prev.
14827 * include/grub/list.h (grub_list): Add prev. All users updated.
14828
48b391e9
VS
148292012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14830
14831 Handle newer autotools. Add some missing quotes while on it.
14832
14833 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14834 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14835 (pkgdata_DATA): ... here.
14836 * Makefile.util.def (update-grub_lib): Removed.
14837 * conf/Makefile.common (pkglib_DATA): Removed.
14838 (pkglib_SCRIPTS): Likewise.
14839 (pkgdata_DATA): New variable.
14840 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14841 needed.
14842 Add missing quotes.
14843 Remove unused variable while on it.
14844 * tests/util/grub-shell.in: Likewise.
14845 * util/grub-install.in: Likewise.
14846 * util/grub-mkconfig.in: Likewise.
14847 * util/grub-mknetdir.in: Likewise.
14848 * util/grub-mkrescue.in: Likewise.
14849 * util/grub-mkstandalone.in: Likewise.
14850 * util/grub.d/00_header.in: Likewise.
14851 * util/grub.d/10_hurd.in: Likewise.
14852 * util/grub.d/10_illumos.in: Likewise.
14853 * util/grub.d/10_kfreebsd.in: Likewise.
14854 * util/grub.d/10_linux.in: Likewise.
14855 * util/grub.d/10_netbsd.in: Likewise.
14856 * util/grub.d/10_windows.in: Likewise.
14857 * util/grub.d/20_linux_xen.in: Likewise.
14858 * util/grub.d/30_os-prober.in: Likewise.
14859 * util/update-grub_lib.in: Removed.
14860
148612012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
14862
14863 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14864 a workaround for intel problem.
14865
66832792
PRP
148662012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
148672012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
148682012-01-23 pfsmorigo
14869
14870 * util/grub-install.in: Support dd'in into PreP partition.
14871 * util/grub-probe.c (probe): Support discovering partition type.
14872 (main): Support -t msdos_parttype.
14873
7816a17e
VS
148742012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14877 infinite recursion using counter.
14878 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14879 init to skip it if the magic check fails.
14880 (dec_stream_header): Init s->crc32.
14881
8f9d3a8c
ZB
148822012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
148832012-01-22 Zachary Bedell <pendorbound@gmail.com>
148842012-01-22 Richard Laager <rlaager@wiktel.com>
14885
14886 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14887 All users updated.
14888 (find_bestub): Determine correct size.
14889 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14890 (scan_disk): Align the size down.
14891 Call check pool before find_bestub to have ashift.
14892
b055dd32
VS
148932012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14894
14895 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14896 dprintf in no-malloc zone.
14897
d779e9bd
ML
148982012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14899
14900 * configure.ac: Add back in test for limits.h.
14901
b508af69
VS
149022012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 Support 4K-sector NTFS.
14905
14906 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14907 (grub_ntfs_data): Remove blocksize.
14908 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14909 Remove data argument. All users updated.
14910
dad9c8b5
VS
149112012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14912
14913 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14914 being in .text to avoid dprel references.
14915 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14916 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14917 (grub_arch_highmemsize): Likewise.
14918 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14919 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14920 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14921
d43a777e
VS
149222012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14923
14924 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14925
14926 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14927 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14928
34e4208f
VS
149292012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14930
14931 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14932 GRUB_UTIL.
14933 (grub_set_datetime_cmos): Likewise.
14934
3ec0fc1c
VS
149352012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Make XZ compression parameters dependent on target and not host CPU.
14938
14939 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14940 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14941
22489834
VS
149422012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14943
14944 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14945 set but not used variable.
14946
8502fbca
VS
149472012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14948
14949 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14950 created when no uuid support is compiled into mkfs.reiser.
14951
76df2068
VS
149522012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14955 (utf8_to_macroman): Do the opposite.
14956 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14957
64e3f8f6
VS
149582012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * configure.ac: Refise build qemu_mips w/o unifont.
14961
9c271078
VS
149622012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 Eliminate grub_min/grub_max prone to overflow usage.
14965
14966 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14967 (poll_nonroot_hub): Likewise.
14968 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14969 (grub_affs_label): Likewise.
14970 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14971 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14972 (grub_hfs_label): Likewise.
14973 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14974 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14975 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14976 (zap_leaf_array_get): Likewise.
14977 (dnode_get_path): Likewise.
14978 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14979 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14980 * grub-core/script/execute.c (grub_script_break): Likewise.
14981 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14982 grub_max.
14983 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14984 * include/grub/misc.h (grub_min): Removed.
14985 (grub_max): Likewise.
14986
80662dbc
VS
149872012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14988
14989 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14990 direct.inode = 0.
14991
e6da1467
VS
149922012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14993
14994 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14995
b1ac4cb1
VS
149962012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14999
b4bf7c3b
VS
150002012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15001
15002 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
15003 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15004
8ee1101a
VS
150052012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15008 rather than a hack for grub_strncasemap.
15009
150102012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 Support multiple initrds
15013 Note: part of this was accidently committed in r3739.
15014
15015 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15016 initrd.
15017 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15018 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15019 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15020 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15021 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15022
4d1e2bc9
VS
150232012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15024
15025 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15026 disks with unknown size.
15027 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15028
75b49ebe
VS
150292012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15030
15031 Remove defines pertaining to arbitrary limits not affecting GRUB
15032 anymore.
15033
15034 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15035 (EXT2_MAX_SYMLINKCNT): Likewise.
15036 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15037 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15038 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15039 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15040 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15041 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15042 (DN_MAX_OBJECT_SHIFT): Likewise.
15043 (DN_MAX_OFFSET_SHIFT): Likewise.
15044 (DN_MAX_OBJECT): Likewise.
15045 (DNODES_PER_LEVEL_SHIFT): Likewise.
15046 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15047 (SPA_MAXBLOCKSIZE): Likewise.
15048 (SPA_BLOCKSIZES): Likewise.
15049 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15050 (MZAP_MAX_BLKSZ): Likewise.
15051
74a1dce7
VS
150522012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15055 handle NULL appropriately.
15056 Remove MIN.
15057
30c7d3ce
VS
150582012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 Fix efiemu.
15061
15062 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15063 cpu/types.h.
15064 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15065 * configure.ac: Fix efiemu check.
15066
3c76ea0c
VS
150672012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15070 grub_probe.
15071 Reported by: adamwill
15072
7e532280
SG
150732012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15074
15075 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15076
30492374
VS
150772012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 Fix handling of wide characters in gfxterm.
15080
15081 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15082 (clear_char): Likewise.
15083 (paint_char): Skip code == NULL chars.
15084 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15085
e70cb72f
VS
150862012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15087
15088 * grub-core/normal/charset.c: Move comment to right place.
15089
5c827cf9
VS
150902012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15093 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15094 (grub_affs_mount): Revert the correct version checking.
15095
53603892
VS
150962012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * docs/grub.texi (Unicode): Mention several other unsupported features.
15099
ff094b9b
VS
151002011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15101
15102 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15103 case statements as compile-time one.
15104 (direct_read): Prevent spurious warnings.
15105 (grub_squash_read_data): Likewise.
15106
c029da8a
VS
151072011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 Various squash4 fixes and LZO and XZ support.
15110
15111 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15112 Add xzembed source files.
15113 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15114 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15115 (grub_squash_inode): New subtype long_dir.
15116 (SQUASH_TYPE_LONG_DIR): New inode type.
15117 (COMPRESSION): New enum.
15118 (XZBUFSIZ): New const.
15119 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15120 (read_chunk): Use data->decompress.
15121 (zlib_decompress): New function.
15122 (lzo_decompress): Likewise.
15123 (xz_decompress): Likewise.
15124 (squash_mount): Set new data fields.
15125 (grub_squash_iterate_dir): Handle long dir.
15126 (squash_unmount): Free xzdec and xzbuf.
15127 (grub_squash_open): Check ino type.
15128 (direct_read): Stylistic fixes. Use data->decompress.
15129 (grub_squash_read_data): Likewise.
15130 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15131 (get_byte): Likewise.
15132 (grub_zlib_disk_read): Removed.
15133 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15134 (GRUB_POSIX_BOOL_DEFINED): New define.
15135 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15136 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15137 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15138 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15139
7a45a539
VS
151402011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 Don't override more informative errors.
15143
15144 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15145 * grub-core/font/font.c (open_section): Likewise.
15146 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15147 filename. Don't override errors.
15148 (grub_cmd_openbsd_ramdisk): Don't override errors.
15149 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15150 (grub_cmd_initrd): Likewise.
15151 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15152 (grub_cmd_initrd): Likewise.
15153 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15154 (grub_cmd_linux): Likewise.
15155 (grub_cmd_initrd): Likewise.
15156 (grub_cmd_payload): Likewise.
15157 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15158 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15159 (grub_cmd_module): Likewise.
15160 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15161 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15162 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15163 (grub_cmd_xnu_mkext): Likewise.
15164 (grub_cmd_xnu_ramdisk): Likewise.
15165 (grub_xnu_check_os_bundle_required): Likewise.
15166 (grub_xnu_load_kext_from_dir): Likewise.
15167 (grub_cmd_xnu_kextdir): Likewise.
15168 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15169
b2d004db
VS
151702011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15171
15172 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15173 as 1024 in block size field. Found on one of my test images.
15174 Small optimisation while on it.
15175
ec000eac
VS
151762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15179 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15180 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15181 performance fixes while on it.
15182 (grub_sfs_close): Fix memory leak while on it.
15183 (grub_sfs_label): Convert Latin1 to UTF-8.
15184
f50e1165
VS
151852011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15186
15187 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15188 space to avoid overflows.
15189 (grub_hfs_label): Convert from macroman to UTF-8.
15190
2ae254de
VS
151912011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15194
0108f491
VS
151952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15198
f45f5f89
VS
151992011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15200
15201 * unicode: Import Unicode 6.0 data.
15202
4d8c4765
VS
152032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15204
63fa8ef9
VS
15205 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15206 outside of range.
15207
152082011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15209
15210 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
15211
15212 * include/grub/charset.h (grub_getend): New function.
15213 * grub-core/script/function.c (grub_script_function_find): Use
15214 grub_getend.
15215 * grub-core/normal/completion.c (add_completion): Likewise.
15216
f3cb4a4e
VS
152172011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15218
15219 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15220 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15221 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15222 (GRUB_UNICODE_TAG_END): Likewise.
15223 (GRUB_UNICODE_LAST_VALID): Likewise.
15224
5da8dbc5
VS
152252011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15228 len and make it smaller. All users updated.
15229 * util/import_unicode.py: Put length and not end character.
15230 Check length.
15231
8569f13d
VS
152322011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 Make better Unicode-compliant and unify some UTF-8 code pathes.
15235
15236 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15237 valid character.
15238 (grub_is_valid_utf8): Use grub_utf8_process.
15239 Check resulting code range.
15240 (grub_utf8_to_ucs4): Use grub_utf8_process.
15241 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15242 valid character.
15243
cc4fddf5
VS
152442011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15247
bbc47747
VS
152482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * docs/grub.texi (Filesystems): Mention AFS.
15251
f63d6bf4
VS
152522011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 * docs/grub.texi (Filesystems): Clarify restrictions.
15255 (Regexp): Mention non-Unicode regexp behaviour.
15256 (Other): Mention non-Unicode matching behaviour.
15257
74bbf0db
VS
152582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15259
f63d6bf4 15260 Make HFS implementation use MacRoman.
74bbf0db
VS
15261
15262 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15263 (macroman): New const array.
15264 (macroman_to_utf8): New function.
15265 (utf8_to_macroman): Likewise.
15266 (grub_hfs_find_dir): Use utf8_to_macroman.
15267 (grub_hfs_dir): Use macroman_to_utf8.
15268 Set case_insensitive.
15269
4ea0316e
VS
152702011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15273
d3c13cbd
VS
152742011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 Integrate hints into autogeneration scripts.
15277
15278 * docs/grub.texi (Filesystems): Add a hostdisk example.
15279 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15280 (grub-probe): Add ofpath.
15281 * gentpl.py: Remove group nosparc64.
15282 * grub-core/commands/search.c (cache_entry): New struct.
15283 (cache): New var.
15284 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15285 * grub-core/commands/search_wrap.c (options): Add platform-specific
15286 hint options.
15287 (grub_cmd_search): Handle platform-specific hints.
15288 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15289 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15290 (grub_util_biosdisk_data): Likewise.
15291 (grub_util_biosdisk_open): Set device_map.
15292 (read_device_map): Handle "" as indication of no map.
15293 Set device_map.
15294 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15295 (grub_util_biosdisk_get_compatibility_hint): New function.
15296 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15297 * include/grub/emu/hostdisk.h
15298 (grub_util_biosdisk_get_compatibility_hint): New proto.
15299 * util/grub-install.in: Don't call grub-mkdevicemap.
15300 Add platform-specific hint to load.cfg.
15301 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15302 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15303 hints. Set root preliminary to compatibility hint, not to OS name.
15304 * util/grub-probe.c (PRINT_*): Add hints.
15305 (print): Make static.
15306 (escape_of_path): New function.
15307 (guess_bios_drive): Likewise.
15308 (guess_efi_drive): Likewise.
15309 (guess_baremetal_drive): Likewise.
15310 (print_full_name): Likewise.
15311 (probe): Handle hints.
15312 (main): Likewise.
15313 * util/ieee1275/devicemap.c: Removed.
15314 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15315 updated.
15316 (grub_util_devname_to_ofpath): Return NULL on failure.
15317
15318 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15319 resource leak.
15320 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15321
15322 * po/POTFILES.in: Regenerated.
15323
15324 Allow purely long options
15325
15326 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15327 (SHORT_ARG_USAGE): Likewise.
15328 (grub_arg_show_help): Compare opt with help_options.
15329 (parse_option): Receive opt as argument. If makes big simplificatons.
15330 All users updated
15331
00ce2df3
VS
153322011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15335 Restructure to avoid warning.
15336
e77e325f
VS
153372011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * util/grub-install.in: Account for possible escaped comma in device
15340 name.
15341
165099ea
VS
153422011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15343
15344 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15345 channel.
15346
ce4a999d
VS
153472011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15350 allocation and zero-setting.
15351 (grub_ieee1275_get_devname): Check that alias is complete.
15352
379586ad
VS
153532011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15356 unaligned segments.
15357
9197b0ad
VS
153582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15359
15360 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15361 prefix.
15362 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15363 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15364 Add ieee1275 prefix.
15365
edddb7f9
VS
153662011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 * docs/grub.texi (Filesystems): Update.
15369
a1a8b1b9
VS
153702011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 Support odc, newc and bigendian cpio formats.
15373
15374 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15375 * grub-core/Makefile.core.def (newc): New module.
15376 (odc): Likewise.
15377 (cpio_be): Likewise.
15378 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15379 (MAGIC): Likewise.
15380 (MAGIC2): Likewise.
15381 (head) [MODE_ODC]: Adapt for the format.
15382 (head) [MODE_NEWC]: Likewise.
15383 (head) [!MODE_*]: Write fields of interest as arrays.
15384 (MAGIC_USTAR): Removed.
15385 (read_number) [MODE_NEWC]: Change to hex.
15386 (read_number) [!MODE_*]: Parse binary arrays.
15387 (grub_cpio_find_file): Factor out the code for better structure and
15388 always use read_number.
15389 (grub_cpio_mount): Use MAGIC and MAGIC2.
15390 (grub_cpio_dir): Exit on first hook non-0 return.
15391 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15392 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15393 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15394 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15395 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15396 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15397 * grub-core/fs/newc.c: New file.
15398 * grub-core/fs/odc.c: Likewise.
15399 * grub-core/fs/cpio_be.c: Likewise.
15400
58eba9ee
VS
154012011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15402
15403 Fix handling of tar numbers occupying the whole field.
15404
15405 * grub-core/fs/cpio.c (read_number): New function.
15406 (grub_cpio_find_file): Use read_number instead of strtoull.
15407
a54a0e12
VS
154082011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15411 occupying the whole field size.
15412
a6120aca
LA
154132011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15414
15415 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15416
a93964ce
VS
154172011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15420
3ea1ca46
SG
154212011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15422
15423 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15424 TARGET_IMG_LDFLAGS.
15425
b87f7ef2
VS
154262011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15429 (mountinfo_entry): Increase the field size to take escaping into
15430 account.
15431 (find_root_device_from_libzfs): Add one byte to size of strings for
15432 security.
15433
62092395
VS
154342011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15437 an assert.
15438 * util/grub-setup.c (setup): Likewise.
15439
1f0b1a77
VS
154402011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15441
15442 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15443 _LzmaDecodeA.
15444
8eba9997
VS
154452011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15446
15447 * docs/grub.texi (Internationalisation): New section.
15448
dd0c91e9
VS
154492011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 * docs/grub.texi (Loopback booting): New section.
15452
154532011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
15454
15455 * util/grub-mkstandalone.in: Fix minor typo errors.
15456
198e150a
VS
154572011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15458
15459 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15460
15461 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15462 net/icmp.c and net/icmp6.c.
15463 (http): New module.
15464 (priority_queue): Likewise.
15465 * grub-core/io/bufio.c: Rewritten.
15466 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15467 TYPE_WITH_CONFIGFILE_OPTION.
15468 (legacy_commands): Add bootp and dhcp.
15469 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15470 (grub_legacy_parse): Likewise.
15471 * grub-core/lib/priority_queue.c: New file.
15472 * grub-core/net/arp.c: Add missing license header.
15473 (arp_find_entry): Removed.
15474 (arp_find_entry): Likewise.
15475 (grub_net_arp_resolve): Rename to ...
15476 (grub_net_arp_send_request): ...this.
15477 (grub_net_arp_receive): New card argument.
15478 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15479 Set router and DNS server.
15480 (grub_net_configure_by_dhcp_ack): Handle routing information.
15481 (grub_cmd_bootp): Set checksum.
15482 (grub_bootp_init): Remove net_dhcp.
15483 * grub-core/net/dns.c: New file.
15484 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15485 completion.
15486 (get_card_packet): Handle allocation.
15487 (grub_efinet_findcards): Set mtu.
15488 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15489 (get_card_packet): Handle allocation.
15490 (emucard): Set mtu.
15491 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15492 (GRUB_MOD_INIT): Set mtu.
15493 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15494 mtu.
15495 (get_card_packet): Handle allocation.
15496 (grub_ofnet_findcards): Set mtu.
15497 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15498 assert.
15499 (grub_net_recv_ethernet_packet): Handle IPv6.
15500 * grub-core/net/http.c: New file.
15501 * grub-core/net/icmp.c: Likewise.
15502 * grub-core/net/icmp6.c: Likewise.
15503 * grub-core/net/ip.c (ip6addr): New type.
15504 (ip6hdr): Likewise.
15505 (reassemble): Likewise.
15506 (cmp): New function.
15507 (reassembles): New variable.
15508 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15509 (id): New variable.
15510 (send_fragmented): New function.
15511 (grub_net_send_ip_packet): Rename to ...
15512 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15513 Handle non-UDP.
15514 (grub_net_recv_ip_packets): Rename to ...
15515 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15516 (free_rsm): New function.
15517 (free_old_fragments): Likewise.
15518 (grub_net_recv_ip4_packets): New function.
15519 (grub_net_send_ip6_packet): Likewise.
15520 (grub_net_send_ip_packet): Likewise.
15521 (grub_net_recv_ip6_packets): Likewise.
15522 (grub_net_recv_ip_packets): Likewise.
15523 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15524 (LINK_LAYER_CACHE_SIZE): New const.
15525 (link_layer_find_entry): New function.
15526 (grub_net_link_layer_add_address): Likewise.
15527 (grub_net_link_layer_resolve_check): Likewise.
15528 (grub_net_link_layer_resolve): Likewise.
15529 (grub_net_ipv6_get_slaac): Likewise.
15530 (grub_net_ipv6_get_link_local): Likewise.
15531 (grub_cmd_ipv6_autoconf): Likewise.
15532 (parse_ip): Handle one number representation.
15533 (parse_ip6): New functoion.
15534 (match_net): Handle IPv6.
15535 (grub_net_resolve_address): Handle IPv6 and DNS.
15536 (grub_net_resolve_net_address): Handle IPv6.
15537 (route_cmp): New function.
15538 (grub_net_route_address): Find best route.
15539 (grub_net_addr_to_str): Handle IPv6.
15540 (grub_net_addr_cmp): New function.
15541 (grub_net_add_addr): Register local route.
15542 (print_net_address): Handle net address.
15543 (grub_net_poll_cards): Retransmit TCP.
15544 (grub_net_poll_cards_idle_real): Likewise.
15545 (have_ahead): New function.
15546 (grub_net_seek_real): Use underlying seek.
15547 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15548 * grub-core/net/tcp.c: New file.
15549 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15550 (cmp): New function.
15551 (ack): Likewise.
15552 (tftp_receive): Handle unordered input.
15553 (destroy_pq): New function.
15554 (tftp_close): Close pq.
15555 * grub-core/net/udp.c: Put missing license header.
15556 (grub_net_udp_socket): New function.
15557 (udp_socket_register): Likewise.
15558 (grub_net_udp_close): Likewise.
15559 (grub_net_recv_udp_packet): Check checksum.
15560 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15561 * include/grub/misc.h (grub_memchr): New function.
15562 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15563 (grub_net_card_driver): Return buf in recv.
15564 (grub_net_slaac_mac_list): New struct.
15565 (grub_network_level_protocol_id): Add ipv6.
15566 (grub_net_network_level_addr): Likewise.
15567 (grub_net_network_level_net_addr): Likewise.
15568 (grub_net_app_protocol): Add seek.
15569 (grub_net_socket): Removed.
15570 (grub_net_sockets): Likewise.
15571 (grub_net_socket_register): Likewise.
15572 (grub_net_socket_unregister): Likewise.
15573 (FOR_NET_SOCKETS): Likewise.
15574 (grub_net_add_addr): Add const.
15575 (GRUB_NET_BOOTP_*): New enum.
15576 (grub_net_addr_cmp): New proto.
15577 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15578 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15579 (grub_net_hwaddr_to_str): NEw proto.
15580 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15581 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15582 (grub_dns_init): New proto.
15583 (grub_dns_fini): Likewise.
15584 (grub_net_tcp_retransmit): Likewise.
15585 (grub_net_link_layer_add_address): Likewise.
15586 (grub_net_link_layer_resolve_check): Likewise.
15587 (grub_net_link_layer_resolve): Likewise.
15588 (grub_net_dns_lookup): Likewise.
15589 (grub_net_add_dns_server): Likewise.
15590 (grub_net_remove_dns_server): Likewise.
15591 (GRUB_NET_TRIES): New const.
15592 (GRUB_NET_INTERVAL): Likewise.
15593 * include/grub/net/arp.h: Mostly rewritten.
15594 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15595 * include/grub/net/ip.h: Mostly rewritten.
15596 * include/grub/net/netbuff.h: Indent.
15597 * include/grub/net/tcp.h: New file.
15598 * include/grub/net/udp.h: Mostly rewritten.
15599 * include/grub/priority_queue.h: New file.
15600 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15601 (grub_swap_bytes64_compile_time): Likewise.
15602 (grub_cpu_to_be16_compile_time): Likewise.
15603 (grub_cpu_to_be32_compile_time): Likewise.
15604 (grub_cpu_to_be64_compile_time): Likewise.
15605 (grub_be_to_cpu64_compile_time): Likewise.
15606
215c1800
VS
156072011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15610 UINT_TO_PTR with cast.
15611
c17e546c
VS
156122011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15613
15614 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15615 don't use them.
15616
ff6b18b6
VS
156172011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15618
15619 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15620 already there.
15621
70ffcc93
VS
156222011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15623
15624 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15625 confusing ipxe.
15626
e5f4d260
VS
156272011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15628
15629 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15630 Add missing const attribute.
15631 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15632 Likewise.
15633 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15634 Likewise.
15635
8e54b4b7
VS
156362011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15637
15638 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15639 misaligned access.
15640 (serpent_setkey): Likewise.
15641 (serpent_encrypt_internal): Likewise.
15642 (serpent_decrypt_internal): Likewise.
15643 (serpent_encrypt): Don't put an alignment-increasing cast.
15644 (serpent_decrypt): Likewise.
15645 (serpent_test): Likewise.
15646
813c0a2b
VS
156472011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15650
f2b60fbd
VS
156512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15652
15653 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15654
15655 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15656 grub_addr_t casts.
15657 (PTR_TO_UINT64): Likewise.
15658 (PTR_TO_UINT32): Likewise.
15659
5ef5c511
VS
156602011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15661
15662 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15663 because of stack.
15664 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15665 limit.
15666
c476e6df
VS
156672011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15668
15669 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15670 text_width > available width a bit more gracefully.
15671
384ad7cc
VS
156722011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15675 current address calculation.
15676
96f8caf8
VS
156772011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15680 stack.
15681 (encode_block): Likewise.
15682
276b7a8b
VS
156832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15684
15685 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15686 certainety.
15687
e3fd394a
VS
156882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15691 non-RS part to avoid RS messing with GDT.
15692 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15693 Increase to suit in realmode routines.
15694
156952011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15696
15697 * grub-core/kern/i386/realmode.S: Increase alignment.
15698 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15699
ee9c2e7a
VS
157002011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15701
15702 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15703 be deterministic.
15704 (syndroms): Compute 0 syndrom.
15705 (rs_recover): Use 0 syndrom.
15706
7a7f7cc9
VS
157072011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15708
15709 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15710
a14b16d1
VS
157112011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15712
15713 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15714 brackets.
15715
9f59e9fc
VS
157162011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15717
ca1b552c
VS
15718 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15719 account.
15720 (get_top_pad): Likewise.
15721 (get_right_pad): Likewise.
15722 (get_bottom_pad): Likewise.
15723
157242011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15725
15726 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 15727
e739d698
VS
157282011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15729
15730 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15731 attribute as the structure isn't guaranteed to be properly aligned.
15732 (grub_efi_pci_device_path): Likewise.
15733 (grub_efi_pccard_device_path): Likewise.
15734 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15735 specify the size of `memory_type'.
15736 (grub_efi_vendor_device_path): Likewise.
15737 (grub_efi_controller_device_path): Likewise.
15738 (grub_efi_acpi_device_path): Likewise.
15739 (grub_efi_expanded_acpi_device_path): Likewise.
15740 (grub_efi_atapi_device_path): Likewise.
15741 (grub_efi_scsi_device_path): Likewise.
15742 (grub_efi_fibre_channel_device_path): Likewise.
15743 (grub_efi_1394_device_path): Likewise.
15744 (grub_efi_usb_device_path): Likewise.
15745 (grub_efi_usb_class_device_path): Likewise.
15746 (grub_efi_i2o_device_path): Likewise.
15747 (grub_efi_mac_address_device_path): Likewise.
15748 (grub_efi_ipv4_device_path): Likewise.
15749 (grub_efi_ipv6_device_path): Likewise.
15750 (grub_efi_infiniband_device_path): Likewise.
15751 (grub_efi_uart_device_path): Likewise.
15752 (grub_efi_vendor_messaging_device_path): Likewise.
15753 (grub_efi_hard_drive_device_path): Likewise.
15754 (grub_efi_cdrom_device_path): Likewise.
15755 (grub_efi_vendor_media_device_path): Likewise.
15756 (grub_efi_file_path_device_path): Likewise.
15757 (grub_efi_protocol_device_path): Likewise.
15758 (grub_efi_piwg_device_path): Likewise.
15759 (grub_efi_bios_device_path): Likewise.
15760
cb8f88ea
VS
157612011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15764 (grub_ucs4_to_utf8_alloc): Likewise.
15765 (grub_ucs4_to_utf8): Likewise.
15766 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15767 (grub_ucs4_to_utf8_alloc): Likewise.
15768
309e5352
VS
157692011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 AFFS never uses unicode.
15772
15773 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15774 (grub_latin1_to_utf8): New inline function.
15775 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15776
e7987e1b
VS
157772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15778
15779 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15780 overflow.
15781
efc2616e
VS
157822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15783
15784 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15785 (grub_squash_dirent_header): Likewise.
15786 (read_chunk): Don't double swap.
15787 (grub_squash_iterate_dir): Fix swap sizes.
15788
3c349f5a
VS
157892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15792
b453412d
VS
157932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15796 (grub_hfs_iterate_dir): Likewise.
15797
12e9d4d1
VS
157982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799
15800 Fix video on platforms where unaligned access is forbidden.
15801 Make several optimisations while on it.
15802
15803 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15804 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15805 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15806 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15807 Disable.
15808 (grub_video_fbblit_replace_16bit_1bit):
15809 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15810 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15811 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15812 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15813 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15814 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15815 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15816 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15817 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15818 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15819 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15820 (grub_video_fbblit_replace_index_RGB888): Likewise.
15821 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15822 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15823 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15824 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15825 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15826 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15827 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15828 Disable.
15829 (grub_video_fbblit_blend_XXX565_1bit):
15830 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15831 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15832 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15833 void *.
15834 * grub-core/video/fb/video_fb.c (common_blitter)
15835 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15836 (grub_video_fb_create_render_target_from_pointer)
15837 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15838 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15839 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15840 definition.
15841 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15842
ace96609
VS
158432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15844
15845 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15846 HH22 and HM10 relocations.
15847
fd261d73
VS
158482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15851
e59b7857
VS
158522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15855 allocation succeeded.
15856
9b4baaa4
VS
158572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15858
15859 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15860 argument a u8 pointer. All users updated.
15861 Handle unaligned buffers.
15862
dc713193
VS
158632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15866 add_part to workaround compiler bug.
15867
30dd48c2
VS
158682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15871
0c6087a8
VS
158722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873
15874 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15875 Reserve alignment invariants.
15876 (grub_multiboot_load): Likewise.
15877 (retrieve_video_parameters): Likewise.
15878 (grub_multiboot_make_mbi): Likewise.
15879
c2e77777
VS
158802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15883 incorrect pointer.
15884
b70b6d11
VS
158852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15888 (grub_pata_pio_write): Likewise.
15889
02a2bf83
VS
158902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15891
15892 Add noreturn attributes and remove unreachable code.
15893
15894 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15895 code.
15896 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15897 code. Mark as noreturn.
15898 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15899 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15900 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15901 unreachable code.
15902 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15903 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15904 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15905 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15906 * include/grub/kernel.h (grub_main): Mark as noreturn.
15907 * include/grub/reader.h (grub_rescue_run): Likewise.
15908
2019d09e
VS
159092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15910
15911 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15912 redundant declaration.
15913
d1c501ee
VS
159142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15915
15916 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15917 redundant declaration.
15918 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15919
61664420
VS
159202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15921
15922 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15923 to ensure alignment.
15924 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15925 alignment. Ensure tmp alignment.
15926 (grub_cmd_hdparm): Ensure buf alignment.
15927 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15928 to ensure alignment.
15929 (grub_ata_dumpinfo): Ensure text alignment.
15930 (grub_atapi_identify): Preserve alignment invariant.
15931 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15932
0d51ee20
VS
159332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15934
15935 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15936 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15937 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15938 * include/grub/misc.h (grub_reboot)
15939 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15940 (grub_halt) [__mips__]: Likewise.
15941
753ef8c1
VS
159422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15943
15944 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15945 Remove redundant declaration.
15946 (grub_mmap_get_post64): Likewise.
15947 (grub_mmap_get_upper): Likewise.
15948 (grub_mmap_get_lower): Likewise.
15949
85c85365
VS
159502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15953 uint32_t * to ensure alignment.
15954 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15955
a23f2cc4
VS
159562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15957
93018f64
VS
15958 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15959 uint16_t * to ensure alignment.
15960 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15961 alignment.
15962
159632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
15966 to ensure alignment.
15967 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15968
58acccd6
VS
159692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15970
15971 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15972 Handle unaligned pointers.
15973 (u32at): Likewise.
15974 (u64at): Likewise.
15975 (fixup): Use byte access instead of v16at.
15976 (find_attr): Fix imporper usage of v32at.
15977 (read_data): Likewise.
15978 (list_file): Handle byte-swapping and unaligned strings.
15979 (grub_ntfs_label): Likewise.
15980
9b05cad7
VS
159812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15982
15983 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15984 as it's not necessarily aligned.
15985
b3950b84
VS
159862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15989 redundant declaration.
15990 (grub_serial_init): Likewise.
15991 (grub_terminfo_init): Likewise.
15992
fcd232b7
VS
159932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15994
15995 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15996 function.
15997 (ZAP_HASH_IDX): Likewise.
15998 (ZAP_LEAF_HASH_SHIFT): Likewise.
15999 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
16000 (LEAF_HASH): Likewise.
16001 (ZAP_LEAF_NUMCHUNKS): Likewise.
16002 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
16003 alignment invariants. Return pointer. All users updated.
16004 (ZAP_LEAF_ENTRY): Make into inline function.
16005 (NBBY): Removed.
16006 (xor): LIkewise.
16007 (xor_out): Use grub_crypto_xor.
16008 (dnode_get_path): Use grub_get_unaligned.
16009 (nvlist_find_value): Likewise.
16010 (grub_zfs_nvlist_lookup_uint64): Likewise.
16011 (grub_zfs_nvlist_lookup_string): Likewise.
16012 (get_nvlist_size): Likewise.
16013 (grub_zfs_open): Likewise.
16014 (fill_fs_info): Likewise.
16015 (grub_zfs_dir): Likewise.
16016 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16017 alignment invariants.
16018 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16019 necessarily aligned.
16020
f138623a
VS
160212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16024
564840dc
VS
160252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16028 arithmetic to conserve alignment invariants.
16029
9b40df20
VS
160302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16033 redundant declaration.
16034 (grub_efiemu_mm_obtain_request): Likewise.
16035 (grub_efiemu_prepare): Likewise.
16036
d1c930f9
VS
160372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16040 to match types.
16041
4c5f3056
VS
160422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16043
16044 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16045 case of aunaligned recptr.
16046 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16047 alignment.
16048 (grub_hfsplus_btree_search): Handle unaligned index.
16049
728cba91
VS
160502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16053 to get freetag and skip.
16054
eb561f31
VS
160552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16058 array.
16059 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16060 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16061
20993fbb
VS
160622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16065 name for checksum and fix allocation algorithm.
16066
1f313b94
VS
160672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16068
16069 * include/grub/types.h (grub_properly_aligned_t): New type.
16070 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16071 (grub_get_unaligned16): Add explicit casts.
16072 (grub_get_unaligned32): Likewise.
16073 (grub_get_unaligned64): Likewise.
16074 (grub_set_unaligned16): New function.
16075 (grub_set_unaligned32): Likewise.
16076
47ae27ec
VS
160772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16080
78c2cd1c
VS
160812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16082
16083 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16084 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16085 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16086
53072f9b
VS
160872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16088
16089 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16090 conditionals.
16091
055dc239
VS
160922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16095 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16096
496bd074
VS
160972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098
16099 Unify and improve RAID and crypto xor.
16100
16101 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16102 changed to grub_crypto_xor
16103 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16104 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16105 Use bigger types when possible.
16106
ef6e4335
VS
161072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108
16109 * grub-core/disk/raid.c (scan_devices): Fix condition.
16110
5d048bf2
VS
161112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16114 Make name a const ptr.
16115
ee533335
VS
161162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16119 first argument a const pointer.
16120 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16121 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16122 proto.
16123 (grub_children_iterate): Likewise.
16124 (grub_machine_mmap_iterate): Remove redundant declaration.
16125
cc8f3668
VS
161262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16129 (grub_cmd_acpi) [!x86]: Disable EBDA.
16130
c5fc563a
VS
161312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16132
16133 Enable UTF8 in gnulib regexp.
16134
16135 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16136 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16137 (isupper): Use grub_isupper.
16138 (isascii): New inline function.
16139 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16140 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16141 * grub-core/normal/charset.c (grub_utf8_process): New function.
16142 (grub_utf8_to_utf16): Use grub_utf8_process.
16143 (grub_encode_utf8_character): New function.
16144 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16145 * include/grub/charset.h (grub_utf8_process): New declaration.
16146 (grub_encode_utf8_character): Likewise.
16147 * include/grub/misc.h (grub_islower): New inline function.
16148 (grub_isupper): Likewise.
16149 (grub_strchrsub): Moved down to fix the definitions.
16150
0af2346f
VS
161512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16152
16153 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16154 specification.
16155
74dbd244
VS
161562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 * include/grub/loader.h (grub_loader_register_preboot_hook):
16159 Use struct preboot * and not void * for handle. All users updated.
16160 (grub_loader_unregister_preboot_hook): Likewise.
16161
1bc8f60d
VS
161622011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16163
16164 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16165 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16166 UTF-16-BE. All users updated.
16167 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16168 (grub_hfsplus_iterate_dir): Likewise.
16169 (grub_hfsplus_label): Likewise.
16170
48d6e456
VS
161712011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16174
bf3a3857
VS
161752011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 Add missing const qualifiers.
16178
16179 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16180 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16181 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16182 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16183 (grub_lvm_check_flag): Likewise.
16184 * grub-core/efiemu/i386/coredetect.c
16185 (grub_efiemu_get_default_core_name): Likewise
16186 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16187 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16188 * grub-core/fs/ntfs.c (fixup): Likewise.
16189 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16190 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16191 (fzap_lookup): Likewise.
16192 (zap_lookup): Likewise.
16193 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16194 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16195 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16196 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16197 (grub_freebsd_add_meta_module): Likewise.
16198 (grub_cmd_freebsd_module): Likewise.
16199 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16200 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16201 (grub_xnu_writetree_get_size): Likewise.
16202 (grub_xnu_writetree_toheap_real): Likewise.
16203 (grub_xnu_find_key): Likewise.
16204 (grub_xnu_create_key): Likewise.
16205 (grub_xnu_create_value): Likewise.
16206 (grub_xnu_register_memory): Likewise.
16207 (grub_xnu_check_os_bundle_required): Likewise.
16208 (grub_xnu_scan_dir_for_kexts): Likewise.
16209 (grub_xnu_load_kext_from_dir): Likewise.
16210 * grub-core/normal/color.c (color_list): Likewise.
16211 * grub-core/normal/completion.c (current_word): Likewise.
16212 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16213 * grub-core/term/serial.c (grub_serial_find): Likewise.
16214 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16215 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16216 Likewise.
16217 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16218 (grub_freebsd_add_meta_module): Likewise.
16219 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16220 * include/grub/net.h (grub_net_card_driver): Likewise.
16221 (grub_net_card): Likewise.
16222 (grub_net_app_protocol): Likewise.
16223 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16224 * include/grub/serial.h (grub_serial_find): Likewise.
16225 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16226 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16227 (grub_xnu_create_value): Likewise.
16228 (grub_xnu_find_key): Likewise.
16229 (grub_xnu_scan_dir_for_kexts): Likewise.
16230 (grub_xnu_load_kext_from_dir): Likewise.
16231
16232 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16233 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16234 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16235 Moved from here ...
16236 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16237
112b4837
CW
162382011-11-28 Colin Watson <cjwatson@ubuntu.com>
16239
16240 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16241
49e891ac
VS
162422011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16245 (read_device): Fix size calculation.
16246
fd258e5c
RM
162472011-11-25 Robert Millan <rmh@gnu.org>
16248
16249 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16250 (find_root_device_from_libzfs): Add zpool output parser to be used
16251 as fallback when libzfs isn't available.
16252
78845dc2
SG
162532011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16254
16255 * po/Makefile.in.in: Add missing escape-continuation.
16256
adac5211
VS
162572011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16260
10b64f1c
VS
162612011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16262
16263 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16264
bb416954
VS
162652011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16268
bdfe9eeb
VS
162692011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16270
16271 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16272
581ffa8a
VS
162732011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 * grub-core/lib/adler32.c: Add missing license specification.
16276 * grub-core/lib/crc64.c: Likewise.
16277 * grub-core/loader/i386/pc/plan9.c: Likewise.
16278 * grub-core/partmap/plan.c: Likewise.
16279
2536cf64
LK
162802011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16281
16282 Add facility to debug GRUB with gdb under qemu.
16283
16284 * grub-core/gdb_grub.in: New file.
16285 * grub-core/gmodule.pl.in: Likewise.
16286 * grub-core/Makefile.core.def (gmodule.pl): New script.
16287 (gdb_grub): Likewise.
16288
bc108a4a
VS
162892011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16290
16291 * util/grub-mount.c (argp_parser): Accept relative pathes.
16292 * util/grub-fstest.c (argp_parser): Likewise.
16293
111c1778
VS
162942011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16295
16296 Plan9 support.
16297
16298 * Makefile.util.def (libgrubmods): Add
16299 grub-core/partmap/plan.c.
16300 * docs/grub.texi: Notice Plan9 support.
16301 * grub-core/Makefile.core.def (plan9): New module.
16302 (part_plan): Likewise.
16303 * grub-core/loader/i386/pc/plan9.c: New file.
16304 * grub-core/partmap/plan.c: Likewise.
16305 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16306 define.
16307 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16308 * include/grub/mm.h (grub_extend_alloc): New inline function.
16309
c30be3b6
VS
163102011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16311
16312 Make Reed-Solomon faster by using power of generator representation of
16313 GF(256)*.
16314
16315 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16316 (gf_double_t): Likewise.
16317 (gf_invert): Removed.
16318 (gf_powx): New array.
16319 (gf_powx_inv): Likewise.
16320 (scratch): Move higher.
16321 (gf_reduce): Removed.
16322 (gf_mul): Use powx.
16323 (gf_invert): Likewise.
16324 (init_inverts): Replaced with ...
16325 (init_powx): ...this. All users updated.
16326 (pol_evaluate): Replace multiplications with additions.
16327 (rs_encode): Likewise.
16328 (gauss_eliminate): Call gf_invert.
16329 (grub_reed_solomon_add_redundancy): Call init_powx.
16330 (grub_reed_solomon_recover): Call init_powx unconditionally.
16331
fa5aeffc
VS
163322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16335
a346b81c
VS
163362011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16339 disk->partiton for safety.
16340
d89ee414
VS
163412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16342
16343 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16344 Fix a memory leak.
16345 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16346
91ee7b6d
VS
163472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16348
16349 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16350
91e5a33d
VS
163512011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16352
16353 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16354
9edd7be2
VS
163552011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16356
16357 Fix spaces handling in proc/self/mountinfo.
16358
16359 * util/getroot.c (unescape): New function.
16360 (grub_find_root_device_from_mountinfo): Use unescape.
16361
ba102053
VS
163622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16363
16364 Support ZFS embedding.
16365
16366 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16367 (grub_zfs_fs): Register grub_zfs_embed.
16368
aa94b870
VS
163692011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16370
16371 Fix MIPS compilation.
16372
16373 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16374 * include/grub/offsets.h: Rename decompressor fields from
16375 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16376 * util/grub-mkimage.c (image_targets): Use new names.
16377
5fbdac14
VS
163782011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 Defer multiboot device parsing until we're in compressed part.
16381
16382 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16383 bsd_part. setdevice has fallen into disuse.
16384 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16385 (bsd_part): Likewise.
16386 (boot_dev): New variable.
16387 (multiboot_trampoline): Don't parse multiboot device.
16388 Pass multiboot device in %edx.
16389 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16390 grub_boot_device.
16391 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16392 Likewise.
16393 * grub-core/kern/i386/pc/startup.S: Save edx.
16394 (grub_boot_drive): Removed.
16395 (grub_install_dos_part): Likewise.
16396 (grub_install_bsd_part): Likewise.
16397 (grub_boot_device): New variable.
16398 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16399 (grub_install_bsd_part): Likewise.
16400 (grub_boot_drive): Likewise.
16401 (grub_boot_device): New variable.
16402 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16403 Removed.
16404 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16405 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16406 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16407 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16408 * util/grub-install.in: Remove redundant condition.
16409
691cbb58
VS
164102011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16411
16412 Fix bug introduced by previous commit.
16413
16414 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16415
60240b8b
VS
164162011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Use decompressors framework on i386-pc. It increases core size
16419 by 46 bytes but improves compatibility and maintainability.
16420
16421 * grub-core/Makefile.core.def (lzma_decompress): New image.
16422 (kernel): Add i386_pc_ldflags.
16423 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16424 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16425 to real_to_prot, prot_to_real and device info.
16426 * include/grub/offsets.h: Renamed decompressor offsets.
16427 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16428 (image_target_desc): Remove raw_size and rename decompressor fields.
16429 (compress_kernel): Handle lzma.
16430 (generate_image): Handle decompressors on i386-pc.
16431
e9d3421c
VS
164322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16433
16434 * configure.ac: Add -fno-asynchronous-unwind-tables.
16435
2b23074a
VS
164362011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16437
16438 Move assembly code to C by using intwrap. It increases core size
16439 by 88 bytes but improves compatibility and maintainability.
16440
16441 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16442 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16443 ... here. Translated to C.
16444 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16445 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16446 ... here. Translated to C.
16447 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16448 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16449 ... here. Translated to C.
16450 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16451 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16452 ... here. Translated to C.
16453 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16454 * grub-core/term/i386/pc/console.c (grub_console_cls):
16455 ... here. Translated to C.
16456 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16457 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16458 ... here. Translated to C.
16459 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16460 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16461 Translated to C.
16462 * grub-core/term/i386/pc/console.c (int10_9): New function.
16463 (grub_console_putchar): Likewise.
16464 * include/grub/i386/pc/console.h: Removed the not anymore shared
16465 functions.
16466
678f4b67
VS
164672011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 Move grub_chainloader_real_boot out of the kernel.
16470
16471 * grub-core/Makefile.am: Remove machine/loader.h.
16472 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16473 Removed.
16474 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16475 variable.
16476 (grub_relocator16_keep_a20_enabled): Likewise.
16477 (grub_relocator16_boot): Fill new variables.
16478 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16479 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16480 relocator.
16481 (grub_chainloader_unload): Likewise.
16482 (grub_chainloader_cmd): Likewise.
16483 * include/grub/i386/pc/loader.h: Removed.
16484 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16485 and esi. All initialisers updated.
16486
4626edf6
VS
164872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
164882011-11-12 Colin Watson <cjwatson@ubuntu.com>
16489
16490 * Makefile.util.def (grub-mount): New util.
16491 * .bzrignore: Add grub-mount.
16492 * configure.ac: Check for fuse and enable grub-mount if available.
16493 * docs/man/grub-mount.h2m: New file.
16494 * util/grub-mount.c: Likewise.
16495
10f0117b
VS
164962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16497
16498 * grub-core/commands/efi/fixvideo.c: Gettextize.
16499 * grub-core/commands/hashsum.c: Likewise.
16500 * grub-core/commands/i386/cmostest.c: Likewise.
16501 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16502 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16503 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16504 * grub-core/commands/lsmmap.c: Likewise.
16505 * grub-core/commands/menuentry.c: Likewise.
16506 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16507 * grub-core/commands/setpci.c: Likewise.
16508 * grub-core/loader/i386/bsd.c: Likewise.
16509 * grub-core/loader/i386/linux.c: Likewise.
16510 * util/getroot.c: Likewise.
16511 * util/grub-editenv.c: Likewise.
16512 * util/grub-fstest.c: Likewise.
16513 * util/grub-mkfont.c: Likewise.
16514 * util/grub-mkimage.c: Likewise.
16515 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16516 * util/grub-pe2elf.c: Likewise.
16517 * util/grub-probe.c: Likewise.
16518 * util/grub-setup.c: Likewise.
16519 * util/ieee1275/ofpath.c: Likewise.
16520 * util/misc.c: Likewise.
16521 * util/raid.c: Likewise.
16522
566f779b
RM
165232011-11-11 Robert Millan <rmh@gnu.org>
16524
16525 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16526 __attribute__((unused)) from `os_dev', which *is* being used.
16527
b50787de
VS
165282011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16531 forgotten define.
16532 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16533 GRUB_IA64_DL_GOT_ALIGN.
16534 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16535 GRUB_IA64_DL_TRAMP_ALIGN.
16536
119d11c8
VS
165372011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16538
16539 Replace grub_fatal with normal errors in i386 linux loader.
16540
16541 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16542 (allocate_pages): Check find_efi_mmap_size return value.
16543 (grub_e820_add_region): Return error.
16544 (grub_linux_boot): Check mmap return value.
16545
6e0632e2
VS
165462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547
16548 * grub-core/commands/acpihalt.c: Gettextized.
16549 * grub-core/commands/cacheinfo.c: Likewise.
16550 * grub-core/commands/cmp.c: Likewise.
16551 * grub-core/commands/efi/loadbios.c: Likewise.
16552 * grub-core/commands/gptsync.c: Likewise.
16553 * grub-core/commands/ieee1275/suspend.c: Likewise.
16554 * grub-core/commands/legacycfg.c: Likewise.
16555 * grub-core/commands/memrw.c: Likewise.
16556 * grub-core/commands/minicmd.c: Likewise.
16557 * grub-core/commands/parttool.c: Likewise.
16558 * grub-core/commands/time.c: Likewise.
16559 * grub-core/commands/videoinfo.c: Likewise.
16560 * grub-core/disk/geli.c: Likewise.
16561 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16562 * grub-core/disk/luks.c: Likewise.
16563 * grub-core/disk/lvm.c: Likewise.
16564 * grub-core/font/font_cmd.c: Likewise.
16565 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16566 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16567 * grub-core/gfxmenu/view.c: Likewise.
16568 * grub-core/kern/emu/hostdisk.c: Likewise.
16569 * grub-core/kern/emu/main.c: Likewise.
16570 * grub-core/kern/emu/misc.c: Likewise.
16571 * grub-core/kern/emu/mm.c: Likewise.
16572 * grub-core/kern/mips/arc/init.c: Likewise.
16573 * grub-core/kern/mips/loongson/init.c: Likewise.
16574 * grub-core/kern/partition.c: Likewise.
16575 * grub-core/lib/i386/halt.c: Likewise.
16576 * grub-core/lib/mips/arc/reboot.c: Likewise.
16577 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16578 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16579 * grub-core/loader/i386/xnu.c: Likewise.
16580 * grub-core/loader/multiboot.c: Likewise.
16581 * grub-core/net/bootp.c: Likewise.
16582 * grub-core/net/net.c: Likewise.
16583 * grub-core/normal/term.c: Likewise.
16584 * grub-core/partmap/bsdlabel.c: Likewise.
16585 * grub-core/parttool/msdospart.c: Likewise.
16586 * grub-core/term/gfxterm.c: Likewise.
16587 * grub-core/term/terminfo.c: Likewise.
16588 * grub-core/video/i386/pc/vbe.c: Likewise.
16589 * util/grub-menulst2cfg.c: Likewise.
16590 * util/grub-mkdevicemap.c: Likewise.
16591 * util/grub-mklayout.c: Likewise.
16592 * util/grub-mkrelpath.c: Likewise.
16593 * util/grub-script-check.c: Likewise.
16594 * util/ieee1275/grub-ofpathname.c: Likewise.
16595 * util/resolve.c: Likewise.
16596
073aa7a9
VS
165972011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 Support %1$d syntax.
16600
16601 * tests/printf_unit_test.c: New file.
16602 * Makefile.util.def (printf_test): New test.
16603 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16604
c76b5417
VS
166052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16606
16607 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16608 fix.
16609
df067ad1
VS
166102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16611
16612 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16613 dprintf.
16614 * grub-core/font/font.c (grub_font_load): Likewise.
16615
5b289bc5
VS
166162011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 * util/grub-macho2img.c: Add comment concerning gettext.
16619 * grub-core/lib/legacy_parse.c: Likewise.
16620
c1860f87
VS
166212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16624 (grub_xvasprintf): Likewise.
16625
d35d0d37
VS
166262011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 Add const keyword to grub_env_get and gettextize week days.
16629
16630 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16631 (grub_read_hook_datetime): Return const char *.
16632 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16633 updated.
16634 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16635 Mark for gettext.
16636 (grub_get_weekday_name): Return const char *. Call gettext.
16637 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16638 char * and len as the argument. All users updated.
16639 (grub_script_argv_split_append): Receive const char *.
16640 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16641 * include/grub/env.h (grub_env_get): Likewise.
16642 (grub_env_read_hook_t): Return const char *.
16643 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16644 (grub_script_argv_split_append): Likewise.
16645
9aed8a71
VS
166462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16649
067fdf00
VS
166502011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16651
16652 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16653 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16654
a8bd9d39
VS
166552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16658 Fix prototype.
16659
f7ce5baf
VS
166602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 Fix mips compilation.
16663
16664 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16665 normal decoder.
16666 (hashes): Use in embed decoder as well (for sizes).
16667 (dec_stream_header): Fix embed decompressor logic.
16668 (dec_stream_footer): Likewise.
16669
9bb182f3
VS
166702011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16673 an error and not a fatal on unrecognised relocation types.
16674
63a9e6f6
VS
166752011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16676
16677 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16678 Issue error rather than printf on unknown arguments.
16679
4c458569
VS
166802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16681
16682 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16683 Make buf a const.
16684
e2d22baf
VS
166852011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16686
16687 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16688 Fix module name.
16689
53dc8590
VS
166902011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16693 leftover debug printf.
16694
6c189294
VS
166952011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16698
f7688369
VS
166992011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16702 A stylistic fix.
16703
11a775a3
VS
167042011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16707
33f784e8
SL
167082011-11-10 Shea Levy <slevy@tieronedesign.com>
16709
16710 Allow all modules to perform serial IO
16711
16712 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16713 * include/grub/serial.h (grub_serial_port_configure): New inline
16714 function.
16715 (grub_serial_port_fetch): Likewise.
16716 (grub_serial_port_put): Likewise.
16717 (grub_serial_port_fini): Likewise.
16718 (grub_serial_find): New proto.
16719
f6276525
VS
167202011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16721
16722 Put symlink at the end of the node and fix a potential
16723 memory corruption.
16724
16725 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16726 Make symlink into an array.
16727 (set_rockridge): Set have_symlink and alloc_dirents.
16728 (grub_iso9660_read_symlink): Use new layout.
16729 (grub_iso9660_iterate_dir): Fix memory corruption.
16730 Use new layout.
16731 (grub_iso9660_dir): Set have_symlink.
16732 (grub_iso9660_open): Likewise.
16733
c3591189
VS
167342011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16735
16736 Remove local keyword.
16737
16738 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16739 (version_test_gt): Likewise.
16740 (version_find_latest): Likewise.
16741 (gettext_printf): Likewise.
16742 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16743
cb544caa
VS
167442011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16745
16746 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16747
45bd824d
VS
167482011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 Fix ZFS memory and resource leaks.
16751
16752 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16753 All users updated.
16754 Free type on exit.
16755 (fill_vdev_info): New parameter inserted. All users updated.
16756 (check_pool_label): Likewise.
16757 (scan_disk): Likewise.
16758 (scan_devices): Close non-inserted disks.
16759 (fzap_iterate): Free l.
16760 (unmount_device): Free children descripto memory.
16761
ad9a2f44
VS
167622011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16765 argument (access out of bounds).
16766
6b68db81
VS
167672011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16770 >= 6 drives.
16771
28840fda
VS
167722011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16773
16774 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16775 Fix declaration.
16776
8a5a3a5b
VS
167772011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16778
16779 Fix several memory leaks.
16780
16781 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16782 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16783 (grub_cpio_dir): Likewise.
16784 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16785 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16786 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16787 (grub_romfs_label): Likewise.
16788 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16789 (squash_unmount): New function.
16790 (grub_squash_dir): Fix memory leak.
16791 (grub_squash_open): Likewise.
16792 (grub_squash_read): Likewise.
16793 (grub_squash_mtime): Likewise.
16794 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16795 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16796 * util/grub-fstest.c (fstest): Likewise.
16797
57b01250
VS
167982011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16799
16800 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16801 avoid accessing beyond the array.
16802
19e81ba7
VS
168032011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16806
52b656c0
VS
168072011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16808
16809 Several AFFS fixes.
16810
16811 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16812 (GRUB_AFFS_FLAG_FFS): Removed.
16813 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16814 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16815 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16816 (grub_fshelp_node): Make block 32-bit.
16817 Add block_cache and last_block_cache.
16818 (grub_affs_read_block): Fill and use block cache.
16819 (grub_affs_read_file): Removed.
16820 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16821 boot block.
16822 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16823 safety.
16824 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16825 space.
16826 (grub_affs_close): Free block cache.
16827 (grub_affs_read): Use grub_fshelp_read_file directly.
16828
438a746a
VS
168292011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16832 with no error set.
16833
49a45021
VS
168342011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16837 used variable.
16838 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16839 Likewise.
16840
3ae17eb8
VS
168412011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16844
16845 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16846 byteswap when needed.
16847
27610c38
VS
168482011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Fix FreeBSD compilation.
16851
16852 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16853 to avoid circular dependency.
16854 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16855 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16856 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16857
4a19b601
VS
168582011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 Fix ZFS crypto error types.
16861
16862 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16863 (grub_gcm_decrypt): Likewise.
16864 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16865 from PBKDF2.
16866
958ee221
VS
168672011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16868
16869 Illumos support.
16870
16871 * Makefile.util.def (10_illumos): New script.
16872 * configure.ac: Set COND_HOST_ILLUMOS.
16873 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16874 Support Illumos calls.
16875 (find_partition_start) [__sun__]: Likewise.
16876 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16877 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16878 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16879 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16880 device.
16881 * util/grub-probe.c (probe) [__sun__]: Do character check.
16882 * util/grub.d/10_illumos.in: New file.
16883
cac14fb6
VS
168842011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16885
16886 Support escaped commas in hostdisk.
16887
16888 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16889 (find_grub_drive): Use unescape_cmp.
16890 (make_device_name): Escape commas.
16891
78e08dc3
VS
168922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16895
9f421dd1
VS
168962011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16899 variable.
16900
ed64e9e2
VS
169012011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 Support trampoline jumps on powerpc.
16904
16905 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16906 __ia64__ path.
16907 (grub_dl_load_segments): Set mod->sz.
16908 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16909 segments.
16910 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16911 (jump): Likewise.
16912 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16913 function.
16914 (trampoline): New struct.
16915 (trampoline_template): New const.
16916 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16917 * include/grub/dl.h (grub_dl): Add sz element.
16918 [__powerpc__]: Follow __ia64__.
16919 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16920 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16921 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16922 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16923
3084ede4
VS
169242011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 ZFS crypto support.
16927
16928 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16929 * grub-core/Makefile.core.def (zfscrypt): New module.
16930 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16931 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16932 it. All users updated.
16933 (grub_zfs_decrypt): New var.
16934 (grub_zfs_load_key): Likewise.
16935 (zio_checksum_functions): Add SHA256+MAC.
16936 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16937 (zio_read): Handle encrypted blocks.
16938 (zap_verify): Remove incorrect check.
16939 (fzap_iterate): Handle non-standard fzap.
16940 (zap_iterate): Likewise.
16941 (zap_iterate_u64): New function.
16942 (dnode_get_fullpath): Load keys.
16943 * grub-core/fs/zfs/zfscrypt.c: New file.
16944 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16945 (grub_crypto_ecb_encrypt): Make input const.
16946 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16947 (grub_crypto_ecb_encrypt): Make input const.
16948 (GRUB_CIPHER_AES): New macro.
16949 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16950 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16951 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16952 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16953 prefix. All users updated.
16954 (grub_zfs_add_key): New proto.
16955 (grub_zfs_decrypt): Likewise.
16956 (grub_zfs_load_key): Likewise.
16957 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16958 * util/grub-fstest.c (options): Add -K option.
16959 (argp_parser): Likewise.
16960
b632b404
VS
169612011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 Support zle compression on ZFS.
16964
16965 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16966 (decomp_table): Add zle.
16967 * include/grub/zfs/zio.h (zio_compress): Add zle.
16968
c7ba4f69
VS
169692011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Support BtrFS embedding.
16972
16973 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16974 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16975 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16976 * util/grub-setup.c (setup): Use fs embedding if available.
16977 Add additional sanity check.
16978
455377d9
VS
169792011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 * util/grub-install.in: Fix condition for config_opt.
16982
c2fd16ca
VS
169832011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 Support third redundancy strip on raidz3.
16986
16987 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16988 Return error on singularity. All users updated.
16989 (read_device): Don't stop on 3rd failure on raidz3.
16990
8622923b
VS
169912011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 Support case-insensitive ZFS subvolumes.
16994
16995 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16996 All users updated.
16997 (zap_hash): Likewise.
16998 (name_cmp): New function.
16999 (zap_leaf_array_equal): New parameter case_insensitive.
17000 All users updated.
17001 (zap_leaf_lookup): Likewise.
17002 (fzap_lookup): Likewise.
17003 (zap_lookup): Likewise.
17004 (dnode_get_path): New parameter case_insensitive. Retrieve case
17005 sensitiviness of a volume. All users updated.
17006 (dnode_get_fullpath): New parameter case_insensitive.
17007 All users updated.
17008 (grub_zfs_dir): Set info.case_insensitiveness.
17009
95f2e860
VS
170102011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 Support second redundancy strip on raidz(2,3).
17013
17014 * grub-core/fs/zfs/zfs.c (powx): New array.
17015 (powx_inv): Likewise.
17016 (poly): New const.
17017 (xor_out): New function.
17018 (gf_mul): Likewise.
17019 (recovery): Likewise.
17020 (read_device): Use second redundancy strip.
17021
11ee4389
VS
170222011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17023
17024 Use a power of generator representation of GF(256) multiplication group
17025 to save space time and complexity.
17026
17027 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17028 (raid6_table2): Likewise.
17029 (powx): New array.
17030 (powx_inv): Likewise.
17031 (poly): New const.
17032 (grub_raid_block_mul): Replace with ...
17033 (grub_raid_block_mulx): ...this.
17034 (grub_raid6_init_table): Rewritten.
17035 (grub_raid6_recover): Use power of generator representation.
17036
09e2763f
VS
170372011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17038
17039 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17040 for the right device.
17041
8bec9a28
VS
170422011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17045 expected by grub-mkimage and it's more clear since there is no implicit
17046 padding.
17047
dbd3a32e
VS
170482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17051 disk.
17052 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17053
182c872a
PMH
170542011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17055
17056 * util/grub-mkrescue.in: Fix handling xorriso option.
17057
1e51cabd
VS
170582011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17059
17060 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17061 NULL.
17062
9cc3581d 170632011-11-03 crocket <crockabiscuit@gmail.com>
17064
17065 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17066
158dc1ea
VS
170672011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17068
17069 XZ CRC64 and SHA256 support.
17070
17071 * Makefile.util.def (libgrubmods): Add crc64.c.
17072 * grub-core/Makefile.core.def (crc64): New module.
17073 * grub-core/lib/crc64.c: New file.
17074 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17075 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17076 Fix the type.
17077 (MAX_HASH_SIZE): New define.
17078 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17079 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17080 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17081 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17082 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17083 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17084 Handle non-crc32 hashes.
17085 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17086 (dec_stream_header): Handle non-crc32 hashes.
17087 (dec_stream_footer): Likewise.
17088 (dec_block_header): Likewise.
17089 (dec_main): Likewise.
17090 (xz_dec_init): Likewise.
17091 (xz_dec_reset): Likewise.
17092 (xz_dec_end): Likewise.
17093 * util/import_gcry.py: Add CRC64 line.
17094
9d9b3d2f
VS
170952011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17098 as well.
17099
7d0ac931
VS
171002011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17101
17102 Make reiserfs label retrieval similar to other *_label functions.
17103
17104 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17105 (REISERFS_MAX_LABEL_LENGTH): Removed.
17106 (REISERFS_LABEL_OFFSET): Likewise.
17107 (grub_reiserfs_label): Rewritten.
17108
171092011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17110
17111 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17112 field.
17113
cf5ba824
VS
171142011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17117
17744004
VS
171182011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17119
17120 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17121 drive failure on both raidz and raidz2.
17122
aca5aefc
VS
171232011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17124
17125 Fix RAIDZ(2) for >= 5 devices.
17126
17127 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17128 asize argument. All users updated.
17129
ce8ca56e
VS
171302011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17131
17132 Fix RAIDZ(2).
17133
17134 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17135 (fill_vdev_info_real): Set ashift.
17136 (read_device): Rewrite RAIDZ part based on reverse engineering.
17137
7c01e783
VS
171382011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17139
17140 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17141 don't report potentially unavialiable fields in debug output.
17142 (find_path): Fix double-free and memory leak.
17143
ce109e84
VS
171442011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17145
17146 Read label on UFS1.
17147
17148 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17149 (grub_ufs_fs): Always set .label.
17150
87661123
VS
171512011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17152
17153 Use shifts in UFS.
17154
17155 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17156 (grub_ufs_data): New field log2_blksz.
17157 (grub_ufs_read_file): Use shifts.
17158 (grub_ufs_mount): Check block size and logarithm it.
17159
46bc1dc2
VS
171602011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17163 long symlinks.
17164
19ee2987
VS
171652011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17166
17167 Handle symlinks and long names on tar and cpio.
17168
17169 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17170 (ATTR_FILE): Likewise.
17171 (ATTR_DIR): Likewise.
17172 (ATTR_LNK): Likewise.
17173 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17174 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17175 L and K entries.
17176 (grub_cpio_mount): Zero-fill data.
17177 (handle_symlink): New function.
46bc1dc2
VS
17178 (grub_cpio_dir): Handle symlinks.
17179 (grub_cpio_open): Likewise.
17180 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 17181
c83a08d8
VS
171822011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 Fix iso9660 filename limitations and fix memory leaks.
17185
17186 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17187 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17188
45cdd3ea
VS
171892011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 Fix JFS file name length limitations.
17192
17193 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17194 (grub_jfs_diropen): Fix maximum filename length.
17195 (grub_jfs_getent): Fix filename length.
17196 (grub_jfs_lookup_symlink): Fix size checks.
17197
94ef05c2
VS
171982011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17199
17200 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17201 string.
17202
785ab8c7
VS
172032011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17204
eb0b6b45
VS
17205 Leverage BFS implementation to read AFS.
17206
17207 * Makefile.util.def (libgrubmods): Add afs.c.
17208 * grub-core/Makefile.core.def (afs): New module
17209 * grub-core/fs/afs.c: New file.
17210 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17211
172122011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17213
17214 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 17215
c4a1628f
VS
172162011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17217
17218 * grub-core/fs/bfs.c: Run indent.
17219
5825b379
VS
172202011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17221
17222 BFS implementation based on the specification.
17223
17224 * grub-core/fs/bfs.c: New file.
17225 * Makefile.util.def (libgrubmods): Add bfs.c.
17226 * grub-core/Makefile.core.def (bfs): New module.
17227
42b2a706
VS
172282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * util/grub-fstest.c (cmd_cp): Clarify error message.
17231 (cmd_cmp): Likewise.
17232
61b99bfc
YB
172332011-10-30 Yves Blusseau <blusseau@zetam.org>
17234
17235 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17236 and befs_be.
17237
faba3d16
VS
172382011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17239
17240 Remove afs and befs because of copyright problem.
17241
17242 * grub-core/fs/afs.c: Removed.
17243 * grub-core/fs/afs_be.c: Removed.
17244 * grub-core/fs/befs.c: Removed.
17245 * grub-core/fs/befs_be.c: Removed.
17246 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17247 * grub-core/Makefile.core.def (afs): Removed.
17248 (afs_be): Likewise.
17249 (befs): Likewise.
17250 (befs_be): Likewise.
17251
c39224b0
VS
172522011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17253
17254 Prefer rockridge over Joliet.
17255
17256 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17257 to ...
17258 (set_rockridge): ... here.
17259 (grub_iso9660_mount): Check rockridge on the primary label when
17260 discovering. Ignore Joliet if Rockridge is present.
17261
e551115a
VS
172622011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 Use shifts in nilfs2.
17265
17266 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17267 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17268 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17269 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17270 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17271 (grub_nilfs2_entries_per_block): Replaced with ...
17272 (grub_nilfs2_log_entries_per_block_log): ... this.
17273 (grub_nilfs2_blocks_per_group): Replaced with ...
17274 (grub_nilfs2_blocks_per_group_log): ... this.
17275 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17276 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17277 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17278 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17279 (grub_nilfs2_palloc_entry_offset): Replaced ...
17280 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17281 (grub_nilfs2_dat_translate): Use shifts.
17282 (grub_nilfs2_read_inode): Likewise.
17283 (GRUB_MOD_INIT): Ensure that logs are correct.
17284
564dd58c
VS
172852011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17286
17287 Use shifts in minix filesystem.
17288
17289 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17290 (GRUB_MINIX_ZONE2SECT): Likewise.
17291 (grub_minix_data): Replace block_size with log_block_size.
17292 (grub_minix_read_file): Use shifts.
17293 (grub_minix_mount): Check block size and take a logarithm.
17294
ed9ba06d
VS
172952011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 Use shifts in squash4.
17298
17299 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17300 (squash_mount): Check block size and take logarithm.
17301 (direct_read): Use shifts.
17302
ad03fe76
VS
173032011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 Correct befs block counting logic.
17306
17307 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17308 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17309 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17310 (grub_afs_read_inode): Use block_shift.
17311 (RANGE_SHIFT): New definition.
17312 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17313 unexpected conditions, use shifts and appropriate types.
17314 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17315
6563f63d
VS
173162011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * grub-core/disk/raid.c (scan_devices): Check partition.
17319 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17320
5b1ae25f
VS
173212011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17322
17323 Support BFS (befs) UUID.
17324
17325 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17326 (grub_afs_small_data_element_header): New struct.
17327 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17328 (grub_afs_read_attribute) [MODE_BFS]: New function.
17329 (grub_afs_iterate_dir): Allocate for complete inode.
17330 (grub_afs_mount): Likewise.
17331 (grub_afs_uuid) [MODE_BFS]: New function.
17332 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17333
f8d82408
VS
173342011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17337 (zfs_unmount): Fix memory leak.
17338
5773fb64
VS
173392011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17340
17341 Support NTFS reparse points.
17342
17343 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17344 (symlink_descriptor): New struct.
17345 (grub_ntfs_read_symlink): New function.
17346 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17347 (grub_ntfs_open): Likewise.
17348
91c3fdde
VS
173492011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17352
3be82e10
VS
173532011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 fstest xnu_uuid subcommand.
17356
17357 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17358 grub-core/commands/xnu_uuid.c.
17359 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17360 (fstest): Handle xnu_uuid.
17361 (options): Document xnu_uuid.
17362 (argp_parser): Parse xnu_uuid.
17363
8e32442e
VS
173642011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17365
17366 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17367 -l argument. Add newline at the end if printing.
17368 (GRUB_MOD_INIT): Document -l.
17369
52a05075
VS
173702011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17373
1869edb5
VS
173742011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17375
17376 ZFS multi-device and version 33 support.
17377
17378 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17379 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17380 (grub_zfs_data): Add multidev-ice-related fields.
17381 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17382 (dva_get_offset): Make dva const.
17383 (zfs_fetch_nvlist): New function.
17384 (fill_vdev_info_real): Likewise.
17385 (fill_vdev_info): Likewise.
17386 (check_pool_label): Likewise.
17387 (scan_disk): Likewise.
17388 (scan_devices): Likewise.
17389 (read_device): Likewise.
17390 (read_dva): Likewise.
17391 (zio_read_gang): Use read_dva.
17392 (zio_read_data): Likewise.
17393 (zap_leaf_lookup): Add missing endian conversion.
17394 (zap_verify): Add missing endian conversion. All users updated.
17395 (fzap_lookup): Likewise.
17396 (fzap_iterate): Likewise.
17397 (dnode_get_path): Handle SA bonus.
17398 (nvlist_find_value): Make input const. All users updated.
17399 (unmount_device): New function.
17400 (zfs_unmount): Use unmount_device.
17401 (zfs_mount): Use scan_disk.
17402 (zfs_mtime): New function.
17403 (grub_zfs_open): Handle system attributes.
17404 (fill_fs_info): Likewise.
17405 (grub_zfs_dir): Likewise.
17406 (grub_zfs_fs): Add mtime.
17407 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17408 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17409 (SA_MTIME_OFFSET): Likewise.
17410 (SA_SYMLINK_OFFSET): Likewise.
17411 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17412 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17413 (fstest): Support zfsinfo.
17414 (argp_parser): Likewise.
17415
186b4028
VS
174162011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17417
17418 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17419 error.
17420
174212011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
17422
17423 ZFS fixes.
17424
17425 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17426 sharing the same block. Iterate over correct number of indices.
17427 (dnode_get_path): Handle symlinks correctly.
17428
c0584900
VS
174292011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17430
17431 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17432
67e2bd71
VS
174332011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17434
17435 Read label on HFS+.
17436
17437 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17438 (grub_hfsplus_btree_search): Fix types.
17439 (grub_hfsplus_label): Implement.
17440
e9cc6b7b
VS
174412011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17442
17443 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17444
19832ddb
VS
174452011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17446
17447 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17448
66b40850
VS
174492011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 Fix symlink handling on iso9660.
17452
17453 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17454 All users updated.
17455 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17456 (grub_iso9660_read_symlink): Moved most of code ...
17457 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17458
db821363
VS
174592011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17460
17461 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17462 Use union to avoid breaking strict-aliasing rules.
17463
e1211949
VS
174642011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17465
17466 Support multi-extent iso files.
17467
17468 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17469 Add node.
17470 (grub_fshelp_node): Revamp. All users updated.
17471 (FLAG_*): New enum.
17472 (read_node): New function.
17473 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17474 All users updated.
17475 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17476 (get_node_size): New function.
17477 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17478 entries.
17479 Fix memory leak on . and ..
17480 (grub_iso9660_read): Use read_node.
17481 (grub_iso9660_close): Free node.
17482
d4888031
VS
174832011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17484
17485 Fix tar 4G limit and handle paths containing dot.
17486
17487 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17488 (canonicalize): New function.
17489 (grub_cpio_find_file): Use canonicalize. Store offs in
17490 grub_disk_addr_t.
17491 (grub_cpio_dir): Use grub_disk_addr_t.
17492 (grub_cpio_open): Likewise.
17493
9f12e664
VS
174942011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17495
17496 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17497
17498 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17499 unused flags.
17500 (grub_squash_inode): Add long_file and block_size.
17501 (grub_squash_cache_inode): New struct.
17502 (grub_squash_dirent): Make types into enum.
17503 (SQUASH_TYPE_LONG_REGULAR): New type.
17504 (grub_squash_frag_desc): Add field size.
17505 (SQUASH_BLOCK_FLAGS): New enum.
17506 (grub_squash_data): Use grub_squash_cache_inode.
17507 (grub_fshelp_node): Make ino_chunk 64-bit.
17508 (read_chunk): Minor argument change. All users updated.
17509 (squash_mount): Use correct le_to_cpu.
17510 (grub_squash_open): Handle LONG_REGULAR.
17511 (direct_read): New function.
17512 (grub_squash_read_data): Handle blocks correctly.
17513
9f326fba
VS
175142011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17515
17516 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17517
f4d9b64b
VS
175182011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17521
5bbd28b8
VS
175222011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17523
17524 Fix 2G limit on ZFS.
17525
17526 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17527 types.
17528 (uberblock_verify): Likewise.
17529 (dmu_read): Likewise.
17530 (grub_zfs_read): Likewise. Remove invalid cast.
17531
68c72069
VS
175322011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17535 (grub_jfs_blkno): Fix incorrect shift.
17536 (grub_jfs_read_file): Use more appropriate types.
17537
6e536dc8
VS
175382011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17539
17540 Support triple indirect on minix2 and minix3.
17541
17542 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17543 Declare triple_indir_zone.
17544 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17545 indirect.
17546
e0864e7a
VS
175472011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 Minix FS fixes.
17550
17551 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17552 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17553 Rename ctime to mtime. All users updated.
17554 (grub_minix_get_file_block): Fix types and double indirect computations.
17555
89481cab
VS
175562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17559 if no label is found.
17560 (grub_fat_iterate_dir): Fix file size type.
17561 (grub_fat_iterate_dir): Likewise.
17562
f646e143
VS
175632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17564
17565 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17566 save some space.
17567 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17568 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17569
534d769e
VS
175702011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17573
e084ba18
VS
175742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17575
17576 * util/import_gcry.py: Accept space between # and include.
17577
3471ecdf
VS
175782011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17581
124df5f6
VS
175822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17583
17584 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17585
17586 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17587 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17588 yylex_strncpy.
17589 * grub-core/script/yylex.l: Add fine-grained #pragma.
17590
4defb8d5
VS
175912011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17592
17593 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17594 New inline function.
17595 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17596 Likewise.
17597 (memset) [GRUB_UTIL]: Likewise.
17598 (memcmp) [GRUB_UTIL]: Likewise.
17599
4e94ae65
VS
176002011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17601
17602 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17603 inline function rather than a define.
17604
18c575e5
VS
176052011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * util/grub-setup.c: Add missing include.
17608
f8bc22a8
VS
176092011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 * util/ieee1275/grub-ofpathname.c: Add missing include.
17612
3ce69fc9
VS
176132011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17614
17615 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17616 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17617 Likewise.
17618
d1e293bb
VS
176192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17622 grub_memcmp usage.
17623
7a5c54a4
VS
176242011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17625
17626 * util/grub-install.in: Add datarootdir as per automake manual
17627 suggestion.
17628 * util/grub-mknetdir.in: Likewise.
17629
176302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
17631
17632 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17633 suggestion.
17634 * util/grub.d/10_kfreebsd.in: Likewise.
17635 * util/grub.d/10_linux.in: Likewise.
17636 * util/grub.d/10_netbsd.in: Likewise.
17637 * util/grub.d/10_windows.in: Likewise.
17638 * util/grub.d/20_linux_xen.in: Likewise.
17639
766f7d08
VS
176402011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17641
17642 Remove redundant grub_kernel_image_size.
17643
17644 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17645 _edata and _start.
17646 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17647 the small code. It moves it only by few bytes but simplifies the code.
17648 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17649 _start.
17650 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17651 (grub_kernel_image_size): Removed.
17652 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17653 (grub_kernel_image_size): Removed.
17654 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17655 compiled with Apple toolchain.
17656 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17657 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17658 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17659 (grub_total_module_size): Likewise.
17660 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17661 Removed.
17662 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17663 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17664 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17665 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17666 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17667 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17668 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17669 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17670 Removed.
17671 (grub_total_module_size): Removed.
17672 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17673 (image_targets): Likewise.
17674 Set .compressed_size to no field on sparc.
17675 (generate_image): Remove kernel_image_size handling.
17676
fcf1d672
SJ
176772011-10-19 Szymon Janc <szymon@janc.net.pl>
17678
17679 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17680 NULL pointer dereference.
17681
de9c615e
VS
176822011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17683
17684 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17685 done with a dedicated section.
17686
17687 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17688 Ensure the correct position of boot_path.
17689 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17690 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17691 other fields.
17692 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17693 * include/grub/boot.h: Removed. All references removed.
17694 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17695 Removed.
17696 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17697
e55599dc
VS
176982011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17699
17700 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17701 name.
17702
36dd20ad
VS
177032011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17704
17705 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17706
f8f72eb8
VS
177072011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17710 Don't add the bogus brackets.
17711
a374751b
VS
177122011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17713
17714 ExFAT support.
17715
17716 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17717 * grub-core/Makefile.core.def (exfat): New module.
17718 * grub-core/fs/exfat.c: New file.
17719 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17720 (GRUB_FAT_ATTR_*): Make into an enum.
17721 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17722 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17723 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17724 (GRUB_FAT_MAXFILE): Removed.
17725 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17726 (grub_current_fat_bpb_t): New type.
17727 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17728 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17729 (grub_fat_dir_node_t): New type.
17730 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17731 (fat_log2) [MODE_EXFAT]: Removed.
17732 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17733 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17734 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17735 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17736 (grub_fat_label) [MODE_EXFAT]: New function.
17737 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17738 reserved_first_sector to 0.
17739
544c2487
VS
177402011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17741
17742 Move grub_reboot out of the kernel.
17743
17744 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17745 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17746 * grub-core/lib/efi/reboot.c: ... here.
17747 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17748 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17749 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17750 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17751 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17752 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17753 * grub-core/lib/ieee1275/reboot.c: ... here.
17754 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17755 * grub-core/lib/mips/arc/reboot.c: ... here.
17756 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17757 * grub-core/lib/mips/loongson/reboot.c: ...here.
17758 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17759 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17760 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17761 * include/grub/i386/reboot.h: New file.
17762 * include/grub/mips/loongson/ec.h: Fix includes.
17763 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17764 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17765 * grub-core/lib/i386/reboot.c: New file.
17766
a97501d2
VS
177672011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17768
17769 Make grub_prefix into module to fix the arbitrary limit and save
17770 some space.
17771
17772 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17773 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17774 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17775 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17776 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17777 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17778 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17779 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17780 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17781 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17782 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17783 * include/grub/ia64/efi/kernel.h: Removed.
17784 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17785 (grub_prefix): Removed.
17786 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17787 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17788 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17789 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17790 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17791 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17792 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17793 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17794 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17795 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17796 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17797 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17798 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17799 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17800 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17801 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17802 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17803 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17804 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17805 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17806 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17807 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17808 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17809 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17810 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17811 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17812 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17813 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17814 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17815 from module.
17816 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17817 prefix_end.
17818 (image_targets): Likewise.
17819 (generate_image): Put prefix as a module.
17820
39705fad
VS
178212011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17822
17823 Replace grub_module_iterate with FOR_MODULES.
17824
17825 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17826 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17827 (grub_efi_modules_addr): ...this.
17828 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17829 (grub_efi_init): Set grub_modbase.
17830 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17831 (grub_modbase): New variable.
17832 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17833 (grub_modbase): New variable.
17834 (grub_machine_init): Set grub_modbase.
17835 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17836 (grub_modbase): New variable.
17837 (grub_machine_init): Set grub_modbase.
17838 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17839 (grub_modbase): New variable.
17840 (grub_machine_init): Set grub_modbase.
17841 * grub-core/kern/main.c (grub_module_iterate): Remove.
17842 (grub_modules_get_end): Use grub_modbase.
17843 (grub_load_modules): Use FOR_MODULES.
17844 (grub_load_config): Likewise.
17845 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17846 (grub_modbase): New variable.
17847 (grub_machine_init): Set grub_modbase.
17848 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17849 (grub_modbase): New variable.
17850 (grub_machine_init): Set grub_modbase.
17851 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17852 Removed.
17853 (grub_modbase): New variable.
17854 (grub_machine_init): Set grub_modbase.
17855 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17856 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17857 (grub_module_iterate): Likewise.
17858 (grub_modbase): New variable declaration.
17859 (FOR_MODULES): New macro.
17860
2afb7f6c
VS
178612011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17862
17863 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17864 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17865
366e34fa
VS
178662011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17867
17868 Fix few obvious type discrepancies.
17869
17870 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17871 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17872 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17873 variable.
17874 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17875 and connected types.
17876 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17877 offset.
17878 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17879 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17880 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17881 and connected types.
17882
177b960e
VS
178832011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17884
17885 Fix python 3.x incompatibilities.
17886
17887 * gentpl.py: Put brackets around print strings.
17888 * util/import_gcry.py: Open explicitly as utf-8.
17889 Use in instead of has_key.
17890
3b619ae1
VS
178912011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17892
17893 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17894 (GRUB_XFS_INO_AGBITS): Make into inline function.
17895 (GRUB_XFS_INO_INOINAG): Likewise.
17896 (GRUB_XFS_INO_AG): Likewise.
17897 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17898 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17899 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17900 (GRUB_XFS_EXTENT_SIZE): Likewise.
17901 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17902 (GRUB_XFS_NEXT_DIRENT): Likewise.
17903 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17904 (grub_xfs_read_file): Fix offset type.
17905
8bcebcb8
RM
179062011-10-15 Robert Millan <rmh@gnu.org>
17907
17908 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17909
0017e5ef
RM
179102011-10-15 Robert Millan <rmh@gnu.org>
17911
17912 Fix build problem on FreeBSD and GNU/kFreeBSD.
17913
17914 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17915
d8919552
VS
179162011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17917
17918 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17919
17920 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17921 types.
17922 (grub_hfsplus_btree_recoffset): Likewise.
17923 (grub_hfsplus_btree_recptr): Likewise.
17924 (grub_hfsplus_find_block): Likewise.
17925 (grub_hfsplus_btree_search): Likewise.
17926 (grub_hfsplus_read_block): Likewise.
17927 (grub_hfsplus_read_file): Likewise.
17928 (grub_hfsplus_mount): Likewise.
17929 (grub_hfsplus_btree_iterate_node): Likewise.
17930 (grub_hfsplus_btree_search): Likewise.
17931 (grub_hfsplus_iterate_dir): Likewise.
17932 (grub_hfsplus_read): A small code simplification.
17933
c81296b6
VS
179342011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17935
17936 * grub-core/kern/emu/hostdisk.c
17937 (convert_system_partition_to_system_disk): Don't assume that children
17938 of mapper nodes are mapper nodes.
17939
0eb8ffb1
VS
179402011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17943 * include/grub/misc.h (grub_isxdigit): New function.
17944 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17945 switched to grub_isxdigit.
17946 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17947 number starting with a letter.
17948
a98f4a08
RM
179492011-10-09 Robert Millan <rmh@gnu.org>
17950
17951 LVM support for FreeBSD and GNU/kFreeBSD.
17952
17953 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17954 GNU/kFreeBSD.
17955 (LVM_DEV_MAPPER_STRING): Move from here ...
17956 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17957 * util/getroot.c: Include `<grub/util/lvm.h>'.
17958 (grub_util_get_dev_abstraction): Enable
17959 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17960 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17961 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17962 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17963 support it.
17964 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17965 GNU/kFreeBSD.
17966 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17967 when LVM abstraction is required for ${GRUB_DEVICE}.
17968
050e8e90
SJ
179692011-10-06 Szymon Janc <szymon@janc.net.pl>
17970
17971 Add support for LZO compression in GRUB:
17972 - import of minilzo library,
17973 - LZO decompression for btrfs,
17974 - lzop files decompression.
17975
17976 * grub-core/io/lzopio.c: New file.
17977 * grub-core/lib/adler32.c: Likewise.
17978 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17979 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17980 * grub-core/lib/minilzo/minilzo.c: Likewise.
17981 * grub-core/lib/minilzo/minilzo.h: Likewise.
17982 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17983 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17984 grub-core/lib/minilzo/minilzo.c to common.
17985 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17986 cflags in cppflags.
17987 * grub-core/Makefile.core.def (btrfs): Likewise.
17988 * grub-core/Makefile.core.def (lzopio): New module.
17989 (adler32): Likewise.
17990 * grub-core/fs/btrfs.c: Include minilzo.h.
17991 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17992 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17993 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17994 (grub_btrfs_lzo_decompress): New function.
17995 (grub_btrfs_extent_read): Add support for LZO compression type.
17996 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17997 (GRUB_USHRT_MAX): Likewise.
17998 (GRUB_UINT_MAX): Likewise.
17999 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
18000 (UINT_MAX): Likewise.
18001 (CHAR_BIT): Likewise.
18002 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
18003 grub-core/lib/posix_wrap/limits.h
18004 (UCHAR_MAX): Likewise.
18005 * include/grub/file.h (grub_file_filter_id): New compression filter
18006 GRUB_FILE_FILTER_LZOPIO.
18007 * include/grub/file.h (grub_file_filter_id): Set
18008 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18009 * include/grub/types.h (grub_get_unaligned16): New function.
18010 (grub_get_unaligned32): Likewise.
18011 (grub_get_unaligned64): Likewise.
18012 * util/import_gcry.py (cryptolist): Add adler32.
18013
0eb8ffb1
VS
180142011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
18015
18016 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18017 in perspective decreases the complexity of build system and fixes
18018 compilation right now.
18019
ce79cc99 180202011-10-01 Ales Nesrsta <starous@volny.cz>
18021
18022 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18023 (fixed problem related to using UHCI with coreboot).
18024
8667a314
BC
180252011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18026
18027 * gentpl.py: Use Autogen macros so that the output template file
18028 (Makefile.tpl) size is reduced.
18029
fc5efcc0
MK
180302011-09-29 Mads Kiilerich <mads@kiilerich.com>
18031
18032 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18033 extra_dist.
18034
d1ab689d
ML
180352011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18036
18037 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18038 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18039
c05de032
ML
180402011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18041
18042 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18043 _fullpath.
18044
cca7ccd8
ML
180452011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18046
18047 Remove extra declaration of sleep for mingw32.
18048
18049 * util/misc.c (sleep) [__MINGW32__]: Removed.
18050 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18051
e0b0dc83
GS
180522011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18053
18054 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18055 type and packname.
18056 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18057 Resurrected.
18058 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18059 (grub_netbsd_btinfo_bootwedge): New struct.
18060 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18061 New function.
18062 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18063
91a1a164
TH
180642011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18065
18066 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18067 loader.
18068
2ded951e
AB
180692011-09-28 Andreas Born <futur.andy@googlemail.com>
18070
18071 Fix incorrect identifiers in bash-completion.
18072
18073 * util/bash-completion.d/grub-completion.bash.in
18074 (_grub_mkpasswd-pbkdf2): Rename to ...
18075 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18076 (_grub_script-check): Rename to ...
18077 (_grub_script_check): ... this. All users updated.
18078
69915030
VS
180792011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18080
18081 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18082 Return 0 if disk isn't biosdisk.
18083
20fd15f9
GS
180842011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18085
18086 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18087 on NetBSD.
18088 * Makefile.util.def (grub-fstest): Likewise.
18089
1a7d7db9
GS
180902011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18091
18092 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18093 Get sector size from disk label.
18094
2221ab6c
CW
180952011-09-05 Colin Watson <cjwatson@ubuntu.com>
18096
18097 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18098 */README* as well as README*.
18099 Reported by: Axel Beckert.
18100
ca51c4a0
VS
181012011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18102
18103 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18104 case of less than 256 MiB of RAM.
18105
ab80f326
VS
181062011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * grub-core/commands/wildcard.c (make_regex): Handle @.
18109
4155e697
VS
181102011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18111
18112 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18113
ab178c08
SJ
181142011-08-21 Szymon Janc <szymon@janc.net.pl>
18115
18116 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18117 AC_LANG_CONFTEST macros.
18118
7dc3c686
SJ
181192011-08-20 Szymon Janc <szymon@janc.net.pl>
18120
18121 Add grub-fstest option to uncompress data for commands.
18122
18123 * util/grub-fstest.c (uncompress): New var.
18124 (options): New option -u.
18125
fe8d4a7b
SJ
181262011-08-20 Szymon Janc <szymon@janc.net.pl>
18127
18128 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18129 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18130
a5219af1
SJ
181312011-08-20 Szymon Janc <szymon@janc.net.pl>
18132
18133 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18134 file type was not recognized correctly (not gzip or corrupted).
18135
f87abff5
VS
181362011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18137
18138 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18139 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18140
d94497ea
VS
181412011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18142
18143 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18144 loongson.
18145 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18146 video_radeon_fuloong2e.
18147 * grub-core/video/radeon_fuloong2e.c: New file.
18148 * include/grub/video.h (grub_video_id_t): Add new ID
18149 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18150
0d1fd011
VS
181512011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18154 define.
18155 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18156 that PRID matches the detected subplatform and reset the subplatform
18157 if it doesn't.
18158
84beb0ee
VS
181592011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18162
1227c133
VS
181632011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18164
18165 Fix PCI iterating on functions >= 4.
18166
18167 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18168 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18169 Removed.
18170 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18171 (grub_pci_read): Fix bitmask.
18172 (grub_pci_read_word): Likewise.
18173 (grub_pci_read_byte): Likewise.
18174 (grub_pci_write): Likewise.
18175 (grub_pci_write_word): Likewise.
18176 (grub_pci_write_byte): Likewise.
18177
9594c689
VS
181782011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18179
18180 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18181 can still be specified in TARGET_CFLAGS)
18182
14a2562c
VS
181832011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18184
18185 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18186
18187 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18188 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18189 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18190 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18191 (FULOONG): Rename to ...
18192 (FULOONG2F): ... this. All users updated.
18193 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18194 (machtype_fuloong2f_str): ... this.
18195 (machtype_fuloong2e_str): New string.
18196 Check for machtype_fuloong2e_str.
18197 * grub-core/loader/mips/linux.c (loongson_machtypes)
18198 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18199 * grub-core/term/serial.c (loongson_defserial)
18200 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18201 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18202 loongson_defserial.
18203 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18204 Rename to ...
18205 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18206 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18207 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18208 to IMAGE_FULOONG2F_FLASH. All users updated.
18209 (image_targets): Rename images.
18210 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18211
b526cbb6
SJ
182122011-08-19 Szymon Janc <szymon@janc.net.pl>
18213
18214 Make enable of disk cache statistics code configurable.
18215
18216 * configure.ac: --enable-cache-stats added.
18217 * config.h.in (DISK_CACHE_STATS): New define.
18218 * grub-core/Makefile.core.def (cacheinfo): New command.
18219 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18220 * grub-core/commands/cacheinfo.c: New file.
18221 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18222 moved to cacheinfo.c.
18223 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18224 debug code.
18225 * include/grub/disk.h: Likewise.
18226
fb739ccd
SJ
182272011-08-19 Szymon Janc <szymon@janc.net.pl>
18228
18229 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18230 * grub-core/Makefile.am: Likewise.
18231
2bba8cfd
VS
182322011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18233
18234 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18235 non-zero pull.
18236
43526629
VS
182372011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18238
18239 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18240 All users updated.
18241 (grub_jfs_lookup_symlink): Use correct starting inode.
18242
5c144cc8
VS
182432011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18244
18245 * util/grub-setup.c (main): Add missing gcry initialisation.
18246
b1257f65
VS
182472011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18248
18249 Don't accept text modes on EFI when booting Linux.
18250
18251 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18252 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18253
828bc390
ML
182542011-08-15 Mario Limonciello <mario_limonciello@dell.com>
182552011-08-15 Colin Watson <cjwatson@ubuntu.com>
18256
18257 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18258 use of "/path/.." as in grub-install for EFI as well as handling
18259 symlinks correctly.
18260 Fixes Debian bug #637768.
18261
5f60ccac
CW
182622011-08-15 Colin Watson <cjwatson@ubuntu.com>
18263
18264 * util/grub-probe.c: Remove duplicate #include.
18265
6dc212f9
RM
182662011-08-10 Robert Millan <rmh@gnu.org>
18267
18268 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18269
18270 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18271 function.
18272 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18273 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18274
66816d85
RM
182752011-08-03 Robert Millan <rmh@gnu.org>
18276
18277 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18278 la_array as packed.
18279 Reported by: Zachary Bedell
18280
20168fca
CW
182812011-07-26 Colin Watson <cjwatson@ubuntu.com>
18282
18283 * configure.ac: The Loongson port requires grub-mkfont due to its
18284 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18285 be built.
18286
303b6246
CW
182872011-07-26 Colin Watson <cjwatson@ubuntu.com>
18288
18289 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18290 processing arguments (otherwise help2man fails when GRUB has not yet
18291 been installed).
18292
6795300e
VS
182932011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18294
41aa28ea
VS
18295 New script grub-mkstandalone.
18296
18297 * Makefile.util.def (grub-mkstandalone): New script.
18298 * docs/man/grub-mkstandalone.h2m: New file.
18299 * util/grub-mkstandalone.in: Likewise.
18300
183012011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18302
18303 Support ATA disks with 4K sectors.
6795300e
VS
18304
18305 * include/grub/ata.h (grub_ata): New member log_sector_size.
18306 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18307 (grub_ata_identify): Read sector size.
18308 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18309
92227597
VS
183102011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18311
18312 * util/grub-install.in: Don't use uhci outside of x86.
18313
c77069f5
VS
183142011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18315
18316 * util/grub-mkrescue.in: Add missing quotes.
18317
183182011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
18319
18320 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18321 dereference.
18322
583168a2
VS
183232011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18324
18325 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18326
6be1c01f
VS
183272011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18328
18329 * include/grub/video.h: add missing EXPORT_FUND on
18330 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18331
a1167439
VS
183322011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18333
18334 * include/grub/mips/kernel.h: Fix define conflict.
18335
bf66054f
VS
183362011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18337
18338 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18339 all four ways.
18340
8fc4fa45
CW
183412011-07-21 Colin Watson <cjwatson@ubuntu.com>
18342
18343 Preferred resolution detection for VBE.
18344
18345 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18346 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18347 the Flat Panel extension, in line with the X.org VESA driver.
18348 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18349 New function.
18350 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18351 (grub_vbe_bios_read_edid): Likewise.
18352 (grub_vbe_get_preferred_mode): Likewise.
18353 (grub_video_vbe_setup): When the mode is "auto", try to get the
18354 preferred mode from VBE, and use the largest mode that is no larger
18355 than the preferred mode (some BIOSes expose a preferred mode that is
18356 not in their mode list!). If this fails, fall back to 640x480 as a
18357 safe conservative choice.
18358 (grub_video_vbe_get_edid): New function.
18359 (grub_video_vbe_adapter): Add get_edid.
18360 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18361 (struct grub_video_adapter): Add get_edid.
18362 (grub_video_edid_checksum): Add prototype.
18363 (grub_video_edid_preferred_mode): Likewise.
18364 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18365 structure.
18366
18367 * grub-core/commands/videoinfo.c (print_edid): New function.
18368 (grub_cmd_videoinfo): Print EDID if available.
18369
18370 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18371 is more appropriate on a wider range of platforms than 640x480.
18372 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18373 documentation.
18374
ca5572a9
VS
183752011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18376
18377 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18378
e4bcf625
VS
183792011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18380
18381 * po/POTFILES.in: Regenerate.
18382
c4edd548
VS
183832011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18384
18385 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18386 incorrect memory usage.
18387
16a2bab0
VS
183882011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18389
18390 * util/grub-install.in: Source grub-mkconfig_lib.
18391
2e418de6
VS
183922011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18393
18394 Remove getroot.c from core on emu platform.
18395
18396 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18397 kern/emu/raid.c.
18398 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18399 useless.
18400 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18401 * util/getroot.c (get_win32_path): ... here.
18402 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18403 * util/getroot.c (fini_libzfs): ... here.
18404 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18405 * util/getroot.c (grub_get_libzfs_handle): ... here.
18406 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18407 Moved from here...
18408 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18409 * grub-core/kern/emu/misc.c
18410 (grub_make_system_path_relative_to_its_root): Moved from here...
18411 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18412 * grub-core/kern/emu/getroot.c: Moved from here ...
18413 * util/getroot.c: ... here. All users updated.
18414 * grub-core/kern/emu/raid.c: Moved from here ...
18415 * util/raid.c: ... here. All users updated.
18416
def9832a
VS
184172011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18418
18419 * po/POTFILES.in: Regenerate.
18420
cd8fe79a
VS
184212011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18422
18423 Fix compilation on GNU/Linux.
18424
18425 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18426 Disable geli.
18427 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18428 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18429 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18430
a251b719
VS
184312011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
184322011-07-07 Michael Gorven <michael@gorven.za.net>
184332011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18434
18435 LUKS and GELI support.
18436
18437 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18438 grub-core/disk/luks.c, grub-core/disk/geli.c,
18439 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18440 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18441 grub-core/lib/arg.c.
18442 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18443 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18444 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18445 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18446 (grub-bin2h): Add libgcry.a.
18447 (grub-mkimage): Likewise.
18448 (grub-mkrelpath): Likewise.
18449 (grub-script-check): Likewise.
18450 (grub-editenv): Likewise.
18451 (grub-mkpasswd-pbkdf2): Likewise.
18452 (grub-pe2elf): Likewise.
18453 (grub-fstest): Likewise.
18454 (grub-mkfont): Likewise.
18455 (grub-mkdevicemap): Likewise.
18456 (grub-probe): Likewise.
18457 (grub-ofpath): Likewise.
18458 (grub-mklayout): Likewise.
18459 (example_unit_test): Likewise.
18460 (grub-menulst2cfg): Likewise.
18461 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18462 * grub-core/Makefile.core.def (cryptodisk): New module.
18463 (luks): Likewise.
18464 (geli): Likewise.
18465 * grub-core/disk/AFSplitter.c: New file.
18466 * grub-core/disk/cryptodisk.c: Likewise.
18467 * grub-core/disk/geli.c: Likewise.
18468 * grub-core/disk/luks.c: Likewise.
18469 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18470 grub_util_is_lvm.
18471 (grub_util_get_dm_abstraction): New function.
18472 (grub_util_follow_gpart_up): Likewise.
18473 (grub_util_get_geom_abstraction): Likewise.
18474 (grub_util_get_dev_abstraction): Use new functions.
18475 (grub_util_pull_device): Pull GELI and LUKS.
18476 (grub_util_get_grub_dev): Handle LUKS and GELI.
18477 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18478 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18479 (follow_geom_up): Removed.
18480 (grub_util_fd_seek): New function.
18481 (open_device): Use grub_util_fd_seek.
18482 (nread): Rename to ..
18483 (grub_util_fd_read): ... this. All users updated.
18484 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18485 (grub_crypto_cbc_decrypt): Likewise.
18486 (grub_crypto_hmac_write): Likewise.
18487 (grub_crypto_hmac_buffer): Likewise.
18488 (grub_password_get): Extend to util.
18489 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18490 New member modname.
18491 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18492 * include/grub/cryptodisk.h: New file.
18493 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18494 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18495 LUKS and GELI.
18496 (grub_util_follow_gpart_up): New proto.
18497 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18498 (grub_util_fd_read): Likewise.
18499 (grub_cryptodisk_cheat_mount): Likewise.
18500 (grub_util_cryptodisk_print_uuid): Likewise.
18501 (grub_util_get_fd_sectors): Likewise.
18502 * util/grub-fstest.c (mount_crypt): New var.
18503 (fstest): Mount crypto if requested.
18504 (options): New option -C.
18505 (argp_parser): Parse -C.
18506 (main): Init and fini gcry.
18507 * util/grub-install.in: Support cryptodisk install.
18508 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18509 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18510 cryptodisk.
18511 (prepare_grub_to_access_device): Likewise.
18512 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18513 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18514 (probe_cryptodisk_uuid): New function.
18515 (probe_abstraction): Likewise.
18516 (probe): Use new functions.
18517 * util/import_gcry.py: Create Makefile.utilgcry.def.
18518 Add modname member.
18519
9bfdcbbc
VS
185202011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18521
18522 Lazy device scanning.
18523
18524 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18525 (grub-setup): Remove util/raid.c.
18526 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18527 * grub-core/disk/lvm.c (scan_depth): New variable.
18528 (grub_lvm_iterate): Rescan if necessary.
18529 (find_lv): New function based on grub_lvm_open.
18530 (grub_lvm_open): Use find_lv. Rescan on error.
18531 (is_node_readable): New function.
18532 (is_lv_readable): Likewise.
18533 (grub_lvm_scan_device): Skip already found disks.
18534 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18535 Stop if searched device is found and readable.
18536 * grub-core/disk/raid.c (inscnt): New variable.
18537 (scan_depth): Likewise.
18538 (scan_devices): New function based on grub_raid_register. Abort if
18539 looked for device is found.
18540 (grub_raid_iterate): Rescan if needed.
18541 (find_array): NEw function based on -grub_raid_open.
18542 (grub_raid_open): Use find_array and rescan.
18543 (insert_array): Set became_readable_at.
18544 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18545 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18546 New function.
18547 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18548 (grub_util_pull_device): New function.
18549 (grub_util_get_grub_dev): Call grub_util_pull_device.
18550 * util/raid.c: Moved to ..
18551 * grub-core/kern/emu/raid.c: ... here.
18552 (grub_util_raid_getmembers): New parameter "bootable".
18553 All users updated. Support 1.x.
18554 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18555 All users updated.
18556 * include/grub/disk.h (grub_disk_pull_t): New enum.
18557 (grub_disk_dev): Change iterate prototype.
18558 All users updated.
18559 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18560 New proto.
18561 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18562 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18563 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18564 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18565 All users updated.
18566 * include/grub/util/raid.h: Removed.
18567
1c358e59
VS
185682011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18569
18570 * po/POTFILES.in: Regenerate.
18571
abee94ed
VS
185722011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18573
18574 Unify sparc init with other ieee1275.
18575
18576 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18577 instead of kern/sparc64/ieee1275/init.c.
18578 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18579 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18580 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18581 grub/machine/kernel.h.
18582 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18583 (grub_claim_heap) [__sparc__]: Use sparc version.
18584 (grub_machine_init): Moved args parsing to
18585 (grub_parse_cmdline): ...this.
18586 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18587 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18588 New definition.
18589 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18590
18591 Move BOOTP to separate file.
18592
18593 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18594 * grub-core/net/net.c: Move all BOOTP functions to
18595 * grub-core/net/bootp.c: ... here.
18596
18597 Use frame interface on PXE.
18598
18599 * grub-core/Makefile.core.def (pxecmd): Removed.
18600 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18601 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18602 * grub-core/i386/pc/pxe.c: Moved from here ...
18603 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18604 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18605 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18606
18607 EFI network support.
18608
18609 * grub-core/Makefile.core.def (efinet): New module.
18610 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18611 here...
18612 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18613 All users updated.
18614 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18615 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18616 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18617 * grub-core/net/drivers/efi/efinet.c: New file.
18618 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18619 (grub_efi_net_config): New extern var.
18620
18621 Various cleanups and bugfixes.
18622
18623 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18624 error.
18625 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18626 disk declared as partition.
18627 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18628 leak on failure.
18629 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18630 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18631 (grub_debug_zalloc): Likewise.
18632 (grub_debug_realloc): Likewise.
18633 (grub_debug_memalign): Likewise.
18634 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18635 Check that target is IPv4.
18636 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18637 local-mac-address as fallback.
18638 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18639 memory leak.
18640 * grub-core/net/ip.c (ipchksum): Rename to ...
18641 (grub_net_ip_chksum): ... this. All users updated.
18642 (grub_net_recv_ip_packets): Special handling for DHCP.
18643 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18644
18645 Unify prefix handling
18646
18647 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18648 (grub_machine_get_bootlocation): ... this.
18649 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18650 (grub_machine_get_bootlocation): ... this.
18651 (grub_prefix): New variable.
18652 (prefix): Removed.
18653 (root_dev): New variable.
18654 (dir): Likewise.
18655 (main): Use new variables.
18656 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18657 Revamped into ...
18658 (grub_machine_get_bootlocation): ... this.
18659 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18660 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18661 (grub_machine_get_bootlocation): ... this.
18662 (grub_machine_set_prefix): Removed.
18663 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18664 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18665 Revamped into ...
18666 (grub_machine_get_bootlocation): ... this.
18667 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18668 (grub_set_prefix_and_root): ... this. All users updated.
18669 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18670 Revamped into ...
18671 (grub_machine_get_bootlocation): ... this.
18672 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18673 (grub_machine_get_bootlocation): New proto.
18674 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18675
18676 Less intrusive and more reliable seek on network implementation.
18677
18678 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18679 (grub_file_seek): Don't call grub_file_net_seek.
18680 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18681 (grub_net_fs_read_real): .. this.
18682 (grub_net_seek_real): Use net->offset.
18683 (grub_net_fs_read): Seek if necessary.
18684
18685 Unify IEEE1275 netwotk config with the other platforms.
18686
18687 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18688 New variable.
18689 (grub_machine_get_bootlocation): Support network.
18690 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18691 Support type and device parsing.
18692 (grub_ieee1275_get_device_type): New function.
18693 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18694 into ...
18695 (grub_ieee1275_net_config_real): ... this.
18696 (grub_ofnet_probecards): Removed.
18697 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18698 * include/grub/ieee1275/ofnet.h: Removed.
18699 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18700 extern var.
18701 (grub_ieee1275_get_device_type): New function.
18702
18703 Unify network device closing across platforms and make more robust.
18704
18705 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18706 grub_grubnet_fini.
18707 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18708 already.
18709 * grub-core/net/net.c (grub_net_network_level_interface_register):
18710 Update num_ifaces.
18711 (grub_net_card_unregister): Close all interfaces.
18712 (receive_packets): Don't poll if no iterfaces are registered.
18713 Open if necessary.
18714 (grub_net_fini_hw): New function.
18715 (grub_net_restore_hw): Likewise.
18716 (fini_hnd): New variable.
18717 (GRUB_MOD_INIT): Register preboot hook.
18718 (GRUB_MOD_FINI): Run and unregister preboot hook.
18719
18720 Poll network cards when idle.
18721
18722 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18723 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18724 * grub-core/net/net.c (receive_packets): Save last poll time.
18725 (grub_net_poll_cards_idle_real): New function.
18726 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18727 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18728 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18729
18730 Rename ofnet interfaces.
18731
18732 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18733 (grub_ofnet_findcards): Use ofnet_%s names.
18734
18735 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18736
18737 Cleanup socket opening.
18738
18739 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18740 (grub_net_fs_close): Likewise.
18741 (grub_net_fs_read_real): Use eof member.
18742 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18743 (+grub_net_udp_close): New inline function.
18744
18745 * include/grub/net/tftp.h: Moved to the top of ...
18746 * grub-core/net/tftp.c: ... here.
18747 * include/grub/net/ip.h: Moved mostly to the top of ...
18748 * grub-core/net/ip.c: ... here.
18749 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18750 * grub-core/net/ethernet.c: ... here.
18751
18752 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18753
18754 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18755 FS name.
18756
18757 * include/grub/net/ip.h (ipv4_ini): Removed.
18758 (ipv4_fini): Likewise.
18759
18760 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18761 (grub_net_send_ip_packets): Likewise.
18762
cf1337aa
VS
187632011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18764
18765 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18766 grub_read_cmos prototype.
18767
93c06ff9
VS
187682011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18769
18770 VGA text support in qemu-mips
18771
18772 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18773 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18774 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18775 text.
18776 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18777 * grub-core/kern/vga_init.c: ... this.
18778 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18779 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18780 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18781 Adjust.
18782 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18783 GRUB_MACHINE_PCI_IO_BASE.
18784
748ccabe
VS
187852011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 MIPS qemu flash support.
18788
18789 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18790 magic.
18791 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18792 (grub_machine_init): Probe memory if its size isn't known.
18793 * util/grub-mkimage.c (image_targets): Add flash targets.
18794 (generate_image): Handle flash targets.
18795
d7345994
VS
187962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18797
18798 MIPS qemu at_keyboard support.
18799
18800 * gentpl.py (videoinkernel): Add qemu-mips.
18801 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18802 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18803 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18804 modules.
18805 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18806 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18807 * grub-core/term/serial.c (grub_serial_register)
18808 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18809
a07a81b3
VS
188102011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18811
18812 CMOS support on sparc.
18813
18814 * gentpl.py (cmos): Add powerpc and sparc.
18815 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18816 powerpc and sparc.
18817 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18818 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18819 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18820 grub_set_datetime_cmos.
18821 * grub-core/lib/ieee1275/cmos.c: New file.
18822 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18823 (find_rtc): Set no_ieee1275_rtc on error.
18824 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18825 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18826 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18827 fail. Move value to argument. All users updated
18828 (grub_cmos_write): Likewise.
18829 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18830 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18831 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18832 grub_get_datetime_cmos and grub_set_datetime_cmos.
18833
77546584
GS
188342011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18835
18836 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18837 sourcing grub-mkconfig_lib.
18838 * util/update-grub_lib.in: Likewise.
18839 * util/grub.d/00_header.in: Likewise.
18840 * util/grub.d/10_hurd.in: Likewise.
18841 * util/grub.d/10_kfreebsd.in: Likewise.
18842 * util/grub.d/10_linux.in: Likewise.
18843 * util/grub.d/10_netbsd.in: Likewise.
18844 * util/grub.d/10_windows.in: Likewise.
18845 * util/grub.d/20_linux_xen.in: Likewise.
18846 * util/grub.d/30_os-prober.in: Likewise.
18847
54894791
CW
188482011-06-28 Colin Watson <cjwatson@ubuntu.com>
18849
18850 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18851 default_bg_color rather than black.
18852 (grub_gfxterm_fullscreen): Likewise.
18853 (grub_gfxterm_background_color_cmd): Save new background color in
18854 default_bg_color.
18855
8d5d8444
VS
188562011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18857
18858 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18859
5afeb5bd
VS
188602011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18861
18862 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18863 mismerge.
18864
ba7df45e
VS
188652011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18866
18867 Chainloading on coreboot support.
18868
18869 * grub-core/Makefile.core.def (chain): Add coreboot.
18870 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18871
d0b526b2
VS
188722011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18873
18874 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18875 if it happens.
18876
5ff1d945
VS
188772011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18878
18879 Implement time command.
18880
18881 * grub-core/Makefile.core.def (time): New module.
18882 * grub-core/commands/time.c: New file.
18883 * grub-core/script/parser.y: Remove "time" keyword.
18884 * grub-core/script/yylex.l: Likewise.
18885
5ebaad7e
VS
188862011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18887
18888 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18889
bdea3798
VS
188902011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18891
18892 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18893 when handling leftovers.
18894
b28c5655
VS
188952011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18896
18897 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18898 so that help2man doesn't fail.
18899
b6f945dc
VS
189002011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18901
18902 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18903 type in pointers on sparc64.
18904 (get_card_packet): Likewise.
18905
f9b75e8a
CW
189062011-06-27 Colin Watson <cjwatson@ubuntu.com>
18907
18908 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18909 with `*'.
18910 (grub_cmd_videoinfo): Fetch current video mode.
18911
1e3d9b86
VS
189122011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18913
18914 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18915 because of underlying system restrictions.
18916
efff4b1c
VS
189172011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18918
18919 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18920 necessary.
18921
9fc9ce37
VS
189222011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18923
18924 Coreboot video support.
18925
18926 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18927 (vbe): Likewise.
18928 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18929 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18930 here ...
18931 * grub-core/kern/i386/int.S: ... here.
18932 * grub-core/video/i386/pc/vbe.c: Updated includes.
18933 * grub-core/video/i386/pc/vga.c: Likewise.
18934 * include/grub/i386/coreboot/memory.h
18935 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18936 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18937 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18938 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18939 Disable interrupts.
18940 * include/grub/i386/pc/vga.h: Removed. All users updated.
18941
41bec7fe
VS
189422011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18943
18944 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18945 definitions for dprintf.
18946 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18947
ca80309d
VS
189482011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18949
18950 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18951 prototype.
18952 (get_card_packet): Likewise.
18953
9e322ce8
YB
189542011-06-26 Yves Blusseau <blusseau@zetam.org>
18955
18956 Display the path of the file when file is not found
18957
18958 * grub-core/fs/fat.c: Display the filename when file is not found.
18959 * grub-core/fs/fshelp.c: Likewise.
18960 * grub-core/fs/hfs.c: Likewise.
18961 * grub-core/fs/jfs.c: Likewise.
18962 * grub-core/fs/minix.c: Likewise.
18963 * grub-core/fs/ufs.c: Likewise.
18964 * grub-core/fs/btrfs.c: Likewise.
18965 * grub-core/commands/i386/pc/play.c: Likewise.
18966
cbf597af
SJ
189672011-06-26 Szymon Janc <szymon@janc.net.pl>
18968
18969 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18970 pointer checks before calling grub_free().
18971 * grub-core/commands/wildcard.c (match_devices): Likewise.
18972 * grub-core/commands/wildcard.c (match_files): Likewise.
18973 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18974 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18975 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18976 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18977 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18978 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18979 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18980 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18981 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18982
6295b32f
P
189832011-06-25 Patrick <p55@mailinator.com>
18984
18985 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18986
77c0840b
VS
189872011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18988
18989 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18990 (grub_pxe_send): Likewise.
18991 (GRUB_MOD_INIT): Fix types.
18992
40ea05de
SJ
189932011-06-24 Szymon Janc <szymon@janc.net.pl>
18994
18995 * grub-core/io/xzio.c: Fix code style issues
18996
90162423
MRA
189972011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
189982011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
18999
19000 Network infrastructure.
19001 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
19002
19003 * include/grub/net/arp.h: New file.
90162423
MRA
19004 * include/grub/net/device.h: Likewise.
19005 * include/grub/net/ethernet.h: Likewise.
19006 * include/grub/net/ip.h: Likewise.
19007 * include/grub/net/netbuff.h: Likewise.
19008 * include/grub/net/tftp.h: Likewise.
19009 * include/grub/net/udp.h: Likewise.
19010 * include/grub/ieee1275/ofnet.h: Likewise.
19011 * include/grub/emu/export.h: Likewise.
19012 * include/grub/net.h: Likewise.
19013 * grub-core/net/arp.c: Likewise.
19014 * grub-core/net/ethernet.c: Likewise.
19015 * grub-core/net/ip.c: Likewise.
19016 * grub-core/net/udp.c: Likewise.
19017 * grub-core/net/tftp.c: Likewise.
19018 * grub-core/net/netbuff.c: Likewise.
19019 * grub-core/net/net.c: Likewise.
19020 * grub-core/net/drivers/emu/emunet.c: Likewise.
19021 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19022 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19023 export.h.
19024 * grub-core/Makefile.core.def (net): New module.
19025 (tftp): Likewise.
19026 (ofnet): Likewise.
19027 (emunet): Likewise.
19028 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19029 network protocols.
19030 * grub-core/kern/device.c (grub_net_open) : New variable.
19031 (grub_device_open): Handle network device.
19032 (grub_device_close): Likewise.
19033 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19034 (grub_grubnet_fini): Likewise.
19035 (grub_file_seek): Seek in network device.
19036 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19037 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19038 network root.
19039 (grub_machine_fini): Call grub_grubnet_fini.
19040 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19041 network.
19042 (grub_ieee1275_get_aliasdevname): New function.
19043 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19044 Add unofficial Solaris network info.
19045 (grub_multiboot_make_mbi): Likewise.
19046 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19047 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19048 * include/grub/device.h (grub_fs): Removed.
19049 * include/grub/err.h (grub_err_t): Add network-related values.
19050 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19051 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19052 (grub_ieee1275_get_aliasdevname): New proto.
19053 * include/grub/net.h: Rewritten.
423a1849 19054
031f22a0
VS
190552011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19056
19057 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19058 names.
19059
4388ca72
VS
190602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19061
19062 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19063 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19064 it truncates the output.
19065 Reported by: Ximin Luo.
19066
98e2f506
VS
190672011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19070
2a5e94d8
VS
190712011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19072
19073 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19074 partmap before abstraction.
19075
535c1910
AK
190762011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19077
19078 * util/grub-mkconfig_lib.in: Add missing quotes.
19079
bc09e1a2
VS
190802011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19081
19082 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19083 old method if mountinfo would return /dev/root and /dev/root doesn't
19084 exist.
19085
290766fb
VS
190862011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19087
19088 ZFS zlib support
19089
19090 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19091 (decomp_table): Add zlib entries.
19092 (zio_read): USe 8 bits for compression function rather than 3.
19093 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19094
190952011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 * grub-core/disk/ahci.c: Add missing license statements.
19098 * grub-core/fs/romfs.c: Likewise.
19099 * grub-core/lib/ia64/setjmp.S: Likewise.
19100 * grub-core/loader/i386/pc/freedos.c: Likewise.
19101 * grub-core/loader/ia64/efi/linux.c: Likewise.
19102 * grub-core/video/colors.c: Likewise.
19103 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19104
5ab3f48a
VS
191052011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19106
19107 AHCI support.
19108
19109 * grub-core/Makefile.core.def (ata_pthru): Removed.
19110 (ahci): New module.
19111 (pata): Likewise.
19112 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19113 on unload.
19114 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19115 readwrite.
19116 (grub_hdparm_do_check_powermode_cmd): Likewise.
19117 (grub_hdparm_do_smart_cmd): Likewise.
19118 (grub_hdparm_set_val_cmd): Likewise.
19119 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19120 * grub-core/disk/ahci.c: New file.
19121 * grub-core/disk/ata.c: Factor out the low-level part into ...
19122 * grub-core/disk/pata.c: ... here.
19123 * grub-core/disk/ata_pthru.c: Contents moved to ...
19124 * grub-core/disk/pata.c: ... here.
19125 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19126 (grub_scsi_iterate): Use grub_scsi_names.
19127 (grub_scsi_open): Likewise.
19128 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19129 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19130 (grub_ata_regs_t): New struct.
19131 (grub_disk_ata_pass_through_parms): Likewise.
19132 (grub_ata_device): Renamed to ...
19133 (grub_ata): ... this.
19134 (grub_ata_dev): New struct.
19135 Removed all low-level inline functions.
19136 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19137 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19138 iterate hooks and open. All users updated.
19139 * util/grub-install.in: Handle AHCI disk module.
19140
c31dc5f5
SJ
191412011-06-23 Szymon Janc <szymon@janc.net.pl>
19142
19143 Add support for DRI and RSTn markers in JPEG files.
19144
19145 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19146 (JPEG_MARKER_RST0): Likewise.
19147 (JPEG_MARKER_RST1): Likewise.
19148 (JPEG_MARKER_RST2): Likewise.
19149 (JPEG_MARKER_RST3): Likewise.
19150 (JPEG_MARKER_RST4): Likewise.
19151 (JPEG_MARKER_RST5): Likewise.
19152 (JPEG_MARKER_RST6): Likewise.
19153 (JPEG_MARKER_RST7): Likewise.
19154 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19155 (grub_jpeg_decode_dri): New function.
19156 (grub_jpeg_decode_sos): Move image data related part into
19157 grub_jpeg_decode_data function.
19158 (grub_jpeg_decode_data): New function.
19159 (grub_jpeg_reset): New function.
19160 (grub_jpeg_decode_jpeg): Handle new markers.
19161
fe12fd5b
VS
191622011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19163
19164 * util/ieee1275/ofpath.c (check_sas): Close fd.
19165 (main): Free of_path.
19166 Reported by: David Volgyes <dvolgyes>.
19167
03147f46
VS
191682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19169
19170 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19171 Reported by: David Volgyes <dvolgyes>.
19172
cad3237f
VS
191732011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19176 file after stat.
19177 Reported by: David Volgyes <dvolgyes>.
19178
13548d26
VS
191792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19180
19181 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19182
19183 Reported by: David Volgyes <dvolgyes>.
19184
e061a1b5
VS
191852011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19186
19187 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19188 Prevent memory leak.
19189
1abe47dc
VS
191902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19191
19192 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19193 (main): Close file.
e061a1b5 19194 Reported by: David Volgyes <dvolgyes>.
1abe47dc 19195
fbc62666
VS
191962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19197
19198 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19199 to continue if allocation is failed.
19200
19201 Reported by: David Volgyes <dvolgyes>.
19202
e98c83e9
DV
192032011-06-23 David Volgyes <dvolgyes>
19204
19205 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19206 dereference.
19207
a199a8cd
VS
192082011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 Fix spurious warning.
19211
19212 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19213 (acorn_partition_map_find): Use .bin member.
19214
e2d1dba0
VS
192152011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19216
19217 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19218 /dev/root as a valid device.
19219
8a5d6919
JM
192202011-06-23 Jim Meyering <meyering@redhat.com>
19221
e2d1dba0
VS
19222 Avoid NULL deref in grub_device_open.
19223
8a5d6919
JM
19224 * grub-core/kern/device.c (grub_device_open): Don't dereference
19225 a NULL pointer upon failed grub_env_get.
19226
f7db6f4a
VS
192272011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19228
19229 Support non-512B sectors and agglomerate reads.
19230
19231 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19232 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19233 (disk_io_guid): Removed.
19234 (make_devices): Locate solely by BlockIO.
19235 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19236 (grub_efidisk_read): Use read_blocks.
19237 (grub_efidisk_write): Use write_blocks.
19238 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19239 log_sector_size.
19240 (get_safe_sectors): Handle non-512B sectors.
19241 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19242 sectors.
19243 (grub_biosdisk_write): Handle non-512B sectors.
19244 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19245 (grub_scsi_read): Remove special non-512B block handling (now handled
19246 one level up).
19247 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19248 and do sanity checks.
19249 (grub_disk_adjust_range): Handle non-512B sectors.
19250 (transform_sector): New function.
19251 (grub_disk_read_small): Likewise.
19252 (grub_disk_read): Rewritten.
19253 (grub_disk_write): Handle non-512B sectors.
19254 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19255 log_sector_size.
19256 (open_device): Use log_sector_size.
19257 (grub_util_biosdisk_read): Likewise.
19258 (grub_util_biosdisk_write): Likewise.
19259 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19260 non-512B sectors.
19261 (pc_partition_map_embed): Likewise.
19262 * include/grub/disk.h (grub_disk): New field log_sector_size.
19263 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19264 (GRUB_DISK_CACHE_BITS): Increased to 6.
19265 * util/grub-fstest.c (fstest): New command testload.
19266 (argp_parser): Likewise.
19267
881ac815
RM
192682011-06-16 Robert Millan <rmh@gnu.org>
19269
19270 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19271 `ata' driver on kernel of FreeBSD 9.
19272
19273 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19274 (get_ataraid_disk_name): New functions.
19275 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19276 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19277 get_ataraid_disk_name() and get_ada_disk_name().
19278
1e9aef7d
CW
192792011-06-13 Colin Watson <cjwatson@ubuntu.com>
19280
19281 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19282 input format.
19283
351c7c8a
CW
192842011-05-29 Colin Watson <cjwatson@ubuntu.com>
19285
19286 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19287 `ftp.gnu.org' for `alpha.gnu.org'.
19288
6b4e6430
CW
192892011-05-27 Colin Watson <cjwatson@ubuntu.com>
19290
19291 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19292 partitions under /dev/disk/by-id/.
19293
c64db050
CW
192942011-05-27 Colin Watson <cjwatson@ubuntu.com>
19295
19296 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19297 after ten consecutive open failures. Scanning all the way up to
19298 10000 is excessive and can cause serious performance problems in
19299 some configurations.
19300 Fixes Ubuntu bug #787461.
19301
245f4aba
VS
193022011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19303
19304 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19305 opening new one.
19306
f767c929
VS
193072011-05-21 Colin Watson <cjwatson@ubuntu.com>
193082011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19309
19310 Don't stat devices unless we have to.
19311
19312 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19313 dir == /dev/mapper.
19314 (grub_guess_root_device): Use already known os_dev if possible.
19315 * grub-core/kern/emu/hostdisk.c
19316 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19317 if device is known to be a dm one.
19318
f35fa3a6
CW
193192011-05-20 Colin Watson <cjwatson@ubuntu.com>
19320
19321 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19322 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19323 Reported by: Pawel Tecza.
19324
9a79fcf2
VS
193252011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19326
19327 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19328 (lsefisystab): Likewise.
19329 (lssal): Likewise.
19330 (lsefimmap): Likewise.
19331 (hdparm): Enable on qemu-mips.
19332 (setjmp): Add ia64 nodist.
19333 (serial): Simplify tags.
19334
63e3eea9
CW
193352011-05-18 Colin Watson <cjwatson@ubuntu.com>
19336
19337 * Makefile.util.def (grub-ofpathname): Install manual page.
19338
09728256
CW
193392011-05-18 Colin Watson <cjwatson@ubuntu.com>
19340
19341 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19342
8b63a142
CW
193432011-05-18 Colin Watson <cjwatson@ubuntu.com>
19344
19345 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19346
e775d8ed
VS
193472011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19348
19349 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19350 into dprintf.
19351
bf947d36
VS
193522011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19353
19354 Use full 64-bit division.
19355
19356 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19357 (grub_divmod64): ... this.
19358 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19359 version.
19360
b84f26c5
CW
193612011-05-18 Colin Watson <cjwatson@ubuntu.com>
19362
19363 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19364 `source'.
19365
5626056f
CW
193662011-05-18 Colin Watson <cjwatson@ubuntu.com>
19367
19368 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19369 to avoid accidents when debugging with 'sh -x'.
19370 * grub-core/gensyminfo.sh.in: Likewise.
19371 * tests/example_scripted_test.in: Likewise.
19372 * tests/grub_cmd_regexp.in: Likewise.
19373 * tests/grub_script_blanklines.in: Likewise.
19374 * tests/grub_script_dollar.in: Likewise.
19375 * tests/grub_script_expansion.in: Likewise.
19376 * tests/grub_script_final_semicolon.in: Likewise.
19377 * tests/partmap_test.in: Likewise.
19378 * tests/util/grub-shell-tester.in: Likewise.
19379 * tests/util/grub-shell.in: Likewise.
19380
e2965f4a
CW
193812011-05-18 Colin Watson <cjwatson@ubuntu.com>
19382
19383 Move gfxmenu color handling to video, so that gfxterm can use it
19384 too.
19385
19386 * grub-core/gfxmenu/named_colors.c: Move to ...
19387 * grub-core/video/colors.c: ... here. Rename
19388 grub_gui_get_named_color to grub_video_get_named_color.
19389 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19390 * grub-core/video/colors.c (my_isxdigit): ... here.
19391 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19392 Move to ...
19393 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19394 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19395 to ...
19396 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19397
19398 * include/grub/gui.h (grub_gui_color_t): Move to ...
19399 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19400 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19401 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19402 * include/grub/gui.h (grub_gui_map_color): Move to ...
19403 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19404 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19405 to ...
19406 * include/grub/video.h (grub_video_get_named_color): ... here.
19407 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19408 * include/grub/video.h (grub_video_parse_color): ... here.
19409
19410 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19411 video/colors.c.
19412 (gfxmenu): Remove gfxmenu/named_colors.c.
19413 (video) [videomodules]: Add video/colors.c.
19414
19415 Add a background_color command.
19416
19417 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19418 function.
19419 (GRUB_MOD_INIT): Register background_color command.
19420 (GRUB_MOD_FINI): Unregister background_color command.
19421 (redraw_screen_rect): Allow blend/replace of text layer to be
19422 controlled independently from whether there is a background bitmap.
19423 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19424 changing bitmap.
19425
1e4b4390
VS
194262011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19427
26618ff0
VS
19428 Patch BPB in ntldr and chainloader --bpb.
19429
1e4b4390
VS
19430 * grub-core/fs/fat.c: Include grub/fat.h.
19431 (grub_fat_bpb): Moved to ...
19432 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19433 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19434 grub/ntfs.h.
19435 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19436 Moved from here...
19437 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19438 here.
19439 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19440 New function.
19441 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19442 (GRUB_MOD_INIT): Show --bpb.
19443 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19444 * grub-core/normal/main.c (features): New variable.
19445 (GRUB_MOD_INIT): Set feature_* variables.
19446 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19447 proto.
19448 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19449
cf02731e
VS
194502011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19451
19452 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19453 for cleanness.
19454
e3a1073f
VS
194552011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19456
19457 FreeDOS direct loading support.
19458
19459 * docs/grub.texi (Supported OS): Add FreeDOS.
19460 * grub-core/Makefile.core.def (freedos): New module.
19461 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19462 variable.
19463 (grub_relocator16_boot): Handle %ebx.
19464 * grub-core/lib/i386/relocator16.S: Likewise.
19465 * grub-core/loader/i386/pc/freedos.c: New file.
19466
05caa461
VS
194672011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19468
19469 Long Linux command line support.
19470
19471 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19472 (maximal_cmdline_size): New variable.
19473 (allocate_pages): Use maximal_cmdline_size.
19474 (grub_cmd_linux): Set and use maximal_cmdline_size.
19475 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19476 (allocate_pages): Use maximal_cmdline_size.
19477 (grub_cmd_linux): Set and use maximal_cmdline_size.
19478 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19479 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19480 and cmdline_size.
19481
a2491e23
VS
194822011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
194832011-05-18 Colin Watson <cjwatson@ubuntu.com>
19484
19485 Improve devmapper support
19486
19487 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19488 (grub_util_is_lvm): New function.
19489 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19490 than lvm if not dmraid.
19491 Handle mapped md nodes.
19492 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19493 (grub_util_device_is_mapped): ... this. Make always available. All users
19494 updated.
19495 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19496 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19497 dmraid nodes.
19498 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19499
6ad6223e
VS
195002011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19501
19502 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19503
19504 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19505 * grub-core/modinfo.sh.in: New file.
19506 * grub-core/Makefile.core.def (modinfo.sh): New script.
19507 * util/grub-mknetdir.in: Use modinfo.sh.
19508 * util/grub-mkrescue.in: Likewise.
19509
543a8f6e
VS
195102011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19513 Fix potential usage of Elf32 instead of Elf64 when compiling on
19514 32-bit architecture. Add endianness macros while on it.
19515
4959e111
VS
195162011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19517
19518 Use mipsel- rather than mips- in directories involving mipsel ports to
19519 allow both endiannesses coexist.
19520
19521 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19522 mips. All conditions adjusted.
19523 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19524 variable.
19525 * util/grub-install.in: Adjust conditions to take renaming into account.
19526 * util/grub-mkimage.c (image_targets): Likewise. New target
19527 mips-qemu_mips-elf for bigendian mips.
19528
35341bbc
VS
195292011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19530
19531 Avoid unnecessary copying on MIPS.
19532
19533 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19534 early if src == dest.
19535 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19536 compression is none.
19537
b772baed
VS
195382011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19539
19540 Reduce memory footprint on SGI by putting modules before the kernel
19541 as opposed to after.
19542
19543 * grub-core/Makefile.core.def (kernel): Increase linking address.
19544 (none_decompress): Likewise.
19545 (xz_decompress): Likewise.
19546 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19547 address.
19548 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19549 layout change.
19550 (grub_arch_modules_addr): New function.
19551 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19552 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19553 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19554 here.
19555 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19556 (grub_total_modules_size): ... this. Make global.
19557 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19558 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19559 New definition.
19560 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19561 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19562 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19563 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19564 * util/grub-mkimage.c (image_target_desc): New flag
19565 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19566 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19567 (generate_image): Handle images with modules before kernel.
19568
566a1917
VS
195692011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19570
19571 Prevent potential loss of memory map by overwrite on qemu-mips.
19572
19573 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19574 Save ram size in $s4.
19575 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19576 All users changed to grub_arch_memsize.
19577 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19578 Loongson.
19579 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19580 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19581 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19582 external variable.
19583
5d420cd9
CW
195842011-05-17 Colin Watson <cjwatson@ubuntu.com>
19585
19586 * .bzrignore: Remove grub-dumpbios.
19587
d064b830
CW
195882011-05-17 Colin Watson <cjwatson@ubuntu.com>
19589
19590 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19591 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19592 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19593 existing options which append).
19594 * docs/grub.texi (Simple configuration): Document new options.
19595 Reported by: Ian Jackson. Fixes Debian bug #617538.
19596
3ca2b466
CW
195972011-05-17 Colin Watson <cjwatson@ubuntu.com>
19598
19599 * util/grub-fstest.c (cmd_cat): New function.
19600 (fstest): Handle CMD_CAT.
19601 (options): Add cat.
19602 (argp_parser): Handle cat.
19603
24c9143a
CW
196042011-05-17 Colin Watson <cjwatson@ubuntu.com>
19605
19606 * Makefile.util.def (grub-bin2h): Don't install.
19607 * docs/man/grub-bin2h.h2m: Remove.
19608
90f7ac19
VS
196092011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19610
19611 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19612 place.
19613
8d4a5178
VS
196142011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19615
19616 Reenable qemu-mips port.
19617
19618 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19619 Fix small arc bug while on it.
19620 * gentpl.py: Handle qemu_mips.
19621 * grub-core/Makefile.am: Likewise.
19622 * grub-core/Makefile.core.def: Likewise.
19623 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19624 inappropriate includes.
19625 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19626 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19627 * grub-core/kern/main.c (grub_modules_get_end)
19628 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19629 * grub-core/kern/mips/qemu-mips: Moved to ..
19630 * grub-core/kern/mips/qemu_mips: ... this.
19631 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19632 (grub_machine_init): Call terminfo_init and serial_init.
19633 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19634 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19635 New variable.
19636 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19637 parameter passing.
19638 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19639 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19640 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19641 * include/grub/mips/qemu_mips/cmos.h: New file.
19642 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19643 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19644 Removed.
19645 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19646 Use correct mips-style address.
19647 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19648 (GRUB_TICKS_PER_SECOND): Removed.
19649 (grub_get_rtc): Likewise.
19650 (grub_cpu_idle): Likewise.
19651 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19652 New definition.
19653 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19654 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19655 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19656 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19657 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19658 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19659 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19660 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19661
400b9371
VS
196622011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19663
19664 SGI ARCS port.
19665
19666 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19667 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19668 platforms.
19669 * configure.ac: New target mips-arc.
19670 * gentpl.py: Likewise.
19671 * grub-core/Makefile.am: Likewise.
19672 * grub-core/Makefile.core.def: Likewise.
19673 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19674 (none_decompress): Likewise.
19675 (lsdev): New module.
19676 (datetime): Use lib/arc/datetime.c on ARC.
19677 (part_dvh): New module.
19678 * grub-core/commands/arc/lsdev.c: New file.
19679 * grub-core/disk/arc/arcdisk.c: Likewise.
19680 * grub-core/kern/mips/arc/init.c: Likewise.
19681 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19682 aligned addresses.
19683 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19684 support.
19685 (grub_arch_dl_relocate_symbols): Likewise.
19686 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19687 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19688 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19689 platforms.
19690 * grub-core/lib/arc/datetime.c: New file.
19691 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19692 pci.h on non-loongson.
19693 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19694 (grub_linux_boot): Set unused registers to 0.
19695 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19696 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19697 * grub-core/mmap/mips/uppermem.c: ...here.
19698 * grub-core/partmap/dvh.c: New file.
19699 * grub-core/term/arc/console.c: Likewise.
19700 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19701 (grub_terminfo_set_current): Add terminal "arc".
19702 (grub_terminfo_readkey): Support ARC sequences.
19703 * include/grub/arc/arc.h: New file.
19704 * include/grub/arc/console.h: Likewise.
19705 * include/grub/disk.h (grub_disk_dev_id): Add
19706 GRUB_DISK_DEVICE_ARCDISK_ID.
19707 * include/grub/mips/arc/kernel.h: New file.
19708 * include/grub/mips/arc/memory.h: Likewise.
19709 * include/grub/mips/arc/time.h: Likewise.
19710 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19711 * include/grub/mips/kernel.h (grub_halt): ... here.
19712 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19713 here...
19714 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19715 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19716 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19717 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19718 proto.
19719 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19720 from here ...
19721 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19722 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19723 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19724 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19725 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19726 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19727 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19728 (grub_phys_addr_t): Moved from here ...
19729 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19730 (grub_vtop): Moved from here ...
19731 * include/grub/mips/memory.h (grub_vtop): ... here.
19732 (grub_map_memory): Moved from here ...
19733 * include/grub/mips/memory.h (grub_map_memory): ... here.
19734 (grub_unmap_memory): Moved from here ...
19735 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19736 (grub_machine_mmap_iterate): Moved from here ...
19737 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19738 (grub_mmap_get_lower): Moved from here ...
19739 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19740 (grub_mmap_get_upper): Moved from here ...
19741 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19742 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19743 here ...
19744 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19745 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19746 here ...
19747 * include/grub/mips/time.h (grub_get_rtc): ... here.
19748 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19749 here ...
19750 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19751 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19752 here ...
19753 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19754 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19755 definition.
19756 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19757 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19758 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19759 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19760 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19761 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19762 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19763 (GRUB_MACHINE_LINK_ADDR): Likewise.
19764 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19765 to 6.
19766 * util/grub-install.in: Run dvhtool on ARC.
19767 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 19768 (generate_image): Handle ECOFF output for mips-arc.
400b9371 19769
c8ecc840
VS
197702011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19771
19772 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19773 blocks.
19774
153a4b55
VS
197752011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19776
19777 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19778 after enabling port.
19779
ff44d107
VS
197802011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19781
19782 Skip incorrect USB devices.
19783
19784 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19785 configcnt == 0.
19786 * include/grub/usb.h (grub_usb_err_t): New enum value
19787 GRUB_USB_ERR_BADDEVICE.
19788
638dbe4f
VS
197892011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19790
19791 Fuloong video init support.
19792
19793 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19794 well.
19795 (grub_vga_read_arx): New function.
19796 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19797 definition.
19798 (framebuffer): New members io, mmioptr and mmiobase.
19799 (read_sis_cmd): New function.
19800 (write_sis_cmd): Likewise.
19801 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19802 rather than 640x400.
19803 * grub-core/video/sis315_init.c: New file.
19804
c3fc520c
VS
198052011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19808 non-loongson.
19809 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19810 to grub_dl_register_symbol.
19811
67b1e5c9
VS
198122011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19813
19814 Fix compilation errors.
19815
19816 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19817 potentially unused.
19818 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19819 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19820 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19821 to loongson machines.
19822
b756f75f
VS
198232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 Several FS mtime support.
19826
19827 * grub-core/fs/affs.c (grub_affs_time): New struct.
19828 (grub_affs_file): New field mtime.
19829 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19830 type. Removed 'size'. New field 'di'. All users updated.
19831 (grub_affs_mount): Simplify checsum checking.
19832 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19833 (grub_affs_dir): Handle mtime.
19834 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19835 (grub_cpio_dir): Likewise.
19836 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19837 (grub_hfs_filerec): New field mtime.
19838 (grub_hfs_dir): Handle mtime.
19839 (grub_hfs_mtime): New function.
19840 (grub_hfs_fs): Register grub_hfs_mtime.
19841 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19842 (grub_iso9660_dir): New field mtime.
19843 (grub_fshelp_node): New field dirent.
19844 (iso9660_to_unixtime): New function.
19845 (iso9660_to_unixtime2): Likewise.
19846 (grub_iso9660_read_symlink): Use node->dirent.
19847 (grub_iso9660_iterate_dir): Likewise.
19848 (grub_iso9660_dir): Set mtime.
19849 (grub_iso9660_mtime): New function.
19850 (grub_iso9660_fs): Register grub_iso9660_mtime.
19851 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19852 (grub_jfs_inode): New fields atime, ctime and mtime.
19853 (grub_jfs_dir): Set mtime.
19854 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19855 * grub-core/fs/ntfs.c (list_file): Set mtime.
19856 (grub_ntfs_dir): Likewise.
19857 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19858 (grub_reiserfs_iterate_dir): Set mtime.
19859 (grub_reiserfs_dir): Likewise.
19860 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19861 (grub_fshelp_node): Likewise.
19862 (grub_sfs_iterate_dir): Set mtime.
19863 (grub_sfs_dir): Likewise.
19864 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19865 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19866 (grub_xfs_inode): New fields atime, mtime, ctime.
19867 (grub_xfs_dir): Set mtime.
19868 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19869 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19870 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19871
19872 Support UDF symlinks.
19873
19874 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19875 (grub_ufs_read_symlink): New function. All users updated.
19876
19877 Check amiga partmap checksum.
19878
19879 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19880 (grub_amiga_partition): Likewise.
19881 (amiga_partition_map_checksum): New function.
19882 (amiga_partition_map_iterate): Check checksum.
19883
5470225d
VS
198842011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19885
19886 ROMFS support.
19887
19888 * Makefile.util.def (libgrubmods.a): Add romfs.
19889 * grub-core/Makefile.core.def (romfs): New module.
19890 * grub-core/fs/romfs.c: New file.
19891
d4680a35
VS
198922011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19893
19894 Squashfs v4 support.
19895
19896 * Makefile.util.def (libgrubmods.a): Add squash4.
19897 * grub-core/Makefile.core.def (squash4): New module.
19898 * grub-core/fs/squash4.c: New file.
19899 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19900 disk_input_start, disk_input.
19901 (get_byte): Handle disk_input.
19902 (grub_zlib_disk_read): New function.
19903 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19904
bcb18e74
FZ
199052011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
199062011-05-15 Feiran Zheng <famcool@gmail.com>
19907
19908 * Makefile.util.def (libgrubmods.a): Add minix3.
19909 * grub-core/Makefile.core.def (minix3): New module.
19910 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19911 (GRUB_MINIX_BSIZE): Removed.
19912 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19913 (grub_minix_ino_t): New type.
19914 (grub_minix_le_to_cpu_ino): New macro.
19915 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19916 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19917 (grub_minix_data): New field block_size.
19918 (grub_minix_read_file): Handle 64-bit correctly.
19919 * grub-core/fs/minix3.c: New file.
19920
32297d5f
TG
199212011-05-15 Tristan Gingold <gingold@free.fr>
199222011-05-15 Robert Millan <rmh.grub@aybabtu.com>
199232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19924
19925 IA64 support.
19926
19927 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19928 * configure.ac: Add ia64-efi target.
19929 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19930 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19931 * gentpl.py: Add ia64_efi platform.
19932 Rename x86_efi to efi and Add ia64-efi. All users updated.
19933 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19934 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19935 Remove kern/generic/rtc_get_time_ms.c on EFI.
19936 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19937 kern/ia64/dl_helper.c on ia64-efi.
19938 Add kern/emu/cache.c on emu.
19939 (linux): Use on loader/ia64/efi/linux.c on ia64.
19940 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19941 whether symbol is a function.
19942 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19943 (grub_symbol): New field 'isfunc'.
19944 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19945 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19946 (grub_dl_load_segments): Place all sections into the same region.
19947 [__ia64__]: Create trampolines and got.
19948 [GRUB_MACHINE_EMU]: Call mprotect.
19949 (grub_dl_resolve_symbols): Resolve symbol type as well.
19950 [__ia64__]: Create function descriptors.
19951 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19952 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19953 (grub_get_rtc): New function.
19954 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19955 * grub-core/kern/emu/cache.S: Renamed to ...
19956 * grub-core/kern/emu/cache_s.S: ... this.
19957 [__ia64__]: Add a nop.
19958 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19959 [__ia64__]: New function.
19960 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19961 * grub-core/kern/ia64/dl.c: New file.
19962 * grub-core/kern/ia64/dl_helper.c: Likewise.
19963 * grub-core/kern/ia64/efi/init.c: New file.
19964 * grub-core/kern/ia64/efi/startup.S: Likewise.
19965 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19966 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19967 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19968 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19969 * grub-core/loader/ia64/efi/linux.c: New file.
19970 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19971 (GRUB_MOD_DEP): Likewise.
19972 (grub_dl) [__ia64__]: New fields got and tramp.
19973 (grub_dl): New field 'base'.
19974 (grub_dl_register_symbol): New argument isfunc. All users updated.
19975 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19976 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19977 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19978 (grub_ia64_dl_get_tramp_got_size): New proto.
19979 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19980 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19981 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19982 * include/grub/efi/api.h: Skip call wrappers on ia64.
19983 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19984 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19985 * include/grub/elf.h (ELF_ST_INFO): New definition.
19986 * include/grub/ia64/efi/kernel.h: New file.
19987 * include/grub/ia64/efi/memory.h: Likewise.
19988 * include/grub/ia64/efi/time.h: Likewise.
19989 * include/grub/ia64/kernel.h: Likewise.
19990 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19991 * include/grub/ia64/time.h: New file.
19992 * include/grub/ia64/types.h: Likewise.
19993 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19994 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19995 New protos.
19996 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19997 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19998 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19999 * util/grub-mkimage.c (image_target_desc): New field pe_target.
20000 All users updated.
20001 (EFI64_HEADER_SIZE): New definition. All users updated.
20002 (image_targets): Add ia64-efi.
20003 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20004 jumpers_addr. All users updated.
20005 Create function descriptors.
20006 (count_funcs): New function.
20007 (unaligned_uint32): New struct.
20008 (MASK20): New definition.
20009 (MASK19): Likewise.
20010 (MASKF21): Likewise.
20011 (add_value_to_slot_20b): New function.
20012 (add_value_to_slot_21_real): Likewise.
20013 (add_value_to_slot_21): Likewise.
20014 (ia64_kernel_trampoline): New struct.
20015 (nopm): New variable.
20016 (jump): Likewise.
20017 (make_trampoline): New function.
20018 (relocate_addresses): Handle ia64.
20019 (make_reloc_section): Likewise.
20020 (load_image): Likewise.
20021
983b414d
VS
200222011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20023
20024 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20025 warning. Move variables before code while on it.
20026
5d063cdc
VS
200272011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20028
20029 Fuloong support.
20030
20031 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20032 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20033 * grub-core/boot/mips/loongson/fuloong.S: New file.
20034 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20035 Explicitly init CS5536.
20036 [FULOONG]: Don't use serial until CS5536 is available.
20037 Set GPIO based on dumps.
20038 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20039 [FULOONG]: Handle GPIO and memory controller differences.
20040 Parse machine type in $a2.
20041 * grub-core/boot/mips/startup_raw.S: Determine and save the
20042 architecture.
20043 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20044 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20045 init on architecture type.
20046 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20047 SIS315E. Don't init at_keyboard on fuloong.
20048 (grub_halt): Support Fuloong.
20049 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20050 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20051 (loongson_machtypes): New array.
20052 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20053 type.
20054 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20055 config. All users updated. Handle CS5536 serial.
20056 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20057 default port on machine type. Register serial as inactive.
20058 * grub-core/video/sis315pro.c: New file.
20059 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20060 definition.
20061 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20062 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20063 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20064 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20065 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20066 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20067 to ...
20068 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20069 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20070 definition.
20071 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20072 (grub_arch_machine): New extern var.
20073 * include/grub/mips/loongson/serial.h
20074 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20075 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20076 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20077 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20078 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20079 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20080 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20081 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20082 * include/grub/term.h (grub_term_register_input_inactive): New inline
20083 function.
20084 (grub_term_register_output_inactive): Likewise.
20085 * include/grub/video.h (grub_video_driver_id): New value
20086 GRUB_VIDEO_DRIVER_SIS315PRO.
20087 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20088 New field "names". All users updated.
20089 New field value IMAGE_FULOONG_FLASH.
20090 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20091
6ada82d1
JU
200922011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20093
20094 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20095 and add some clarification.
20096
90c571a4
VS
200972011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20098
20099 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20100 platforms if kernel is compressed.
20101
de04eecf
VS
201022011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20103
20104 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20105 unused modules since currently referrence counter isn't reliable and
20106 there isn't much memory to recover there anyway.
20107
57688121
VS
201082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20109
20110 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20111 rather than resetting it to allow modules to reference themselves
20112 in init.
20113
3d2c7e35
VS
201142011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20115
20116 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20117 counter on dependencies since grub_dl_unref already handles this.
20118
b25db218
VS
201192011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20122 on error if not already done.
20123
25a45338
VS
201242011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20125
20126 Fix few potential memory misusage.
20127
20128 * grub-core/font/font.c (load_font_index): Don't free char_index to
20129 avoid double free.
b25db218
VS
20130 (grub_font_load): Zero-fill font at alloc for safety.
20131 Close file on error.
20132 (free_font): Free bmp_idx.
25a45338 20133
0cac83df
VS
201342011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * docs/grub.texi (Installation): Fix several outdated claims.
20137
2217a143
VS
201382011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20139
20140 Handle module_license on windows.
20141
20142 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20143 sections shifted.
20144 (insert_string): Make argument const char * instead of char *.
20145 (write_section_data): Handle long section names.
20146 Handle module_license.
20147
d4de6b01
VS
201482011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20149
20150 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20151 handle class-free menuentries.
20152 (grub_normal_add_menu_entry): Add a check to be sure.
20153
4c2a3b43
VS
201542011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20155
20156 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20157 PgUp and PgDown.
20158
85c6210f
VS
201592011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 * configure.ac: Bump version to 1.99.
20162
36084912
VS
201632011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20164
20165 Give ATA device a bit more time on first try in order to allow disks
20166 to spin up.
20167
20168 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20169 if dev->present is 1. Reset dev->present on failure.
20170 (grub_ata_device_initialize): Set dev->present to 1.
20171 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20172 (grub_ata_device): New member 'present'.
20173
bda0e219
VS
201742011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20175
20176 * util/grub-mkimage.c (generate_image): Update hash.
20177
19e1c41b
VS
201782011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 Flush caches on DMA memory.
20181
20182 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20183 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20184 (grub_dma_free): Likewise.
20185 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20186
91bbcc0c
VS
201872011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20188
20189 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20190 to avoid asm treating ld and sd as macros.
20191
60ddfad3
VS
201922011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20193
20194 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20195 decompressor.
20196
a298aa04
VS
201972011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20198
20199 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20200 grub_decompress_core since later would fail if grub_decompress_core
20201 is too far.
20202
9b44feca
VS
202032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20204
20205 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20206 R_MIPS_JALR since it's used by newer compiler.
20207
56dbe7b4
VS
202082011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20209
20210 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20211
52856af2
VS
202122011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20213
20214 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20215 file_path to 0 for surety.
20216 (grub_chainloader_boot): Set exit_data to NULL.
20217 Unset the loader once done.
20218 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20219
9c9bfc6d
VS
202202011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20221
20222 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20223 unknown key into a dprintf.
20224
dd94a3df
VS
202252011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20226
20227 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20228 on first non-existant partition.
20229
fa68d99c
VS
202302011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20231
20232 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20233 openning fails.
20234 Reported by: Mark Korenberg.
20235
157effb7
VS
202362011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20239 overflow.
20240
ea75312f
VS
202412011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20242
20243 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20244 before closing to ensure that it will be readable by grub-setup.
20245
072b5d31
VS
202462011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20247
20248 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20249 (devpath_1): Use MAKE_PIWG_PATH.
20250 (devpath_2): Likewise.
20251 (devpath_3): Likewise.
20252 (devpath_4): Likewise.
20253 (devpath_5): Likewise.
20254 (devpath_6): Likewise.
20255
20256 The appleldr.mod was checked that to be binary identical to previous
20257 version.
20258
7fae0051
Z
202592011-05-05 Zach <mikezackles>
20260
20261 Support 2010 Macbooks.
20262
20263 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20264 (devs): Add devpath_6.
20265
7c515bee
VS
202662011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20267
20268 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20269 /dev/random. /dev/urandom is good enough for our purposes (salting).
20270
ed660bd8
VS
202712011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20274
ee5614b7
VS
202752011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20276
20277 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20278 hexadecimal.
20279
664889a6
VS
202802011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20281
20282 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20283 and not 0 on failure.
20284
bd405bbc
CW
202852011-05-03 Colin Watson <cjwatson@ubuntu.com>
20286
20287 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20288 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20289 disk; otherwise grub_fs_probe will not fall back to the next
20290 filesystem.
20291 (grub_pxefs_open): Likewise, for consistency.
20292 Reported and tested by: Ezekiel Grave.
20293
4ebff753
CW
202942011-05-03 Colin Watson <cjwatson@ubuntu.com>
20295
20296 * tests/partmap_test.in: Don't hardcode path to parted.
20297 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20298
8f942553
CW
202992011-05-01 Colin Watson <cjwatson@ubuntu.com>
20300
20301 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20302 of `ls' to find out which devices are available.
20303
3c62402d
VS
203042011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20305
20306 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20307 than source address for efi mmap buffer.
20308
723f63f2
VS
203092011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20310
20311 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20312 wrong action on non-detecting the magic.
20313
68797f92
VS
203142011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20315
20316 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20317 already supplied by another part of the module (fixes compilation on
20318 FreeBSD).
20319
6be8715d
VS
203202011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20321
20322 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20323 match the one used by mdadm.
20324
e91dba5b
CW
203252011-04-21 Colin Watson <cjwatson@ubuntu.com>
20326
20327 * po/README: Add instructions for creating po/LINGUAS.
20328
c85140b3
CW
203292011-04-21 Colin Watson <cjwatson@ubuntu.com>
20330
20331 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20332 #551428.
20333
20334 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20335 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20336 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20337 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20338 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20339 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20340 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20341 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20342 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20343 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20344 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20345 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20346 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20347 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20348 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20349 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20350 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20351 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20352 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20353 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20354 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20355 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20356
92051871
CW
203572011-04-21 Colin Watson <cjwatson@ubuntu.com>
20358
20359 * grub-core/kern/emu/getroot.c
20360 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20361 test that was incorrectly reintroduced in r3214.
20362 Reported by: Ian Dall. Fixes Savannah bug #33133.
20363
b13f79a4
CW
203642011-04-21 Colin Watson <cjwatson@ubuntu.com>
20365
20366 Fix stack pointer handling in 16-bit relocator.
20367
20368 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20369 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20370 Fixes Ubuntu bug #683904.
20371
9b710a88
VS
203722011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20373
20374 * configure.ac: Bump version to 1.99~rc2.
20375
d97e7b59
VS
203762011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20379 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20380 * grub-core/lib/x86_64/setjmp.S: Likewise.
20381 * grub-core/lib/mips/setjmp.S: Likewise.
20382 * grub-core/lib/powerpc/setjmp.S: Likewise.
20383 * grub-core/lib/sparc64/setjmp.S: Likewise.
20384
0624551c
VS
203852011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20386
20387 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20388 * grub-core/lib/efi/datetime.c: Likewise.
20389
e8f28d4c
VS
203902011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20391
20392 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20393 New function.
20394 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20395 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20396 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20397
bba79a15
VS
203982011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20399
20400 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20401 bitmap.
20402 (grub_gfxterm_term_init): Likewise.
20403
abc474ef
VS
204042011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20405
20406 Take into account the decorations the computing menu entry width.
20407
20408 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20409 (grub_gfxmenu_create_box): Register get_border_width.
20410 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20411 if available.
20412 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20413 get_border_width.
20414
e74b3947
EP
204152011-04-18 Endres Puschner <code@e7p.de>
20416
20417 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20418 Don't skip first class.
20419
34faa595
VS
204202011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20421
20422 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20423 chunks.
20424 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20425
93a777e3
VS
204262011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 Complete 64-bit division support.
20429
20430 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20431 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20432 * include/grub/misc.h (grub_divmod64): Rename to ...
20433 (grub_divmod64_full): ... this.
20434 (grub_divmod64): New inline function.
20435
a5102d94
VS
204362011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20439
f3fb7b36
VS
204402011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20441
20442 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20443 performing the necessary test.
20444
9ac718b0
VS
204452011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20446
20447 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20448 (kfreebsd.elf): Likewise.
20449 (pc-chainloader.elf): Likewise.
20450 (ntldr.elf): Likewise.
20451
50d2cc5a
VS
204522011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20453
20454 Identify RAID by its UUID rather than (guessed) name.
20455
20456 * grub-core/disk/raid.c (ascii2hex): New function.
20457 (grub_raid_open): Accept mduuid/%s specification.
20458 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20459 (get_mdadm_uuid): ... this.
20460 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20461
e03f7bea
VS
204622011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20463
20464 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20465 to negative size.
20466
e74c3112
CW
204672011-04-13 Colin Watson <cjwatson@ubuntu.com>
20468
20469 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20470 btrfs subvolume.
20471 * util/grub.d/20_linux_xen.in: Likewise.
20472
78fa584f
CW
204732011-04-13 Colin Watson <cjwatson@ubuntu.com>
20474
20475 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20476 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20477
20478 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20479 Build a list of relevant visible mounts using the mnt_id and
20480 parent_mnt_id fields, and then scan that list at the end.
20481
9d5f8162
CW
204822011-04-12 Colin Watson <cjwatson@ubuntu.com>
20483
20484 * docs/grub.texi (normal): New section.
20485 (normal_exit): New section.
20486 (Embedded configuration): Add reference to normal.
20487 (GRUB only offers a rescue shell): Likewise.
20488 * docs/grub-dev.texi (Error Handling): Fix typo.
20489
09a9d66f
CW
204902011-04-12 Colin Watson <cjwatson@ubuntu.com>
20491
20492 * NEWS: Drop obsolete entry about probe-only btrfs support.
20493
0c676933
CW
204942011-04-12 Colin Watson <cjwatson@ubuntu.com>
20495
20496 * util/import_gcry.py: Fix typo.
20497
ec9f5e0d
VS
204982011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * NEWS: Add btrfs support.
20501
fe6b2cba
VS
205022011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
205032011-04-11 Colin Watson <cjwatson@ubuntu.com>
20504
20505 BtrFS support. Written by me (Vladimir) with important bugfixes and
20506 even more important testing by Colin.
20507
20508 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20509 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20510 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20511 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20512 mem_input_off and mem_input. All users updated to accept in-RAM input.
20513 (gzio_seek): New function.
20514 (test_zlib_header): Likewise.
20515 (grub_gzio_read): Likewise.
20516 (grub_zlib_decompress): Likewise.
20517 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20518 Accept partial and non-virtual mounts.
20519 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20520 avoid receiving /dev/dm-X as device.
20521 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20522 Handle bind and partial mounts.
20523 * grub-core/lib/crc.c: New file.
20524 * include/grub/deflate.h: Likewise.
20525 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20526 proto.
20527 * include/grub/lib/crc.h: New file.
20528
e745cf0c
VS
205292011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20530
20531 Implement automatic module license checking according to new GNU
20532 guidelines.
20533
20534 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20535 (grub_dl_load_core): Use grub_dl_check_license.
20536 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20537 (GRUB_MOD_LICENSE): Likewise.
20538 (GRUB_MOD_DUAL_LICENSE): Likewise.
20539 All modules updated.
20540
2a9bc016
CW
205412011-04-11 Colin Watson <cjwatson@ubuntu.com>
20542
20543 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20544 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20545 loaders.
20546 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20547
8a3bc88e
VS
205482011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20551
af869a4a
VS
205522011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20553
20554 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20555 failed.
20556
9ee8d94f
VS
205572011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20558
20559 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20560 parenthesis in the middle of the filename.
20561
b01abe3e
VS
205622011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20565 rather than trying to put initrd way too high.
20566 Reported by: Ryan Lortie <desrt@desrt.ca>
20567
335bda1e
VS
205682011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20569
20570 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20571 improperly removed string.
20572
5ca1a64d
VS
205732011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20574
20575 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20576 is_disk.
20577 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20578 (open_device) Likewise.
20579 (grub_util_biosdisk_close): Likewise.
d8ce9995 20580 Reported by: Mark Korenberg.
5ca1a64d 20581
cbac5b1e
AK
205822011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20583
20584 * util/grub-mkconfig_lib.in: Add missing quotes.
20585
088cdb65
CW
205862011-04-10 Colin Watson <cjwatson@ubuntu.com>
20587
20588 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20589 is NULL.
20590
8b8a81fa
VS
205912011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 Dynamically count the number of lines for the lower banner.
20594
20595 * grub-core/normal/menu_entry.c (per_term_screen): New member
20596 num_entries.
20597 (print_down): Use num_entries.
20598 (update_screen): Likewise.
20599 (grub_menu_entry_run): Set num_entries.
20600 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20601 num_entries.
20602 (grub_print_message_indented): Move real part to ...
20603 (grub_print_message_indented_real): ... here. Additional argument
20604 dry_run.
20605 (draw_border): Additional argument num_entries.
20606 (print_message): Additional argument dry_run.
20607 (print_entries): Receive menu viewer data.
20608 (grub_menu_init_page): New argment num_entries.
20609 (menu_text_set_chosen_entry): Use num_entries.
20610 (grub_menu_try_text): Likewise.
20611 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20612 All users updated.
20613 (grub_ucs4_count_lines): New function.
20614 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20615 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20616 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20617 (grub_term_border_height): Likewise.
20618 (grub_term_num_entries): Likewise.
20619
277f955b
VS
206202011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20621
20622 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20623 Remove now unused string.
20624
536ce85a
CW
206252011-04-09 Colin Watson <cjwatson@ubuntu.com>
20626
20627 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20628 build system.
20629 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20630
20631 (Comment): Fix typo.
20632 (Getting started): General copy-editing.
20633 (Typical Development Experience): Likewise.
20634 (Error Handling): Likewise.
20635 (Video API): Likewise.
20636
2cf09e32
CW
206372011-04-09 Colin Watson <cjwatson@ubuntu.com>
20638
20639 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20640 throughout.
20641
1ec652f4
VS
206422011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20643
20644 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20645 directory.
20646
2c583728
CW
206472011-04-08 Colin Watson <cjwatson@ubuntu.com>
20648
20649 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20650 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20651 "development".
20652
d7a565e9
VS
206532011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20654
20655 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20656 grub_strcpy since the lines aren't necessarily 0-terminated.
20657
7c2e4909
VS
206582011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20659
20660 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20661 root on legacy.
20662
34c09785
VS
206632011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20666 (GRUB_MOD_INIT): DEVICE isn't optional.
20667
6a6f8058
VS
206682011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20669
20670 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20671 word on new line if it's too long anyway. Fixes a hang.
20672
2e335e90
VS
206732011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20674
20675 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20676 const.
20677 * util/grub-setup.c (main): Reuse md device name if available.
20678 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20679 not GRUB name as argument.
20680 Based on patch by: Florian Wagner <fwagner>.
20681
10a7a867
VS
206822011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20683
20684 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20685 Place mbi on low memory for better compatibility.
20686
7a3d6cd9
VS
206872011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20688
20689 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20690
18dd6b47
VS
206912011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
206922011-04-08 Colin Watson <cjwatson@ubuntu.com>
20693
20694 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 20695 * conf/Makefile.common: Likewise.
18dd6b47 20696
3c0e3f14
VS
206972011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20698
f7148863
VS
20699 * grub-core/normal/menu.c: Add missing include.
20700
207012011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20702
20703 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 20704
6d1fa41f
MZ
207052011-04-08 Martin Zuther <mzuther@mzuther.de>
20706
20707 * util/grub-mkconfig.in: Ignore emacsen backup.
20708
478182a8
VS
207092011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20710
20711 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20712 on open.
20713 (grub_util_biosdisk_close): Likewise.
20714
72a89a54
VS
207152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20716
20717 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20718 const attribute and use grub_isdigit.
20719
b5ebecfa
A
207202011-04-06 Andrey <dev_null@ukr.net>
20721
20722 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20723 gcc warning.
20724
7755f66e
VS
207252011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20726
20727 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20728 useful grub_dprintf's.
20729
461121ff
VS
207302011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20731
20732 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20733
2a961775
VS
207342011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20735
20736 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20737
adf594cc
VS
207382011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20739
20740 Output errors if theme loading failed.
20741
20742 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20743 grub_gfxterm_fullscreen on error paths to ...
20744 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20745 theme loading error.
20746
665900a3
VS
207472011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20748
20749 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20750 space for older compilers.
20751 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20752
a562b479
VS
207532011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20754
20755 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20756 and report them as not RAID members since they are useless for GRUB.
20757 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20758
850e9373
VS
207592011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 Increase LVM implementation robustness in order not to crash on
20762 configurations like pvmove. Previously code assumed that in some places
20763 only lvs or only pvs are used whereas it seems that they are used
20764 interchangeably.
20765
20766 * grub-core/disk/lvm.c (read_node): New function.
20767 (read_lv): Use read_node.
20768 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20769 Match volumes only at the end when all lvs are found. Take both
20770 pvs (first) and lvs (second) into account.
20771 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20772 mirror_* into node_*. All users updated.
20773 (grub_lvm_stripe): Merge this ...
20774 (grub_lvm_mirror): ... and this ...
20775 (grub_lvm_node): ... into this. All users updated.
20776
6f332153
VS
207772011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20778
20779 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20780 of function to allow further scanning for LVMs.
20781
829ea451
VS
207822011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20783
20784 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20785 on failed seek as it breaks open fd reusage.
20786
09ceb9a5
VS
207872011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20788
20789 * util/grub-install.in: Add a recommendation to use --recheck before
20790 reporting bugs.
20791
67e11623
VS
207922011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20793
20794 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20795 are obtained.
20796
caee5efd
VS
207972011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20798
20799 GRUB developper manual based on existing Internals section and
20800 contributions by the various authors with active copyright assignment.
20801
20802 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20803 * docs/font_char_metrics.png: New file.
20804 * docs/font_char_metrics.txt: Likewise.
20805 * docs/grub-dev.texi: Likewise.
20806 * docs/grub.texi (Internals): Move from here ...
20807 * docs/grub-dev.texi: ... here.
20808
2cccc747
CW
208092011-04-01 Colin Watson <cjwatson@ubuntu.com>
20810
20811 Store the loopback device as data on loopback grub_disk structures,
20812 rather than the file it points to. This fixes use of freed memory
20813 if an existing loopback device is replaced.
20814
20815 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20816 disk->data, not dev->file.
20817 (grub_loopback_read): Adjust file assignment to match.
20818 Fixes Ubuntu bug #742967.
20819
186ae367
CW
208202011-04-01 Colin Watson <cjwatson@ubuntu.com>
20821
20822 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20823 when replacing an existing device.
20824
cfed2ad0
VS
208252011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20826
20827 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20828 memory corruptions.
20829
20830 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20831 unsigned.
20832 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20833 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20834 (grub_jfs_read_inode): Likewise.
20835 (grub_jfs_opendir): Likewise. Remove now useless casts.
20836 (grub_jfs_getent): Likewise.
20837 Make ino a grub_uint32_t rather than int.
20838 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20839 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20840 division and module with bit operations.
20841 (grub_jfs_find_file): Make ino a grub_uint32_t.
20842 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20843
05d2ed32
CW
208442011-04-01 Colin Watson <cjwatson@ubuntu.com>
20845
20846 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20847 warning. (This was in fact always initialised before use, but GCC
20848 wasn't smart enough to prove that.)
20849 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20850
91dc6073
VS
208512011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20854 stack alignment.
20855 (efi_wrap_1): Likewise.
20856 (efi_wrap_2): Likewise.
20857 (efi_wrap_3): Likewise.
20858 (efi_wrap_4): Likewise.
20859 (efi_wrap_5): Likewise.
20860 (efi_wrap_6): Likewise.
20861 (efi_wrap_10): Likewise.
20862 Based on information by: Red Hat/Peter Jones.
20863
a8afc1d1
CW
208642011-03-31 Colin Watson <cjwatson@ubuntu.com>
20865
20866 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20867 set-but-not-used variable.
20868
a826cc7d
CW
208692011-03-31 Colin Watson <cjwatson@ubuntu.com>
20870
20871 * docs/grub.texi (Simple configuration): Be more explicit about
20872 GRUB_DEFAULT, and add an example.
20873 Reported by: Leslie Rhorer.
20874
875b67ba
CW
208752011-03-30 Colin Watson <cjwatson@ubuntu.com>
20876
20877 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20878 shell".
20879
fd7cd914
AS
208802011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20881
20882 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20883 * util/grub.d/20_linux_xen.in: Likewise.
20884
090b1b6a
VS
208852011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20886
20887 * util/grub.d/10_linux.in: Try alternative config filenames where
20888 we parse config file.
20889 * util/grub.d/20_linux_xen.in: Likewise.
20890
baad885c
AS
208912011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20892
20893 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20894 * util/grub.d/20_linux_xen.in: Likewise.
20895
241e41f5
VS
208962011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 * grub-core/disk/raid.c (insert_array): Add few potentially
20899 useful grub_util_info.
20900 (grub_raid_register): Likewise.
20901
56445fb2
VS
209022011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20903
20904 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20905 Preserve partition number in mdadm code path.
20906
c871b1c6
VS
209072011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20908
20909 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20910 few potentially useful grub_util_info.
20911
5e631b4f
CW
209122011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20915
2d5d0333
CW
209162011-03-30 Colin Watson <cjwatson@ubuntu.com>
20917
20918 * docs/grub.texi (default): Use @example rather than nested
20919 itemized lists to avoid breaking gendocs.
20920
3d7ed04e
CW
209212011-03-30 Colin Watson <cjwatson@ubuntu.com>
20922
20923 * docs/grub.texi (Future): Update.
20924
abf04200 209252011-03-30 Colin Watson <cjwatson@ubuntu.com>
20926
20927 * docs/grub.texi (Environment): New chapter.
20928 (Changes from GRUB Legacy): Link to "Environment block" section for
20929 details of limitations.
20930 (Simple configuration): Likewise. Link to documentation of gfxmode
20931 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20932 respectively.
20933 (Shell-like scripting): Note that normal variables are stored in the
20934 environment.
20935 (gettext): Link to documentation of lang and locale_dir.
20936 (list_env): New section.
20937 (load_env): New section.
20938 (save_env): New section.
20939
20940 (Reporting bugs): Fix typo.
20941
e1ad0edd
VS
209422011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20943
20944 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20945 the example.
20946
5d803174
VS
209472011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * grub-core/term/at_keyboard.c (set_scancodes)
20950 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20951
2a2da1d0
CW
209522011-03-30 Colin Watson <cjwatson@ubuntu.com>
20953
20954 * docs/grub.texi (Menu-specific commands): Remove some semantics
20955 that were true in GRUB Legacy but not in GRUB 2.
20956 (submenu): New section.
20957 (false): New section.
20958 (read): New section.
20959 (true): New section.
20960
a7527639
CW
209612011-03-30 Colin Watson <cjwatson@ubuntu.com>
20962
20963 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20964
209652011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
20966
20967 * docs/grub.texi (Simple configuration): Explain some of the
20968 current limitations of grub-mkconfig.
8a748df2 20969 Reported by: Leslie Rhorer.
e30af029 20970
fc858482
VS
209712011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20972
20973 Old macs search for boot.efi rather than for bootia32.efi.
20974
20975 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20976 * util/grub-mkrescue.in: Likewise.
20977 Suggested by: Peter Jones.
20978
e1eb511d
VS
209792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20980
20981 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20982
70e75364
VS
209832011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20986 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20987 (grub_lvm_mirror): New struct.
20988 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20989 (grub_lvm_iterate): Iterate only visible volumes.
20990 (grub_lvm_read): Factor out to ..
20991 (read_lv): ... this. Support mirrors.
20992 (grub_lvm_read): New wrapper function.
20993 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20994 stripped or mirrored.
20995
fc18f6a3
VS
209962011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20997
20998 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20999
5c650f4c
CW
210002011-03-29 Colin Watson <cjwatson@ubuntu.com>
21001
21002 * docs/grub.texi (loopback): New section.
21003
61d7156b
CW
210042011-03-29 Colin Watson <cjwatson@ubuntu.com>
21005
21006 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21007 removed -p option.
21008
994b8264
CW
210092011-03-29 Colin Watson <cjwatson@ubuntu.com>
21010
21011 * docs/grub.texi (BIOS installation): New section, partly based on
21012 previous text in other sections.
21013 (Installing GRUB using grub-install): Replace BIOS discussion with a
21014 cross-reference.
21015 (Images): Likewise.
21016
9e4d19e0
VS
210172011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21018
21019 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21020 [HAVE_DIOCGDINFO]: Add safety checks.
21021
a307c0b2
VS
210222011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21023
21024 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21025 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21026
b4db4f39
CW
210272011-03-29 Colin Watson <cjwatson@ubuntu.com>
21028
21029 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21030 real_sb->size is zero (e.g. RAID-0), get the disk size from
21031 real_sb->data_size instead.
21032 Fixes Ubuntu bug #743136.
21033
35e5f84c
VS
210342011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21037 printf clauses for printing size and start.
21038
d2e29d81
VS
210392011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21040
21041 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21042 Reported and tested by: Timothy Nikkel.
21043
ed5587af
VS
210442011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21045
21046 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21047 (dirty_region_add_real): ... this.
21048 (dirty_region_add): Don't discard margin refresh when performing
21049 scheduled repaint.
21050
a1dc717c
VS
210512011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21052
21053 * grub-core/lib/relocator.c (allocate_regstart)
21054 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21055 terminals are capabple of malloc-free operation.
21056 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21057 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21058
9f3677d3
VS
210592011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21060
21061 * util/grub-setup.c: Copy the partition table zone if floppy support
21062 is disabled, even if no partition table is found.
21063
21064 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21065 during POST if an invalid partition table is contained in the PBR
21066 of the active partition when GRUB is installed to a partition.
21067
24148725
CW
210682011-03-28 Colin Watson <cjwatson@debian.org>
21069
21070 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21071 comment.
21072
f329eda7
CW
210732011-03-28 Colin Watson <cjwatson@debian.org>
21074
21075 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21076 to be specific about what kind of RAID device we're scanning for.
21077
c482ad98
SG
210782011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21079
21080 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21081 return freed string.
21082
5ee04984
VS
210832011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21084
21085 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21086
f4727da9
VS
210872011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21088
21089 Use libgeom on FreeBSD to detect partitions.
21090
21091 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21092 (grub-mkrelpath): Likewise.
21093 (grub-script-check): Likewise.
21094 (grub-editenv): Likewise.
21095 (grub-mkpasswd-pbkdf2): Likewise.
21096 (grub-fstest): Likewise.
21097 (grub-mkfont): Likewise.
21098 (grub-mkdevicemap): Likewise.
21099 (grub-probe): Likewise.
21100 (grub-setup): Likewise.
21101 (grub-ofpathname): Likewise.
21102 (grub-mklayout): Likewise.
21103 (example_unit_test): Likewise.
21104 (grub-menulst2cfg): Likewise.
21105 * grub-core/Makefile.core.def (grub-emu): Likewise.
21106 (grub-emu-lite): Likewise.
21107 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21108 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21109 define HAVE_DIOCGDINFO.
21110 (follow_geom_up) [FreeBSD]: New function.
21111 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21112 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21113 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21114 unconditionally of HAVE_DIOCGDINFO.
21115
82fe6c75
VS
211162011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21117
21118 Fix FreeBSD compilation problem.
21119
21120 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21121 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21122
4c6c9431
CW
211232011-03-24 Colin Watson <cjwatson@ubuntu.com>
21124
21125 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21126 Switch back to page zero before loading a kernel, since some kernel
21127 drivers expect that.
21128 Thanks to: Felix Kuehling.
21129
c7064d94
VS
211302011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21133 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21134 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21135
3f71cded
VS
211362011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21137
21138 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21139 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21140
ef6de21a
VS
211412011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21142
21143 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21144 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21145 malloc is disabled.
21146
8bc66a2c
VS
211472011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21148
21149 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21150 for modules headers when counting the needed allocation size.
21151
5657722c
VS
211522011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21155 if no ASCII character is found to prevent crash.
21156
41a85f55
AK
211572011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21158
21159 * grub-core/video/bitmap.c (match_extension): Ignore case.
21160
59e1e5f1
VS
211612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21162
21163 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21164
bd4d051a
VS
211652011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21166
21167 * grub-core/script/parser.y: Declare "time" as valid argument.
21168
bae7fcc1
PJ
211692011-03-23 Peter Jones <pjones@redhat.com>
21170
21171 Fix incorrect assert failure reporting.
21172
21173 * grub-core/tests/example_functional_test.c (example_test): Add
21174 a failure comment.
21175 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21176 (failure_start): ...this. Check that malloc succeeded.
21177 Don't call xvasprintf. Return failure struct.
21178 (failure_append_vtext): New function.
21179 (failure_append_text): Likewise.
21180 (add_failure): Likewise.
21181 (grub_test_assert_helper): Likewise.
21182 * include/grub/test.h (grub_test_assert_helper): New declaration.
21183 (grub_test_assert): Macro rewritten.
21184
537dc9be
VS
211852011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21186
21187 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21188
fa3e01bf
VS
211892011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21190
21191 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21192
b1d28404
VS
211932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21194
21195 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21196 into GRUB-style one.
21197
2e3e2e09
VS
211982011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21201 error and not grub_errno.
21202 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21203
ed57e557
VS
212042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21205
21206 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21207 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21208
d1611f01
VS
212092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21210
21211 * grub-core/efiemu/i386/pc/cfgtables.c
21212 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21213 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21214 (grub_xnu_unlock): Likewise.
21215 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21216
7d4e39d6
VS
212172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21218
21219 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21220 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21221 * grub-core/commands/hashsum.c (aliases): Likewise.
21222 * grub-core/commands/setpci.c (pci_registers): Likewise.
21223 * grub-core/disk/usbms.c (attach_hook): Likewise.
21224 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21225 (zio_checksum_table): Likewise.
21226 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21227 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21228 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21229 * grub-core/lib/relocator.c (leftovers): Likewise.
21230 (extra_blocks): Likewise.
21231 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21232 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21233 (modules_last): Likewise.
21234 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21235 (devices): Likewise.
21236 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21237 (modules_last): Likewise.
21238 * grub-core/normal/auth.c (users): Likewise.
21239 * grub-core/normal/context.c (initial_menu): Likewise.
21240 (current_menu): Likewise.
21241 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21242 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21243 (grub_serial_terminfo_input_template): Likewise.
21244 (grub_serial_terminfo_output_template): Likewise.
21245 (grub_serial_terminfo_input): Likewise.
21246 (grub_serial_terminfo_output): Likewise.
21247 (registered): Likewise.
21248 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21249
40fc4659
VS
212502011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21251
21252 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21253 grub_video_mode_type_t.
21254 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21255 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21256 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21257
2da48d28
VS
212582011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21259
21260 * util/grub-install.in: Correct the x86-64 name as x86_64.
21261
9b43bf39
CW
212622011-03-11 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21265 initial chunk read from the kernel always includes GRUB's multiboot
21266 header, which is now outside the first sector.
21267
be1a7ce0
CW
212682011-03-09 Colin Watson <cjwatson@ubuntu.com>
21269
21270 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21271 cached mmap_size, so that this works correctly when called multiple
21272 times.
21273 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21274
83a3c48d
CW
212752011-03-09 Colin Watson <cjwatson@ubuntu.com>
21276
21277 * docs/grub.texi (Simple configuration): Tidy up formatting.
21278
57d75699
SJ
212792011-03-07 Szymon Janc <szymon@janc.net.pl>
21280
21281 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21282 Set-but-not-used variable removed.
21283
028501a0
VS
212842011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21285
21286 Workaround yet another IEEE1275 bug.
21287
21288 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21289 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21290 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21291 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21292 is set.
21293 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21294 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21295
d998657d
VS
212962011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21297
21298 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21299 error.
21300
fee7cdd4
CW
213012011-02-11 Colin Watson <cjwatson@ubuntu.com>
21302
21303 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21304 empty, since in that case we can only generate either nothing or a
21305 syntactically invalid configuration file.
21306 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21307
97286eb5
CW
213082011-02-09 Colin Watson <cjwatson@ubuntu.com>
21309
21310 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21311 (Making a GRUB bootable CD-ROM): Likewise.
21312 (Invoking grub-mkrescue): New section.
21313 Reported by: Yann Dirson. Fixes Debian bug #612585.
21314
22b28eb3
CW
213152011-02-09 Colin Watson <cjwatson@ubuntu.com>
21316
21317 * util/grub-install.in: Remove unnecessary brackets from tr
21318 arguments.
21319 * util/grub.d/10_hurd.in: Likewise.
21320 * util/grub.d/10_kfreebsd.in: Likewise.
21321 * util/grub.d/10_linux.in: Likewise.
21322 * util/grub.d/20_linux_xen.in: Likewise.
21323 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21324
7e735e43
CW
213252011-02-08 Colin Watson <cjwatson@ubuntu.com>
21326
21327 * include/grub/file.h (not_easly_seekable): Rename to ...
21328 (not_easily_seekable): ... this. Update all users.
21329
800f1881
CW
213302011-01-28 Colin Watson <cjwatson@ubuntu.com>
21331
21332 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21333 grub-mkrescue.
21334
3281d3d6
VS
213352011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 * util/grub-mkimage.c (generate_image): Refuse to create the images
21338 bigger than the actual flash (512K) in Loongson machines. 512K is also
21339 the biggest chip supported by them.
21340
3533413c
VS
213412011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21344
73ae4f4f
VS
213452011-01-22 Anthony DeRobertis <anthony@derobert.net>
21346
21347 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21348 super_offset field.
21349
37f4f608
VS
213502011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21351
21352 * util/grub-install.in: Ignore install device on platforms
21353 where it doesn't make sense. Always use UUIDs except on pc, efi and
21354 sparc64.
21355 Reported by: Daniel Kahn Gillmor.
21356
03a4ccb5
VS
213572011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21360
ffc8f4d8
VS
213612011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21362
21363 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21364 (iterate_real): Don't rely on partition being non-NULL.
21365
80f23be7
VS
213662011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21367
21368 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21369 supported platforms. Put a compile time assert for this rather than
21370 generate a warning with 32-bit shift.
21371
5d4f4dd5
VS
213722011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21373
21374 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21375 logical expression more readable.
21376
e489601a
VS
213772011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21378
21379 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21380 even if some elements have a name.
21381 Reported by: Alexander GQ Gerasiov.
21382
96e0a6ea
CW
213832011-01-22 Colin Watson <cjwatson@ubuntu.com>
21384
21385 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21386 path unreadable if `grub-probe -t abstraction' fails, for example if
21387 memberlist fails on an LVM volume group.
21388 Reported by: Darius Jahandarie.
21389
81431e2b
CW
213902011-01-22 Colin Watson <cjwatson@ubuntu.com>
21391
21392 * docs/grub.texi (Simple configuration): Document
21393 GRUB_PRELOAD_MODULES.
21394
5e79d66a
CW
213952011-01-17 Colin Watson <cjwatson@ubuntu.com>
21396
21397 * .bzrignore: Remove nonexistent grub-pbkdf2.
21398
646ada34
VS
213992011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21400
21401 * configure.ac: Bump version to 1.99~rc1.
21402
04360337
VS
214032011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21404
21405 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21406 for safety.
21407
46c9db88
VS
214082011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21409
21410 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21411 module.
21412
214132011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
21414
21415 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21416
4fbf1852
VS
214172011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21418
21419 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21420 diskdevid.
21421
f1632d4d
VS
214222011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 Fix compilation on cygwin.
21425
21426 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21427 -R .drectve on cygwin.
21428 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21429 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21430 (COND_CYGWIN): New condition.
21431 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21432 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21433 not @TARGET_OBJ2ELF@.
21434 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21435 type to determine whether aux is to be used.
21436
0b5e127b
VS
214372011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21438
21439 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21440 realpath'ed device string.
21441 Handle floppy (somewhat).
21442 Issue error in unknown case rather than garbage.
21443 Reported by: Axel Beckert.
21444
173b71e9
VS
214452011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21446
21447 * util/grub.d/00_header.in (load_video): Handle the case when no video
21448 drivers available.
21449 Thanks to: Axel Beckert.
21450
f8f479db
VS
214512011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21454 variable. Fixes problem on big endian platforms.
21455
8fc0a245
VS
214562011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21459 It doesn't work well there.
21460
b8494fbe
VS
214612011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21462
21463 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21464 warning.
21465 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21466 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21467 counter.
21468
b44a558c
VS
214692011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21470
21471 Use alias->path rather than buggy "canon".
21472
21473 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21474 (ofdisk_hash_add): New argument curcan. All users updated.
21475
51fa856c
CW
214762011-01-11 Colin Watson <cjwatson@ubuntu.com>
21477
21478 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21479
9da068a5
VS
214802011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21483 loadmask before doing any calculations. Use correct type for offset.
21484 (grub_linux_load64): Likewise.
21485
86205c94
CW
214862011-01-11 Colin Watson <cjwatson@ubuntu.com>
21487
21488 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21489 with NULL.
21490 (console_grub_equivalences_unshift): Likewise.
21491 Reported by: Daniel Dehennin.
21492
4531a206
VS
214932011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21494
21495 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21496 (set_env_limn_ro): Likewise.
21497 (GRUB_MOD_INIT): Likewise.
21498 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21499 ARRAY_SIZE while on it.
21500 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21501 * grub-core/normal/context.c (grub_env_export): Move from here ...
21502 * grub-core/kern/env.c (grub_env_export): ... here.
21503 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21504 prefix.
21505 * grub-core/kern/main.c (grub_main): Export root and prefix.
21506 * include/grub/env.h (grub_env_export): Export.
21507 Reported by: Seth Goldberg.
21508
45146057
VS
215092011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21510
21511 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21512 Take into account space used by ELF sections and multiboot palette.
21513 Reported by: Grégoire Sutre.
21514
f093110b
VS
215152011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * BUGS: New file.
21518
3395fe52
VS
215192011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21520
21521 Pass more appropriate video id to Linux.
21522
21523 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21524 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21525 fill have_vga.
21526 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21527 shift params->lfb_size.
21528 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21529
c2fa6cbb
VS
215302011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21533
b3ff6ff0
VS
215342011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21537 separator and pass bootpath/devid even if only one of them is available.
21538 Reported by: Seth Goldberg.
21539
ae67942e
VS
215402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21543 implementations bug on them.
21544
21545 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21546 memory.
21547 (filter_memory_map): Likewise.
21548
d570097a
VS
215492011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21550
21551 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21552 Reported by: nebuchadnezzar.
21553
a508e776
VS
215542011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21555
21556 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21557 Reported by: nebuchadnezzar.
21558
dcb883b1
VS
215592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 Submenu default support.
21562
21563 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21564 auto_boot. All users updated.
21565 Declared static.
21566 Handle chosen and default with submenus.
21567 (grub_menu_execute_with_fallback): Declared static.
21568 Don't notify failure if autobooted. Upper level does it.
21569 (menuentry_eq): New function.
21570 (get_entry_number): Use menuentry_eq.
21571 (show_menu): New parameter "autobooted". All users updated.
21572 (grub_show_menu): Likewise.
21573 * include/grub/normal.h (grub_show_menu): Likewise.
21574 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21575 (grub_menu_execute_with_fallback): Likewise.
21576
6fef99b4
VS
215772011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 * util/grub-mklayout.c (usage): Update help text.
21580
47a77af5
VS
215812011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21582
21583 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21584
ce6bb3ee
VS
215852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21586
21587 * util/grub-menulst2cfg.c (main): Trim the line.
21588
db87be2a
VS
215892011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21590
21591 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21592 (grub_machine_init): Don't check amount of low memory as reportedly
21593 INT 12h can be broken and if low memory is too low we wouldn't have
21594 gotten into grub_machine_init anyway.
21595
c49849cc
VS
215962011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21597
21598 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21599 (grub_machine_mmap_iterate): Take low memory into account
21600
b1969b30
VS
216012011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21602
21603 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21604 badfs.
21605 Reported by: TiCPU.
21606
cf0eaf13
VS
216072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21608
21609 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21610 members errors.
21611
1f060f39
GS
216122011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21613
21614 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21615 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21616
a21e5672
GS
216172011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21618
21619 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21620 openbsd and netbsd types being in part_bsd module.
21621
c88172fa
VS
216222011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21623
21624 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21625 (_FILE_OFFSET_BITS): Likewise.
21626 Reported by: Seth Goldberg.
21627
53798c4b
GS
216282011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21629
21630 * configure.ac: Check for libdevmapper header.
21631
e7121b69
VS
216322011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21635 avoid aliasing.
21636 (fzap_lookup): Likewise.
21637 (dnode_get): Likewise.
21638 (make_mdn): Likewise.
21639 (zfs_mount): Likewise.
21640 (fzap_iterate): Use temporary pointer to avoid aliasing.
21641 (grub_zfs_read): Likewise.
21642 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21643 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21644 pointers to avoid aliasing.
21645 (grub_cmd_xnu_kernel64): Likewise.
21646 (grub_xnu_load_driver): Likewise.
21647
fc836af9
VS
216482011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21649
21650 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21651 aliasing warning.
21652 (grub_cmd_terminal_output): Likewise.
21653 Reported and tested by: Grégoire Sutre.
21654
f9f37648
VS
216552011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21658 warning.
21659 Reported and tested by: Grégoire Sutre.
21660
ec1dfd63
VS
216612011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 * configure.ac: Do CPU substitution even if it's specified explicitly.
21664 Reported and tested by: Alain Greppin.
21665
9462775a
VS
216662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21667
21668 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21669 Reported and tested by: Alain Greppin.
21670
0fd48e35
VS
216712011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21672
21673 Satisfy some bison versions need for inttypes.h.
21674
21675 * grub-core/lib/posix_wrap/inttypes.h: New file.
21676 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21677 (int16_t): Likewise.
21678 (int32_t): Likewise.
21679 (int64_t): Likewise.
21680 Reported and tested by: Alain Greppin.
21681
43f1bc83
VS
216822011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21683
21684 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21685 Silence spurious warning.
21686 Reported and tested by: Alain Greppin.
21687
64d1f041
SJ
216882011-01-07 Szymon Janc <szymon@janc.net.pl>
21689
21690 * docs/grub.texi (Support automatic decompression): Update with xz
21691 decompression support.
21692
25953e10
SJ
216932011-01-07 Szymon Janc <szymon@janc.net.pl>
21694
21695 Improve loaders' kernel command line handling.
21696
21697 * grub-core/lib/cmdline.c: New file.
21698 * include/grub/lib/cmdline.h: Likewise.
21699 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21700 grub_create_loader_cmdline to create kernel command line.
21701 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21702 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21703 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21704 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21705 (linux): Add lib/cmdline.c on common.
21706
e72d259f
VS
217072011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21708
21709 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21710 inopos might be unaligned.
21711
c0cf26da
VS
217122011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21715 endian transformations.
21716 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21717 Based on report by: Doug Nazar.
21718
0ca09e6c
DN
217192011-01-07 Doug Nazar <nazard.michi@gmail.com>
21720
21721 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21722 array->members[i].start_sector.
21723 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21724
014b6806
VS
217252011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21726
21727 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21728 Reported and tested by: Grégoire Sutre.
21729
415502c2
CW
217302011-01-06 Colin Watson <cjwatson@ubuntu.com>
21731
21732 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21733 avoid causing test failures by clearing the screen.
21734
71b6a2b7
CW
217352011-01-06 Colin Watson <cjwatson@ubuntu.com>
21736
21737 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21738 Fix prefix check to handle the case where dir ends with a slash
21739 (most significantly, "/" itself).
21740 Reported by: Michael Vogt.
21741
b3f8d28a
VS
217422011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21743
21744 Run terminfo_cls on initing terminfo output to clear the screen and
21745 move the cursor to (0,0).
21746
21747 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21748 Call grub_terminfo_output_init.
21749 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21750 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21751 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21752
4c3e4f37
VS
217532011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21754
21755 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21756 only when needed.
21757
488f71f1
VS
217582011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21759
21760 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21761 CTRL.
21762
18a38098
VS
217632011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21764
21765 The E820 type 5 is BADRAM, not EXEC_CODE.
21766
21767 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21768 (GRUB_E820_BADRAM): New define.
21769 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21770 into reserved. Propagate BADRAM.
21771 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21772 (GRUB_E820_BADRAM): New define.
21773
9eae2084
VS
217742011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21775
21776 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21777 Ignore the memory post-4G.
21778 (grub_relocator_firmware_alloc_region): Additional debug statement.
21779
ebc71d28
VS
217802011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21783 names.
21784 Reported by: David Pravec.
21785
446fa400
VS
217862011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21787
21788 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21789 BIOSes.
21790
a0159f37
VS
217912011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21792
21793 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21794 Prevent overflow.
21795 (grub_reed_solomon_recover): Likewise.
21796
e5146ca1
VS
217972011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21800
218012011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
21802
21803 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21804 variable.
21805
5b1bdf12
CW
218062011-01-04 Colin Watson <cjwatson@ubuntu.com>
21807
21808 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21809 descriptions of extract_legacy_entries_source and
21810 extract_legacy_entries_configfile.
21811 Reported by: Seung Soo, Ha.
21812
99d925aa
CW
218132011-01-03 Colin Watson <cjwatson@ubuntu.com>
21814
21815 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21816 on devices that do not implement function 0.
21817
4af0504b
DV
218182011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21819
21820 * grub-core/fs/hfsplus.c: Make parent unsigned.
21821 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21822 overflows.
21823 (grub_hfsplus_cmp_extkey): Likewise
21824
469ee10a
VS
218252011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21826
21827 * util/grub-install.in: Correctly use bootloader_id and not
21828 GRUB_DISTRIBUTOR on efibootmgr line.
21829
323a8e9c
VS
218302011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21831
21832 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21833
1b394975
IC
218342010-12-31 Ian Campbell <ijc@hellion.org.uk>
21835
21836 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21837 Xen and reorder menu item wording to make it clearer that this entry
21838 will launch Xen. Print separate messages when loading Xen and
21839 Linux.
21840
275bff5f
VS
218412010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21842
21843 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21844 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21845 loop in case of incorrect amiga partmap.
21846
307806cb
VS
218472010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21848
21849 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21850 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21851 Reported by:EHeM.
21852
b12b923e
VS
218532010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21856 spurious warning.
21857 Reported by: crocket
21858
14b48a19
VS
218592010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21860
21861 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21862 Preload EFIemu.
21863 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21864
693db2df
VS
218652010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21866
21867 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21868 is loaded
21869 (grub_cmd_xnu_kextdir): Likewise.
21870 (grub_cmd_xnu_splash): Likewise.
21871
c7638645
VS
218722010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21873
21874 Avoid using Reed-Solomon with 0 redundancy.
21875
21876 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21877 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21878 or 0 redundancy.
21879 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21880 (grub_reed_solomon_recover): Likewise.
21881
25dd4780
VS
218822010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21883
21884 Don't use disk subsystem in freebsd_boot.
21885
21886 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21887 (freebsd_biosdev): Likewise.
21888 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21889 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21890
0b2db943
VS
218912010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21892
21893 Handling of files of unknown size is currently limited. They can't be
21894 used e.g. for initrd or modules. Moreover gzip handling of not
21895 easily seekable files is buggy. Disable unknown file size for now. May
21896 be inefficient but works.
21897
21898 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21899 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21900
5c408d0f
MP
219012010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21902
21903 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21904 floppy probe.
21905
190a011a
JD
219062010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21907
21908 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21909
022d01b8
SL
219102010-12-25 Shea Levy <shlevy>
21911
21912 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21913
c4855fdc
VS
219142010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21915
21916 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21917 Windows Server 2008.
21918 Reported by: Devin Giddings.
21919
0354b867
VS
219202010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21921
21922 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21923 writing an error message because of async power management.
21924 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21925 (grub_reboot): Likewise.
21926
ab66c69f
JU
219272010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21928
21929 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21930 keep unit tests from failing when they shouldn't.
21931
1426ef35
CW
219322010-12-21 Colin Watson <cjwatson@ubuntu.com>
21933
21934 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21935 previous patch increased the size of the RS code by 20 bytes (at
21936 least with gcc-4.4), so increase this by 20 bytes to match.
21937 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21938
20641b6b
CW
219392010-12-21 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21942 scratch area. Make sure to initialise chosen in standalone mode as
21943 well as non-standalone.
21944 Reported by: Robert Hooker and Andy Whitcroft.
21945 Tested by: Andy Whitcroft.
21946
d060ad60
CW
219472010-12-21 Colin Watson <cjwatson@ubuntu.com>
21948
21949 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21950 constructing a new unescaped string and passing it to grub_xputs in
21951 one go, rather than passing characters to grub_printf one at a time.
21952
b889cfad
CW
219532010-12-21 Colin Watson <cjwatson@ubuntu.com>
21954
21955 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21956 initialising utf16.
21957
4e01b6c8
CW
219582010-12-21 Colin Watson <cjwatson@ubuntu.com>
21959
21960 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21961 comment. Add an extra layer of quotation, requiring the output of
21962 this function to be used in a printf format string.
21963 (gettext_printf): New function.
21964 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21965 Extract translatable strings from here-documents and use a temporary
21966 variable instead, so that xgettext can find them.
21967 * util/grub.d/10_kfreebsd.in: Likewise.
21968 * util/grub.d/10_linux.in: Likewise.
21969 * util/grub.d/20_linux_xen.in: Likewise.
21970
21971 * po/grub.d.sed: New file.
21972 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21973 arguments. Set c-format flags on all strings extracted from
21974 util/grub.d/ (xgettext refuses to include these itself for strings
21975 it extracted from a shell file, but these really are c-format).
21976
5318fe98
VS
219772010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21978
21979 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21980 Avoid next pointing to nowhere.
21981
6c85b743
VS
219822010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21985 rather than assuming than rootblock is exactly in the middle.
21986 (grub_affs_label): Likewise.
21987
a2a08a35
VS
219882010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21991 reserved_first_sector to 0.
21992 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21993 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21994 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21995
7059d1ec
VS
219962010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 Fix handling of UTF-16 UDF labels.
21999
22000 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
22001 (read_string): .. here.
22002 (grub_udf_label): Use read_string.
22003
30aff4cb
BC
220042010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
22005
22006 * grub-core/normal/menu_entry.c (run): Execute commands from menu
22007 editor under argument scope.
22008 Reported by: Jordan Uggla
22009
5cf86f4b
VS
220102010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22011
22012 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22013
32570200
CW
220142010-12-18 Colin Watson <cjwatson@ubuntu.com>
22015
22016 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22017 line, and other keys scroll an entire page (previous handling was
22018 for \r and \n to scroll a page and other keys to scroll two lines).
22019
e1dffcf2
VS
220202010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22023 Set ptrdest to correct get_physical_target_address rather than
22024 incorrect get_virtual_current_address.
22025
b04298cf 220262010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22027
22028 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22029 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22030
5367ecd3
CW
220312010-12-10 Colin Watson <cjwatson@ubuntu.com>
22032
22033 * .bzrignore: Ignore grub-core/rs_decoder.S.
22034
1fb430f8
CW
220352010-12-10 Colin Watson <cjwatson@ubuntu.com>
22036
22037 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22038 .mo/.mo.gz opening sequence to ...
22039 (grub_mofile_open_lang): ... here.
22040 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22041 * util/grub.d/00_header.in (grub_lang): Include country part of
22042 locale.
22043 Reported by: Mario Limonciello.
22044
a94a6671
RM
220452010-12-09 Robert Millan <rmh@gnu.org>
22046
22047 * NEWS: Document addition of ZFS support.
22048
24b7938b
CW
220492010-12-04 Colin Watson <cjwatson@ubuntu.com>
22050
22051 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22052 rather than `/ 2', as the latter requires -Wa,--divide which would
22053 require bumping our minimum binutils version.
22054
bddc3ef6
BC
220552010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22056
22057 * util/grub-script-check.c (main): Print script line number on
22058 error.
22059
bf78d5b2
RM
220602010-12-01 Robert Millan <rmh@gnu.org>
22061
22062 * grub-core/fs/zfs/zfs.c: New file.
22063 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22064 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22065 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22066 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22067
22068 * include/grub/zfs/dmu.h: Likewise.
22069 * include/grub/zfs/dmu_objset.h: Likewise.
22070 * include/grub/zfs/dnode.h: Likewise.
22071 * include/grub/zfs/dsl_dataset.h: Likewise.
22072 * include/grub/zfs/dsl_dir.h: Likewise.
22073 * include/grub/zfs/sa_impl.h: Likewise.
22074 * include/grub/zfs/spa.h: Likewise.
22075 * include/grub/zfs/uberblock_impl.h: Likewise.
22076 * include/grub/zfs/vdev_impl.h: Likewise.
22077 * include/grub/zfs/zap_impl.h: Likewise.
22078 * include/grub/zfs/zap_leaf.h: Likewise.
22079 * include/grub/zfs/zfs.h: Likewise.
22080 * include/grub/zfs/zfs_acl.h: Likewise.
22081 * include/grub/zfs/zfs_znode.h: Likewise.
22082 * include/grub/zfs/zil.h: Likewise.
22083 * include/grub/zfs/zio.h: Likewise.
22084 * include/grub/zfs/zio_checksum.h: Likewise.
22085
22086 * Makefile.util.def: Build ZFS into libgrubmods.
22087 * grub-core/Makefile.core.def: Build zfs.mod.
22088
3f0f3831
SJ
220892010-11-30 Szymon Janc <szymon@janc.net.pl>
22090
22091 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22092 variable.
22093 * grub-core/commands/wildcard.c (match_files): Likewise.
22094
3a4253b2
RM
220952010-11-30 Robert Millan <rmh@gnu.org>
22096
22097 * grub-core/loader/i386/bsd.c
22098 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22099 whether kernel is loaded using grub_loader_is_loaded(), rather
22100 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22101 certain error conditions.
22102
8c317b27
RM
221032010-11-30 Robert Millan <rmh@gnu.org>
22104
c5c9cd3e
RM
22105 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22106 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 22107
49d3ab46
VS
221082010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22109
22110 Avoid using tricks for initialising endian variables.
22111
22112 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22113 Make const.
22114 (GRUB_MOD_INIT): Don't byte-swap.
22115 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22116 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22117 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22118 (grub_swap_bytes32_compile_time): Likewise.
22119 (grub_cpu_to_le32_compile_time): Likewise.
22120 (grub_cpu_to_le16_compile_time): Likewise.
22121
f420a804
VS
221222010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22123
22124 * util/grub-setup.c (setup): Stop recommending --force. People who
22125 understand the dangers of blocklists are able to find this option
22126 anyway and the ones who don't shouldn't use it anyway.
22127
4e7db17b
RM
221282010-11-26 Robert Millan <rmh@gnu.org>
22129
22130 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22131 Update all users.
22132
9be57a0d
CW
221332010-11-26 Colin Watson <cjwatson@ubuntu.com>
22134
22135 Fix LVM-on-RAID probing.
22136
22137 * util/grub-probe.c (probe): Remember which disk was detected as
22138 RAID (perhaps an LVM physical volume). Use that disk's raidname
22139 rather than that of the top-level disk.
22140
2c7859b3 221412010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 22142
d7647bb6
BC
22143 Fix cmdline argument quotes for setparams command of menuentry
22144 definitions.
7e623b0d
BC
22145
22146 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22147 quotes for arguments.
f866fe80 22148 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 22149 grub_strchrsub function instead.
f866fe80 22150
7955bea0 22151 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 22152
74f72a64
CW
221532010-11-24 Colin Watson <cjwatson@ubuntu.com>
22154
22155 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22156 effort by skipping "." and ".." entries up-front.
22157 Suggested by: Michael Lazarev.
22158
5a407278
CW
221592010-11-24 Colin Watson <cjwatson@ubuntu.com>
22160
22161 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22162 ldflags to ldadd, to fix link line ordering.
22163 (none_decompress): Likewise.
22164
3030d8ec
CW
221652010-11-24 Colin Watson <cjwatson@ubuntu.com>
22166
22167 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22168 platforms.
22169 (grub-emu-lite): Remove kern/emu/cache.S.
22170
b7fbac12
CW
221712010-11-23 Colin Watson <cjwatson@ubuntu.com>
22172
22173 * util/deviceiter.c (compare_devices): If the by-id link for a
22174 device couldn't be resolved, fall back to sorting by the by-id link
22175 rather than segfaulting.
22176 Reported and tested by: Daniel Mierswa.
22177
5225f328
CW
221782010-11-23 Colin Watson <cjwatson@ubuntu.com>
22179
22180 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22181 ldflags, to fix link line ordering.
22182
038b3ce8
CW
221832010-11-23 Colin Watson <cjwatson@ubuntu.com>
22184
22185 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22186 linkers are picky about this.
22187
bf16e98e
CW
221882010-11-23 Colin Watson <cjwatson@ubuntu.com>
22189
22190 * grub-core/Makefile.am (command.lst): Adjust sed expression
22191 ordering so that extended and priority commands aren't treated as
22192 ordinary commands.
22193
7242bab6
CW
221942010-11-23 Colin Watson <cjwatson@ubuntu.com>
22195
22196 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22197 Remove byte-swapping function calls, which are not valid in
22198 structure initialisers.
22199 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22200 non-const.
22201 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22202 grub_gpt_partition_type_bios_boot.
22203
14e8b279
CW
222042010-11-22 Colin Watson <cjwatson@ubuntu.com>
22205
22206 Fix test program build on GNU/kFreeBSD.
22207
22208 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22209 $(LIBNVPAIR)' library dependencies.
22210
e6f63338 222112010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
22212
22213 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22214
cf8ffc38
CW
222152010-11-22 Colin Watson <cjwatson@ubuntu.com>
22216
22217 * util/grub-install.in: Remove excessive quoting that broke
22218 installations to RAID devices.
22219
7f8b0fd7
VS
222202010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22221
22222 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22223 bootloader version instead of 0.
22224
dfd240b1
VS
222252010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22226
22227 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22228 warning.
22229
7b61e609
VS
222302010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22231
22232 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22233 retrieve the metadat sector if size isn't known.
22234 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22235
9dfe92d0
RM
222362010-11-18 Robert Millan <rmh@gnu.org>
22237
22238 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22239 with grub_memcmp().
22240
41cc919e
VS
222412010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22242
22243 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22244 arrow.
22245 Reported by: Jordan Uggla.
22246
1afcc914
VS
222472010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22248
22249 Make better UTF compliant.
22250
22251 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22252 sequences as incorrect.
22253 (grub_is_valid_utf8): Likewise.
22254 (grub_utf8_to_ucs4): Likewise.
22255 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22256 (grub_ucs4_to_utf8_alloc): Likewise.
22257 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22258
f1808884
VS
222592010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 Make legacy_source behave like source.
22262
22263 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22264 grub_show_menu.
22265 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22266
24ec575b
CW
222672010-11-16 Colin Watson <cjwatson@debian.org>
22268
22269 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22270 (-Wunused implies -Wunused-parameter, but not vice versa).
22271
72b7c7aa
CW
222722010-11-16 Colin Watson <cjwatson@ubuntu.com>
22273
22274 * configure.ac: Make error messages less confusing by testing for
22275 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22276 accepted, but produces a diagnostic if something else is wrong).
22277
e98937aa
VS
222782010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22279
22280 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22281 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22282 (now unused).
22283 (grub_keyboard_controller_init)
22284 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22285 read the initial state since controller isn't inited yet.
22286
f6bbabc3
VS
222872010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22288
22289 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22290 allocate_regbeg may need to create new chunk header.
22291
22e7dbb2
VS
222922010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22293
22294 Fix quoting in legacy parser.
22295
22296 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22297 single quotes.
22298 (grub_legacy_parse): Likewise.
22299 Reported by: Jordan Uggla.
22300 Tested by: Jordan Uggla.
22301
03f80960
VS
223022010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22303
22304 Don't add -lgcc on i386 and x86_64.
22305
22306 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22307 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22308 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22309
779dc15b
VS
223102010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22311
22312 * configure.ac: Add -Wno-trampolines when supported.
22313
d20a3b37
MV
223142010-11-14 Modestas Vainius <modax@debian.org>
22315
22316 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22317 fakeraid.
22318
e5360933
GC
223192010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22320
22321 Add generic logical block size support for UDF.
22322
22323 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22324 (GRUB_UDF_BLKSZ): Removed.
22325 (struct grub_udf_data): New field "lbshift" to hold the logical block
22326 size of the file system in log2 format. All users updated.
22327 (sblocklist): Change type to unsigned.
22328 (grub_udf_mount): Change type of "sblklist" to unsigned.
22329 Move AVDP search before VRS recognition, because the latter requires
22330 knowledge of the logical block size, which is detected during the
22331 former.
22332 Detect and validate logical block size during AVDP search, adding
22333 support for block sizes 512, 1024 and 4096.
22334 Make VRS recognition independent of block size.
22335
cb0229c5
GC
223362010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22337
22338 Properly handle deleted files on UDF.
22339
22340 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22341 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22342 set.
22343
406858a8
GC
223442010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22345
22346 Support reading files larger than 2 GiB.
22347
22348 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22349 "offset" to grub_off_t.
22350 (grub_udf_read_file): Likewise for parameter "pos".
22351
130da6a7
VS
223522010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22353
22354 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22355 unavailable.
22356 (Simple configuration): Refer to Changes from GRUB Legacy about
22357 save_env availability.
22358
65e93f6b
VS
223592010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22360
22361 * util/grub-install.in: Ignore empty partition table detection
22362 instead of trying to include part_ module.
22363
1fd08bf1
VS
223642010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22365
22366 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22367 LVM on RAID support.
22368
de1a024f
VS
223692010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22370
22371 Properly define WORDS_BIGENDIAN in wrapped environments.
22372
22373 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22374 definition.
22375 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22376
22377 Reported by: Manoel Rebelo Abranches.
22378 Tested by: Manoel Rebelo Abranches.
22379
bc5dd0b9
VS
223802010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * util/grub-mkconfig.in: Fix quoting.
22383
58c184be
VS
223842010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22385
22386 Support big ext2 files.
22387
22388 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22389 (grub_ext2_read_block): Support triple indirect blocks.
22390 (grub_ext2_read_file): Use 64-bit types and read size_high.
22391 (grub_ext2_open): Read size_high.
22392 Reported by: Ximin Luo.
22393 Tested by: Manoel Rebelo Abranches.
22394
5f0c02b3
VS
223952010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22396
22397 * util/grub-install.in: Handle filenames containing spaces.
22398 Reported by: Jordan Uggla.
22399 Tested by: Jordan Uggla.
22400
4417aae6
VS
224012010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22402
22403 * util/grub-mkconfig.in (grub_script_check): New variable.
22404 Use grub_script_check instead of grub-script-check.
22405 Reported by: Barry Jackson.
22406
7625a68e
VS
224072010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22408
22409 * docs/grub.texi (menu): Correct the order.
22410 Reported by: D. Hugh Redelmeier.
22411
10001ac5
VS
224122010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22413
22414 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22415 jump.
22416
9c4cf53b
MRA
224172010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22418
10001ac5
VS
22419 * include/grub/elfload.h (grub_elf32_size): New parameter.
22420 All users updated.
9c4cf53b
MRA
22421 Return maximum segments alignment.
22422 (grub_elf64_size): Likewise.
22423 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22424 Return maximum segments alignment.
22425 (grub_elf64_size): Likewise.
22426 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
22427 (grub_linux_claimmap_iterate): New function. Uses the
22428 "available" property in the "memory" node for memory allocation
22429 for kernel in the PowerPC loader.
9c4cf53b
MRA
22430 (grub_linux_load32): Correctly find linux entry point offset.
22431 (grub_linux_load64): Likewise.
22432
d2bf06bf
RM
224332010-11-07 Robert Millan <rmh@gnu.org>
22434
22435 On mips-yeeloong, build with -march=loongson2f when this flag is
22436 available (GCC >= 4.4).
22437 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22438 `-march=mips3'.
22439 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22440 or otherwise add -march=mips3.
22441
898c99a2
BC
224422010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22443
87220a68
BC
22444 Suppress shell expansion on echo '*' and echo "*" like cases.
22445 Reported by: Jordan Uggla.
898c99a2
BC
22446
22447 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22448 string arguments before shell expansion.
22449 * tests/grub_cmd_echo.in: New testcases.
22450
4f9b406a
RM
224512010-11-07 Robert Millan <rmh@gnu.org>
22452
22453 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22454 transition.
22455
80c6d25e
VS
224562010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22457
22458 * grub-core/kern/emu/hostdisk.c
22459 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22460
4a1a0153
VS
224612010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22464 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22465 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22466
34706ddc
VS
224672010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22468
22469 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22470
6972dea9
VS
224712010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22472
22473 * util/grub-install.in: Replace useless recomendation to pass
22474 --modules with a recomendation to report a bug.
22475
9c693bd6
VS
224762010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22477
22478 Properly register serial terminfo.
22479 Reported by: Jordan Uggla
22480
22481 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22482 const.
22483 (grub_serial_terminfo_output_template): Likewise.
22484 (grub_cmd_serial): Register "serial" with terminfo.
22485 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22486 grub_serial_terminfo_output.
22487
6c9e4c0c
RM
224882010-11-05 Robert Millan <rmh@gnu.org>
22489
22490 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22491 needed).
22492
b9b3839f
RM
224932010-11-05 Robert Millan <rmh@gnu.org>
22494
22495 On Yeeloong, pass machine type information to Linux.
22496
22497 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22498 (LOONGSON_MACHTYPE): New macro, set to
22499 "machtype=lemote-yeeloong-2f-8.9inches".
22500 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22501 additional argument to Linux.
22502
1a3aaff4
RM
225032010-11-04 Robert Millan <rmh@gnu.org>
22504
22505 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22506 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22507 (its SATA disks are detected as slaveless IDE master drives on
22508 kFreeBSD).
22509 Reported by Carsten Aulbert.
22510
a75f4f62
CW
225112010-11-02 Colin Watson <cjwatson@ubuntu.com>
22512
22513 * util/bin2h.c (main): Fix spelling error in generated output.
22514
33b4b0c6
GS
225152010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22516
22517 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22518
2b36fbf4
VS
225192010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22520
22521 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22522 vga= option is supplied.
22523
74aaf558
VS
225242010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22525
22526 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22527 * util/grub.d/10_kfreebsd.in: Likewise.
22528 * util/grub.d/10_linux.in: Likewise.
22529 * util/grub.d/20_linux_xen.in: Likewise.
22530
6428dec3
VS
225312010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22534 argument as an argument to no-argument option.
22535
f8729d98
VS
225362010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * util/grub.d/10_linux.in: Add missing load_video with explicit
22539 GRUB_GFXPAYLOAD_LINUX.
22540
89d68fa6
VS
225412010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22542
22543 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22544
3a1197cd
VS
225452010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22546
22547 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22548 elements with invlid index.
22549 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22550 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22551 members.
22552 * include/grub/raid.h (grub_raid_member): New struct.
22553 (grub_raid_array): Transform devices and start_sector into usage of
22554 grub_raid_member. All users updated
22555 (allocated_devs): New member.
22556
71574288
VS
225572010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22560 is modified
22561
8d40ec65
BC
225622010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22563
22564 NetBSD build fix for getline function conflict from gnulib.
22565
22566 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22567 components that depend on gnulib headers.
22568 (libgrubmods.a): Renamed from earlier libgrub.a.
22569 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22570
95b9257e
VS
225712010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22572
22573 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22574 install rather than creating a broken install.
22575
26c53dc6
VS
225762010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22577
22578 * util/grub-setup.c (argp): Remove misleading example of installing to
22579 a partition.
22580
4171b3c5
VS
225812010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * util/grub-setup.c (setup): Clarify the error message.
22584
18568d18
VS
225852010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22588
4f6a2e21
VS
225892010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22590
22591 * grub-core/kern/emu/misc.c
22592 (grub_make_system_path_relative_to_its_root)
22593 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22594
225952010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
22596
22597 * grub-core/kern/emu/misc.c
22598 (grub_make_system_path_relative_to_its_root): Revert r2882.
22599
e138c458
VS
226002010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22603 useless field head. All users updated.
22604 (free_subchunk): Correct handling of IN_REGION subchunk.
22605
0cbcdf0e
CW
226062010-10-22 Colin Watson <cjwatson@ubuntu.com>
22607
22608 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22609 (Supported kernels): Likewise.
22610
b65ea155
GS
226112010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22612
22613 Make mktemp invocations portable.
22614
22615 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22616 exit if mktemp fails.
22617 * tests/grub_script_blockarg.in: Likewise.
22618 * tests/partmap_test.in: Likewise.
22619 * tests/util/grub-shell-tester.in: Likewise.
22620 * tests/util/grub-shell.in: Likewise.
22621 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22622 * Makefile.am: Likewise, and chain shell commands with `&&'
22623 instead of ';'.
22624 * util/grub-mkrescue.in: Use the same explicit template as above, and
22625 exit if mktemp fails.
22626
05f43cdd
BC
226272010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22628
22629 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22630 Linux kernel, reported by Dennis Schridde.
22631
800e6a9b
SJ
226322010-10-17 Szymon Janc <szymon@janc.net.pl>
22633
22634 * grub-core/normal/auth.c (grub_auth_check_authentication):
22635 Set-but-not-used variable removed.
22636
d82df574
VS
226372010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22638
22639 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22640 32-bit linux protocol.
22641
7bced458
VS
226422010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22643
22644 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22645 cursor shape for sanity.
22646
5b027690
VS
226472010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 * docs/grub.texi (Installation): Document buggy BIOS install.
22650
ba5f65cf
VS
226512010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * docs/grub.texi (Installation): Indent.
22654
fdf2ec9c
VS
226552010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22656
22657 * util/grub-setup.c (setup): New parameter allow_floppy.
22658 (arguments): New member allow_floppy.
22659 (argp_parser): Handle --allow-floppy.
22660 (main): Pass allow_floppy.
22661 * util/grub-install.in: New option --allow-floppy passed though to
22662 grub-setup.
22663
861dfd4c
VS
226642010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * util/grub-install.in: Handle partitionless disks.
22667
f77a8c24
VS
226682010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22669
22670 * util/grub-setup.c (setup): Don't clean blocklists before readability
22671 verfification.
22672
27d9ee32
VS
226732010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22674
22675 * docs/grub.texi (Installation): Document embedding zone. Remove
22676 obsolete grub-install example.
22677
6bdda8f8
SJ
226782010-10-16 Szymon Janc <szymon@janc.net.pl>
22679
22680 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22681 Set-but-not-used variable ifdef'ed.
22682 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22683 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22684 variable removed.
22685 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22686 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22687 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22688 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22689 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22690 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22691 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22692 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22693 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22694 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22695 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22696 Likewise.
22697
e19b016b
VS
226982010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22699
22700 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22701 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22702 enum value.
22703
6c8d3002
VS
227042010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22705
22706 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22707 synonym to _S5_. Needed for some DSDTs.
22708
c32b51c9
VS
227092010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22710
22711 Userspace ACPI parser debugging.
22712
22713 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22714 headers and add relevant defines. Don't include standard headers.
22715 (main) [GRUB_DSDT_TEST]: New function.
22716 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22717 Don't declare functions.
22718
fbfbeb39
VS
227192010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 Remove dead grub_efi_mm_fini.
22722
22723 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22724 (ALLOCATED_PAGES_SIZE): Likewise.
22725 (MAX_ALLOCATED_PAGES): Likewise.
22726 (allocated_pages): Likewise.
22727 (grub_efi_allocate_pages): Don't record allocated pages.
22728 (grub_efi_free_pages): Likewise.
22729 (grub_efi_mm_init): Likewise.
22730 (grub_efi_mm_fini): Removed.
22731
65f7ed7c
VS
227322010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22733
22734 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22735 (grub_efi_mm_init): Take into account the memory map size increase.
22736
24977b44
VS
227372010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22740 (serial_hw_put): Wait based on real time rather than port reads. Don't
22741 roken ports.
22742 * include/grub/serial.h (grub_serial_port): New field broken.
22743
1eb01cd2
RM
227442010-10-16 Robert Millan <rmh@gnu.org>
22745
22746 * grub-core/kern/emu/misc.c
22747 (grub_make_system_path_relative_to_its_root): Fix premature return
22748 when processing non-root ZFS filesystems.
5f8b440b 22749 Reported by Sergio Talens-Oliag.
1eb01cd2 22750
2d5fed60
RM
227512010-10-15 Robert Millan <rmh@gnu.org>
22752
22753 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22754 guarantee compressed ones are processed first.
22755
d0f4c1ea
VS
227562010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22759 grub_efiemu_autocore.
22760
d87c681f
VS
227612010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22762
22763 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22764 rather than 0x1b.
22765 (grub_console_getkey): Use correct jae opcode rather than ja.
22766
219b3564
RM
227672010-10-12 Robert Millan <rmh@gnu.org>
22768
22769 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22770 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22771 variable. All references updated.
22772
22773 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22774
20c6bb7e
VS
227752010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22776
22777 Correctly distinguish mdraid flavours.
22778
22779 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22780 (insert_array): New argument raid.
22781 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22782 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22783 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22784
74baff84
VS
227852010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22786
22787 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22788 handling of special keys.
22789
3ef068df 227902010-10-02 Aleš Nesrsta <starous@volny.cz>
22791
c7980ad9
VS
22792 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22793 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 22794
a9455194 227952010-10-02 Aleš Nesrsta <starous@volny.cz>
22796
c7980ad9
VS
22797 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22798 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22799 users updated.
a9455194 22800 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 22801 Use right endpoint when querying descriptor.
a9455194 22802
441cfe65
VS
228032010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22804
22805 Clear out 0x80 color bit on EFI.
22806 Tested by: decoder
22807 Reported by: decoder and meta tech.
22808
22809 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22810 (grub_console_setcolorstate): Clear out 0x80 bit.
22811 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22812 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22813 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22814
bf26bcc4
VS
228152010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22818 Set to "auto".
22819
6e3c515d
VS
228202010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22823 mo_file after freeing.
22824
e6d983ba
VS
228252010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22828
74ccb5b5
VS
228292010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22830
22831 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22832 flags.
22833
17821956
VS
228342010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22835
22836 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22837 usage.
22838
ee74fa48
VS
228392010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22840
22841 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22842
22843 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22844 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22845 and terminfo.h when needed.
22846 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22847 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22848 (terminfo): Enable only on terminfokernel.
22849 (extcmd): Likewise.
22850 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22851 * include/grub/lib/arg.h: Likewise.
22852 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22853 incorrect usage of ->.
22854
aa438e68
VS
228552010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22856
22857 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22858 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22859
57994012
VS
228602010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22861
22862 Fix coreboot compilation.
22863
22864 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22865 Take VBE info into account even if only text is supported.
22866 (fill_vbe_info): Take into account the case when only VGA text
22867 is supported.
22868 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22869 on coreboot, multiboot and qemu.
22870
2a406611
VS
228712010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22872
22873 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22874 debug messages.
22875 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22876
d33613fc
VS
228772010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22878
22879 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22880 parameters.
22881
44a1b432
VS
228822010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22883
22884 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22885 if they were BSD-style.
22886
edde54e6
VS
228872010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22888
22889 * grub-core/boot/i386/pc/lnxboot.S: Replace
22890 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22891 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22892
b65830fa
VS
228932010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22894
22895 Write embedding zone using Reed-Solomon.
22896
22897 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22898 * grub-core/Makefile.am (rs_decoder.S): New target.
22899 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22900 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22901 (multiboot): Move to RS part.
22902 (post_reed_solomon): New label.
22903 (grub_boot_drive): Move to non-RS part since it's modified in memory
22904 on boot.
22905 Include rs_decoder.S.
22906 * grub-core/lib/reed_solomon.c: New file.
22907 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22908 New definition.
22909 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22910 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22911 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22912 * include/grub/partition.h (grub_partition_map): Change prototype of
22913 embed to allow returning additional sectors.
22914 * include/grub/reed_solomon.h: New file.
22915 * util/grub-setup.c (setup): Handle Reed-Solomon.
22916
0b4b227f
CW
229172010-09-28 Colin Watson <cjwatson@ubuntu.com>
22918
22919 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22920 i386 and x86-64 definedness tests.
22921
f772623b
YB
229222010-09-27 Yves Blusseau <blusseau@zetam.org>
22923
22924 Fix generation of kernel_syms.lst
22925
22926 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22927 ASM_PREFIX
22928
8e57a6ca
RM
229292010-09-26 Robert Millan <rmh@gnu.org>
22930
22931 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22932
22933 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22934 the pool is an array of devices, iterate through it and return the
22935 first device that passes a stat() test (instead of blindly returning
22936 the first one).
22937
f9130836
RM
229382010-09-26 Robert Millan <rmh@gnu.org>
22939
22940 Build fixes for GNU/kFreeBSD.
22941
22942 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22943 to programs that require ZFS conversion.
22944 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22945 kernels that don't have FLOPPY_MAJOR.
22946
96510faf
BC
229472010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22948
22949 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22950
449333eb
BC
229512010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22952
22953 Fix grub-emu build.
22954
22955 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22956 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22957 mdraid09 and mdraid1x.
22958
e1fd1939
CW
229592010-09-24 Colin Watson <cjwatson@ubuntu.com>
22960
22961 Re-enable grub-extras.
22962
22963 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22964 avoid confusing Automake. Run autogen only twice, once for the top
22965 level and once for grub-core. Add Makefile.util.def and
22966 Makefile.core.def from extra modules to the appropriate autogen
22967 invocations. If Makefile.common exists in an extra module, include
22968 it in both Makefile.util.am and grub-core/Makefile.core.am;
22969 similarly, include any Makefile.util.common file in Makefile.util.am
22970 and any Makefile.core.common file in grub-core/Makefile.core.am.
22971 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22972 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22973 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22974 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22975
22976 * gentpl.py (gvar_add): Turn GVARS into a set.
22977 (global_variable_initializers): Sort global variables on output.
22978 (vars_init): New function.
22979 (first_time): Likewise.
22980 (library): Ensure that non-global variable initialisations are
22981 emitted before the first time we emit code for a library block.
22982 Append to variables rather than setting them. Only emit
22983 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22984 each conditional path.
22985 (program): installdir() emits an Autogen macro, so must be passed to
22986 var_add rather than gvar_add.
22987 (data): Likewise.
22988 (script): Likewise.
22989 (rules): New function, centralising handling for different target
22990 types. Set up Guile association lists for first_time and vars_init,
22991 and send most output to a diversion so that variable initialisations
22992 can be emitted first.
22993 (module_rules): Use new rules function.
22994 (kernel_rules): Likewise.
22995 (image_rules): Likewise.
22996 (library_rules): Likewise.
22997 (program_rules): Likewise.
22998 (script_rules): Likewise.
22999 (data_rules): Likewise.
23000
23001 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
23002
23003 * .bzrignore: Add contrib and grub-core/contrib. Remove
23004 grub-core/Makefile.gcry.am.
23005
1d12cf29
YB
230062010-09-24 Yves Blusseau <blusseau@zetam.org>
23007
23008 * grub-core/lib/LzFind.c: Add missing include.
23009 * grub-core/lib/LzmaEnc.c: Likewise.
23010 * grub-core/script/lexer.c: Likewise.
23011 * grub-core/script/yylex.l: Likewise.
23012 * util/grub-macho2img.c: Likewise.
23013 * util/grub-menulst2cfg.c: Likewise.
23014 * util/grub-mklayout.c: Likewise.
23015 * util/grub-mkpasswd-pbkdf2.c
23016 * util/grub-mkrelpath.c: Likewise.
23017 * util/resolve.c: Likewise.
23018
dd363028
BC
230192010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23020
23021 * Makefile.util.def (example_unit_test): Add
23022 grub-core/gnulib/libgnu.a.
23023
f5a109e2
GS
230242010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23025
23026 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23027
6d0fa83c
VS
230282010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 Support xz compression on yeeloong.
23031
23032 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23033 * configure.ac: Check for LZMA.
23034 * grub-core/Makefile.core.def (xz_decompress): New target.
23035 (none_decompress): Likewise.
23036 * grub-core/boot/decompressor/minilib.c: New file.
23037 * grub-core/boot/decompressor/none.c: Likewise.
23038 * grub-core/boot/decompressor/xz.c: Likewise.
23039 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23040 * grub-core/kern/mips/cache_flush.S: Likewise.
23041 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23042 * grub-core/kern/mips/startup.S: Move first stage to ...
23043 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23044 nomacro.
23045 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23046 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23047 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23048 Allocate statically.
23049 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23050 Allocate statically or use scratch. Don't check CRC32.
23051 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23052 Allocate statically. Don't check CRC32.
23053 * include/grub/decompressor.h: New file.
23054 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23055 Removed.
23056 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23057 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23058 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23059 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23060 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23061 * util/grub-mkimage.c (grub_compression_t): New type.
23062 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23063 (image_target_desc): New field default_compression.
23064 (image_targets): Adjust yeeloong targets.
23065 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23066 (compress_kernel): New parameter comp.
23067 (generate_image): Likewise. Handle new compression case.
23068 (options): New option --compression
23069 (help): Likewise.
23070 (main): Handle new option.
23071
1b655af6
GS
230722010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23073
23074 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23075
8f03f0b5
CW
230762010-09-22 Colin Watson <cjwatson@ubuntu.com>
23077
23078 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23079 typo in __i386__ conditional.
23080
7835dfd3
VS
230812010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23084 include.
23085
e255597e
VS
230862010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23087
6d0fa83c 23088 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
23089
23090 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23091 new tags as supported.
23092 (acpiv2_size): New function.
23093 (grub_multiboot_get_mbi_size): Take new tags into account.
23094 (grub_multiboot_make_mbi): Add new tags.
23095 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 23096
6cc14051 230972010-09-21 Aleš Nesrsta <starous@volny.cz>
23098
23099 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23100 Added missing configuration of USB device.
23101
df7769d8
CW
231022010-09-21 Colin Watson <cjwatson@ubuntu.com>
23103
23104 * grub-core/normal/menu_entry.c (run): Make sure we always return
23105 a value.
23106
b031012d
CW
231072010-09-21 Colin Watson <cjwatson@ubuntu.com>
23108
23109 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23110 NumberOfPages is UINT64 according to the UEFI specification, not
23111 UINTN. Fix printf format.
23112
174de8f3
CW
231132010-09-21 Colin Watson <cjwatson@ubuntu.com>
23114
23115 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23116 `err' to grub_usb_err_t.
23117 Reported and tested by: KESHAV P.R.
23118
d7dbe923
CW
231192010-09-21 Colin Watson <cjwatson@ubuntu.com>
23120
23121 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23122 tpart non-const, so that we can assign to it. (Since this is a
23123 typedef, the constness refers to the pointer rather than what it
23124 points to.)
23125
8d5e2af3
CW
231262010-09-21 Colin Watson <cjwatson@ubuntu.com>
23127
23128 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23129 $(top_srcdir)/grub-core/gnulib as well as
23130 $(top_builddir)/grub-core/gnulib.
23131 Reported by: KESHAV P.R.
23132
5c527783
CW
231332010-09-21 Colin Watson <cjwatson@ubuntu.com>
23134
23135 * util/grub-install.in: Fix the bootloader ID option to be
23136 consistently --bootloader-id, not --bootloader_id.
23137 Reported by: KESHAV P.R.
23138
d309a16e
CW
231392010-09-21 Colin Watson <cjwatson@ubuntu.com>
23140
23141 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23142 check hash checksum." consistently translatable.
23143
b830cd16
YB
231442010-09-21 Yves Blusseau <blusseau@zetam.org>
23145
23146 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23147 $(top_builddir).
23148
c4fe27a8
CW
231492010-09-21 Colin Watson <cjwatson@ubuntu.com>
23150
23151 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23152 (GRUB_MOD_INIT): Register sha1sum command.
23153 (GRUB_MOD_FINI): Unregister sha1sum command.
23154
a4c1d277
YB
231552010-09-21 Yves Blusseau <blusseau@zetam.org>
23156
23157 Keep boot and grub directory names in sync with utils scripts
23158
23159 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23160 * config.h.in: Add previous macros.
23161 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23162 * util/grub-install.in: Use $bootdir and $grubdir variables.
23163
4eff79d2
CW
231642010-09-21 Colin Watson <cjwatson@ubuntu.com>
23165
23166 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23167 convert partition names to disk names if the new `convert' parameter
23168 is set.
23169 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23170 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23171 disk in its own right. This can happen with Xen disk images.
23172
934d7e44
YB
231732010-09-21 Yves Blusseau <blusseau@zetam.org>
23174
23175 * util/grub-editenv.c: Update strings to avoid warnings when generating
23176 grub.pot file.
23177 * util/grub-setup.c: Likewise.
934d7e44 23178
df3367cc
VS
231792010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 * configure.ac: Change version to 1.99~beta0.
23182
77a94e98
VS
231832010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23184
23185 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23186 Add BADRAM.
23187 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23188 Likewise.
23189 * include/multiboot.h: Resynced with specification.
23190 * include/multiboot2.h: Likewise.
23191
269004c1
CW
231922010-09-21 Colin Watson <cjwatson@ubuntu.com>
23193
23194 Fix po directory handling.
23195
23196 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23197 * grub-core/gnulib/Makefile.am: Import gettext module.
23198 * m4/gnulib-cache.m4: Likewise.
23199 * m4/gnulib-comp.m4: Likewise.
23200 * m4/gettext.m4: New file, from gnulib.
23201 * m4/glibc2.m4: Likewise.
23202 * m4/iconv.m4: Likewise.
23203 * m4/intdiv0.m4: Likewise.
23204 * m4/intl.m4: Likewise.
23205 * m4/intldir.m4: Likewise.
23206 * m4/intlmacosx.m4: Likewise.
23207 * m4/intmax.m4: Likewise.
23208 * m4/inttypes-pri.m4: Likewise.
23209 * m4/lcmessage.m4: Likewise.
23210 * m4/lib-ld.m4: Likewise.
23211 * m4/lib-link.m4: Likewise.
23212 * m4/lib-prefix.m4: Likewise.
23213 * m4/lock.m4: Likewise.
23214 * m4/nls.m4: Likewise.
23215 * m4/po.m4: Likewise.
23216 * m4/printf-posix.m4: Likewise.
23217 * m4/progtest.m4: Likewise.
23218 * m4/threadlib.m4: Likewise.
23219 * m4/uintmax_t.m4: Likewise.
23220 * m4/visibility.m4: Likewise.
23221 * po/Makefile.am: Remove.
23222 * po/Makefile.in.in: New file, from gettext.
23223 ($(DOMAIN).pot-update): Support POTFILES-shell.
23224 * po/Makevars: New file.
23225 * po/POTFILES-shell: Rename to ...
23226 * po/POTFILES-shell.in: ... this. Update.
23227 * po/POTFILES: Rename to ...
23228 * po/POTFILES.in: ... this. Update.
23229 * po/Rules-quot: New file, from gettext.
23230 * po/boldquot.sed: Likewise.
23231 * po/en@boldquot.header: Likewise.
23232 * po/en@quot.header: Likewise.
23233 * po/insert-header.sin: Likewise.
23234 * po/quot.sed: Likewise.
23235 * po/remove-potcdate.sin: Likewise.
23236
3e0fa5d0
VS
232372010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23238
23239 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23240
ade9bd66
VS
232412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23242
23243 * util/grub.d/20_linux_xen.in: Use submenus.
23244
fc55cc4c
VS
232452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23246
23247 Support submenus.
23248
23249 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23250 parameter submenu. All users updated.
23251 * grub-core/normal/main.c (free_menu): Rename to ...
23252 (grub_normal_free_menu): ... this. Made global.
23253 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23254 if requested.
23255 * grub-core/normal/menu_entry.c (screen): New field submenu.
23256 (make_screen): Set submenu.
23257 (run): Open new context if requested.
23258 * include/grub/menu.h (grub_menu_entry): New field submenu.
23259 * include/grub/normal.h (grub_normal_free_menu): New proto.
23260
600cedf7
VS
232612010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23262
23263 Menu entries extractor.
23264
23265 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23266 variants.
23267 (GRUB_MOD_INIT): Register new variants.
23268 (GRUB_MOD_FINI): Unregister new variants.
23269 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23270 into grub_cmd_legacy_source.
23271 (grub_cmd_legacy_source): Implement extractor variants.
23272 (GRUB_MOD_INIT): Register new variants.
23273 (GRUB_MOD_FINI): Unregister new variants.
23274 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23275 as an extractor.
23276 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23277 search as an extractor.
23278 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23279 test as an extractor.
23280 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23281 as an extractor.
23282 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23283 (grub_env_new_context): New function.
23284 (grub_env_context_open): Likewise.
23285 (grub_env_extractor_open): Likewise.
23286 (grub_env_extractor_close): Likewise.
23287 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23288 grub_extractor_level.
23289 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23290 * include/grub/env.h (grub_env_extractor_open): New proto.
23291 (grub_env_extractor_close): Likewise.
23292 * include/grub/normal.h (grub_extractor_level): New external variable.
23293
7bda3a87
VS
232942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23295
23296 Make cutmem accept a region specification.
23297 Suggested by: Samuel Thibault
23298
23299 * grub-core/mmap/mmap.c (parsemem): New function.
23300 (grub_cmd_cutmem): Handle new arguments.
23301
2ea57f88
VS
233022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23303
23304 New command cutmem.
23305
23306 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23307 (GRUB_MOD_INIT): Register new command.
23308 (GRUB_MOD_FINI): Unregister new command.
23309
74342e31
VS
233102010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23311
23312 Support some annoying BSD and Minix subpartitions.
23313
23314 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23315 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23316 Properly handle concatenation.
23317 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23318 * grub-core/normal/completion.c (iterate_partition): Likewise.
23319 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23320 contain partition. All users updated.
23321 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23322 struct.
23323 (grub_openbsdlabel_partition_map): Likewise.
23324 (bsdlabel_partition_map_iterate): Rename to ..
23325 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23326 (bsdlabel_partition_map_iterate): New function.
23327 (netopenbsdlabel_partition_map_iterate): Likewise.
23328 (netbsdlabel_partition_map_iterate): Likewise.
23329 (openbsdlabel_partition_map_iterate): Likewise.
23330 (GRUB_MOD_INIT): Register new partmaps.
23331 (GRUB_MOD_FINI): Unregister new partmaps.
23332 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23333 (grub_partition_msdos_iterate): ... this. All users updated.
23334 Don't support embedding other than in a minix partition.
23335 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23336 proto.
23337 * include/grub/partition.h (grub_partition): New field msdostype.
23338 * util/grub-install.in: Handle openbsd and netbsd types being in
23339 part_bsd module.
23340
1e8d555b
VS
233412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23344
23345 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23346 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23347 (mdraid09): ... this.
23348 (mdraid1x): New module.
23349 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23350 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23351
899d8af4
VS
233522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23353
23354 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23355 vsprintf.
23356
40901acd
CW
233572010-09-20 Colin Watson <cjwatson@ubuntu.com>
23358
23359 * grub-core/commands/efi/lsefimmap.c: Correct header.
23360 * NEWS: Update.
23361
dfe3b247
CW
233622010-09-20 Colin Watson <cjwatson@ubuntu.com>
23363
23364 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23365 as printf format strings; the translations might contain '%' which
23366 could cause a crash.
23367 (main): Likewise.
23368 * util/grub-fstest.c (argp_parser): Likewise.
23369 * util/grub-setup.c (argp_parser): Likewise.
23370 (main): Likewise.
23371
3286a4b4
VS
233722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23373
23374 Use argp in grub-fstest.
23375
23376 * util/grub-fstest.c: Don't include getopt.h.
23377 Include argp.h.
23378 (root): New variable.
23379 (args_count): Likewise.
23380 (nparm): Likewise.
23381 (num_disks): Likewise.
23382 (images): Likewise.
23383 (cmd): Likewise.
23384 (debug_str): Likewise.
23385 (args): Likewise.
23386 (options): Transformed to argp.
23387 (usage): Removed.
23388 (main): Split argument parsing into ...
23389 (argp_parser): ... this. Changed to argp format.
23390 (argp): New variable.
23391 (main): Use argp_parse.
23392
3dccbe4b
TG
233932010-09-20 Tristan Gingold <gingold@free.fr>
233942010-09-20 Robert Millan <rmh.grub@aybabtu.com>
233952010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23396
23397 * grub-core/commands/efi/lsefimmap.c: New file.
23398 * grub-core/Makefile.core.def (lsefimmap): New module.
23399 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23400
38c259a7
VS
234012010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 Pause the execution (10s max) if any errors are displayed so the user
23404 has a chance to see them.
23405
23406 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23407 (grub_print_error): Increment grub_err_printed_errors.
23408 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23409 execution if any errors were displayed.
23410 (show_menu): Remove old code for pause.
23411 * grub-core/normal/menu_entry.c (run): Likewise.
23412 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23413 users updated.
23414 (grub_normal_get_char_counter): Likewise.
23415 * include/grub/err.h (grub_err_printed_errors): New external variable.
23416 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23417
f218b09c
VS
234182010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23419
23420 Support multiboot VBE info.
23421
23422 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23423 Take VBE info into account.
23424 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23425 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23426 Call fill_vbe_info when appropriate.
23427 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23428 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23429 as supported.
23430 (grub_multiboot_get_mbi_size): Take new tags into account.
23431 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23432 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23433 Call fill_vbe_tag when appropriate.
23434 (grub_multiboot_make_mbi): Properly align tags.
23435 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23436 function.
23437 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23438 proto.
23439 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23440
a9cc5438
VS
234412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23442
23443 Suport manual terminal geometry specification.
23444
23445 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23446 Save state in grub_ofconsole_terminfo_output.
23447 (grub_ofconsole_term): Use grub_terminfo_getwh.
23448 (grub_ofconsole_getwh): Removed.
23449 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23450 (grub_serial_term): Use grub_terminfo_getwh.
23451 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23452 (options): New struct.
23453 (OPTION_*): New enum.
23454 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23455 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23456 width and height.
23457 (grub_terminfo_getwh): New proto.
23458 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23459
1a8fed20
VS
234602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23461
23462 Handle legacy "terminal" command.
23463
23464 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23465 and FLAG_TERMINAL.
23466 (legacy_commands): Add terminal and title.
23467 (grub_legacy_parse): Handle terminal. Simplify title handling.
23468
41e9c57d
VS
234692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23470
23471 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23472 parameters overflow.
23473
61c874c5
CW
234742010-09-20 Colin Watson <cjwatson@ubuntu.com>
23475
23476 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23477 widthspec.h.
23478
23479 * docs/grub.texi (Shell-like scripting): Document `!'.
23480 (Network): Simplify using new i386-pc-pxe format. Mention
23481 grub-mknetdir.
23482
23483 * NEWS: Update.
23484
943682b4
CW
234852010-09-20 Colin Watson <cjwatson@ubuntu.com>
23486
23487 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23488 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23489 when needed.
23490
6d3d698d
CW
234912010-09-20 Colin Watson <cjwatson@ubuntu.com>
23492
23493 * grub-core/commands/efi/lsefisystab.c: Correct header.
23494 * grub-core/commands/efi/lssal.c: Likewise.
23495 * grub-core/commands/testload.c: Likewise.
23496
c982589f
CW
234972010-09-20 Colin Watson <cjwatson@ubuntu.com>
23498
23499 * util/grub-mkrescue.in: Add explicit root argument to --set to
23500 prevent the UUID being interpreted as an argument to --set (matches
23501 previous change to prepare_grub_to_access_device).
23502
a63c31b6
CW
235032010-09-20 Colin Watson <cjwatson@ubuntu.com>
23504
23505 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23506 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23507 the verbosity of later #ifs.
23508 (find_partition_start): Define this function on FreeBSD too.
23509 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23510 function.
23511 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23512 on FreeBSD.
23513
6439b8ee
YB
235142010-09-20 Yves Blusseau <blusseau@zetam.org>
23515
23516 * util/grub-editenv.c: Use argp instead of getopt.
23517
c5930ec8
YB
235182010-09-20 Yves Blusseau <blusseau@zetam.org>
23519
23520 * util/grub-setup.c: Use argp instead of getopt.
23521
15c69261
YB
235222010-09-20 Yves Blusseau <blusseau@zetam.org>
23523
23524 Use gnulib-tool to create gnulib source files.
23525
23526 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23527 grub-core/gnulib directories
23528 * .bzignore: Add **/.deps and autogenerated gnulib files
23529 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23530 of gnulib macros, add grub-core/gnulib/Makefile
23531 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23532 include m4 directory to aclocal.
23533 * Makefile.util.def: Remove direct compilation of gnulib source files
23534 and use the new grub-core/gnulib/libgnu.a.
23535 * build-aux/config.rpath: move config.rpath from top directory to
23536 build-aux
23537 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23538 in gnulib headers
23539 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23540 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23541 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23542 header.
23543 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23544 string.
23545
e511c9f5
YB
235462010-09-20 Yves Blusseau <blusseau@zetam.org>
23547
23548 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23549 grub-core/genmod.sh and grub-core/gensyminfo.sh
23550
c2dede05
BC
235512010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23552
23553 Add a test for echo command options.
23554
23555 * tests/grub_cmd_echo.in: New test.
23556 * Makefile.util.def: Rules for new test.
23557
c55f5018
SJ
235582010-09-20 Szymon Janc <szymon@janc.net.pl>
23559
23560 Remove crc.mod and move crc command to hashsum.mod.
23561 Remove lib/crc.c - users updated to use gcrypt implementation.
23562
23563 * grub-core/commands/crc.c: Removed.
23564 * grub-core/Makefile.core.def (crc): Module removed.
23565 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23566 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23567 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23568 * grub-core/lib/crc.c: Removed.
23569 * include/grub/lib/crc.h: Removed.
23570 * Makefile.util.def (crc): Remove lib/crc.c
23571 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23572 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23573 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23574 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23575 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23576 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23577
e0337366
VS
235782010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23579
23580 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23581
742f9232
VS
235822010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23583
23584 Split config.h for util and core.
23585
23586 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23587 (ADDR32): Likewise.
23588 (DATA32): Likewise.
23589 (BSS_START_SYMBOL): Likewise.
23590 (END_SYMBOL): Likewise.
23591 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23592 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23593 * config.h.in: New file.
23594 * configure.ac: Use config-util.h as config define file.
23595 Rename MACHINE into GRUB_MACHINE. All users updated.
23596 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23597 updated.
23598 (NESTED_FUNC_ATTR): Likewise.
23599 Substitue new variables.
23600 (COND_HAVE_ASM_USCORE): New conditional.
23601 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23602 (kernel_syms.lst): Use ASM_PREFIX.
23603 * grub-core/kern/emu/console.c: Include config-util.h.
23604 * grub-core/kern/emu/misc.c: Likewise.
23605 * grub-core/kern/emu/mm.c: Likewise.
23606 * include/grub/emu/misc.h: Likewise.
23607 * include/grub/libgcc.h: Likewise.
23608
39feb0e8
VS
236092010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23610
23611 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23612 constants usage.
23613 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23614 Fix GRUB_TERM_KEY_* constants usage.
23615 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23616
9af6dac3
VS
236172010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23618
23619 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23620 print pointer.
23621 * grub-core/bus/usb/uhci.c: Remove empty define.
23622 (grub_uhci_check_transfer): Add missing cast.
23623 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23624 print pointer.
23625 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23626 PRIuGRUB_SIZE.
23627 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23628
d6d94820
VS
236292010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 * grub-core/Makefile.core.def (legacycfg): Add
23632 lib/i386/pc/vesa_modes_table.c on emu.
23633
3572f2b6
BC
236342010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23635
23636 Reduce number of temporary files generated by build system.
23637
23638 * grub-core/gencmdlist.sh: Removed.
23639 * grub-core/genfslist.sh: Removed.
23640 * grub-core/genhandlerlist.sh: Removed.
23641 * grub-core/genmodsrc.sh: Removed.
23642 * grub-core/genpartmaplist.sh: Removed.
23643 * grub-core/genparttoollist.sh: Removed.
23644 * grub-core/gentermiinallist.sh: Removed.
23645 * grub-core/genvideolist.sh: Removed.
23646
23647 * grub-core/genmod.sh.in: New file.
23648 * grub-core/gensyminfo.sh.in: New file.
23649
23650 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23651 * conf/Makefile.extra-dist: Update with new files.
23652 * gentpl.py: Remove rules related to unnecessary temporary files.
23653 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23654 and und-* files.
23655 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23656 genmod.sh scripts.
23657 * grub-core/bus/usb/uhci.c: Remove empty #define.
23658 * grub-core/genmoddep.awk: Updated with new syminfo format.
23659 * util/bash-completion.d/Makefile.am: Add config.log to
23660 CLEANFILES.
23661
c836b030
YB
236622010-09-19 Yves Blusseau <blusseau@zetam.org>
23663
23664 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23665
2f4e8053
BC
236662010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23667
23668 * util/grub-mkconfig.in: Check the config script for syntax errors
23669 before saving.
23670
75831c34
CW
236712010-09-19 Colin Watson <cjwatson@ubuntu.com>
236722010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23673
23674 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23675 platforms.
23676 * util/grub-install.in: Add EFI and IEEE1275 support.
23677 * util/i386/efi/grub-install.in: Removed.
23678 * util/ieee1275/grub-install.in: Likewise.
23679
eaf41b25
VS
236802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23681
23682 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23683 (grub_cmd_cmosclean): Likewise.
23684 (GRUB_MOD_INIT): Register command cmosclean.
23685 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23686 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23687
1a9130dd
CPE
236882010-09-18 Carles Pina i Estany <carles@pina.cat>
236892010-09-18 Aleš Nesrsta <starous@volny.cz>
236902010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23691
23692 Add keyboard layouts support.
23693
23694 * Makefile.util.def (grub-mklayout): New file.
23695 (grub-kbdcomp): New script.
23696 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23697 Add keyboard_layouts.h.
23698 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23699 commands/boot.c on yeeloong.
23700 (keylayouts): New module.
23701 * grub-core/bus/usb/ohci.c
23702 * grub-core/bus/usb/uhci.c
23703 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23704 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23705 (attach_root_port): Likewise.
23706 (poll_nonroot_hub): Likewise.
23707 (grub_usb_poll_devices): Likewise.
23708 (detach_device): Close transfer.
23709 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23710 function.
23711 (grub_usb_bulk_setup_readwrite): Likewise.
23712 (grub_usb_bulk_finish_readwrite): Likewise.
23713 * grub-core/commands/keylayouts.c: New file.
23714 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23715 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23716 aliases.
23717 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23718 support scancode 2.
23719 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23720 * include/grub/keyboard_layouts.h: New file.
23721 * util/grub-mklayout.c: New file.
23722 * util/grub-kbdcomp.in: Likewise.
23723
a1d84a5e
VS
237242010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23725
23726 Unify memory types.
23727
23728 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23729 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23730 types.
23731 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23732 (grub_upper_mem): Likewise.
23733 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23734 * include/grub/memory.h (grub_memory_type_t): New enum.
23735 All users updated.
23736
9696382e
VS
237372010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23738
23739 * grub-core/Makefile.core.def (lsapm): New module.
23740 * grub-core/commands/i386/pc/lsapm.c: New file.
23741 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23742 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23743 Likewise.
23744 * include/grub/i386/pc/apm.h: New file.
23745 * include/multiboot.h (multiboot_apm_info): New struct.
23746
237472010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23748
23749 GRUB-legacy configuration file support.
23750
23751 * Makefile.util.def (grub-menulst2cfg): New util.
23752 * docs/man/grub-menulst2cfg.h2m: New file.
23753 * grub-core/Makefile.core.def (legacycfg): New module.
23754 * grub-core/commands/legacycfg.c: New file.
23755 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23756 (grub_normal_add_menu_entry): ... this.
23757 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23758 (grub_normal_set_password): ...this.
23759 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23760 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23761 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23762 * grub-core/lib/legacy_parse.c: New file.
23763 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23764 * include/grub/i386/pc/vesa_modes_table.h: New file.
23765 * include/grub/legacy_parse.h: Likewise.
23766 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23767 * util/grub-menulst2cfg.c: New file.
23768
bf8d1338
CW
237692010-09-17 Colin Watson <cjwatson@ubuntu.com>
23770
23771 * grub-core/kern/emu/hostdisk.c
23772 (convert_system_partition_to_system_disk): Initialise node.
23773
9c0bad2e
CW
237742010-09-17 Colin Watson <cjwatson@ubuntu.com>
23775
23776 * grub-core/kern/emu/hostdisk.c
23777 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23778 leak.
23779 Reported and based on patch by: Modestas Vainius.
23780
a939d135
CW
237812010-09-17 Colin Watson <cjwatson@ubuntu.com>
23782
23783 Fix DM-RAID probing with recent versions of device-mapper udev
23784 rules.
23785
23786 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23787 canonicalise device paths under /dev/mapper/.
23788 (convert_system_partition_to_system_disk): Compare the
23789 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23790 path, since device nodes under /dev/mapper/ are often symlinks.
23791
0f7ee3c9
YB
237922010-09-17 Yves Blusseau <blusseau@zetam.org>
23793
23794 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23795
10854d0d
YB
237962010-09-16 Yves Blusseau <blusseau@zetam.org>
23797
23798 * configure.ac: Avoid some annoying error messages if freetype-config
23799 program is not found.
23800
108538d8
CW
238012010-09-16 Colin Watson <cjwatson@ubuntu.com>
23802
23803 Support RAID on virtio devices, and others.
23804
23805 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23806 Rename to ...
23807 [__MINGW32__] (grub_find_device): ... this.
23808 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23809 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23810 reasonable default if dir is NULL.
23811 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23812 ...
23813 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23814 (grub_guess_root_device): Update callers.
23815 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23816
23817 * util/raid.c (grub_util_getdiskname): Remove.
23818 (grub_util_raid_getmembers): Use grub_find_device rather than
23819 grub_util_getdiskname.
23820
e5bfc130
CW
238212010-09-16 Colin Watson <cjwatson@ubuntu.com>
23822
23823 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23824 needing to be compiled with serial support.
23825 (ls): Indicate that multiple files are accepted.
23826 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23827 indicate that multiple files are accepted.
23828
be458ae2
CW
238292010-09-16 Colin Watson <cjwatson@ubuntu.com>
23830
23831 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23832 libgrub_a_init.c, and util/bash-completion.d/grub.
23833
cb731b5e
VS
238342010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 * util/grub-setup.c (setup): Fix incorrect container semantics.
23837
35139e8a
VS
238382010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23839
23840 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23841 misusage.
23842 Reported by: J. Nick Terry
23843
e50fca4a
VS
238442010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23845
23846 Move embedding routines to partmap sources files.
23847
23848 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23849 [GRUB_UTIL]: New variable.
23850 (gpt_partition_map_iterate): Set part.parent.
23851 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23852 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23853 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23854 New function.
23855 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23856 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23857 (grub_partition_map) [GRUB_UTIL]: New field embed.
23858 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23859 (setup): Use ->embed.
23860
f00478b7
VS
238612010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23862
23863 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23864 function.
23865 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23866 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23867
2b94e3ff
YB
238682010-09-15 Yves Blusseau <blusseau@zetam.org>
23869
23870 Add function to get completions from usage.
23871
23872 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23873 completions from usage. Use LC_ALL=C to get options properly.
23874
2e04a006
VS
238752010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23876
23877 * grub-core/gnulib/basename-lgpl.c: Imported.
23878 * grub-core/gnulib/basename.c: Likewise.
23879 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23880 * grub-core/gnulib/dirname.c: Likewise.
23881 * grub-core/gnulib/dirname.h: Likewise.
23882 * grub-core/gnulib/stripslash.c: Likewise.
23883
5dcdf93a
VS
238842010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 * grub-core/gnulib/error.c: Resynced.
23887 * grub-core/gnulib/getopt.c: Likewise.
23888 * grub-core/gnulib/getopt_int.h: Likewise.
23889 * grub-core/gnulib/regex.h: Likewise.
23890 * grub-core/gnulib/regex_internal.c: Likewise.
23891 * grub-core/gnulib/regex_internal.h: Likewise.
23892
014f47b7
SJ
238932010-09-15 Szymon Janc <szymon@janc.net.pl>
23894
23895 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23896 CRC calculations and validity checks.
23897 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23898 calculations.
23899
dd521a4a
SJ
239002010-09-15 Szymon Janc <szymon@janc.net.pl>
23901
23902 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23903
79c4eeb9
VS
239042010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23905
23906 Fix incorrect echo options handling.
23907 Reported by: Yves Blusseau.
23908
23909 * include/grub/command.h (grub_command_flags_t): New flags
23910 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23911 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23912 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23913
ed80f7d5
VS
239142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23915
23916 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23917 users updated.
23918 (GRUB_COMMAND_FLAG_MENU): Likewise.
23919 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23920 (GRUB_COMMAND_FLAG_TITLE): Removed.
23921 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23922 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23923 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23924 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23925 (grub_command_flags_t): New enum. All users updated.
23926
5fe7620a
SG
239272010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23928
23929 Fix solaris compilation.
23930
23931 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23932 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23933 (grub-emu-list): Likewise.
23934
545b752f
VS
239352010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23936
23937 Remove deprecated root command.
23938
23939 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23940 updated.
23941
6c1a338c
VS
239422010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23943
23944 * util/i386/pc/grub-setup.c: Merge this ...
23945 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23946 * util/grub-setup.c: ... into this.
23947 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23948 New struct.
23949
239502010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23951
23952 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23953 possible.
23954
d2ea4551
VS
239552010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23956
23957 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23958 allocate p.
23959
3c3b5040
VS
239602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23963 explicit root argument to set to prevent UUID to be interpreted as
23964 argument to set.
23965
b71c3fae
VS
239662010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23967
23968 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23969
275433e6
VS
239702010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23971
23972 Don't export grub_gate_a20.
23973
23974 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23975 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23976 to ...
23977 (grub_gate_a20): ... this. All users updated.
23978 * include/grub/i386/pc/init.h: Removed. All users updated.
23979
a5dbb1f1
VS
239802010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23981
23982 Create euro.pf2 which supports most European languages.
23983
23984 * Makefile.am (grubdata_DATA): Add euro.pf2.
23985 (euro.pf2): New target.
23986 (CLEANFILES): Add euro.pf2.
23987
62a747cb
VS
239882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23989
23990 * configure.ac: Disable emu-usb by default to prevent inadvertent
23991 device takeover.
23992
608e43b1
VS
239932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23994
23995 Disable usbserial on grub-emu since our libusb code isn't good enough
23996 yet.
23997
23998 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23999 (usbserial_pl2303): Likewise.
24000 (usbserial_ftdi): Likewise.
24001
94564f81
VS
240022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24003
24004 * include/grub/disk.h (grub_disk): Remove has_partitions.
24005 All users updated.
24006 * disk/loopback.c (grub_loopback): Remove has_partitions.
24007 All users updated.
24008 (options): Remove partitions. All users updated.
24009 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24010 * util/i386/pc/grub-setup.c (setup): copy partition table only when
24011 actual partition table is found.
24012
3352800b
VS
240132010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24014
24015 Remove readability checks (too many false negatives).
24016
24017 * util/grub-install.in: Remove readability checks.
24018 * util/grub-mkconfig.in: Likewise.
24019 * util/grub.d/10_hurd.in: Likewise.
24020 * util/grub.d/10_kfreebsd.in: Likewise.
24021 * util/grub.d/10_linux.in: Likewise.
24022 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24023 way.
24024
2419f17a
VS
240252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24026
24027 Enable acpi shutdown on all ACPI platforms.
24028
24029 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24030 on coreboo, multiboot and EFI.
24031 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24032 (grub_acpi_halt): Likewise.
24033 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24034 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24035 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24036 * grub-core/lib/i386/halt.c (grub_halt)
24037 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24038
0575c7c3
VS
240392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24040
24041 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24042 context.
24043
54ac3cd1
VS
240442010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24045
24046 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24047 * grub-core/video/efi_uga.c: Likewise.
24048
b2a30ac5
VS
240492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24050
24051 Filter devaliases and never open same device twice.
24052
24053 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24054 (last_ihandle): Likewise.
24055 (ofdisk_hash_ent): New member shortest.
24056 (ofdisk_hash_add): Add canonical path too.
24057 (scan): New function.
24058 (grub_ofdisk_iterate): Iterate over hashed entries.
24059 (compute_dev_path): Don't add :0.
24060 (grub_ofdisk_open): Don't really open the disk.
24061 (grub_ofdisk_close): Avoid closing unrelated disk.
24062 (grub_ofdisk_read): Implement reopen logic.
24063 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24064 New function.
24065 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24066 New proto.
24067
fb53b340
VS
240682010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24069
24070 Fix sparc64.
24071
24072 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24073 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24074 right address. Add sparc64_ieee1275_ldflags.
24075 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24076 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24077 to grub_host_to_target_addr
24078 (load_image): Likewise.
24079
f452b040
VS
240802010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24081
24082 * grub-core/normal/completion.c (complete_file): Handle device
24083 containing slash.
24084 Fix based on patch by Doug Nazar.
24085
9b5b2541
VS
240862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24087
24088 grub-mknetdir script.
24089
24090 * Makefile.util.def (grub-mknetdir): New module.
24091 * tests/util/grub-shell.in: Support boot=net
24092 * util/grub-mknetdir.in: New file.
24093
9d2be652
VS
240942010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24095
24096 videoinfo on non-vbe.
24097
24098 * grub-core/Makefile.core.def (vbeinfo): Removed.
24099 (vbetest): Removed.
24100 (videoinfo): New module.
24101 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24102 * grub-core/commands/i386/pc/vbetest.c: Removed.
24103 * grub-core/commands/videoinfo.c: New file.
24104 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24105 specification.
24106 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24107 as vbetest.
24108 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24109 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24110 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24111 mode_number. New parameter mode. All users updated.
24112 (grub_video_gop_iterate): New function.
24113 (grub_video_efi_gop): New member iterate.
24114 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24115 (grub_vbe_set_video_mode): Remove setting useless fields.
24116 (vbe2videoinfo): New function.
24117 (grub_video_vbe_iterate): Likewise.
24118 (grub_video_vbe_setup): Use vbe2videoinfo.
24119 (grub_video_vbe_print_adapter_specific_info): New function.
24120 (grub_video_vbe_adapter): New fields iterate and
24121 print_adapter_specific_info.
24122 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24123 All users updated.
24124 (grub_video_mode_info): New field mode_number.
24125 (grub_video_adapter): New fields iterate and
24126 print_adapter_specific_info.
24127
179503f5
TG
241282010-09-13 Tristan Gingold <gingold@free.fr>
241292010-09-13 Robert Millan <rmh.grub@aybabtu.com>
241302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24131
24132 * grub-core/commands/efi/lsefisystab.c: New file.
24133 * grub-core/commands/efi/lssal.c: Likewise.
24134 * grub-core/Makefile.core.def (lsacpi): New module.
24135 (lsefisystab): Likewise.
24136 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24137 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24138 (grub_efi_sal_system_table): New struct.
24139 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24140 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24141 (grub_efi_sal_system_table_platform_features): Likewise.
24142 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24143 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24144 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24145 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24146
cf9827de
VS
241472010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 Support explicit user claim that a device is BIOS-visible.
24150
24151 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24152 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24153 * grub-core/kern/emu/hostdisk.c
24154 (convert_system_partition_to_system_disk): Support mdX.
24155 (find_system_device): New parameter add. All users updated.
24156 (grub_util_biosdisk_is_present): New function.
24157 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24158 proto.
24159
53f0eb1f
VS
241602010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24161
24162 Search hints support.
24163
24164 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24165 All users updated.
24166
b23ffd70
YB
241672010-09-13 Yves Blusseau <blusseau@zetam.org>
24168
24169 Bash completion script for util commands
24170
24171 * Makefile.am: Add util/bash-completion.d directory
24172 * configure.ac: Likewise.
24173 * util/bash-completion.d/Makefile.am: New file.
24174 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24175
d547dc28
VS
241762010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24177
24178 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24179 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24180 Reported by: Yves Blusseau.
24181
2fc8ccb9
VS
241822010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24183
24184 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24185 partition size and offset.
24186
d8a84076
VS
241872010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24190
84fb3b3d
VS
241912010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24192
24193 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24194
768ec2e2
VS
241952010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24196
24197 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24198 (grub_xvasprintf): Likewise.
24199
4870900f
VS
242002010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24201
24202 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24203
faca6bec
VS
242042010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24205
24206 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24207 args ending with NULL.
24208
242092010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
24210
24211 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24212 pointer.
24213
3c70f225
SJ
242142010-09-11 Szymon Janc <szymon@janc.net.pl>
24215
24216 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24217
4df7996d
VS
242182010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24219
24220 Shutdown using ACPI.
24221
24222 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24223 * grub-core/commands/acpihalt.c: New file.
24224 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24225 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24226 (grub_acpi_halt): New proto.
24227 (GRUB_ACPI_SLP_EN): New const.
24228 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24229 (GRUB_ACPI_OPCODE_*): New enum.
24230 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24231
126b4c32
TG
242322010-09-11 Tristan Gingold <gingold@free.fr>
242332010-09-11 Robert Millan <rmh.grub@aybabtu.com>
242342010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24235
24236 * commands/lsacpi.c: New file.
24237 * grub-core/Makefile.core.def (lsacpi): New module.
24238 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24239 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24240 (grub_acpi_madt_entry_header): New struct.
24241 (grub_acpi_madt): Likewise.
24242 (grub_acpi_madt_entry_interrupt_override): Likewise.
24243 (grub_acpi_madt_entry_sapic): Likewise.
24244 (grub_acpi_madt_entry_lsapic): Likewise.
24245 (grub_acpi_madt_entry_platform_int_source): Likewise.
24246 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24247 (PRIuGRUB_UINT32_T): Likewise.
24248 (PRIxGRUB_UINT64_T): Likewise.
24249
1aa4fe88
VS
242502010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24251
24252 Implement loading palette on ieee1275_fb.
24253
24254 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24255 (have_setcolors): Likewise.
24256 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24257 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24258 (grub_video_ieee1275_set_palette): Implement.
24259
25761e13
VS
242602010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
242612010-09-11 Colin Watson <cjwatson@ubuntu.com>
24262
24263 * util/grub-install.in (grub_partition): New variable.
24264 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24265 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24266 Fixes a bug reported by Yves Blusseau.
24267
050abaea
VS
242682010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24269
24270 Fix emu on mipsel.
24271
24272 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24273 =grub_cpu_flush_cache on all mips and not only yeeloong.
24274 * configure.ac (COND_mips): New conditional.
24275 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24276 platforms.
24277 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24278 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24279 [GRUB_LINKER_HAVE_INIT]: New function.
24280 (grub_emu_post_init): Likewise.
24281 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24282 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24283 * include/grub/cache.h (_mips): Include mips/cache.h.
24284 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24285 LVM and RAID prototypes.
24286 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24287 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24288 function.
24289
5ed7d816
CW
242902010-09-10 Colin Watson <cjwatson@ubuntu.com>
24291
24292 * util/grub-install.in: Don't try to verify core.img until after
24293 running grub-mkimage to create it.
24294
90367e04
RM
242952010-09-10 Robert Millan <rmh@gnu.org>
24296
24297 * util/grub.d/10_hurd.in: Add misc readability checks.
24298 * util/grub.d/10_kfreebsd.in: Likewise.
24299 * util/grub.d/10_linux.in: Likewise.
24300
c452fa66
CW
243012010-09-10 Colin Watson <cjwatson@ubuntu.com>
24302
24303 * util/grub-install.in: ${imgext} won't be defined here until the
24304 install branch is merged. For the meantime, only verify core.img on
24305 i386-pc and sparc64-ieee1275 platforms.
24306
c38fe9f4
RM
243072010-09-10 Robert Millan <rmh@gnu.org>
24308
24309 Solaris support in grub_find_zpool_from_dir(). Thanks
24310 Seth Goldberg for referring to getextmntent() facility.
24311
24312 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24313 `sys/mkdev.h'.
24314 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24315 `<sys/mnttab.h>'.
24316 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24317 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24318 method for finding zpool name.
24319
905f7773
CW
243202010-09-10 Colin Watson <cjwatson@ubuntu.com>
24321
24322 grub-fstest needs the host and hostfs modules while other utilities
24323 actively require those modules to be absent, so grub-fstest needs
24324 its own initialisation and finalisation code.
24325
24326 * Makefile.am (grub_fstest.pp): New target.
24327 (grub_fstest_init.lst): Likewise.
24328 (grub_fstest_init.c): Likewise.
24329 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24330
fb90b546
RM
243312010-09-10 Robert Millan <rmh@gnu.org>
24332
24333 * configure.ac: Check for `struct statfs.f_fstypename' and
24334 `struct statfs.f_mntfromname'.
24335
24336 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24337 kFreeBSD-specific code.
24338
66d4bea5
RM
243392010-09-10 Robert Millan <rmh@gnu.org>
24340
24341 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24342 on ZFS. Now non-main filesystems are supported as / too.
24343
b6a690ee
CW
243442010-09-09 Colin Watson <cjwatson@ubuntu.com>
24345
24346 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24347 and grub-core/disk/host.c to ...
24348 (grub-fstest): ... here. Having the host disk implementation
24349 present confuses grub-probe and other utility programs.
24350
24351 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24352 when writing to a file, not when writing to stdout.
24353
8901b00c 243542010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24355
24356 * tests/partmap_test.in: New test for partitions.
24357 * Makefile.util.def: Rules for new test.
24358
7bf45fdd
RM
243592010-09-09 Robert Millan <rmh@gnu.org>
24360
24361 * util/grub-probe.c (probe): Fix a pair of unhandled error
24362 conditions.
24363
4dfbc574
RM
243642010-09-09 Robert Millan <rmh@gnu.org>
24365
24366 Basic Btrfs support (detection and UUID).
24367
24368 * grub-core/fs/btrfs.c: New file.
24369 * Makefile.util.def (library): Register btrfs.c.
24370 * grub-core/Makefile.core.def: Likewise.
24371
6b8e78ae
RM
243722010-09-08 Robert Millan <rmh@gnu.org>
24373
24374 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24375 with (optional) parameters to specify device and relative path.
24376 * util/grub-install.in: Use is_path_readable_by_grub() to
24377 verify readability of a few critical files.
24378 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24379 verify readability of grub.cfg.new.
24380
27f21a8b
VS
243812010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24382
24383 Split minix.mod into minix.mod and minix2.mod.
24384
24385 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24386 * grub-core/Makefile.core.def (minix2): New module.
24387 * grub-core/fs/minix.c: Use definitions instead of runtime version
24388 checking.
24389 * grub-core/fs/minix2.c: New file.
24390
c0e53ea5
YB
243912010-09-08 Yves Blusseau <blusseau@zetam.org>
24392
24393 Add new --boot-directory option to replace --root-directory
24394
24395 * util/grub-install.in: Add new --boot-directory option
24396 * util/grub-reboot.in: Likewise.
24397 * util/grub-set-default.in: Likewise.
24398
b9fe6ea2
YB
243992010-09-08 Yves Blusseau <blusseau@zetam.org>
24400
24401 * util/grub-mkconfig.in: Use new variable.
24402
d87aedff
YB
244032010-09-08 Yves Blusseau <blusseau@zetam.org>
24404
24405 * configure.ac: Define some useful variables.
24406
e55e8495
VS
244072010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24408
24409 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24410 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24411 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24412 Use terminfo and don't use cursor-on/cursor-off unless it's known
24413 to work.
24414 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24415 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24416
6fa6d675
CW
244172010-09-08 Colin Watson <cjwatson@ubuntu.com>
24418
24419 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24420 starts with "(,", fill the drive containing the loaded image in
24421 between those two characters, but expect that a full partition
24422 specification including partition map names will follow.
24423
92f2aef0
RM
244242010-09-08 Robert Millan <rmh@gnu.org>
24425
24426 * configure.ac: Remove `--enable-grub-fstest' option.
24427 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24428
24429 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24430 `grub-fstest' instead of `grub-probe' for readability verification.
24431 * util/grub-probe.c (probe): Remove readability verification kludge.
24432
99fd620d
RM
244332010-09-08 Robert Millan <rmh@gnu.org>
24434
24435 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24436 initializing `GRUB_FS'.
24437
058e30ac 244382010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24439
24440 Not command (!) support to GRUB script.
24441
24442 * tests/grub_script_not.in: New test.
24443 * Makefile.util.def: Rules for new test.
24444
24445 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24446 ! command as a special case.
24447 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24448
b61d05ed 244492010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24450
058e30ac 24451 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24452 grub_free.
b61d05ed 24453
4d69c786 244542010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24455
24456 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24457
aa3119c4 244582010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24459
24460 * docs/grub.texi (Shell-like scripting): Documentation for break,
24461 continue, shift and return commands.
24462
db0f7e3d
VS
244632010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24464
24465 Rename CD-ROM to cd on BIOS.
24466
24467 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24468 "cd".
24469 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24470
88b87c93
VS
244712010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24472
24473 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24474 * util/grub-probe.c (main): Likewise.
24475 * util/i386/pc/grub-setup.c (main): Likewise.
24476 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24477 Reported and debugged by: alexxy
24478
294f324d
VS
244792010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24480
24481 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24482 diagnostic info.
24483
d7ee3441
JS
244842010-09-05 Jo Shields <directhex@apebox.org>
24485
24486 * util/grub.d/30_os-prober.in: Add missing classes.
24487
d7e06c1f
VS
244882010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24489
24490 * docs/grub.texi (Theme file format): Document new position format.
24491
fc157e53
VS
244922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24493
24494 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24495 a table. Use @code instead of @verbatim.
24496
506e9a1c
CB
244972010-09-05 Colin D Bennett <colin@gibibit.com>
24498
24499 Gfxmenu documentation.
24500
24501 * docs/grub.texi (Theme file format): New chapter.
24502
f0aff67c
SJ
245032010-09-05 Szymon Janc <szymon@janc.net.pl>
24504
24505 * grub-core/Makefile.core.def (xzio): New module.
24506 * grub-core/io/xzio.c: New file.
24507 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24508 * grub-core/lib/xzembed/xz_config.h: Likewise.
24509 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24510 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24511 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24512 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24513 * grub-core/lib/xzembed/xz_private.h: Likewise.
24514 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24515 * include/grub/file.h (grub_file_filter_id): New compression filter
24516 GRUB_FILE_FILTER_XZIO.
24517
82a85062
VS
245182010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24519
24520 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24521 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24522 size.
24523
3579415d
VS
245242010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24525
24526 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24527 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24528
5124ae6d
VS
245292010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24530
24531 Uncompressed checksum support.
24532
24533 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24534 (check_list): New parameter uncompress.
24535 (grub_cmd_hashsum): Handle --uncompress.
24536
9aadb3d1
VS
245372010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24538
24539 Reintroduce testload.
24540
24541 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24542 from here ...
24543 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24544 (GRUB_MOD_INIT): New function.
24545 (GRUB_MOD_FINI): Likewise.
24546 * grub-core/Makefile.core.def (testload): New module.
24547
a17792c3
SJ
245482010-09-05 Szymon Janc <szymon@janc.net.pl>
24549
24550 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24551 (uint8_t): New type.
24552 (uint16_t): Likewise.
24553 (uint32_t): Likewise.
24554 (uint64_t): Likewise.
24555
b81e40a3
SJ
245562010-09-05 Szymon Janc <szymon@janc.net.pl>
24557
24558 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24559
fc2ef117
VS
245602010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24561
24562 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24563 Made static.
24564 (grub_gzfile_open): Removed. All users updated.
24565 (GRUB_MOD_INIT): New function.
24566 (GRUB_MOD_FINI): Likewise.
24567 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24568 (grub_file_filters_enabled): Likewise.
24569 (grub_file_open): Handle filters.
24570 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24571 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24572 * include/grub/file.h (grub_file_filter_id_t): New type.
24573 (grub_file_filter_t): Likewise.
24574 (grub_file_filters_all): New extern variable.
24575 (grub_file_filters_enabled): Likewise.
24576 (grub_file_filter_register): New inline function.
24577 (grub_file_filter_unregister): Likewise.
24578 (grub_file_filter_disable): Likewise.
24579 (grub_file_filter_disable_compression): Likewise.
24580 * include/grub/gzio.h: Removed.
24581
35ee15e0
BC
245822010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24583
24584 Filename expansion support for wildcards in GRUB script.
24585
24586 * tests/grub_script_expansion.in: New test.
24587 * Makefile.util.def: Rule for new test.
24588
24589 * grub-core/commands/wildcard.c: New file, implements filename
24590 expansion support for GRUB script.
24591 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24592 * grub-core/script/argv.c: Cosmetic changes.
24593 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24594 Refactored to perform wildcard expansion on arguments.
24595 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24596 struct.
24597
24598 * tests/util/grub-shell.in: Fix quoting for read input.
24599
5f0c4aca
BC
246002010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24601
24602 Support for updating environment variables with matched substrings
24603 of regexp.
24604
24605 * tests/grub_cmd_regexp.in: New test.
24606 * Makefile.util.def: Rule for new test.
24607
24608 * grub-core/commands/regexp.c: New option -s to update environment
24609 variables with regexp matches.
24610
3759a35f
SJ
246112010-09-04 Szymon Janc <szymon@janc.net.pl>
24612
24613 * include/grub/file.h (grub_file): New member not_easly_seekable.
24614 (grub_file_seekable): New inline function.
24615 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24616 easily seekable.
24617 (grub_gzio_open): Set not_easly_seekable.
24618 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24619 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24620
ed8c6dec
BC
246212010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24622
24623 Support for options to appear multiple times on cmdline.
24624
24625 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24626 * grub-core/commands/extcmd.c: Support for repeatable option.
24627 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24628 repeatable option support.
24629
24630 Refactor menuentry into a regular command.
24631
24632 * grub-core/commands/menuentry.c: New file, menuentry command
24633 implementation.
24634 * grub-core/Makefile.core.def: Rule update for normal.mod.
24635 * grub-core/normal/main.c: Moved menuentry creation to
24636 grub-core/commands/menuentry.c.
24637 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24638 (grub_menu_execute_entry_real): Removed.
24639 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24640 function.
24641 (grub_script_execute_menuentry): Removed.
24642 * grub-core/script/parser.y (menuentry): Removed.
24643 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24644 * grub-core/script/yylex.l (menuentry): Removed.
24645 * include/grub/menu.h (grub_menu_init): New prototype.
24646 (grub_menu_fini): New prototype.
24647 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24648 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24649 (grub_script_execute_sourcecode): New prototype.
24650
dacd0cf0
BC
246512010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24652
24653 "return" command for GRUB script functions.
24654
24655 * tests/grub_script_return.in: New test.
24656 * Makefile.util.def: Rules for new test.
24657
24658 * grub-core/script/execute.c (grub_script_return): New function.
24659 * grub-core/script/main.c: Register/unregister return commaond.
24660 * include/grub/script_sh.h (grub_script_return): New prototype.
24661
52e72f9d
BC
246622010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24663
24664 "setparams" command to update positional parameters.
24665
24666 * tests/grub_script_setparams.in: New test.
24667 * Makefile.util.def: Rules for new test.
24668
24669 * grub-core/script/argv.c (grub_script_argv_make): New function.
24670 * grub-core/script/execute.c (replace_scope): New function.
24671 (grub_script_setparams): New function.
24672 * grub-core/script/lexer.c: Remove unused variables.
24673 * grub-core/script/main.c: Register/unregister setparams command.
24674 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24675 (grub_script_setparams): New prototype.
24676
25b60c91
BC
246772010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24678
24679 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24680 grub_free order.
24681
37e7bf68
BC
246822010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24683
24684 Support for passing block of commands as an argument to extcmds.
24685
24686 * Makefile.util.def: Rules for new test.
24687 * tests/grub_script_blockarg.in: New test.
24688 * grub-core/tests/test_blockarg.c: New file, block argument
24689 command used in the test.
24690
24691 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24692 (grub_register_extcmd_prio): New function prototype.
24693 (grub_extcmd_dispatcher): New function prototype.
24694 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24695 type.
24696 * include/grub/script_sh.h (struct grub_script): New members
24697 `children', `next_siblings' and `refcnt' for block arguments and
24698 reference counting.
24699 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24700 (grub_script_arg): New member `script' for block argument.
24701 (grub_script_argv): New member `script' for block argument.
24702 (grub_parser_param): New member `scripts' for block argument.
24703 (grub_script_mem_free): New extern function prototype.
24704 (grub_script_ref): New function prototype.
24705 (grub_script_unref): New function prototype.
24706
24707 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24708 extcmd form to support block arguments.
24709 * grub-core/script/argv.c: Block arguments support.
24710 * grub-core/script/execute.c: Likewise.
24711 * grub-core/script/lexer.c: Likewise.
24712 * grub-core/script/main.c: Likewise.
24713 * grub-core/script/script.c: Likewise.
24714 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24715 non-terminals.
24716
24717 * grub-core/commands/acpi.c: Update extcmd implementations with
24718 grub_extcmd_context_t.
24719 * grub-core/commands/cat.c: Likewise.
24720 * grub-core/commands/echo.c: Likewise.
24721 * grub-core/commands/extcmd.c: Likewise.
24722 * grub-core/commands/hashsum.c: Likewise.
24723 * grub-core/commands/hdparm.c: Likewise.
24724 * grub-core/commands/help.c: Likewise.
24725 * grub-core/commands/hexdump.c: Likewise.
24726 * grub-core/commands/i386/cpuid.c: Likewise.
24727 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24728 * grub-core/commands/i386/pc/halt.c: Likewise.
24729 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24730 * grub-core/commands/iorw.c: Likewise.
24731 * grub-core/commands/keystatus.c: Likewise.
24732 * grub-core/commands/loadenv.c: Likewise.
24733 * grub-core/commands/ls.c: Likewise.
24734 * grub-core/commands/lspci.c: Likewise.
24735 * grub-core/commands/memrw.c: Likewise.
24736 * grub-core/commands/probe.c: Likewise.
24737 * grub-core/commands/search_wrap.c: Likewise.
24738 * grub-core/commands/setpci.c: Likewise.
24739 * grub-core/commands/sleep.c: Likewise.
24740 * grub-core/disk/loopback.c: Likewise.
24741 * grub-core/hello/hello.c: Likewise.
24742 * grub-core/loader/i386/bsd.c: Likewise.
24743 * grub-core/loader/xnu.c: Likewise.
24744 * grub-core/term/gfxterm.c: Likewise.
24745 * grub-core/term/serial.c: Likewise.
24746 * grub-core/tests/lib/functional_test.c: Likewise.
24747
888d1500
BC
247482010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24749
24750 Multi-line quoted strings support.
24751
24752 * grub-core/script/lexer.c (append_newline): Removed.
24753 (grub_script_lexer_yywrap): Refactored.
24754 (grub_script_lexer_init): Refactored.
24755 * grub-core/script/yylex.l (yywrap): New function.
24756 (grub_lexer_resplit): New function.
24757 (grub_lexer_unput): New function.
24758 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24759 and resplit.
24760 * tests/grub_script_echo1.in: Added few more testcases.
24761
dda060dd
VS
247622010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24763
24764 * grub-core/kern/misc.c: Don't add abort alias in utils.
24765 Reported by: echoline.
24766
6556eba9
BC
247672010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24768
24769 Add missing files into "make dist" tarball for other platforms.
24770
24771 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24772 * conf/Makefile.common (dist_noinst_DATA): New variable.
24773 * conf/Makefile.extra-dist: Added missing make dist files.
24774 * grub-core/Makefile.core.def: Likewise.
24775
c8e7bf5f
VS
247762010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24777
24778 Compress grub_prefix.
24779
24780 * grub-core/boot/i386/pc/lnxboot.S: Use
24781 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24782 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24783 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24784 GRUB_MACHINE_PREFIX_END. All users updated.
24785 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24786 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24787 + 0x40.
24788 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24789 * util/grub-mkimage.c (image_target_desc): Change data_end to
24790 prefix_end. All users updated.
24791
a7c00cdb
VS
247922010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24793
24794 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24795 value.
24796 (grub_openbsd_boot): Likewise.
24797 (grub_netbsd_boot): Likewise.
24798 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24799 (grub_xnu_boot): Likewise.
24800
9f915872
VS
248012010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24802
24803 * configure.ac: Clean LIBS variable after tests.
24804
efa1bee7
CW
248052010-09-02 Colin Watson <cjwatson@ubuntu.com>
24806
24807 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24808
61d720e5
VS
248092010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24810
24811 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24812 echo if libdevmapper will be used.
24813
ef8e0ec8
IT
248142010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24815
24816 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24817 constant for the same file.
24818
03e261d8
VS
248192010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24820
24821 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24822
c2a4eba6
CW
248232010-09-02 Colin Watson <cjwatson@ubuntu.com>
24824
24825 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24826 grub-core/*.pp.
24827
9056cbf3
CW
248282010-09-02 Colin Watson <cjwatson@ubuntu.com>
24829
24830 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24831 required by the boot protocol.
24832
24833 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24834 ebp and edi members.
24835 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24836 state.ebp and state.edi.
24837 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24838 %ebp and %edi according to grub_relocator32_ebp and
24839 grub_relocator32_edi respectively.
24840 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24841 and state.edi.
24842
529cc99a
VS
248432010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24844
24845 Add i386-pc-pxe image target.
24846
24847 * util/grub-mkimage.c (image_target_desc): New enum value
24848 IMAGE_I386_PC_PXE.
24849 (image_targets): New target i386-pc-pxe.
24850 (generate_image): Handle i386-pc-pxe image.
24851
9a093920
VS
248522010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24853
24854 Fix grub_pxe_scan.
24855
24856 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24857 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24858 All users updated.
24859 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24860 (grub_pxe_pxenv): Correct type.
24861
f9cefc4e
CW
248622010-09-01 Colin Watson <cjwatson@ubuntu.com>
24863
24864 * NEWS: Document most of the important changes since 1.98.
24865
4066f57f
CW
248662010-09-01 Colin Watson <cjwatson@ubuntu.com>
24867
24868 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24869 generated manual page) a little.
24870
da2891f9
CW
248712010-09-01 Colin Watson <cjwatson@ubuntu.com>
24872
24873 * docs/grub.texi: Add myself as an author.
24874
ad717fae
VS
248752010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24876
24877 * Makefile.util.def (libgrub.a): Add missing sunpc.
24878 Reported by: Seth Goldberg.
24879
eefe8abd
VS
248802010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24881
24882 Interrupt wrapping and code simplifications.
24883
9494ef9a
VS
24884 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24885 x86_noieee1275 which are functionaly equivalent in this case.
24886 (grub-install): Make source on each platform explicit. Enable on
24887 all noemu.
24888 * gentpl.py (x86_efi_pc): Removed group.
24889 (x86_noefi): Likewise.
24890 (i386_noefi): Likewise.
24891 (x86_noieee1275): Likewise.
24892 (i386_noieee1275): Likewise.
24893 (i386_noefi_noieee1275): Likewise.
24894 (i386_pc_qemu_coreboot): Likewise.
24895 (i386_coreboot_multiboot): Likewise.
24896 (i386_pc_coreboot_multiboot_qemu): Likewise.
24897 (x86_noefi_mips): Likewise.
24898 (noieee1275): Likewise.
24899 (ieee1275_mips): Likewise.
24900 (noemu_noieee1275): Likewise.
24901 (cmos): New group.
24902 (usb): Likewise.
24903 (videoinkernel): Likewise.
24904 (videomodules): Likewise.
eefe8abd 24905 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
24906 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24907 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24908 include/grub/loader.h, include/grub/msdos_partition.h,
24909 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24910 include/grub/machine/console.h, include/grub/machine/vga.h,
24911 include/grub/machine/vbe.h, include/grub/machine/init.h,
24912 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24913 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 24914 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
24915 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24916 * grub-core/Makefile.core.def (kernel): Explicit the source for
24917 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24918 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24919 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24920 Use videoinkernel tag.
24921 (usb): Enable on all usb.
24922 (usbserial_common): Likewise.
24923 (usbserial_pl2303): Likewise.
24924 (usbserial_ftdi): Likewise.
24925 (uhci): Enable on all x86.
24926 (ohci): Enable on all pci.
24927 (cmostest): Enable on all CMOS.
24928 (acpi): Include commands/acpi.c on all platforms.
24929 (halt): Add relevant lib/*/halt.c.
24930 (hdparm): Enable on all pci.
24931 (lspci): Likewise.
24932 (usbtest): Enable on all usb.
24933 (ata): Enable on all pci.
24934 (ata_pthru): Likewise.
24935 (usbms): Enable on all usb.
24936 (usb_keyboard): Likewise.
24937 (font): Use tag videomodules.
24938 (bufio): Likewise.
24939 (datetime): Use tag cmos. Enable on all noemu.
24940 (mmap): Use tags common and x86.
24941 (gfxterm): Use tag videomodules.
24942 (bitmap): Likewise.
24943 (bitmap_scale): Likewise.
24944 (video_fb): Likewise.
24945 (video): Likewise.
24946 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24947 adjust padding accordingly. All users updated.
24948 (grub_ohci_transaction): Fix bad format specification.
24949 (GRUB_MOD_INIT): Add asserts for struct size.
24950 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24951 (grub_alloc_td): Likewise.
24952 (grub_free_queue): Likewise.
24953 (grub_uhci_transfer): Likewise.
24954 (grub_uhci_transaction): Fix bad format specification.
24955 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24956 (grub_usb_bulk_readwrite): Likewise.
24957 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24958 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24959 Made static.
24960 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24961 Made static.
24962 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24963 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24964 Transformed into C.
24965 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24966 Moved from here ...
24967 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24968 ... here. Transformed into C. Made static.
24969 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24970 Moved from here ...
24971 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24972 ... here. Transformed into C. Made static.
24973 * grub-core/kern/i386/pc/startup.S
24974 (grub_biosdisk_check_int13_extensions): Moved from here ...
24975 * grub-core/disk/i386/pc/biosdisk.c
24976 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24977 Made static.
24978 * grub-core/kern/i386/pc/startup.S
24979 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24980 * grub-core/disk/i386/pc/biosdisk.c
24981 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24982 Transformed into C. Made static.
24983 * grub-core/kern/i386/pc/startup.S
24984 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24985 * grub-core/disk/i386/pc/biosdisk.c
24986 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24987 Transformed into C. Made static.
24988 * grub-core/kern/i386/pc/startup.S
24989 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24990 * grub-core/disk/i386/pc/biosdisk.c
24991 (grub_biosdisk_get_diskinfo_standard): ... here.
24992 Transformed into C. Made static.
24993 * grub-core/kern/i386/pc/startup.S
24994 (grub_biosdisk_get_num_floppies): Moved from here ...
24995 * grub-core/disk/i386/pc/biosdisk.c
24996 (grub_biosdisk_get_num_floppies): ... here.
24997 Transformed into C. Made static.
24998 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24999 New function.
25000 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
25001 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
25002 Transformed into C. Made static.
25003 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25004 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25005 Transformed into C. Made static.
25006 * grub-core/kern/i386/ieee1275/init.c: Removed.
25007 * grub-core/kern/i386/misc.S: Likewise.
25008 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25009 Splitted from here ...
25010 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25011 Transformed into C. Made static. All users updated.
25012 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25013 Transformed into C. Made static. All users updated.
25014 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25015 Moved from here...
25016 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25017 Transformed into C. Made static. All users updated.
25018 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25019 Moved from here...
25020 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25021 Transformed into C. Made static. All users updated.
25022 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25023 Removed (replaced by C version).
25024 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25025 Moved from here...
25026 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25027 Transformed into C. Made static.
25028 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25029 Moved from here...
25030 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25031 ... here. Transformed into C.
25032 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25033 Moved from here...
25034 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25035 ... here. Transformed into C.
25036 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25037 Moved from here...
25038 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25039 ... here. Transformed into C. Made static.
25040 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25041 Moved from here...
25042 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25043 ... here. Transformed into C.
21ed554b
VS
25044 * grub-core/kern/i386/pc/startup.S
25045 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25046 * grub-core/video/i386/pc/vbe.c
25047 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
25048 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25049 Moved from here...
25050 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25051 ... here. Transformed into C.
25052 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25053 Moved from here...
25054 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25055 ... here. Transformed into C.
25056 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25057 Moved from here...
25058 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25059 ... here. Transformed into C.
25060 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25061 Moved from here...
25062 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25063 ... here. Transformed into C.
25064 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25065 Moved from here...
25066 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25067 ... here. Transformed into C. Made static.
25068 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25069 Moved from here...
25070 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25071 ... here. Transformed into C. Made static.
25072 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25073 Moved from here...
25074 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25075 ... here. Transformed into C. Made static.
25076 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25077 pxe_rm_entry as third argument.
25078 (grub_bios_interrupt): New function.
25079 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25080 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25081 of calling grub_stop.
25082 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25083 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25084 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25085 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25086 * grub-core/lib/i386/halt.c: Moved from here ...
25087 * grub-core/lib/i386/halt.c: ... here.
25088 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25089 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25090 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25091 grub_stop_floppy.
25092 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25093 * include/grub/i386/coreboot/init.h: Removed.
25094 * include/grub/i386/multiboot/init.h: Likewise.
25095 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25096 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25097 * include/grub/i386/pc/int.h: New file.
25098 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25099 (grub_pxe_scan): Removed.
25100 (grub_pxe_call): Update prototype.
25101 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25102 prototypes.
25103 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25104 * include/grub/i386/qemu/init.h: Removed.
25105 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25106 noreturn.
25107 (grub_halt): Likewise.
25108 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25109 (grub_reboot): Likewise.
25110 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25111 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
25112 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25113
215dd471
RM
251142010-08-30 Robert Millan <rmh@gnu.org>
25115
25116 * NEWS: Document addition of ZFS support in `grub-install' and
25117 `grub-mkconfig'.
25118
ebd65b82
BC
251192010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25120
25121 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25122 dprintf output.
25123
11721d19
VS
251242010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25125
25126 Remove leftover embedding of font objects.
25127
25128 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25129 * util/grub-install.in (font): Removed.
25130 * util/grub-mkimage.c (generate_image): Remove font support. All users
25131 updated.
25132
37837d4e
VS
251332010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25134
25135 Remove leftover embedding of font objects.
25136
25137 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25138 * util/grub-install.in (font): Removed.
25139 * util/grub-mkimage.c (generate_image): Remove font support. All users
25140 updated.
25141
b4c1aae0
VS
251422010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25143
25144 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 25145 Reported by: Ian Turner
b4c1aae0 25146
8920a08d
VS
251472010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25148
25149 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25150 timeout to avoid indefinite boot stalling.
25151
f21db033
VS
251522010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25153
25154 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25155 (grub_env_write_color_highlight): Likewise.
25156
9a9de209
VS
251572010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25158
25159 * grub-core/normal/term.c (print_more): Return to normal and not
25160 to standard state after printing "---MORE---".
25161
3dca01d7
VS
251622010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25163
25164 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25165 Mask out the bit 0x80 since it has other meaning that specifiing color.
25166
0b986c40
VS
251672010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25168
25169 New relocator. Allows for more kernel support and more straightforward
25170 loader writing.
25171
25172 * Makefile.am (BOOTTARGET): New variable.
25173 (QEMU32): Likewise.
25174 (linux.init.x86_64): New target.
25175 (linux.init.i386): Likewise.
25176 (multiboot.elf): Likewise.
25177 (kfreebsd.elf): Likewise.
25178 (kfreebsd.aout): Likewise.
25179 (pc-chainloader.elf): Likewise.
25180 (pc-chainloader.bin): Likewise.
25181 (ntldr.elf): Likewise.
25182 (ntldr.bin): Likewise.
25183 (multiboot2.elf): Likewise.
25184 (kfreebsd.init.x86_64): Likewise.
25185 (kfreebsd.init.i386): Likewise.
25186 (knetbsd.init.i386): Likewise.
25187 (kopenbsd.init.i386): Likewise.
25188 (knetbsd.init.x86_64): Likewise.
25189 (kopenbsd.init.x86_64): Likewise.
25190 (linux-initramfs.i386): Likewise.
25191 (linux-initramfs.x86_64): Likewise.
25192 (kfreebsd-mfsroot.i386.img): Likewise.
25193 (knetbsd.image.i386): Likewise.
25194 (kopenbsd.image.i386): Likewise.
25195 (kopenbsd.image.x86_64): Likewise.
25196 (knetbsd.miniroot-image.i386.img): Likewise.
25197 (kfreebsd-mfsroot.x86_64.img): Likewise.
25198 (knetbsd.image.x86_64): Likewise.
25199 (knetbsd.miniroot-image.x86_64.img): Likewise.
25200 (kfreebsd-mfsroot.i386.gz): Likewise.
25201 (bootcheck-kfreebsd-i386): Likewise.
25202 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25203 (bootcheck-kfreebsd-x86_64): Likewise.
25204 (knetbsd.miniroot-image.i386.gz): Likewise.
25205 (bootcheck-knetbsd-i386): Likewise.
25206 (bootcheck-kopenbsd-i386): Likewise.
25207 (bootcheck-kopenbsd-x86_64): Likewise.
25208 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25209 (bootcheck-knetbsd-x86_64): Likewise.
25210 (bootcheck-linux-i386): Likewise.
25211 (bootcheck-linux-x86_64): Likewise.
25212 (bootcheck-linux16-i386): Likewise.
25213 (bootcheck-linux16-x86_64): Likewise.
25214 (bootcheck-multiboot): Likewise.
25215 (bootcheck-multiboot2): Likewise.
25216 (bootcheck-kfreebsd-aout): Likewise.
25217 (bootcheck-pc-chainloader): Likewise.
25218 (bootcheck-ntldr): Likewise.
25219 (CLEANFILES): Add new targets.
25220 (BOOTCHECKS): New variable.
25221 (.PHONY): Add bootchecks.
25222 (SUCCESSFUL_BOOT_STRING): New variable.
25223 (BOOTCHECK_TIMEOUT): Likewise.
25224 (bootcheck): New target
25225 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25226 * configure.ac: Correct efiemu excuse.
25227 * docs/grub.texi (Supported kernels): New chapter.
25228 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25229 include/grub/mm_private.h. Simplify inclusion of
25230 include/grub/boot.h, include/grub/loader.h
25231 and include/grub/msdos_partition.h
25232 (KERNEL_HEADER_FILES) [i386_coreboot]:
25233 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25234 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25235 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25236 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25237 include/grub/machine/loader.h.
25238 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25239 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25240 extra_dist.
25241 (pci.mod): Enable on i386-multiboot.
25242 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25243 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25244 i386-qemu.
25245 (relocator.mod): Rewritten.
25246 (aout.mod): Enable on all x86.
25247 (bsd.mod): Likewise.
25248 (ntldr.mod): New module.
25249 (linux.mod): Use loader/i386/linux.c on all x86.
25250 (xnu.mod): Enable on all x86.
25251 (vga_text.mod): disable on EFI and QEMU.
25252 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25253 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25254 * grub-core/efiemu/loadcore.c: Likewise.
25255 * grub-core/efiemu/main.c: Likewise.
25256 (grub_efiemu_exit_boot_services): Removed.
25257 (grub_efiemu_finish_boot_services): Likewise.
25258 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25259 function.
25260 * grub-core/efiemu/i386/nocfgtables.c: New file.
25261 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25262 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25263 (grub_efi_finish_boot_services): Moved from here ...
25264 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25265 Fille finish memory map and related data.
25266 (finish_mmap_buf): New variable.
25267 (grub_efi_uintn_t finish_mmap_size): Likewise.
25268 (grub_efi_uintn_t finish_key): Likewise.
25269 (grub_efi_uintn_t finish_desc_size): Likewise.
25270 (grub_efi_uint32_t finish_desc_version): Likewise.
25271 (grub_efi_is_finished): Likewise.
25272 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25273 finished.
25274 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25275 (grub_elf64_phdr_iterate): Likewise.
25276 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25277 (grub_os_area_size): Likewise.
25278 (grub_machine_init): Don't reserve os area.
25279 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25280 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25281 * grub-core/kern/i386/loader.S: Removed.
25282 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25283 (grub_os_area_size): Likewise.
25284 (grub_machine_init): Don't reserve os area.
25285 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25286 Don't call grub_dl_unload_all.
25287 Don't include loader.S.
25288 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25289 Declare the memory after _end as available.
25290 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 25291 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 25292 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
25293 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25294 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25295 * include/grub/mm_private.h (grub_mm_header): ... here.
25296 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25297 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
25298 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25299 (grub_mm_region): ..here. Removed addr. Added pre_size.
25300 All users updated.
25301 * grub-core/kern/mm.c (base): Renamed to ...
25302 (grub_mm_base): ... this. Made global.
25303 (grub_real_malloc): Alloc from end of region.
25304 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25305 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25306 * grub-core/kern/powerpc/cache_flush.S: ... here.
25307 * grub-core/lib/efi/relocator.c: New file.
25308 * grub-core/lib/i386/relocator.c: Rewritten.
25309 * grub-core/lib/i386/relocator16.S: New file.
25310 * grub-core/lib/i386/relocator32.S: Likewise.
25311 * grub-core/lib/i386/relocator64.S: Likewise.
25312 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25313 * grub-core/lib/i386/relocator_common.S: New file.
25314 * grub-core/lib/ieee1275/relocator.c: Likewise.
25315 * grub-core/lib/mips/relocator.c: Rewritten.
25316 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25317 stylistic adjustments.
25318 * grub-core/lib/powerpc/relocator.c: New file.
25319 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25320 * grub-core/lib/relocator.c: Rewritten.
25321 * grub-core/lib/x86_64/relocator_asm.S: New file.
25322 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25323 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25324 (bsd_tag): New struct.
25325 (tags): New variable.
25326 (tags_last): Likewise.
25327 (netbsd_module): New struct.
25328 (netbsd_mods): New variable.
25329 (netbsd_mods_last): Likewise.
25330 (openbsd_opts): New parameter "serial".
25331 (OPENBSD_SERIAL_ARG): New definition.
25332 (netbsd_opts): New parameter "serial".
25333 (NETBSD_SERIAL_ARG): New definition.
25334 (grub_freebsd_add_meta): Reorganised into ...
25335 (grub_bsd_add_meta): ...this. All users updated.
25336 (grub_freebsd_add_mmap): Reorganised into ...
25337 (generate_e820_mmap): ...this...
25338 (grub_bsd_add_mmap): ...and this. All users updated.
25339 (grub_freebsd_list_modules): Use tags.
25340 (grub_netbsd_add_meta_module): New function.
25341 (grub_netbsd_list_modules): Likewise.
25342 (grub_freebsd_boot): Use relocator and finish EFI.
25343 (grub_openbsd_boot): Likewise.
25344 (grub_netbsd_setup_video): New function.
25345 (grub_netbsd_add_modules): Likewise.
25346 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25347 and finish EFI.
25348 (grub_bsd_unload): Unload tags.
25349 (grub_bsd_load_aout): Use relocator.
25350 (grub_bsd_elf32_size_hook): New function.
25351 (grub_bsd_elf32_hook): Use relocator.
25352 (grub_bsd_elf64_size_hook): New function.
25353 (grub_bsd_elf64_hook): Use relocator.
25354 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25355 (grub_bsd_load): Zero-out openbsd_ramdisk.
25356 (grub_bsd_load): Use relocator.
25357 (grub_cmd_openbsd): Support serial.
25358 (grub_cmd_netbsd): Support modules.
25359 (grub_cmd_freebsd_module): Use relocator.
25360 (grub_netbsd_module_load): New function.
25361 (grub_cmd_netbsd_module): Likewise.
25362 (grub_cmd_openbsd_ramdisk): Likewise.
25363 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25364 kopenbsd_ramdisk.
25365 (GRUB_MOD_FINI): Unregister new commands.
25366 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25367 (grub_freebsd_load_elfmodule_obj): Use relocator.
25368 (grub_freebsd_load_elfmodule): Likewise.
25369 (grub_freebsd_load_elf_meta): Likewise.
25370 (grub_netbsd_load_elf_meta): New function.
25371 (grub_openbsd_find_ramdisk): Likewise.
25372 * grub-core/loader/i386/bsd_helper.S: Removed.
25373 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25374 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25375 * grub-core/loader/i386/efi/linux.c: Likewise.
25376 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25377 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25378 (DEFAULT_VIDEO_MODE): Likewise.
25379 (real_mode_target): New variable.
25380 (prot_mode_target): Likewise.
25381 (initrd_mem_target): Likewise.
25382 (relocator): Likewise.
25383 (efi_mmap_buf): Likewise.
25384 (efi_mmap_size): Likewise.
25385 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25386 (free_pages): Use relocator.
25387 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25388 (grub_linux_setup_video): Return error.
25389 (grub_linux_trampoline_start): Removed.
25390 (grub_linux_trampoline_end): Likewise.
25391 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25392 andd video parameters depending on firmware.
25393 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25394 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25395 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25396 (grub_cmd_initrd): Use relocator.
25397 * grub-core/loader/i386/linux_trampoline.S: Removed.
25398 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25399 (elf_sec_entsize): Likewise.
25400 (elf_sec_shstrndx): Likewise.
25401 (elf_sections): Likewise.
25402 (grub_multiboot_load): Use relocator.
25403 (grub_multiboot_get_mbi_size): Account for sections.
25404 (grub_multiboot_make_mbi): Use relocator and support sections.
25405 (grub_multiboot_add_elfsyms): New function.
25406 (grub_multiboot_free_mbi): Free sections.
25407 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25408 (grub_linux_real_target): Likewise.
25409 (grub_linux_real_chunk): Likewise.
25410 (grub_linux16_prot_size): Likewise.
25411 (grub_linux16_boot): Use relocator.
25412 (grub_linux_unload): Unload relocator.
25413 (grub_cmd_linux): Use relocator.
25414 (grub_cmd_initrd): Likewise.
25415 * grub-core/loader/i386/pc/ntldr.c: New file.
25416 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25417 Don't try to guess CPU frequency.
25418 (grub_xnu_set_video): Stretch bitmap.
25419 (grub_xnu_boot): Use relocator.
25420 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25421 (grub_linux_unload): Free relocator.
25422 (grub_linux_load32): Use relocator.
25423 (grub_linux_load64): Likewise.
25424 (grub_cmd_initrd): Likewise.
25425 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25426 (grub_multiboot_unload): Unload relocator.
25427 (grub_cmd_multiboot): Use relocator.
25428 (grub_cmd_module): Likewise.
25429 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25430 Use relocator and support sections.
25431 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25432 (elf_sec_entsize): Likewise.
25433 (elf_sec_shstrndx): Likewise.
25434 (elf_sections): Likewise.
25435 (grub_multiboot_load): Use relocator.
25436 (grub_multiboot_get_mbi_size): Account for sections.
25437 (grub_multiboot_make_mbi): Use relocator and support sections.
25438 (grub_multiboot_add_elfsyms): New function.
25439 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25440 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25441 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25442 Prototype changed. All users updated.
25443 (grub_xnu_align_heap): Simplified.
25444 (grub_xnu_writetree_toheap): Likewise.
25445 (grub_xnu_unload): Unload relocator.
25446 (grub_cmd_xnu_kernel): Use relocator.
25447 (grub_cmd_xnu_kernel64): Likewise.
25448 (grub_xnu_register_memory): Simplified.
25449 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
25450 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25451 EFI is finished.
25452 (grub_console_checkkey): Likewise.
25453 (grub_console_getkey): Likewise.
25454 (grub_console_getwh): Likewise.
25455 (grub_console_getxy): Likewise.
25456 (grub_console_gotoxy): Likewise.
25457 (grub_console_cls): Likewise.
25458 (grub_console_setcolorstate): Likewise.
25459 (grub_console_setcursor): Likewise.
25460 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25461 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25462 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25463 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25464 * grub-core/tests/boot/kernel-8086.S: Likewise.
25465 * grub-core/tests/boot/kernel-i386.S: Likewise.
25466 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25467 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25468 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25469 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25470 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25471 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25472 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25473 * grub-core/tests/boot/linux.cfg: Likewise.
25474 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25475 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25476 * grub-core/tests/boot/linux16.cfg: Likewise.
25477 * grub-core/tests/boot/multiboot.cfg: Likewise.
25478 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25479 * grub-core/tests/boot/ntldr.cfg: Likewise.
25480 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25481 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25482 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25483 New definition.
25484 * include/grub/dl.h (grub_dl_unload_all): Removed.
25485 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25486 (grub_efi_finish_boot_services): Change prototype.
25487 (grub_efi_is_finished): New variable.
25488 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25489 Changed prototype.
25490 (grub_efiemu_finish_boot_services): Removed.
25491 (grub_machine_efiemu_init_tables): New prototype.
25492 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25493 (grub_elf64_phdr_iterate): Likewise.
25494 * include/grub/i386/bsd.h: Include relocator.h.
25495 (freebsd_tag_header): New struct.
25496 (grub_openbsd_bios_mmap): Removed.
25497 (grub_unix_real_boot): Removed.
25498 (grub_freebsd_load_elfmodule32): Changed prototype.
25499 (grub_freebsd_load_elfmodule_obj64): Likewise.
25500 (grub_freebsd_load_elf_meta32): Likewise.
25501 (grub_freebsd_load_elf_meta64): Likewise.
25502 (grub_freebsd_add_meta): Removed.
25503 (grub_netbsd_load_elf_meta32): New prototype.
25504 (grub_netbsd_load_elf_meta64): Likewise.
25505 (grub_bsd_add_meta): Likewise.
25506 (grub_openbsd_ramdisk_descriptor): New struct.
25507 (grub_openbsd_find_ramdisk32): New prototype.
25508 (grub_openbsd_find_ramdisk64): Likewise.
25509 * include/grub/i386/coreboot/loader.h: Removed.
25510 * include/grub/i386/efi/loader.h: Likewise.
25511 * include/grub/i386/ieee1275/loader.h: Likewise.
25512 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25513 to grub_uint32_t.
25514 * include/grub/i386/loader.h: Removed.
25515 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25516 value.
25517 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25518 (grub_phys_addr_t): New type.
25519 (grub_vtop): New inline function.
25520 (grub_map_memory): Likewise.
25521 (grub_unmap_memory): Likewise.
25522 * include/grub/i386/multiboot/loader.h: Removed.
25523 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25524 (NETBSD_BTINFO_CONSOLE): New definition.
25525 (NETBSD_BTINFO_SYMTAB): Likewise.
25526 (NETBSD_BTINFO_MODULES): Likewise.
25527 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25528 (grub_netbsd_bootinfo): New struct.
25529 (grub_netbsd_btinfo_common): Use explicit bitsize.
25530 (grub_netbsd_btinfo_mmap_entry): Removed.
25531 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25532 (grub_netbsd_btinfo_bootdisk): New struct.
25533 (grub_netbsd_btinfo_symtab): Likewise.
25534 (grub_netbsd_btinfo_serial): Likewise.
25535 (grub_netbsd_btinfo_modules): Likewise.
25536 (grub_netbsd_btinfo_framebuf): Likewise.
25537 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25538 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25539 Likewise.
25540 (grub_openbsd_bootargs): Use explicit bitsize.
25541 (grub_openbsd_bootarg_console): New struct.
25542 (GRUB_OPENBSD_COM_MAJOR): New definition.
25543 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25544 * include/grub/i386/pc/efiemu.h: Removed.
25545 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25546 * include/grub/i386/qemu/loader.h: Removed.
25547 * include/grub/i386/relocator.h: Rewritten.
25548 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25549 * include/grub/mips/memory.h: New file.
25550 * include/grub/mips/multiboot.h: Rewritten.
25551 * include/grub/mips/relocator.h: Rewritten.
25552 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25553 (grub_vtop): New function.
25554 (grub_map_memory): Likewise.
25555 (grub_unmap_memory): Likewise.
25556 * include/grub/misc.h (ALIGN_DOWN): New definition.
25557 * include/grub/mm.h (grub_mm_check_real): New proto.
25558 (GRUB_MM_CHECK): New definition.
25559 * include/grub/mm_private.h: New file.
25560 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25561 (grub_multiboot_get_mbi_size): Removed.
25562 (grub_multiboot_make_mbi): Change prottype.
25563 (grub_multiboot_set_accepts_video): New proto.
25564 (grub_multiboot_add_elfsyms): Likewise.
25565 (grub_multiboot_payload_eip): New variable.
25566 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25567 New prototype.
25568 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25569 New definition.
25570 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25571 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25572 * include/grub/powerpc/ieee1275/loader.h: Removed.
25573 * include/grub/powerpc/memory.h: New file.
25574 * include/grub/powerpc/relocator.h: Likewise.
25575 * include/grub/relocator.h: Likewise.
25576 * include/grub/relocator_private.h: Likewise.
25577 * include/grub/sparc64/ieee1275/loader.h: Removed.
25578 * include/grub/x86_64/memory.h: New file.
25579 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25580 (grub_xnu_heap_malloc): Likewise.
25581 (grub_xnu_heap_real_start): Removed.
25582 (grub_xnu_heap_start): Likewise.
25583 (grub_xnu_relocator): New variable.
25584 (grub_xnu_heap_target_start): Likewise.
25585 * tests/util/grub-shell.in: Support non-pc.
25586 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 25587
5303b85d
VS
255882010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25589
25590 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25591 on malloc error.
25592 (grub_bidi_logical_to_visual): Check that malloc succeded.
25593 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25594 puts.
25595 (grub_xputs_normal): Likewise.
25596
d768d159
VS
255972010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25598
25599 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25600 extra_dist.
25601
256022010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25603
25604 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25605
5bf84df4
VS
256062010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25607
25608 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25609
3626810e
VS
256102010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25611
25612 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25613 dprintf.
25614
a7363f53
BC
256152010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25616
25617 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25618
902f75f6
VS
256192010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25620
25621 * grub-core/normal/term.c (print_more): Fix a memory leak.
25622 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25623 (grub_xputs_normal): Likewise.
25624
3c707967
VS
256252010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25626
25627 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25628 the begining of the string
25629
2053cc07
VS
256302010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25631
25632 * grub-core/script/script.c (grub_script_parse): Free parsed on
25633 failure.
25634
46422ebf
VS
256352010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25638 on failure.
25639
9e0fa3f6
VS
256402010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25641
25642 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25643 return.
25644
3393cf16
VS
256452010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25646
25647 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25648 (scroll_up): Fix a memory leak.
25649
b17540cb
VS
256502010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25651
25652 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25653 errors.
25654
67140446
VS
256552010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25656
25657 Handle USB pendrives exposed as floppies.
25658
25659 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25660 floppy.
25661 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25662 Check for partitions on all devices.
25663
e35e46fc
VS
256642010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25665
25666 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25667 (readkey): Likewise.
25668
d24c6190
BC
256692010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25670
25671 Multiple variable names support to "export" command.
25672
25673 * normal/context.c (grub_cmd_export): "export" command supports
25674 multiple variable names.
25675
04ddcc6a
ST
256762010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25677
25678 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25679 --target=drive output to Mach device name.
25680
0c8b61d8
BC
256812010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25682
25683 New Automake based build system for GRUB.
25684
25685 * ABOUT-NLS: New file.
25686 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25687 in Makefile.util.def file.
25688 * Makefile.util.def: New file. Autogen build definitions file for
25689 GRUB host utils.
25690 * conf/Makefile.common: New file. Common variables for GRUB host
25691 utils and target modules.
25692 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25693 * docs/Makefile.am: New file. Automake file for docs.
25694 * gentpl.py: New file. Python script to generate Autogen
25695 template.
25696 * grub-core/Makefile.am: New file. GRUB target modules' rules
25697 that doesn't fit in Makefile.core.def file.
25698 * grub-core/Makefile.core.def: New file. Autogen build
25699 definitions file for GRUB target modules.
25700 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25701 specific setjmp.S file.
25702 * po/Makefile.am: New file.
25703
25704 * .bzrignore: New ignores.
25705 * INSTALL: New requirements, without Ruby.
25706 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25707 * autogen.sh: Updated to invoke autogen as necessary.
25708 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25709 and defines for Automake conditionals.
25710 * geninit.sh: Refactoring.
25711
25712 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25713 necessary.
25714 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25715 New prototype.
25716
25717 * include/grub/test.h: Fix functional test modules' naming.
25718 * grub-core/tests/example_functional_test.c: Fix test module name.
25719
25720 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25721 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25722 * util/grub-editenv.c: Likewise.
25723 * util/grub-fstest.c: Likewise.
25724 * util/grub-mkdevicemap.c: Likewise.
25725 * util/grub-mkfont.c: Likewise.
25726 * util/grub-mkimage.c: Likewise.
25727 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25728 * util/grub-probe.c: Likewise.
25729 * util/grub-script-check.c: Likewise.
25730 * util/i386/pc/grub-setup.c: Likewise.
25731 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25732
25733 * tests/util/grub-shell.in: Fix override directory path.
25734 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25735 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25736
25737 * util/lvm.c: Update #includes.
25738 * util/raid.c: Likewise.
25739 * util/resolve.c: Likewise.
25740 * grub-core/bus/emu/pci.c: Likewise.
25741 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25742 * grub-core/lib/posix_wrap/string.h: Likewise.
25743 * grub-core/kern/emu/main.c: Likewise.
25744
25745 * grub-core/gensymlist.sh: New file. Script for generating kernel
25746 symbols file.
25747 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25748
25749 * grub-core/gentrigtables.c: Fix unused variable warnings.
25750
25751 * Makefile.in: Removed.
25752 * conf/any-emu.rmk: Removed.
25753 * conf/common.rmk: Removed.
25754 * conf/i386-coreboot.rmk: Removed.
25755 * conf/i386-efi.rmk: Removed.
25756 * conf/i386-ieee1275.rmk: Removed.
25757 * conf/i386-multiboot.rmk: Removed.
25758 * conf/i386-pc.rmk: Removed.
25759 * conf/i386-qemu.rmk: Removed.
25760 * conf/i386.rmk: Removed.
25761 * conf/mips-yeeloong.rmk: Removed.
25762 * conf/mips.rmk: Removed.
25763 * conf/powerpc-ieee1275.rmk: Removed.
25764 * conf/sparc64-ieee1275.rmk: Removed.
25765 * conf/tests.rmk: Removed.
25766 * conf/x86-efi.rmk: Removed.
25767 * conf/x86_64-efi.rmk: Removed.
25768 * gendistlist.sh: Removed.
25769 * geninitheader.sh: Removed.
25770 * genkernsyms.sh.in: Removed.
25771 * genmk.rb: Removed.
25772 * gensymlist.sh.in: Removed.
25773 * mkinstalldirs: Removed.
25774 * boot: Moved ...
25775 * grub-core/boot: ... to here.
25776 * bus: Moved ...
25777 * grub-core/bus: ... to here.
25778 * commands: Moved ...
25779 * grub-core/commands: ... to here.
25780 * disk: Moved ...
25781 * grub-core/disk: ... to here.
25782 * efiemu: Moved ...
25783 * grub-core/efiemu: ... to here.
25784 * font: Moved ...
25785 * grub-core/font: ... to here.
25786 * fs: Moved ...
25787 * grub-core/fs: ... to here.
25788 * gencmdlist.sh: Moved ...
25789 * grub-core/gencmdlist.sh: ... to here.
25790 * genemuinit.sh: Moved ...
25791 * grub-core/genemuinit.sh: ... to here.
25792 * genemuinitheader.sh: Moved ...
25793 * grub-core/genemuinitheader.sh: ... to here.
25794 * genfslist.sh: Moved ...
25795 * grub-core/genfslist.sh: ... to here.
25796 * genhandlerlist.sh: Moved ...
25797 * grub-core/genhandlerlist.sh: ... to here.
25798 * genmoddep.awk: Moved ...
25799 * grub-core/genmoddep.awk: ... to here.
25800 * genmodsrc.sh: Moved ...
25801 * grub-core/genmodsrc.sh: ... to here.
25802 * genpartmaplist.sh: Moved ...
25803 * grub-core/genpartmaplist.sh: ... to here.
25804 * genparttoollist.sh: Moved ...
25805 * grub-core/genparttoollist.sh: ... to here.
25806 * genterminallist.sh: Moved ...
25807 * grub-core/genterminallist.sh: ... to here.
25808 * gentrigtables.c: Moved ...
25809 * grub-core/gentrigtables.c: ... to here.
25810 * genvideolist.sh: Moved ...
25811 * grub-core/genvideolist.sh: ... to here.
25812 * gettext: Moved ...
25813 * grub-core/gettext: ... to here.
25814 * gfxmenu: Moved ...
25815 * grub-core/gfxmenu: ... to here.
25816 * gnulib: Moved ...
25817 * grub-core/gnulib: ... to here.
25818 * hello: Moved ...
25819 * grub-core/hello: ... to here.
25820 * hook: Moved ...
25821 * grub-core/hook: ... to here.
25822 * io: Moved ...
25823 * grub-core/io: ... to here.
25824 * kern: Moved ...
25825 * grub-core/kern: ... to here.
25826 * lib: Moved ...
25827 * grub-core/lib: ... to here.
25828 * loader: Moved ...
25829 * grub-core/loader: ... to here.
25830 * mmap: Moved ...
25831 * grub-core/mmap: ... to here.
25832 * normal: Moved ...
25833 * grub-core/normal: ... to here.
25834 * partmap: Moved ...
25835 * grub-core/partmap: ... to here.
25836 * parttool: Moved ...
25837 * grub-core/parttool: ... to here.
25838 * script: Moved ...
25839 * grub-core/script: ... to here.
25840 * term: Moved ...
25841 * grub-core/term: ... to here
25842 * tests/example_functional_test.c: Moved ...
25843 * grub-core/tests/example_functional_test.c: ... to here.
25844 * tests/lib/functional_test.c: Moved ...
25845 * grub-core/tests/lib/functional_test.c: ... to here.
25846 * tests/lib/test.c: Moved ...
25847 * grub-core/tests/lib/test.c: ... to here.
25848 * video: Moved ...
25849 * grub-core/video: ... to here.
25850
645586e6
BC
258512010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25852
25853 Replace --enable-grub-emu-modules with grub-emu-lite.
25854
25855 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25856 cache.S.
25857
25858 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25859 * kern/emu/full.c: New file. For grub-emu specific initialization.
25860 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25861 * kern/emu/main.c: Call initialization function grub_emu_init.
25862
25863 * Makefile.in: Include grub-emu-lite in install.
25864 * commands/parttool.c: Use grub_no_autoload to differentiate
25865 between grub-emu and grub-emu-lite.
25866 * include/grub/misc.h: New variable grub_no_autoload.
25867
25868 * conf/any-emu.rmk: New rules for grub-emu-lite.
25869 * configure.ac: Remove --enable-grub-emu-modules.
25870 * genmk.rb: Cleanup unnecessary rules.
25871 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25872
25873 * normal/main.c: Don't load list files on grub-emu-lite.
25874 * util/misc.c (grub_arch_sync_caches): Removed.
25875
f86a4030
CW
258762010-08-23 Colin Watson <cjwatson@ubuntu.com>
25877
25878 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25879 grub-mkimage rather than grub-mkelfimage.
25880 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25881
06776944
VS
258822010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25883
25884 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25885 a key after CapsLock or NumLock. It's just a qemu bug.
25886
df262419
VS
258872010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25888
25889 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25890 needed by libusb wrapper.
25891
b40ea81b
ST
258922010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25893
25894 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25895
dee50575
VS
258962010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25897
25898 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25899 --nounzip is passed.
25900
fb1d7b79
VS
259012010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25902
25903 USB hotunplugging and USB serial support.
25904
25905 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25906 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25907 (grub_uhci_transfer): Respect timeout and set *actual.
25908 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25909 non-standard length.
25910 (grub_usb_device_attach): Autoload modules.
25911 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25912 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25913 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25914 users updated.
25915 (grub_usb_add_hub): Fill nports and children.
25916 (attach_root_port): Receive hub instead of controller.
25917 All users updated. Fill hub->devices.
25918 (grub_usb_root_hub): Allocate hub->devices.
25919 (detach_device): New function.
25920 (poll_nonroot_hub): Fill children and detach devices.
25921 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25922 actual arguments. All users updated.
25923 (grub_usb_bulk_read_extended): New function.
25924 * bus/usb/serial/common.c: New file.
25925 * bus/usb/serial/ftdi.c: Likewise.
25926 * bus/usb/serial/pl2303.c: Likewise.
25927 * commands/terminal.c (handle_command): Support wildcard.
25928 * commands/usbtest.c: Output "Unknown" instead of empty string.
25929 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25930 (usbserial_common_mod_SOURCES): New variable.
25931 (usbserial_common_mod_CFLAGS): Likewise.
25932 (usbserial_common_mod_LDFLAGS): Likewise.
25933 (pkglib_MODULES): Add usbserial_pl2303.mod.
25934 (usbserial_pl2303_mod_SOURCES): New variable.
25935 (usbserial_pl2303_mod_CFLAGS): Likewise.
25936 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25937 (pkglib_MODULES): Add usbserial_ftdi.mod.
25938 (usbserial_ftdi_mod_SOURCES): New variable.
25939 (usbserial_ftdi_mod_CFLAGS): Likewise.
25940 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25941 (pkglib_MODULES): Add serial.mod.
25942 (serial_mod_SOURCES): New variable.
25943 (serial_mod_CFLAGS): Likewise.
25944 (serial_mod_LDFLAGS): Likewise.
25945 * conf/i386-pc.rmk: Likewise.
25946 * conf/mips-yeeloong.rmk: Likewise.
25947 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25948 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25949 * disk/usbms.c (first_available_slot): New variable.
25950 (grub_usbms_attach): Don't reuse free slots due to potential cache
25951 problems.
25952 * include/grub/serial.h: Moved to ..
25953 * include/grub/ns8250.h: ...this.
25954 * include/grub/serial.h: New file.
25955 * include/grub/term.h (grub_term_poll_usb): New variable.
25956 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25957 readkey. All users updated.
25958 (grub_terminfo_output_state): Pass term to put.
25959 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25960 (grub_usb_controller_dev): Add timeout and actual arguments to
25961 transfer. All users updated.
25962 (grub_usb_interface): New field detach_data.
25963 (grub_usb_device): New fields children and nports.
25964 (grub_usb_ep_type_t): New type.
25965 (grub_usb_get_ep_type): New function.
25966 (grub_usb_bulk_read_extended): Likewise.
25967 * include/grub/usbdesc.h (grub_usb_desc): New type.
25968 * include/grub/usbserial.h: New file.
25969 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25970 * kern/term.c (grub_term_poll_usb): New variable.
25971 (grub_getkey): Call grub_term_poll_usb if set.
25972 (grub_checkkey): Likewise.
25973 (grub_getkeystatus): Likewise.
25974 * term/serial.c: Moved controller-specific parts to ...
25975 * term/ns8250.c: ... here.
25976 * term/serial.c: Mostly rewritten.
25977 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25978 according to spec.
25979
21a313de
RM
259802010-08-20 Robert Millan <rmh@gnu.org>
25981
25982 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25983 a separate module and maybe other interesting combinations.
25984
25985 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25986 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25987 (kfreebsd_entry): Add generic filesystem module load routine.
25988 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25989
63c734a6
CW
259902010-08-20 Colin Watson <cjwatson@ubuntu.com>
25991
25992 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25993 "numcenter" (I misunderstood the purpose of this entry).
25994 * docs/grub.texi (sendkey): Likewise.
25995
c4d16542
CW
259962010-08-20 Colin Watson <cjwatson@ubuntu.com>
25997
25998 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25999 status flag options; simply omitting the option is equivalent and
26000 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
26001 (keysym_table): Rename "num5numlock" to "numlock".
26002 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
26003 can uniformly say that only the last of multiple `sendkey'
26004 invocations has any effect.
26005 * docs/grub.texi (sendkey): New section.
26006
93541d66
CW
260072010-08-19 Colin Watson <cjwatson@ubuntu.com>
26008
26009 * commands/i386/pc/sendkey.c (options): Fix three typos.
26010
b4ece5e1
VS
260112010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
26012
26013 Implement sendkey support.
26014
26015 * commands/i386/pc/sendkey.c: New file.
26016 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26017 (sendkey_mod_SOURCES): New variable.
26018 (sendkey_mod_CFLAGS): Likewise.
26019 (sendkey_mod_LDFLAGS): Likewise.
26020
51f1f5af
CW
260212010-08-18 Colin Watson <cjwatson@ubuntu.com>
26022
26023 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26024 fix warnings from Autoconf.
26025
9da94e05
CW
260262010-08-18 Colin Watson <cjwatson@ubuntu.com>
26027
26028 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26029 to avoid false positives with some assemblers that output things
26030 like "someprefix_func" as part of their output.
26031
729a0f2e
RM
260322010-08-15 Robert Millan <rmh@gnu.org>
26033
26034 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26035 errors.
26036 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26037 grub_get_libzfs_handle() errors.
26038
f3710e08
RM
260392010-08-14 Robert Millan <rmh@gnu.org>
26040
26041 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26042 filesystem is not ZFS.
26043
7a3c13de
BC
260442010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26045
26046 Fix for misspelled color names defaulting to black/black (bug
26047 reported by Doug Nazar)
26048
26049 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26050 status to prototype.
26051 * normal/color.c (grub_parse_color_name_pair): Return failure
26052 status.
26053 (grub_env_write_color_normal): Ignore bad color names.
26054 (grub_env_write_color_highlight): Likewise.
26055 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26056
ab8ba50d
BC
260572010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26058
26059 "shift" command support to GRUB script.
26060
26061 * include/grub/script_sh.h (grub_script_shift): New prototype.
26062 * script/execute.c (grub_script_shift): New function.
26063 * script/main.c (grub_script_init): Register shift command.
26064 (grub_script_fini): Unregister shift command.
26065 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26066
26067 * tests/grub_script_shift.in: New testcase.
26068 * conf/tests.rmk: Rules for new testcase.
26069
4d61999e
BC
260702010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26071
26072 "continue" command support to GRUB script.
26073
26074 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26075 (grub_script_break): Continue support.
26076 * script/main.c (grub_script_init): Register continue command.
26077 (grub_script_fini): Unregister continue command.
26078
26079 * tests/grub_script_continue.in: New testcase.
26080 * conf/tests.rmk: Rules for new testcase.
26081
4df51e00
BC
260822010-08-12 BVK Chaitanya <bvk@dbook>
26083
26084 "break" command support to GRUB script.
26085
26086 * conf/common.rmk: Rule updates to grub-script-check.
26087 * include/grub/misc.h (grub_min): New function.
26088 * include/grub/script_sh.h (grub_script_init): New prototype.
26089 (grub_script_fini): New prototype.
26090 (grub_script_break): New prototype.
26091 * script/main.c (grub_script_init): New function.
26092 (grub_script_fini): New function.
26093 * script/execute.c (grub_script_break): New function.
26094 * normal/main.c: Calls to grub_script_{init,fini}.
26095 * util/grub-script-check.c (grub_script_break): New function.
26096
26097 * tests/grub_script_break.in: New testcase.
26098 * conf/tests.rmk: Rules for new test case.
26099
f12c8420
BC
261002010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26101
26102 Function parameters support to GRUB script.
26103
26104 * script/yylex.l (VARIABLE): Regular expression update.
26105 * script/function.c (grub_script_function_call): Moved ...
26106 * script/execute.c (grub_script_function_call): ... to here.
26107 (grub_script_execute_arglist_to_argv): Removed.
26108 (grub_script_arglist_to_argv): New function.
26109 * script/argv.c: New file.
26110 (grub_script_argv_free): New function.
26111 (grub_script_argv_next): Likewise.
26112 (grub_script_argv_append): Likewise.
26113 (grub_script_argv_split_append): Likewise.
26114 * include/grub/script_sh.h (grub_script_argv): New struct.
26115 (grub_script_argv_free): New function.
26116 (grub_script_argv_next): Likewise.
26117 (grub_script_argv_append): Likewise.
26118 (grub_script_argv_split_append): Likewise.
26119
26120 * conf/common.rmk (normal.mod): New source script/argv.c.
26121
26122 * tests/grub_script_echo1.in: More tests.
26123 * tests/grub_script_vars1.in: Likewise.
26124 * tests/grub_script_functions.in: New test case.
26125 * conf/tests.rmk: Rules for new testcase.
26126
8022b748
BC
261272010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26128
26129 Remove grub_script_cmdblock struct.
26130
26131 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26132 * script/parser.y: Likewise.
26133 * script/execute.c: Rename cmdblock suffix to cmdlist.
26134 * script/script.c: Likewise.
26135 * util/grub-script-check.c: Likewise.
26136
79a6ba61
YB
261372010-08-11 Yves Blusseau <blusseau@zetam.org>
26138
26139 * .bzrignore: add grub-macho2img
26140
d04b9414
VS
261412010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26142
26143 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26144
f947ab49
VS
261452010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26146
26147 Remove the dump of sm712 initialisation sequence.
26148
26149 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26150 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26151 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26152 (GRUB_VGA_CR_*): Added many registers.
26153 (GRUB_VGA_SR_*): Likewise.
26154 (GRUB_VGA_GR_*): Likewise.
26155 (grub_vga_write_arx): New function.
26156 (grub_video_hw_config): New struct.
26157 (grub_vga_set_geometry): New function.
26158 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26159 GRUB_PCI_CLASS_SUBCLASS_VGA.
26160 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26161 * video/sm712.c (grub_sm712_write_reg): New function
26162 (grub_sm712_read_reg): Likewise.
26163 (grub_sm712_sr_write): Likewise.
26164 (grub_sm712_gr_write): Likewise.
26165 (grub_sm712_cr_write): Likewise.
26166 (grub_sm712_write_arx): Likewise.
26167 (grub_sm712_cr_shadow_write): Likewise.
26168 (grub_sm712_write_dda_lookup): Likewise.
26169 (grub_video_sm712_setup): Initialise the video rather then
26170 blindly replay the dump.
26171 (main) [TEST]: Add a routine to be able to compile as standalone for
26172 tests.
26173 * video/sm712_init.c (sm712_init): Removed.
26174 (sm712_sr_seq1): New array.
26175 (sm712_sr_seq2): Likewise.
26176
f0206638
VS
261772010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26178
26179 * include/grub/vga.h: Add missing grub/pci.h include.
26180
2764da3b
YB
261812010-08-10 Yves Blusseau <blusseau@zetam.org>
26182
26183 * util/grub-macho2img.c (main): fix typo
26184
cf0c775e
VS
261852010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26186
26187 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26188 (grub_vga_gr_read): Likewise.
26189 (grub_vga_cr_write): Likewise.
26190 (grub_vga_cr_read): Likewise.
26191 (grub_vga_sr_write): Likewise.
26192 (grub_vga_sr_read): Likewise.
26193 (grub_vga_palette_read): Likewise.
26194 (grub_vga_palette_write): Likewise.
26195 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26196 (grub_sm712_sr_read): New function.
26197 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26198 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26199
07f360e9
RM
262002010-08-09 Robert Millan <rmh@gnu.org>
26201
26202 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26203 out unused variables on non-ZFS build.
26204
346c2072
RM
262052010-08-08 Robert Millan <rmh@gnu.org>
26206
26207 Fix path generation for sub-filesystems in ZFS.
26208
26209 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26210 missing slash.
26211
71175420
RM
262122010-08-08 Robert Millan <rmh@gnu.org>
26213
26214 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26215
0d8286f3
RM
262162010-08-08 Robert Millan <rmh@gnu.org>
26217
26218 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26219 exist, issue a proper error message (rely on `ls' for translated
26220 strings).
26221
55dd2924
RM
262222010-08-08 Robert Millan <rmh@gnu.org>
26223
26224 Fix grub-probe invocation.
26225
26226 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26227
d3dd9e80
RM
262282010-08-04 Robert Millan <rmh@gnu.org>
26229
26230 * configure.ac: Remove checks for getfsstat() and getmntany().
26231 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26232 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26233 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26234 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26235 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26236 function.
26237 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26238 via find_mount_point_from_dir() and getfsstat() / getmntany().
26239
0de22aa9
RM
262402010-08-04 Robert Millan <rmh@gnu.org>
26241
26242 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26243 (grub_find_zpool_from_mount_point): Merge into ...
26244 (grub_find_zpool_from_dir): ... this.
26245 * kern/emu/misc.c: Likewise.
26246
26247 * kern/emu/misc.c
26248 (grub_make_system_path_relative_to_its_root): Replace
26249 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26250 with grub_find_zpool_from_dir().
26251 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26252
62858144
RM
262532010-08-04 Robert Millan <rmh@gnu.org>
26254
26255 Support OpenSolaris in ZFS device resolution.
26256
26257 * configure.ac: Check for getmntany().
26258 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26259 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26260 support.
26261
9dd6fd50
RM
262622010-08-03 Robert Millan <rmh@gnu.org>
26263
26264 Fix grub-emu build.
26265
26266 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26267 * include/grub/emu/misc.h: ... here.
26268
26269 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26270 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26271
26272 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26273 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26274 (grub_get_libzfs_handle): Move to ...
26275 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26276 (grub_get_libzfs_handle): ... here.
26277
c9f7ff97
BC
262782010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26279
26280 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26281 as command name case.
26282
a870a783
CW
262832010-08-02 Colin Watson <cjwatson@ubuntu.com>
26284
26285 * disk/raid.c (insert_array): Select unique numbers for named arrays
26286 as well, for use as keys in the disk cache.
26287
c7db243b
RM
262882010-08-01 Robert Millan <rmh@gnu.org>
26289
26290 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26291 kFreeBSD device name, except on ZFS where the filesystem label is
26292 used.
26293 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26294 `/boot/zfs/zpool.cache'.
26295 Set mountfrom kernel variable using ${kfreebsd_device}.
26296
f7abdefb
RM
262972010-08-01 Robert Millan <rmh@gnu.org>
26298
26299 Make it even harder to use uninitialized `libzfs_handle' (and
26300 make the interface a bit simpler).
26301
26302 * include/grub/util/misc.h (grub_util_init_libzfs)
26303 (libzfs_handle): Remove.
26304 (grub_get_libzfs_handle): New prototype.
26305
26306 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26307 attribute.
26308 (grub_util_init_libzfs): Remove.
26309 (grub_get_libzfs_handle): New function.
26310
26311 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26312 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26313 accessing `libzfs_handle' directly.
26314
c882acc0
RM
263152010-08-01 Robert Millan <rmh@gnu.org>
26316
26317 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26318 (grub_find_zpool_from_mount_point): New function prototypes.
26319
26320 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26321 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26322
26323 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26324 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26325 `static' attribute.
26326
26327 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26328 finding zpool from mount point into ...
26329 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26330
26331 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26332 requested path is part of a ZFS pool, use
26333 grub_find_zpool_from_mount_point() to detect its filesystem name,
26334 and generate a path with `/fsname@path' syntax.
26335
8bfe31d8
CW
263362010-08-01 Colin Watson <cjwatson@ubuntu.com>
26337
26338 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26339 (void) rather than () so that this is a proper prototype.
26340
553df63d
VS
263412010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26342
26343 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26344
8687cf07
VS
263452010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26346
26347 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26348 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26349
ea9be8ea
CW
263502010-08-01 Colin Watson <cjwatson@ubuntu.com>
26351
26352 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26353
6eea041a
CW
263542010-08-01 Colin Watson <cjwatson@ubuntu.com>
26355
26356 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26357
2cfb45df
CW
263582010-08-01 Colin Watson <cjwatson@ubuntu.com>
26359
26360 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26361 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26362 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26363 disable gfxpayload.
26364 (Shell-like scripting): Add real content.
26365 (Serial terminal): Suggest `terminal_input serial; terminal_output
26366 serial' rather than putting the two commands on separate lines,
26367 since console input will be inoperative after the first command.
26368 (menuentry): Document --class, --users, and --hotkey options.
26369 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26370 Vladimir Serbinenko).
26371
7decd202
VS
263722010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
263732010-08-01 Colin Watson <cjwatson@ubuntu.com>
26374
26375 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26376
c882acc0
RM
263772010-08-01 Robert Millan <rmh@gnu.org>
26378
26379 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26380 (grub_find_zpool_from_mount_point): New function prototypes.
26381
26382 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26383 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26384
26385 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26386 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26387 `static' attribute.
26388
26389 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26390 finding zpool from mount point into ...
26391 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26392
26393 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26394 requested path is part of a ZFS pool, use
26395 grub_find_zpool_from_mount_point() to detect its filesystem name,
26396 and generate a path with `/fsname@path' syntax.
26397
deb0caa3
RM
263982010-08-01 Robert Millan <rmh@gnu.org>
26399
26400 Prevent accidental use of uninitialized libzfs_handle.
26401
26402 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26403 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26404 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26405
ce04ef47
CW
264062010-08-01 Colin Watson <cjwatson@ubuntu.com>
26407
26408 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26409 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26410
ebf53056
RM
264112010-08-01 Robert Millan <rmh@gnu.org>
26412
26413 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 26414
3710bb6b
RM
264152010-07-31 Robert Millan <rmh@gnu.org>
26416
26417 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26418
8072efeb
RM
264192010-07-31 Robert Millan <rmh@gnu.org>
26420
26421 * kern/emu/misc.c: Add missing license header.
26422
3169f4c7
RM
264232010-07-31 Robert Millan <rmh@gnu.org>
26424
26425 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26426
26427 * include/grub/util/libnvpair.h: Include `<config.h>'.
26428 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26429 declaring libnvpair prototypes ourselves.
26430 * include/grub/util/libzfs.h: Include `<config.h>'.
26431 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26432 declaring libzfs prototypes ourselves.
26433
26434 (libzfs_handle): Moved to ...
26435 * include/grub/util/misc.h (libzfs_handle): ... here.
26436 Include `<grub/util/libzfs.h>'.
26437
c9a00aee
RM
264382010-07-30 Robert Millan <rmh@gnu.org>
26439
26440 * include/grub/emu/misc.h: Add missing license header.
26441
a184f9c8
RM
264422010-07-30 Robert Millan <rmh@gnu.org>
26443
26444 Enable `grub-probe -t device' resolution on ZFS.
26445
26446 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26447 * include/grub/util/libnvpair.h: New file.
26448 * include/grub/util/libzfs.h: New file.
26449
26450 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26451 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26452 `<grub/util/libnvpair.h>'.
26453 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26454
26455 (find_mount_point_from_dir): New static function.
26456 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26457 function.
26458 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26459 find_root_device_from_libzfs() before ressorting to find_root_device().
26460
26461 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26462 prototype.
26463 * util/misc.c: Include `<grub/util/libzfs.h>'.
26464 (grub_util_init_libzfs): New function.
26465 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26466 [HAVE_LIBZFS] (fini_libzfs): New static function.
26467 (grub_util_init_libzfs): New function.
26468 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26469
f7790cdd
RM
264702010-07-30 Robert Millan <rmh@gnu.org>
26471
26472 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26473 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26474 `warn_unused_result' attribute.
26475 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26476 (grub_xasprintf, grub_xvasprintf): Likewise.
26477 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26478
0806b63c
RM
264792010-07-29 Robert Millan <rmh@gnu.org>
26480
26481 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26482 (probe): Handle `PRINT_FS_LABEL'.
26483 (main): Handle `-t fs_label'.
26484
9f841f5c
RM
264852010-07-29 Robert Millan <rmh@gnu.org>
26486
26487 * configure.ac: Remove grub-mkisofs checks.
26488
46371121
VS
264892010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26490
26491 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26492 Reported by: Lennart Sorensen.
26493
264942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26495
26496 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26497 prior to terminal_input/terminal_output separation. It's been over 1.5
26498 years and those versions weren't widely deployed.
26499
a9600892
CW
265002010-07-22 Colin Watson <cjwatson@ubuntu.com>
26501
26502 * disk/raid.c (insert_array): Don't count named arrays when looking
26503 for unused array numbers.
697e053c 26504 Reported and tested by: Michael Guntsche.
a9600892 26505
c03507df
CW
265062010-07-20 Colin Watson <cjwatson@ubuntu.com>
26507
26508 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26509 implementation of this so that grub-emu links again, with a note
26510 that this should support hotplugging in the future.
26511
b26f1c11
CW
265122010-07-20 Colin Watson <cjwatson@ubuntu.com>
26513
26514 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26515
efc9d7f1
CW
265162010-07-20 Colin Watson <cjwatson@ubuntu.com>
26517
26518 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26519 handle on failure.
26520 (grub_loopback_close): Remove empty function.
26521 (grub_loopback_dev): Remove close method.
26522
dd8ff5c9
CW
265232010-07-20 Colin Watson <cjwatson@ubuntu.com>
26524
26525 Disable EFI cursor when the EFI console becomes inactive.
26526
26527 * term/efi/console.c (grub_efi_console_init): New function.
26528 (grub_efi_console_fini): New function.
26529 (grub_console_term_output): Register init and fini methods.
26530
5e3bec67
VS
265312010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26534 sh script.
26535
afaec079
VS
265362010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26537
26538 * disk/loopback.c (grub_loopback): Replace filename with file.
26539 (delete_loopback): Handle new semantics.
26540 (grub_cmd_loopback): Likewise.
26541 (grub_loopback_iterate): Likewise.
26542 (grub_loopback_close): Likewise.
26543
a6a11f3c
VS
265442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26545
26546 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26547 with -p "".
26548 Reported by: Tito Keitel.
26549
64a638b0
VS
265502010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26551
26552 * docs/grub.texi (Naming convention): Document new naming convention.
26553
ab8ba957
VS
265542010-07-20 Vadim Solomin <vadic052@gmail.com>
265552010-07-20 Colin Watson <cjwatson@ubuntu.com>
26556
26557 Generate device.map in something closer to the old ordering.
26558
26559 * util/deviceiter.c (struct device): New declaration.
26560 (compare_file_names): Rename to ...
26561 (compare_devices): ... this. Sort by kernel name in preference to
26562 the stable by-id name, but keep the latter as a fallback comparison.
26563 Update header comment.
26564 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26565 of `struct device' rather than of plain file names.
26566
a29d6a4b
TF
265672010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26568
26569 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26570 on i386.
26571
39d824e8
VS
265722010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26573
26574 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26575 hardcoding size.
26576 (setv1table): Likewise.
26577
f058276b
FZ
265782010-07-20 Colin Watson <cjwatson@ubuntu.com>
26579
26580 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26581 removing the homehost if present.
26582 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26583 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26584 removing the homehost if present.
26585 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26586 if possible.
26587 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26588
26589 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26590 parameter. Set its pointer target to 0.
26591 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26592 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26593 `data_offset' value from the superblock for 1.x metadata.
26594 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26595 data on the device.
26596 (insert_array): Record the start sector of data on the device.
26597 (grub_raid_register): Pass start_sector parameters to
26598 grub_raid_list->detect and insert_array.
26599 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26600 member.
26601 (struct grub_raid): Add start_sector parameter to `detect'.
26602
26603 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26604 __attribute__ ((packed)), leaving a comment.
26605 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26606 (grub_mdraid_detect_09): ... here and ...
26607 (grub_mdraid_detect_1x): ... here.
26608
266092010-07-20 Peter Henn <peter.henn@web.de>
26610
26611 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26612 chunk size and disk size, which are already given as sector counts
26613 as distinct from the 0.90 units. Fetch the correct device number
26614 from the role table instead of using the table index.
26615
266162010-07-20 Felix Zielcke <fzielcke@z-51.de>
26617
26618 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26619 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26620 (WriteMostly1): New macro.
26621 Set array->name to NULL for metadata format 0.90. Add support for
26622 metadata 1.x. Fix some comments.
26623 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26624 few comments.
26625 * util/getroot.c (grub_util_get_grub_dev): Add support for
26626 /dev/md/name style devices.
26627
4b761da9
CW
266282010-07-20 Colin Watson <cjwatson@ubuntu.com>
26629
26630 * .bzrignore: Ignore 20_linux_xen.
26631
5771289a
CW
266322010-07-17 Colin Watson <cjwatson@ubuntu.com>
26633
26634 * util/import_unicode.py: Remove unnecessary imports.
26635
5dab68df
AN
266362010-07-17 Aleš Nesrsta <starous@volny.cz>
26637
26638 Hotplugging and USB hub support.
26639
26640 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26641 (grub_ohci): Likewise.
26642 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26643 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26644 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26645 (GRUB_OHCI_CTRL_EDS): Likewise.
26646 (GRUB_OHCI_BULK_EDS): Likewise.
26647 (GRUB_OHCI_TDS): Likewise.
26648 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26649 (grub_ohci_ed_phys2virt): New function.
26650 (grub_ohci_virt_to_phys): Likewise.
26651 (grub_ohci_td_phys2virt): Likewise.
26652 (grub_ohci_td_virt2phys): Likewise.
26653 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26654 attachment.
26655 (grub_ohci_find_ed): New function.
26656 (grub_ohci_alloc_td): Likewise.
26657 (grub_ohci_free_td): Likewise.
26658 (grub_ohci_free_tds): Likewise.
26659 (grub_ohci_transfer): Use previously allocated memory.
26660 (grub_ohci_portstatus): Reset status changed bit.
26661 (grub_ohci_detect_dev): Supply status changed.
26662 (grub_ohci_fini_hw): Free memory.
26663 (grub_ohci_restore_hw): Reallocate memory.
26664 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26665 Reset status change.
26666 (grub_uhci_detect_dev): Supply status_change.
26667 * bus/usb/usb.c (attach_hooks): New var.
26668 (grub_usb_device_attach): New function.
26669 (grub_usb_register_attach_hook_class): Likewise.
26670 (grub_usb_unregister_attach_hook_class): Likewise.
26671 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26672 (grub_usb_add_hub): Reset connection changed bit.
26673 (attach_root_port): New function.
26674 (grub_usb_root_hub): Likewise.
26675 (poll_nonroot_hub): Likewise.
26676 (grub_usb_poll_devices): Likewise.
26677 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26678 * disk/usbms.c (grub_usbms_open): Use device hooks.
26679 (grub_usbms_iterate) :Poll devices.
26680 (grub_usbms_finddevs): Split into ...
26681 (grub_usbms_attach): ... this ...
26682 (grub_usbms_attach): ... and this.
26683 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26684 in detect_dev.
26685 (grub_usb_interface): New fields attached and detach_hook.
26686 (grub_usb_attach_hook_class): New type.
26687 (grub_usb_attach_desc): New struct.
26688 (grub_usb_register_attach_hook_class): New function.
26689 (grub_usb_unregister_attach_hook_class): Likewise.
26690 (grub_usb_poll_devices): Likewise.
26691 (grub_usb_device_attach): Likewise.
26692 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26693 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26694
3222efaf
VS
266952010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26696
26697 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26698 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26699 delta determination style. Works with most NetBSD partitions too.
26700
139b714a
VS
267012010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26702
26703 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26704 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26705
986aad56
VS
267062010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26707
26708 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26709
99be513c
AB
267102010-07-14 Anton Blanchard <anton@samba.org>
26711
26712 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26713 ET_DYN files.
26714
18075f62
GS
267152010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26716
26717 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26718
8d9a5b15
GS
267192010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26720
26721 * kern/partition.c (grub_partition_check_containment): New function to
26722 check that a partition is physically contained in a parent. Since
26723 offsets are relative (and non-negative), this reduces to checking that
26724 the partition ends before its parent.
26725 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26726 (grub_partition_iterate): Likewise.
26727 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26728 comments.
26729 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26730 partitions that start before their parent, and add debug printfs.
26731
19563c25
CW
267322010-07-13 Colin Watson <cjwatson@ubuntu.com>
26733
26734 * Makefile.in (.SUFFIX): Spell correctly, as ...
26735 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26736 bare module name without `.mod', e.g. `test') tried to invoke a
26737 Modula-2 compiler.
26738
1a1f1e67
CW
267392010-07-13 Colin Watson <cjwatson@ubuntu.com>
26740
26741 * README: Point to the Info manual.
26742
811b0dca
JS
267432010-07-13 Jiro SEKIBA <jir@unicus.jp>
26744
26745 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26746 2nd superblock position from partition size.
26747
e4f4eafc
CW
267482010-07-10 Colin Watson <cjwatson@ubuntu.com>
26749
26750 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26751 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26752 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26753 outputs.
26754
4274c30f
VS
267552010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26756
26757 Restructure SCSI .id handling.
26758 Reported and tested by: Aleš Nesrsta.
26759
26760 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26761 (grub_atapi_dev): Changed .name to "ata". New field .id.
26762 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26763 (grub_usbms_dev): New field .id.
26764 * disk/scsi.c (grub_scsi_iterate): Generate name.
26765 (grub_scsi_open): Parse name.
26766 * include/grub/scsi.h (grub_make_scsi_id): New function.
26767 (grub_scsi_dev): Change iterate and open to number instead of naming
26768 busses. All users updated.
26769 (grub_scsi): Remove name. Add .bus.
26770
5bc24388
VS
267712010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26772
26773 * commands/help.c (grub_cmd_help): Fix a typo.
26774
249975ba
VS
267752010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26776
26777 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26778 Reported and tested by: Colin Watson.
26779
3eaac1a1
VS
267802010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26781
26782 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26783 in this context.
26784
becce1b1
VS
267852010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26786
26787 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26788
f7bf0918
CW
267892010-07-07 Colin Watson <cjwatson@ubuntu.com>
26790
26791 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26792 indentation.
26793
0b0f9620
CW
267942010-07-06 Colin Watson <cjwatson@ubuntu.com>
26795
26796 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26797 and disk/raid6_recover.c.
26798 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26799 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26800
1e545469
CW
268012010-07-06 Colin Watson <cjwatson@ubuntu.com>
26802
26803 * term/gfxterm.c (repaint_schedulded): Rename to ...
26804 (repaint_scheduled): ... this. Update all callers.
26805 (repaint_was_schedulded): Rename to ...
26806 (repaint_was_scheduled): ... this. Update all callers.
26807
5357687a
CW
268082010-07-06 Colin Watson <cjwatson@ubuntu.com>
26809
26810 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26811 which we expect to be handled by upper layers.
26812
29d7e783
BC
268132010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26814
26815 * bus/usb/usbhub.c: #include time.h header.
26816
37582066
CW
268172010-07-06 Colin Watson <cjwatson@ubuntu.com>
26818
26819 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26820 entry_name also for entries without stat blocks (e.g. ".."); fixes
26821 corruption of the first entry in a directory.
26822
c8c06953
CW
268232010-07-06 Colin Watson <cjwatson@ubuntu.com>
26824
26825 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26826 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26827 doesn't work otherwise.
26828
e75056f1
CW
268292010-07-05 Colin Watson <cjwatson@ubuntu.com>
26830
26831 * docs/grub.texi (Features): Update list of supported file systems.
26832 (GNU/Linux): Update for GRUB 2.
26833 (Serial terminal): Remove mention of --disable-serial, which was a
26834 GRUB Legacy configure option. Update instructions to use
26835 `terminal_input' and `terminal_output' rather than `terminal'.
26836 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26837 configuration' and `Installing GRUB using grub-install'.
26838 (Menu entry editor): Update for GRUB 2.
26839 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26840 Document new -a, -u, and -v options.
26841 (initrd): New section.
26842 (initrd16): New section.
26843 (linux): New section.
26844 (linux16): New section.
26845 (search): The `var' argument to `--set' is optional.
26846 (GRUB only offers a rescue shell): Go into a little more detail on
26847 drive ordering.
26848
5cf69151
CW
268492010-07-05 Colin Watson <cjwatson@ubuntu.com>
26850
26851 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26852
e3f90044
CW
268532010-07-05 Colin Watson <cjwatson@ubuntu.com>
26854
26855 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26856 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26857
38d8f4f3
CW
268582010-07-05 Colin Watson <cjwatson@ubuntu.com>
26859
26860 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26861 install_prefix, in line with install_dos_part and install_bsd_part.
26862 Add new prefix variable, which is copied to install_prefix after
26863 comparing core.img in memory with the one read from disk in the
26864 no-embedding case, and use that rather than overwriting
26865 install_prefix immediately when installing to a partition.
26866 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26867 Bicakci.
26868
57ebd41e
GS
268692010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26870
26871 * configure.ac: Avoid == in test command, it's not portable.
26872 * util/grub.d/30_os-prober.in: Likewise.
26873
cb7f64b2
CW
268742010-07-04 Colin Watson <cjwatson@ubuntu.com>
26875
26876 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26877
6b654bb0
GS
268782010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26879
26880 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26881 multiple (top-level) partmaps.
26882
72a2026d
VS
268832010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26884
26885 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 26886 Reported by: Tino Keitel.
72a2026d 26887
df3eb88f
VS
268882010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26889
26890 Bidi and diacritics support.
26891
26892 * Makefile.in (widthspec.bin): New target.
26893 (widthspec.h): Likewise.
26894 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26895 * autogen.sh: Generate unidata.c.
26896 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26897 * commands/ls.c (grub_ls_list_devices): Likewise.
26898 (grub_ls_list_files): Likewise.
26899 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26900 (grub_mini_cmd_lsmod): Likewise.
26901 * commands/read.c: Likewise.
26902 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26903 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26904 * lib/arg.c (grub_arg_show_help): Likewise.
26905 * lib/crypto.c (grub_password_get): Likewise.
26906 * normal/auth.c (grub_username_get): Likewise.
26907 * normal/misc.c (grub_normal_print_device_info): Likewise.
26908 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26909 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26910 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26911 (normal/charset.c_DEPENDENCIES): New variable.
26912 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26913 (pkglib_MODULES): Remove charset.mod.
26914 (charset_mod_SOURCES): Removed.
26915 (charset_mod_CFLAGS): Likewise.
26916 (charset_mod_LDFLAGS): Likewise.
26917 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26918 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26919 and term/tparm.c.
26920 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26921 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26922 (kernel_img_HEADERS): Add terminfo.h.
26923 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26924 Fill ->font. Reverse ascii bitmaps.
26925 (grub_font_get_xheight): New function.
26926 * font/font.c (grub_font_get_string_width): Moved from here ...
26927 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26928 * font/font.c (grub_font_draw_string): Moved from here ...
26929 * gfxmenu/font.c (grub_font_draw_string): ... here.
26930 * font/font.c (grub_font_dup_glyph): New function.
26931 (grub_font_blit_glyph): Likewise.
26932 (grub_font_blit_glyph_mirror): Likewise.
26933 (blit_comb): Likewise.
26934 (grub_font_construct_dry_run): Likewise.
26935 (grub_font_get_constructed_device_width): Likewise.
26936 (grub_font_construct_glyph): Likewise.
26937 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26938 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26939 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26940 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26941 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26942 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26943 (grub_font_get_xheight): New proto.
26944 (grub_font_get_constructed_device_width): Likewise.
26945 (grub_font_construct_glyph): Likewise.
26946 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26947 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26948 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26949 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26950 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26951 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26952 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26953 (grub_console_getcharwidth): Likewise.
26954 * include/grub/misc.h (grub_xputs): New proto.
26955 (grub_puts): Inlined.
26956 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26957 (grub_normal_get_line_counter): Removed.
26958 (grub_install_newline_hook): Likewise.
26959 (grub_normal_get_char_counter): New proto.
26960 (grub_normal_reset_more): Likewise.
26961 (grub_xputs_normal): Likewise.
26962 * include/grub/powerpc/ieee1275/console.h: Removed.
26963 * include/grub/sparc64/ieee1275/console.h: Likewise.
26964 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26965 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26966 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26967 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26968 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26969 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26970 (grub_term_input): Pass reference to self. All users updated.
26971 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26972 Pass reference to self. New fields normal_color, highlight_color and
26973 data. All users updated.
26974 (grub_putchar): Removed.
26975 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26976 (grub_unicode_estimate_width): New function.
26977 (grub_term_getcharwidth): Add defaults.
26978 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26979 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26980 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26981 (grub_cls): Remove EXPORT_FUNC.
26982 (grub_setcolorstate): Inline.
26983 (grub_newline_hook): Removed.
26984 * include/grub/terminfo.h: Rewritten. All users updated.
26985 * include/grub/unicode.h: New file.
26986 * include/grub/video.h (grub_video_signed_rect): New type.
26987 * kern/emu/console.c (grub_console_highlight_color): Removed.
26988 (grub_console_normal_color): Likewise.
26989 (grub_console_standard_color): Made static.
26990 (grub_ncurses_putchar): Remove mapping.
26991 (grub_ncurses_getcharwidth): Removed.
26992 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26993 (grub_ncurses_setcolor): Removed.
26994 (grub_ncurses_getcolor): Likewise.
26995 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26996 (grub_console_putchar): ... this.
26997 (grub_console_putchar): Handle argument difference.
26998 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26999 console_init_early and console_init_lately.
27000 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
27001 * kern/misc.c (grub_puts): Removed.
27002 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
27003 (grub_vsnprintf_real): Remove str = NULL support.
27004 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27005 * normal/charset.c (grub_utf8_to_ucs4): ... here.
27006 * kern/term.c (grub_putcode): Renamed to ...
27007 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27008 (grub_putchar): Removed.
27009 (grub_xputs_dumb): New function.
27010 (grub_xputs): New variable.
27011 * lib/charset.c: Move from here ...
27012 * normal/charset.c: ... to here.
27013 (grub_ucs4_to_utf8): New function.
27014 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27015 (join_types): New variable.
27016 (unpack_join): New function.
27017 (bidi_types): New variable.
27018 (unpack_bidi): New function.
27019 (get_bidi_type): Likewise.
27020 (get_join_type): Likewise.
27021 (is_mirrored): Likewise.
27022 (grub_unicode_get_comb_type): Likewise.
27023 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27024 (is_type_after): Likewise.
27025 (grub_unicode_aglomerate_comb): Likewise.
27026 (bidi_line_wrap): Likewise.
27027 (grub_bidi_line_logical_to_visual): Likewise.
27028 (grub_bidi_logical_to_visual): Likewise.
27029 (grub_unicode_mirror_code): Likewise.
27030 (grub_unicode_shape_code): Likewise.
27031 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27032 Don't use grub_putchar.
27033 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27034 (grub_normal_reader_init): Likewise.
27035 (grub_xputs_saved): New variable.
27036 (GRUB_MOD_INIT): Set grub_xputs.
27037 (GRUB_MOD_FINI): Restore grub_xputs.
27038 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27039 (menu_init): Avoid printing gfxmenu error.
27040 (show_menu): Use grub_normal_get_char_counter.
27041 * normal/menu_entry.c (update_screen): Fix out-of-array.
27042 (complete): Avoid NULL dereferencing.
27043 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27044 * normal/menu_text.c (print_spaces): Removed.
27045 (grub_print_ucs4): Likewise.
27046 (grub_print_message_indented): Use grub_print_ucs4.
27047 (print_message): Use grub_putcode.
27048 (print_entry): Hanlde diacritics.
27049 * normal/term.c (term_state): New type.
27050 (grub_more_lines): Removed.
27051 (term_states): New variable.
27052 (grub_normal_line_counter): Renamed to ..
27053 (grub_normal_char_counter): ...this. All users updated.
27054 (grub_normal_get_line_counter): Renamed to ...
27055 (grub_normal_get_char_counter): ... this.
27056 (grub_normal_reset_more): New function.
27057 (process_newline): Removed.
27058 (print_more): New function.
27059 (grub_install_newline_hook): Removed.
27060 (map_code): New function.
27061 (grub_puts_terminal): Use grub_print_ucs4.
27062 (putglyph): New function.
27063 (putcode_real): Likewise.
27064 (grub_putcode): Use putcode_real.
27065 (get_maxwidth): New function.
27066 (get_startwidth): Likewise.
27067 (print_ucs4_terminal): Likewise.
27068 (find_term_state): Likewise.
27069 (put_glyphs_terminal): Likewise.
27070 (print_backlog): Likewise.
27071 (print_ucs4_real): Likewise.
27072 (grub_print_ucs4): Likewise.
27073 (grub_xputs_normal): Likewise.
27074 * term/efi/console.c (grub_console_putchar): Output diacritics.
27075 (grub_console_getcharwidth): Removed.
27076 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27077 * term/gfxterm.c (clear_char): Free chars.
27078 (scroll_up): Avoid leaking memory.
27079 (grub_gfxterm_putchar): Support diacritics.
27080 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27081 * term/i386/pc/console.c (grub_console_term_output): Declare as
27082 GRUB_TERM_CODE_TYPE_VGA.
27083 * term/i386/pc/vga.c (grub_vga_term): Declare as
27084 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27085 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27086 GRUB_TERM_CODE_TYPE_VGA.
27087 * term/i386/vga_common.c (map_char): Removed.
27088 (grub_console_putchar): Likewise.
27089 (grub_console_getcharwidth): Likewise.
27090 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27091 (colors): Reordered to match terminfo.
27092 (grub_ofconsole_normal_color): Removed.
27093 (grub_ofconsole_writeesc): Likewise.
27094 (grub_ofconsole_highlight_color): Likewise.
27095 (grub_ofconsole_getcharwidth): Likewise.
27096 (grub_ofconsole_setcolorstate): Likewise.
27097 (grub_ofconsole_setcolor): Likewise.
27098 (grub_ofconsole_getcolor): Likewise.
27099 (grub_ofconsole_readkey): Renamed to ...
27100 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27101 key.
27102 (grub_ofconsole_checkkey): Removed.
27103 (grub_ofconsole_getkey): Likewise.
27104 (grub_ofconsole_getxy): Likewise.
27105 (grub_ofconsole_gotoxy): Likewise.
27106 (grub_ofconsole_cls): Likewise.
27107 (grub_ofconsole_refresh): Likewise.
27108 (grub_ofconsole_terminfo_input): New struct.
27109 (grub_ofconsole_terminfo_output): Likewise.
27110 (grub_ofconsole_term_input): Use terminfo.
27111 (grub_ofconsole_term_output): Likewise.
27112 (grub_console_init): Split into ...
27113 (grub_console_init_early): ...this and ...
27114 (grub_console_init_lately): ...this. Use terminfo.
27115 (grub_ofconsole_putchar): Renamed to ...
27116 (put): ... this. Remove mapping.
27117 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27118 * term/serial.c: Simplify using terminfo.
27119 (xpos): Removed.
27120 (ypos): Likewise.
27121 (keep_track): Likewise.
27122 (registered): Likewise.
27123 (input_buf): Likewise.
27124 (npending): Likewise.
27125 (serial_translate_key_sequence): Likewise.
27126 (fill_input_buf): Likewise.
27127 (grub_serial_checkkey): Likewise.
27128 (grub_serial_getkey): Likewise.
27129 (grub_serial_getxy): Likewise.
27130 (grub_serial_gotoxy): Likewise.
27131 (grub_serial_putchar): Likewise.
27132 (grub_serial_cls): Likewise.
27133 (grub_serial_setcolorstate): Likewise.
27134 (grub_serial_setcursor): Likewise.
27135 (serial_hw_init): Use serial_hw_fetch.
27136 (grub_serial_terminfo_input): New variable.
27137 (grub_serial_terminfo_output): Likewise.
27138 (grub_serial_term_input): Use terminfo.
27139 (grub_serial_term_output): Likewise.
27140 * term/terminfo.c (putstr): Use put.
27141 (grub_terminfo_all_free): New function
27142 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27143 (grub_terminfo_output_register): New function.
27144 (grub_terminfo_output_unregister): Likewise.
27145 (grub_terminfo_getxy): Likewise.
27146 (grub_terminfo_readkey): Likewise.
27147 (grub_terminfo_checkkey): Likewise.
27148 (grub_terminfo_getkey): Likewise.
27149 (grub_terminfo_input_init): Likewise.
27150 (print_terminfo): Likewise.
27151 (grub_cmd_terminfo): Handle encoding.
27152 (grub_terminfo_gotoxy): Track position.
27153 (grub_terminfo_cls): Likewise.
27154 (grub_terminfo_putchar): Likewise.
27155 (grub_terminfo_setcolorstate): Handle colors
27156 (grub_terminfo_cursor_on): This ...
27157 (grub_terminfo_cursor_off): ... and this merged into ...
27158 (grub_terminfo_setcursor): ... this.
27159 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27160 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27161 * unicode/BidiMirroring.txt: Likewise.
27162 * unicode/UnicodeData.txt: Likewise.
27163 * unicode/COPYING: Likewise.
27164 * util/grub-editenv.c (grub_putchar): Removed.
27165 (grub_xputs_real): New function.
27166 (grub_xputs): New variable.
27167 * util/grub-fstest.c (grub_putchar): Removed.
27168 (grub_xputs_real): New function.
27169 (grub_xputs): New variable.
27170 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27171 (grub_xputs_real): New function.
27172 (grub_xputs): New variable.
27173 * util/grub-probe.c (grub_putchar): Removed.
27174 (grub_xputs_real): New function.
27175 (grub_xputs): New variable.
27176 * util/grub-script-check.c (grub_putchar): Removed.
27177 (grub_xputs_real): New function.
27178 (grub_xputs): New variable.
27179 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27180 (grub_xputs_real): New function.
27181 (grub_xputs): New variable.
27182 * util/import_unicode.py: New file.
27183 * util/grub-mkfont.c (ft_errmsgs): New array.
27184 (grub_glyph_info): Make bitmap a pointer.
27185 (file_formats): New type WIDTH_SPEC.
27186 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27187 (options): Add width-spec.
27188 (help): Likewise.
27189 (add_char): Renamed to ...
27190 (add_glyph): ... this.
27191 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27192 (glyph_replace): New type.
27193 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27194 (add_char): New function.
27195 (add_subst): Likewise.
27196 (process_cursive): Likewise.
27197 (add_font): Handle GSUB.
27198 (write_font_width_spec): New function.
27199 (main): Sort glyphs.
27200 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27201 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27202 * kern/term.c (grub_cls): Moved from here...
27203 * normal/term.c (grub_cls): ... here.
27204
50f0bcda
CW
272052010-07-02 Colin Watson <cjwatson@ubuntu.com>
27206
27207 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27208 suitable for using within the format argument of printf when
27209 converting grub_size_t.
27210 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27211 "x" to convert grub_size_t arguments.
27212
40372103
VS
272132010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27214
27215 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27216 too long captions.
27217 (list_get_minimal_size): Take selection box into account.
27218
942a10c7
VS
272192010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27220
27221 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27222 NULL font.
27223
2bdb2892
CW
272242010-07-02 Colin Watson <cjwatson@ubuntu.com>
27225
27226 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27227 devices when iterating over /dev/disk/by-id; they will be handled
27228 later if appropriate, which they aren't always (e.g. LVM).
27229
e03ed6c1
CW
272302010-07-02 Colin Watson <cjwatson@ubuntu.com>
27231
27232 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27233 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27234 fails.
27235 (grub_halt): Likewise.
27236 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27237 reset-all fails.
27238 (grub_halt): Don't return, even if all of shut-down, power-off, and
27239 poweroff fail.
27240
47695765
CW
272412010-07-02 Colin Watson <cjwatson@ubuntu.com>
27242
27243 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27244 arguments, not three.
27245
507736c8
CW
272462010-07-02 Colin Watson <cjwatson@ubuntu.com>
27247
27248 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27249 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27250 LVM-on-RAID is handled correctly.
27251
e3c8cd37
CW
272522010-07-02 Colin Watson <cjwatson@ubuntu.com>
27253
27254 * docs/grub.texi (Changes from GRUB Legacy): New section.
27255 (Future): Fix typo.
27256
8d4a2fec
CW
272572010-07-02 Colin Watson <cjwatson@ubuntu.com>
27258
27259 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27260 grub.d/README accidentally ends up executable for one reason or
27261 another. Ignore it.
27262
1c4827be
VS
272632010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27264
27265 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27266 (gpt_partition_map_iterate): Support non-512B sectors.
27267
d9a0c941
VS
272682010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27269
27270 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27271 Tested by: Seth Goldberg.
27272
48f27e87
VS
272732010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27274
27275 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27276 Properly align mbi.
27277 Reported by: Seth Goldberg.
27278
b0c4f956
VS
272792010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27280
27281 * util/grub-mkrescue.in: Avoid module duplication.
27282
105a2e8c
SF
272832010-07-01 Sean Finney <seanius@seanius.net>
27284
27285 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27286
5944958c
SF
272872010-07-01 Sean Finney <seanius@seanius.net>
27288
27289 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27290
272912010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27292
27293 * disk/lvm.c (grub_lvm_checkvalue): New function.
27294 (grub_lvm_check_flag): Likewise.
27295
b79889ba
RM
272962010-07-01 Robert Millan <rmh@gnu.org>
27297
27298 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27299 Support 'p' as partition separator on kernel of FreeBSD (used
27300 with GPT labels).
27301 (grub_util_biosdisk_get_grub_dev): Likewise.
27302
ec1d04f1
VS
273032010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27304
27305 Yeeloong firmware port.
27306
27307 * boot/mips/yeeloong/fwstart.S: New file.
27308 * bus/cs5536.c (gpiodump): New const.
27309 (set_io_space): New function.
27310 (set_iod): Likewise.
27311 (set_p2d): Likewise.
27312 (grub_cs5536_init_geode): Likewise.
27313 * commands/mips/yeeloong/lsspd.c: New file.
27314 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27315 (serial_mod_SOURCES): New variable.
27316 (serial_mod_CFLAGS): Likewise.
27317 (serial_mod_LDFLAGS): Likewise.
27318 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27319 term/terminfo.c and term/tparm.c.
27320 (pkglib_IMAGES): Add fwstart.img.
27321 (fwstart_img_SOURCES): New variable.
27322 (fwstart_img_CFLAGS): Likewise.
27323 (fwstart_img_ASFLAGS): Likewise.
27324 (fwstart_img_LDFLAGS): Likewise.
27325 (fwstart_img_FORMAT): Likewise.
27326 (pkglib_MODULES): Add lsspd.mod.
27327 (lsspd_mod_SOURCES): New variable.
27328 (lsspd_mod_CFLAGS): Likewise.
27329 (lsspd_mod_LDFLAGS): Likewise.
27330 (pkglib_MODULES): Add halt.mod.
27331 (halt_mod_SOURCES): New variable.
27332 (halt_mod_CFLAGS): Likewise.
27333 (halt_mod_LDFLAGS): Likewise.
27334 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27335 (serial_mod_SOURCES): Removed.
27336 (serial_mod_CFLAGS): Likewise.
27337 (serial_mod_LDFLAGS): Likewise.
27338 * disk/ata.c (check_device): New function.
27339 (grub_ata_device_initialize): Use check_device.
27340 (grub_ata_iterate): Recheck devices.
27341 (grub_ata_open): Likewise.
27342 (grub_atapi_iterate): Likewise.
27343 (grub_atapi_open): Likewise.
27344 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27345 (GRUB_ATA_CH1_PORT1): Likewise.
27346 (GRUB_ATA_CH0_PORT2): Likewise.
27347 (GRUB_ATA_CH1_PORT2): Likewise.
27348 * include/grub/mips/loongson.h: New file.
27349 * include/grub/mips/yeeloong/ec.h: Likewise.
27350 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27351 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27352 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27353 * include/grub/misc.h (grub_halt): Declare as noreturn.
27354 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27355 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27356 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27357 (UART_ENABLE_DTRRTS): Likewise.
27358 (UART_ENABLE_MODEM): Removed.
27359 (UART_ENABLE_OUT2): New const.
27360 * include/grub/term.h (grub_term_register_input_active): New function.
27361 (grub_term_register_output_active): Likewise.
27362 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27363 argument.
27364 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27365 (init_pci): New function.
27366 (grub_machine_init): Execute platform init when firmware. Init serial.
27367 (grub_halt): Implement.
27368 (grub_exit): Likewise.
27369 (grub_reboot): Likewise.
27370 * term/serial.c (serial_hw_init): Update macros.
27371 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27372 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27373 (image_targets): New target mipsel-yeeloong-flash.
27374 (generate_image): Support IMAGE_YEELOONG_FLASH.
27375 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27376 (grub_video_sm712_setup): Init card.
27377 (grub_video_sm712_set_palette): Removed.
27378 * video/sm712_init.c: New file.
27379
ff4a70d2
CW
273802010-06-30 Colin Watson <cjwatson@ubuntu.com>
27381
27382 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27383 PATH when running help2man and then run it on the unadorned
27384 executable names, rather than passing $(builddir)/* paths to
27385 help2man. This avoids the build directory ending up in generated
27386 manual pages.
27387
1246efeb
CW
273882010-06-29 Colin Watson <cjwatson@ubuntu.com>
27389
27390 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27391 to avoid accidents when debugging with 'sh -x'.
27392 * util/grub-mkrescue.in: Likewise.
27393 * util/grub.d/00_header.in: Likewise.
27394 * util/grub.d/10_hurd.in: Likewise.
27395 * util/grub.d/10_kfreebsd.in: Likewise.
27396 * util/grub.d/10_linux.in: Likewise.
27397 * util/grub.d/10_netbsd.in: Likewise.
27398 * util/grub.d/10_windows.in: Likewise.
27399 * util/grub.d/20_linux_xen.in: Likewise.
27400 * util/grub.d/30_os-prober.in: Likewise.
27401 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27402
1ba9b889
CW
274032010-06-29 Colin Watson <cjwatson@ubuntu.com>
27404
27405 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27406 last character in the buffer.
27407 Reported by: Vladimir Serbinenko.
27408
dccaf99d
RM
274092010-06-29 Robert Millan <rmh@gnu.org>
27410
27411 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27412 (Command-line and menu entry commands): Document `badram' command.
27413
d500ed12
RM
274142010-06-28 Robert Millan <rmh@gnu.org>
27415
27416 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27417 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27418 command using ${GRUB_BADRAM} as parameter.
27419
20bc84a6
CW
274202010-06-28 Colin Watson <cjwatson@ubuntu.com>
27421
27422 * docs/grub.texi (Device map): New section.
27423 (Themes): New section (stub).
27424 * Makefile.in (docs/grub.info): The info documentation now builds
27425 without errors. Make sure it stays that way.
27426
4045dee1
VS
274272010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27428
27429 Use normal parser for menu entries.
27430 Reported by: Thomas Frauendorfer
27431
27432 * include/grub/parser.h (grub_parser_execute): Don't export.
27433 * normal/menu.c (grub_menu_execute_entry_real): New function.
27434 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27435
bca58c7b
CW
274362010-06-28 Colin Watson <cjwatson@ubuntu.com>
27437
27438 * docs/grub.texi (Embedded configuration): New section (replacing
27439 old "Preset Menu" stub).
27440 (Images): New section.
27441 (configfile): Note that any menu entries defined in `file' are shown
27442 immediately.
27443
dec53e63
JT
274442010-06-28 Josh Triplett <josh@joshtriplett.org>
27445
27446 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27447
c06e40f7
CW
274482010-06-28 Colin Watson <cjwatson@ubuntu.com>
27449
27450 * util/grub-install.in: Add --debug-image= option.
27451
cb88052b
CW
274522010-06-28 Colin Watson <cjwatson@ubuntu.com>
27453
27454 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27455 possible on Linux.
27456
27457 * util/deviceiter.c (check_device): Rename to ...
27458 (check_device_readable_unique): ... this. Update all callers.
27459 Maintain and check a list of which devices (by canonicalized name)
27460 have already been seen.
27461 (clear_seen_devices): New function.
27462 (compare_file_names) [__linux__]: New function.
27463 (grub_util_iterate_devices): Clear the list of seen devices on exit
27464 and (just in case) on entry.
27465 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27466 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27467 seen-devices list, superseded by general code in check_device.
27468
bbe34652
CW
274692010-06-28 Colin Watson <cjwatson@ubuntu.com>
27470
27471 * commands/cat.c (options): New variable.
27472 (grub_cmd_cat): Parse options. If the --dos option is given, print
27473 DOS-style "\r\n" line endings as simple newlines (Debian bug
27474 #586358).
27475 (GRUB_MOD_INIT): Use extcmd.
27476 (GRUB_MOD_FINI): Likewise.
27477 * docs/grub.texi (cat): Document --dos.
27478
412e09f3
VS
274792010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27480
27481 XEN with Linux grub-mkconfig support.
27482
27483 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27484 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27485 GRUB_CMDLINE_XEN_DEFAULT.
27486 * util/grub.d/20_linux_xen.in: New file.
27487
53f3ef38 274882010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
27489
27490 Initialise VGA video on qemu ourselves.
27491
27492 * boot/i386/qemu/boot.S: Don't call 0xc000.
27493 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27494 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27495 (kernel_img_HEADERS): Add pci.h.
27496 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27497 * configure.ac: Force unifont on qemu and yeeloong.
27498 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27499 (grub_vga_palette_write): Use correct register.
27500 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27501 Call grub_qemu_init_cirrus.
27502 * kern/i386/qemu/init.c: New file.
27503 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27504
27505 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27506
c75be4fb
PR
275072010-06-26 Pavel Roskin <proski@gnu.org>
27508
27509 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27510 13.
27511
d8034603
CW
275122010-06-26 Colin Watson <cjwatson@ubuntu.com>
27513
27514 * docs/grub.texi (Simple configuration): Explain that
27515 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27516 set to `true' to disable their respective recovery entries, not
27517 merely set.
27518
3fa06487
CW
275192010-06-26 Colin Watson <cjwatson@ubuntu.com>
27520
27521 Make the `source' command slightly faster.
27522
27523 * normal/main.c (grub_normal_execute): Don't re-read list files when
27524 nested.
27525
e9b29642
CW
275262010-06-23 Colin Watson <cjwatson@ubuntu.com>
27527
27528 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27529 field position and mask size to red fields from mode_info, not
27530 green.
27531 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27532 Remove redundant tag->common.framebuffer_type assignment.
27533 Reported by: Seth Goldberg.
27534
e726542f
CW
275352010-06-23 Colin Watson <cjwatson@ubuntu.com>
27536
27537 Sync up other versions of the Linux loader with Robert Millan's
27538 change of 2010-01-09, "Make loader output a bit more user-friendly".
27539
27540 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27541 grub_dprintf().
27542 (grub_cmd_linux): Likewise.
27543 (grub_cmd_initrd): Likewise.
27544 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27545 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27546
d6e98a17
CW
275472010-06-21 Colin Watson <cjwatson@ubuntu.com>
27548
27549 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27550 larger than MEMORY_MAP_SIZE.
27551
14d3f08e
BC
275522010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27553
27554 Fix parallel build.
27555
27556 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27557 dependency.
27558 * script/parser.y: #include grub_script.tab.h header.
27559
4f9613a3
VS
275602010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27561
27562 Support >3GiB and <16MiB RAM in i386-qemu.
27563
27564 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27565 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27566 (grub_lower_mem): Removed.
27567 (grub_upper_mem): Likewise.
27568 (mem_size): Made static.
27569 (above_4g): New variable.
27570 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27571 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27572 support.
27573
05e51879
VS
275742010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27575
27576 Cirrus 5446 and Bochs video cards support.
27577
27578 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27579 video_bochs.mod
27580 (video_cirrus_mod_SOURCES): New variable.
27581 (video_cirrus_mod_CFLAGS): Likewise.
27582 (video_cirrus_mod_LDFLAGS): Likewise.
27583 (video_bochs_mod_SOURCES): Likewise.
27584 (video_bochs_mod_CFLAGS): Likewise.
27585 (video_bochs_mod_LDFLAGS): Likewise.
27586 * include/grub/vga.h: New file.
27587 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27588 (grub_video_fb_set_page_t): New type.
27589 (grub_video_fb_setup): New prototype.
27590 (grub_video_fb_swap_buffers): Likewise.
27591 (grub_video_fb_get_info_and_fini): Likewise.
27592 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27593 (CRTC_DATA_PORT): Likewise.
27594 (CRTC_CURSOR): Likewise.
27595 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27596 (CRTC_CURSOR_ADDR_LOW): Likewise.
27597 (CRTC_CURSOR_DISABLE): Likewise.
27598 (update_cursor): Use grub_vga_cr_write.
27599 (grub_vga_text_setcursor): Likewise.
27600 * video/bochs.c: New file.
27601 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27602 (palette): Likewise.
27603 (palette_size): Likewise.
27604 (framebuffer): New variable.
27605 (grub_video_fb_init): Use 'framebuffer'.
27606 (grub_video_fb_fini): Likewise.
27607 (grub_video_fb_get_info): Likewise.
27608 (grub_video_fb_get_palette): Likewise.
27609 (grub_video_fb_set_palette): Likewise.
27610 (grub_video_fb_set_viewport): Likewise.
27611 (grub_video_fb_get_viewport): Likewise.
27612 (grub_video_fb_map_color): Likewise.
27613 (grub_video_fb_map_rgb): Likewise.
27614 (grub_video_fb_map_rgba): Likewise.
27615 (grub_video_fb_unmap_color): Likewise.
27616 (grub_video_fb_unmap_color_int): Likewise.
27617 (grub_video_fb_fill_rect): Likewise.
27618 (grub_video_fb_blit_bitmap): Likewise.
27619 (grub_video_fb_blit_render_target): Likewise.
27620 (grub_video_fb_scroll): Likewise.
27621 (grub_video_fb_create_render_target): Likewise.
27622 (grub_video_fb_doublebuf_blit_init): Likewise.
27623 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27624 (doublebuf_pageflipping_update_screen): New function.
27625 (doublebuf_pageflipping_init): Likewise.
27626 (grub_video_fb_setup): Likewise.
27627 (grub_video_fb_swap_buffers): Likewise.
27628 (grub_video_fb_get_info_and_fini): Likewise.
27629 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27630 All users updated.
27631 (doublebuf_pageflipping_commit): Restructured into ...
27632 (doublebuf_pageflipping_set_page): ... this.
27633 (doublebuf_pageflipping_update_screen): Removed.
27634 (doublebuf_pageflipping_init): Likewise.
27635 (double_buffering_init): Likewise.
27636 (grub_video_vbe_setup): Use grub_video_fb_setup.
27637 (grub_video_vbe_swap_buffers): Removed.
27638 (grub_video_vbe_set_active_render_target): Likewise.
27639 (grub_video_vbe_get_active_render_target): Likewise.
27640 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27641 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27642 grub_video_fb_set_active_render_target and
27643 grub_video_fb_get_active_render_target.
27644 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27645 (SEQUENCER_DATA_PORT): Likewise.
27646 (MAP_MASK_REGISTER): Likewise.
27647 (CRTC_ADDR_PORT): Likewise.
27648 (CRTC_DATA_PORT): Likewise.
27649 (START_ADDR_HIGH_REGISTER): Likewise.
27650 (START_ADDR_LOW_REGISTER): Likewise.
27651 (GRAPHICS_ADDR_PORT): Likewise.
27652 (GRAPHICS_DATA_PORT): Likewise.
27653 (READ_MAP_REGISTER): Likewise.
27654 (INPUT_STATUS1_REGISTER): Likewise.
27655 (INPUT_STATUS1_VERTR_BIT): Likewise.
27656 (get_map_mask): Use grub_vga_sr_read.
27657 (set_map_mask): Use grub_vga_sr_write.
27658 (set_read_map): Use grub_vga_gr_write.
27659 (set_start_address): Use grub_vga_cr_write.
27660 * video/sm712.c (framebuffer): Remove leftover fields.
27661
4321c64a
CW
276622010-06-20 Colin Watson <cjwatson@ubuntu.com>
27663
27664 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27665 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27666 instead. Replace the gfxterm backend check with a check that
27667 ${GRUB_PREFIX}/video.lst is non-empty.
27668 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27669 again.
27670 (load_video): New generated function. Call it before loading
27671 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27672 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27673 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27674 * docs/grub.texi (Simple configuration): Document
27675 GRUB_VIDEO_BACKEND.
27676
276772010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27678
27679 Use video functions in linux and xnu loaders.
27680
27681 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27682 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27683 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27684 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27685 loader/i386/pc/linux.c.
27686 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27687 (find_line_len): Removed.
27688 (find_framebuf): Likewise.
27689 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27690 * loader/i386/efi/xnu.c: Removed.
27691 * loader/i386/pc/xnu.c: Moved from here...
27692 * loader/i386/xnu.c: ...here.
27693
27694 Enable priorities in video drivers.
27695
27696 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27697 (grub_video_adapter): New field prio.
27698 (grub_video_register): Respect prio when inserting.
27699 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27700 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27701 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27702 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27703 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27704 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27705 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27706
27707 Fix SDL driver ID.
27708
27709 * include/grub/video.h (grub_video_driver_id_t): New value
27710 GRUB_VIDEO_DRIVER_SDL.
27711 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27712
7d24e434
CW
277132010-06-17 Colin Watson <cjwatson@ubuntu.com>
27714
27715 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27716 argument to printf.
27717 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27718
c88a83f6
CW
277192010-06-17 Colin Watson <cjwatson@ubuntu.com>
27720
27721 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27722 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27723
094dfb69
CW
277242010-06-17 Colin Watson <cjwatson@ubuntu.com>
27725
27726 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27727 directly, and recommend grub-install instead.
27728 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27729
2164da6b
CW
277302010-06-17 Colin Watson <cjwatson@ubuntu.com>
27731
27732 Fix i386-pc prefix handling with nested partitions (Debian bug
27733 #585068). Note that the case where the core image is booted using
27734 multiboot and relocated from its original location still requires
27735 more work.
27736
27737 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27738 with "(,", fill the boot drive in between those two characters, but
27739 expect that a full partition specification including partition map
27740 names will follow.
27741 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27742 specified, write a prefix without the drive name but including a
27743 full partition specification.
27744
044e2e60
CW
277452010-06-16 Colin Watson <cjwatson@ubuntu.com>
27746
27747 * util/grub-mkconfig.in: Ignore non-option arguments, for
27748 compatibility with older versions (before 2010-06-12) which did the
27749 same. In particular, this makes it easier to ship an update-grub
27750 wrapper which is compatible with that used with GRUB Legacy (Debian
27751 bug #586056).
27752
5591324f
GS
277532010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27754
27755 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27756 for manual page generation.
27757
662e24d5
GS
277582010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27759
27760 * po/POTFILES: Remove leftover commands/handler.c.
27761
8d70754e
CW
277622010-06-14 Colin Watson <cjwatson@ubuntu.com>
27763
27764 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27765 left this script non-functional.
27766
41160e2e
CW
277672010-06-14 Colin Watson <cjwatson@ubuntu.com>
27768
27769 * docs/man/grub-emu.h2m: New file.
27770
b5309cc1
CW
277712010-06-13 Colin Watson <cjwatson@ubuntu.com>
27772
27773 * docs/grub.texi (Commands): Document reduced command set in rescue
27774 mode.
27775 (cpuid): New section.
27776
fcb2d090
GS
277772010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27778
27779 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27780 new partition naming style.
27781 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27782
96e5c556
BC
277832010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27784
27785 Add "-o grub.iso" like cmdline options support.
27786
27787 * util/grub-install.in: Improve cmdline option parsing.
27788 * util/grub-mkconfig.in: Likewise.
27789 * util/grub-mkrescue.in: Likewise.
27790 * util/grub-reboot.in: Likewise.
27791 * util/grub-set-default.in: Likewise.
27792 * util/i386/efi/grub-install.in: Likewise.
27793 * util/ieee1275/grub-install.in: Likewise.
27794 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27795
c16be99b
CW
277962010-06-12 Colin Watson <cjwatson@ubuntu.com>
27797
27798 * .bzrignore: Ignore 41_custom.
27799
ce08a9fb
TS
278002010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27801
27802 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27803
7beac90c
CW
278042010-06-12 Colin Watson <cjwatson@ubuntu.com>
27805
27806 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27807 prototype declarations.
27808
27809 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27810 generating fs, partmap, and video lists.
27811 * include/grub/fs.h (grub_fs_register): Omit prototype if
27812 GRUB_LST_GENERATOR is defined.
27813 * include/grub/partition.h (grub_partition_map_register): Likewise.
27814 * include/grub/video.h (grub_video_register): Likewise.
27815
1c8f0f8d
JM
278162010-06-12 Javier Martín <lordhabbit@gmail.com>
27817
27818 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27819
a6085973
TS
278202010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27821
27822 * util/grub-mkrescue.in: Support --xorriso argument.
27823
25c56d29
VS
278242010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27825
27826 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27827 Suggested by: Thomas Schmitt.
27828
e03e4b24
VS
278292010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27830
27831 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27832 Suggested by: Thomas Schmitt.
27833
57711df6
VS
278342010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27835
27836 custom.cfg support.
27837
27838 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27839 * util/grub.d/41_custom.in: New file.
27840
ee62c427
CW
278412010-06-12 Colin Watson <cjwatson@ubuntu.com>
27842
27843 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27844 been merged back into normal.
27845
283af07a
CW
278462010-06-11 Colin Watson <cjwatson@ubuntu.com>
27847
27848 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27849 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27850
56a0d956
CW
278512010-06-11 Colin Watson <cjwatson@ubuntu.com>
27852
27853 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27854 when generating manual pages.
27855 * docs/man/grub-bin2h.h2m: New file.
27856 * docs/man/grub-editenv.h2m: New file.
27857 * docs/man/grub-fstest.h2m: New file.
27858 * docs/man/grub-install.h2m: New file.
27859 * docs/man/grub-macho2img.h2m: New file.
27860 * docs/man/grub-mkconfig.h2m: New file.
27861 * docs/man/grub-mkdevicemap.h2m: New file.
27862 * docs/man/grub-mkfont.h2m: New file.
27863 * docs/man/grub-mkimage.h2m: New file.
27864 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27865 * docs/man/grub-mkrelpath.h2m: New file.
27866 * docs/man/grub-mkrescue.h2m: New file.
27867 * docs/man/grub-ofpathname.h2m: New file.
27868 * docs/man/grub-pe2elf.h2m: New file.
27869 * docs/man/grub-probe.h2m: New file.
27870 * docs/man/grub-reboot.h2m: New file.
27871 * docs/man/grub-script-check.h2m: New file.
27872 * docs/man/grub-set-default.h2m: New file.
27873 * docs/man/grub-setup.h2m: New file.
27874
3a37e322
VS
278752010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27876
27877 Use FOR_* macros instead of *_iterate whenever possible.
27878
27879 * commands/handler.c: Removed.
27880 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27881 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27882 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27883 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27884 (grub_probe_SOURCES): Remove kern/parser.c.
27885 (util/grub-script-check.c_DEPENDENCIES): Removed.
27886 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27887 and grub_script_check_init.c.
27888 (grub_script_check_init.lst): Removed.
27889 (grub_script_check_init.h): Likewise.
27890 (grub_script_check_init.c): Likewise.
27891 (pkglib_MODULES): Remove handler.mod and sh.mod.
27892 (handler_mod_SOURCES): Removed.
27893 (handler_mod_CFLAGS): Likewise.
27894 (handler_mod_LDFLAGS): Likewise.
27895 (normal_mod_SOURCES): Remove normal/handler.c.
27896 Add script/main.c, script/script.c, script/execute.c,
27897 script/function.c, script/lexer.c, grub_script.tab.c
27898 and grub_script.yy.c.
27899 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27900 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27901 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27902 (grub_setup_SOURCES): Remove kern/parser.c.
27903 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27904 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27905 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27906 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27907 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27908 (grub_setup_SOURCES): Remove kern/parser.c.
27909 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27910 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27911 * include/grub/command.h (grub_command_iterate): Removed.
27912 (FOR_COMMANDS): New macro.
27913 * include/grub/dl.h (grub_dl): New member next.
27914 (grub_dl_iterate): Removed.
27915 (grub_dl_head): New variable declaration.
27916 (FOR_DL_MODULES): New macro.
27917 * include/grub/fs.h: Include list.h.
27918 (grub_fs): Make next first element.
27919 (grub_fs_list): New variable declaration.
27920 (grub_fs_register): Make inline.
27921 (grub_fs_unregister): Likewise.
27922 (grub_fs_iterate): Removed.
27923 (FOR_FILESYSTEMS): New macro.
27924 * include/grub/handler.h: Removed.
27925 * include/grub/list.h (grub_list_hook_t): Removed.
27926 (grub_list_test_t): Likewise.
27927 (grub_list_pop): Likewise.
27928 (grub_list_iterate): Likewise.
27929 (grub_list_insert): Likewise.
27930 (FOR_LIST_ELEMENTS): New macro.
27931 * include/grub/parser.h (grub_parser_class): Removed.
27932 (grub_parser_register): Likewise.
27933 (grub_parser_unregister): Likewise.
27934 (grub_parser_get_current): Likewise.
27935 (grub_parser_set_current): Likewise.
27936 (grub_register_rescue_parser): Likewise.
27937 (grub_rescue_parse_line): New function.
27938 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27939 * include/grub/script_sh.h (grub_script_function_list): New variable
27940 declaration.
27941 (FOR_SCRIPT_FUNCTIONS): New macro.
27942 (grub_script_function_iterate): Removed.
27943 (grub_normal_parse_line): New prototype.
27944 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27945 (FOR_DISABLED_TERM_INPUTS): Likewise.
27946 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27947 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27948 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27949 element.
27950 (grub_video_register): Inline.
27951 (grub_video_unregister): Likewise.
27952 (grub_video_adapter_list): New variable declaration.
27953 (grub_video_iterate): Removed.
27954 (FOR_VIDEO_ADAPTERS): New macro.
27955 * kern/dl.c (grub_dl_list): Removed. All users updated.
27956 (grub_dl_iterate): Removed.
27957 * kern/fs.c (grub_fs_list): Make global.
27958 (grub_fs_register): Removed.
27959 (grub_fs_unregister): Likewise.
27960 (grub_fs_iterate): Likewise.
27961 * kern/handler.c: Removed.
27962 * kern/list.c (grub_list_pop): Removed.
27963 (grub_list_iterate): Likewise.
27964 (grub_list_insert): Likewise.
27965 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27966 (grub_prio_list_insert): Don't use grub_list_insert.
27967 * kern/main.c (grub_register_rescue_parser): Don't call
27968 grub_register_rescue_parser.
27969 * kern/parser.c (grub_parser_class): Removed.
27970 (grub_parser_execute): Use grub_rescue_parse_line.
27971 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27972 (grub_rescue_parser): Removed.
27973 (grub_register_rescue_parser): Likewise.
27974 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27975 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27976 (grub_auth_check_authentication): Likewise.
27977 * normal/completion.c (iterate_command): Removed.
27978 (grub_normal_do_completion): Use FOR_COMMANDS.
27979 * normal/handler.c: Removed.
27980 * normal/main.c (read_config_file): Remove parser changing.
27981 (grub_normal_execute): Don't call read_handler_list.
27982 (grub_normal_read_line_real): Statically allocate prompt.
27983 (grub_cmdline_run): Use grub_normal_parse_line.
27984 (GRUB_MOD_FINI): Don't call free_handler_list.
27985 * normal/menu_entry.c (run): Likewise.
27986 * script/function.c (grub_script_function_list): Make global.
27987 (grub_script_function_iterate): Removed.
27988 * script/main.c (grub_normal_parse_line): Make global.
27989 (grub_sh_parser): Removed.
27990 (GRUB_MOD_INIT): Likewise.
27991 (GRUB_MOD_FINI): Likewise.
27992 * tests/lib/functional_test.c (grub_functional_test): Use
27993 FOR_LIST_ELEMENTS.
27994 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27995 (grub_test_run): Use FOR_LIST_ELEMENTS.
27996 * tests/lib/unit_test.c (main): Likewise.
27997 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27998 grub_list_pop.
27999 * util/grub-fstest.c (grub_term_input_class): Removed.
28000 (grub_term_output_class): Likewise.
28001 * util/grub-probe.c: Likewise.
28002 * util/i386/pc/grub-setup.c: Likewise.
28003 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28004 * util/grub-script-check.c (main): Don't call grub_init_all and
28005 grub_fini_all.
28006 * video/video.c (grub_video_adapter_list): Make global.
28007 (grub_video_register): Removed.
28008 (grub_video_unregister): Likewise.
28009 (grub_video_iterate): Likewise.
28010
6289c3a7
VS
280112010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
28012
28013 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28014 reported by Henrique Ferreiro.
28015
91460247
RM
280162010-06-09 Robert Millan <rmh@gnu.org>
28017
28018 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28019 ones, when both are available.
28020
0ea7c4f9
GS
280212010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28022
28023 Make --version uniform and avoid hard-coded program name.
28024
28025 * util/grub-mkimage.c (main): Use `program_name' instead of
28026 hard-coded string.
28027 * util/i386/pc/grub-setup.c (main): Likewise.
28028 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28029 * util/grub-install.in: Save the basename of $0 in $self, and use the
28030 latter in informational messages. Use the same format for --version
28031 as the binary programs.
28032 * util/grub-mkconfig.in: Likewise.
28033 * util/grub-mkrescue.in: Likewise.
28034 * util/grub-reboot.in: Likewise.
28035 * util/grub-set-default.in: Likewise.
28036 * util/i386/efi/grub-install.in: Likewise.
28037 * util/ieee1275/grub-install.in: Likewise.
28038 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28039
e8a6f3b6
GS
280402010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28041
28042 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28043 embedding area. Use <= instead of == when checking for non-emptiness.
28044
f4d095d7
GS
280452010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28046
28047 * configure.ac: Add `.' to the directories searched for unifont.
28048
50e532ca
CW
280492010-06-08 Colin Watson <cjwatson@ubuntu.com>
28050
28051 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28052 grub_script.yy.h.
28053
d39f3dec
CW
280542010-06-08 Colin Watson <cjwatson@ubuntu.com>
28055
28056 * docs/grub.texi (History): Expand to cover GRUB 2.
28057 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28058 commands, not `terminal'.
28059 (serial): Likewise.
28060 (terminal_input): New section.
28061 (terminal_output): New section.
28062 (uppermem): New section (stub).
28063 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28064
6ef0ddb4
CW
280652010-06-08 Colin Watson <cjwatson@ubuntu.com>
28066
28067 * docs/grub.texi (Security): Menu entries are unrestricted by
28068 default, not restricted to superusers as I had previously thought.
28069 Reword to account for this.
28070
e0f4c438
CW
280712010-06-07 Colin Watson <cjwatson@ubuntu.com>
28072
28073 * kern/emu/misc.c (device_mapper_null_log): New function.
28074 (grub_device_mapper_supported): New function.
28075 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28076 prototype.
28077 * kern/emu/hostdisk.c (find_partition_start): Check whether
28078 device-mapper is supported before trying to use it.
28079 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28080
da908200
CW
280812010-06-07 Colin Watson <cjwatson@ubuntu.com>
28082
28083 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28084 (File name syntax): Likewise.
28085 (help): --all is no longer supported in GRUB 2. Be more precise
28086 about pattern matching.
28087
fb55c3ac
CW
280882010-06-07 Colin Watson <cjwatson@ubuntu.com>
28089
28090 * normal/completion.c (grub_normal_do_completion): When completing
28091 arguments to "set" and the current word contains an equals sign,
28092 skip to after the equals sign before starting completion.
28093
258c2573
CW
280942010-06-07 Colin Watson <cjwatson@ubuntu.com>
28095
28096 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28097
ee75515e
CW
280982010-06-07 Colin Watson <cjwatson@ubuntu.com>
28099
28100 * docs/grub.texi (Network): New section.
28101 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28102 `(nd)' as in GRUB Legacy.
28103 (pxe_unload): New section.
28104
a6a700aa
CW
281052010-06-07 Colin Watson <cjwatson@ubuntu.com>
28106
28107 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28108 in the rescue shell, so recommend using `set' instead. Thanks,
28109 Jordan Uggla.
28110
4003dd38
CW
281112010-06-07 Colin Watson <cjwatson@ubuntu.com>
28112
28113 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28114 (password): New section.
28115 (password_pbkdf2): New section.
28116 (search): New section.
28117 (Security): New section.
28118 (Troubleshooting): New section, currently very incomplete.
28119 (Invoking grub-mkpasswd-pbkdf2): New section.
28120 (Internals): New section, currently very incomplete.
28121
e1cbcc40
CW
281222010-06-07 Colin Watson <cjwatson@ubuntu.com>
28123
28124 * util/grub.d/00_header.in: Add some more quoting (of
28125 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28126 work again.
28127 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28128
db8fa1ad
CW
281292010-06-07 Colin Watson <cjwatson@ubuntu.com>
28130
28131 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28132 to `count', fixing variable shadowing that broke the -c option.
28133
281342010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
28135
28136 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28137 in case they contain spaces.
28138
f28a9212
CW
281392010-06-04 Colin Watson <cjwatson@ubuntu.com>
28140
28141 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28142 "part_" to partmap module names, in line with grub-install.
28143 Reported by: Jindřich Makovička (Debian bug #584426).
28144
9cdfe32f
CW
281452010-06-04 Colin Watson <cjwatson@ubuntu.com>
28146
28147 * util/grub-mkimage.c: Make target-related error messages slightly
28148 more helpful; -O talks about "format". Explicitly point to the use
28149 of -O if no target is specified.
28150 Reported by: Didier Raboud (Debian bug #584415).
28151
795b593a
CW
281522010-06-03 Colin Watson <cjwatson@ubuntu.com>
28153
28154 * INSTALL: Document several build requirements for optional features
28155 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28156
9d9b5833
GS
281572010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28158
28159 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28160 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28161 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28162
0819fec8
CW
281632010-06-02 Colin Watson <cjwatson@ubuntu.com>
28164
28165 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28166 Thanks to Jordan Uggla for spotting this.
28167
49396b4f
VS
281682010-06-02 Aleš Nesrsta <starous@volny.cz>
28169
28170 Finally make USB usable.
28171
28172 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28173 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28174 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28175 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28176 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28177 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28178 (GRUB_OHCI_FSMPS): Likewise.
28179 (GRUB_OHCI_PERIODIC_START): Likewise.
28180 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28181 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28182 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28183 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28184 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28185 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28186 (grub_ohci_transaction): Likewise.
28187 (grub_ohci_transfer): Improve condition detection algorithms.
28188 Handle toggle property. Program the transactions correctly.
28189 Improve error handling. Various important fixups.
28190 (grub_ohci_portstatus): Put register writes in right order.
28191 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28192 (grub_uhci_transfer): Don't show "failed" message on success.
28193 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28194 array.
28195 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28196 determine its size.
28197 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28198 before initialization is completed. Use IN direction for empty
28199 transfers. Use last_trans and compute toggle.
28200 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28201 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28202 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28203 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28204 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28205 (grub_usb_device): Increase toggle to 256.
28206 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28207 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28208 GRUB_USBMS_SUBCLASS_SFF8070.
28209 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28210 (grub_scsi_inquiry): New member page and alloc_length.
28211 (grub_scsi_request_sense): New structure.
28212 (grub_scsi_request_sense_data): Likewise.
28213 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28214 control.
28215 * disk/scsi.c (grub_scsi_request_sense): New function.
28216 (grub_scsi_test_unit_ready): Likewise.
28217 (grub_scsi_inquiry): Fill new fields.
28218 (grub_scsi_read_capacity): Likewise.
28219 (grub_scsi_read10): Add request sense at the end.
28220 (grub_scsi_read12): Likewise.
28221 (grub_scsi_write10): Likewise.
28222 (grub_scsi_write12): Likewise.
28223 (grub_scsi_open): Add Test Unit Ready.
28224 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28225 Support additional subclasses. Con't clear halt yet. Activate the
28226 proper config. Calculate LUNs correctly.
28227 (grub_usbms_transfer): Various important fixups.
28228
282292010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28230
28231 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28232 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28233 (grub_ohci_fini_hw): New function.
28234 (grub_ohci_restore_hw): Likewise.
28235 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28236 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28237 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28238
282392010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28240
28241 Dedicated DMA allocations.
28242
28243 * bus/pci.c (grub_memalign_dma32): New function
28244 (grub_dma_free): Likewise.
28245 (grub_dma_get_virt): Likewise.
28246 (grub_dma_get_phys): Likewise.
28247 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28248 (grub_ohci_pci_iter): Use dma32_alloc.
28249 (grub_ohci_transfer): Likewise.
28250 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28251 (grub_usb_bulk_readwrite): Likewise.
28252 * include/grub/pci.h: Add declarations.
28253
282542010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28255
28256 CS5536 support.
28257
28258 * bus/cs5536.c: New file.
28259 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28260 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28261 (cs5536_mod_SOURCES): New variable.
28262 (cs5536_mod_CFLAGS): Likewise.
28263 (cs5536_mod_LDFLAGS): Likewise.
28264 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28265 machine/pci.h.
28266 (kernel_img_SOURCES): Add bus/cs5536.c.
28267 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28268 usb_keyboard.mod.
28269 (usb_mod_SOURCES): New variable.
28270 (usb_mod_CFLAGS): New variable.
28271 (usb_mod_LDFLAGS): New variable.
28272 (usbtest_mod_SOURCES): New variable.
28273 (usbtest_mod_CFLAGS): New variable.
28274 (usbtest_mod_LDFLAGS): New variable.
28275 (ohci_mod_SOURCES): New variable.
28276 (ohci_mod_CFLAGS): New variable.
28277 (ohci_mod_LDFLAGS): New variable.
28278 (usbms_mod_SOURCES): New variable.
28279 (usbms_mod_CFLAGS): New variable.
28280 (usbms_mod_LDFLAGS): New variable.
28281 (usb_keyboard_mod_SOURCES): New variable.
28282 (usb_keyboard_mod_CFLAGS): New variable.
28283 (usb_keyboard_mod_LDFLAGS): New variable.
28284 * include/grub/smbus.h: New file.
28285 * include/grub/cs5536.h: New file.
28286
0b35b2a9
CW
282872010-06-02 Colin Watson <cjwatson@ubuntu.com>
28288
28289 * util/grub.d/00_header.in: Add safety check to make sure that
28290 ${locale_dir} exists before trying to probe it.
28291
ca0afd5b
CW
282922010-06-02 Colin Watson <cjwatson@ubuntu.com>
28293
28294 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28295 per the GNU Coding Standards; this is now too obscure to be worth
28296 documenting.
28297 (QNX): Likewise.
28298 (chainloader): Remove cross-reference to `SCO UnixWare'.
28299
1c41aa78
CW
283002010-06-02 Colin Watson <cjwatson@ubuntu.com>
28301
28302 * docs/grub.texi (Chain-loading): New section.
28303 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28304 adjusted for GRUB 2.
28305 (SCO UnixWare): Likewise.
28306 (QNX): Likewise.
28307 (chainloader): Add reference to `Block list syntax'.
28308 (drivemap): New section.
28309 (parttool): New section.
28310
bb8ea0f5
CW
283112010-06-02 Colin Watson <cjwatson@ubuntu.com>
28312
28313 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28314 the grub shell'.
28315 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28316 (Installing GRUB using grub-install): Remove reference to the grub
28317 shell; mention `grub-mkimage' and `grub-setup' instead.
28318 (Invoking grub-install): Likewise.
28319 (Interface): Add reference to `Menu entry editor'.
28320 (serial): Remove `--device' option.
28321
288dd6ed
CW
283222010-06-02 Colin Watson <cjwatson@ubuntu.com>
28323
28324 * docs/grub.texi (Configuration): New section, documenting
28325 configuration file generation using grub-mkconfig. I've left a slot
28326 for documenting the full shell scripting format but have not yet
28327 started on writing that up.
28328 (Invoking grub-mkconfig): New section.
28329
34c9f0e9
CW
283302010-06-02 Colin Watson <cjwatson@ubuntu.com>
28331
28332 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28333 (GNU GRUB manual): Likewise.
28334 (General commands): Update description of `terminfo' for GRUB 2.
28335
9121567e
CW
283362010-06-02 Colin Watson <cjwatson@ubuntu.com>
28337
28338 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28339 (GRUB_MOD_INIT): Fix capitalisation.
28340 * docs/grub.texi (Command-line and menu entry commands): Document
28341 gettext and gptsync commands.
28342
ab631611
CW
283432010-06-02 Colin Watson <cjwatson@ubuntu.com>
28344
28345 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28346 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28347
bde4a9ac
CW
283482010-06-01 Colin Watson <cjwatson@ubuntu.com>
28349
28350 Add btrfs probing support, currently only in the single-device case.
28351
28352 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28353 function.
28354 (grub_guess_root_device): Call find_root_device_from_mountinfo
28355 before looking in /dev.
28356
b1d17e10
VS
283572010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28358
28359 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28360 GRUB_DISK_SIZE_UNKNOWN.
28361 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28362
dfbfe004
JS
283632010-05-31 Jiro SEKIBA <jir@unicus.jp>
28364
28365 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28366 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28367 corrupted or not synced properly.
28368
c2ffc8e9
VS
283692010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28370
28371 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28372 Reported by: Seth Goldberg.
28373
56293166
VS
283742010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28375
28376 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28377 addition of dest.
28378 Reported by: Seth Goldberg.
28379
7620e7de
VS
283802010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28381
28382 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28383 Reported by: Seth Goldberg.
28384
c837af3f
VS
283852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28386
28387 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28388 64-bit address as signed on MIPS.
28389
c7c75cf4
CW
283902010-05-28 Colin Watson <cjwatson@ubuntu.com>
28391
28392 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28393 to the empty string.
28394
fa4b8490
BC
283952010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28396
28397 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28398
28399 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28400 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28401 * kern/misc.c (__enable_execute_stack): Disable on
28402 GRUB_MACHINE_EMU.
28403
a33075b9
CW
284042010-05-28 Colin Watson <cjwatson@ubuntu.com>
28405
28406 Make grub-probe work with symbolic links under /dev/mapper as well
28407 as with real block devices. The Linux world seems to be (at best)
28408 in transition here, and GRUB shouldn't get caught in the middle.
28409
28410 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28411 /dev/mapper.
28412
d8708134
CW
284132010-05-27 Colin Watson <cjwatson@ubuntu.com>
28414
28415 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28416 input files (in which case exit zero).
28417
db2102a0
CW
284182010-05-27 Colin Watson <cjwatson@ubuntu.com>
28419
28420 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28421 return NULL for various reasons even if it has a maximum-length
28422 buffer: for example, there might be a symlink loop, or the path
28423 might exceed PATH_MAX. If this happens, return NULL.
28424
5fdba519
RM
284252010-05-27 Robert Millan <rmh@gnu.org>
28426
28427 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28428 partmap module to handle cross-partmap setups.
28429 Reported by Orestes Mas. Gràcies!
28430
d1d368e4
CW
284312010-05-27 Colin Watson <cjwatson@ubuntu.com>
28432
28433 * util/grub-mkrescue.in: Initialise override_dir rather than
28434 assuming that it's unset or empty in the environment.
28435
95ac3c73
GS
284362010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28437
28438 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28439 variable index into p_index to suppress a warning with -Wshadow.
28440
7d8c0213
BC
284412010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28442
28443 * INSTALL: Added flex >= 2.5.35 requirement.
28444
db4d5813
VS
284452010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28446
28447 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28448
f24f4300
VS
284492010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28450
28451 cmostest support.
28452
28453 * commands/i386/cmostest.c: New file.
28454 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28455 (cmostest_mod_SOURCES): New variable.
28456 (cmostest_mod_CFLAGS): Likewise.
28457 (cmostest_mod_LDFLAGS): Likewise.
28458 * conf/i386-pc.rmk: Likewise.
28459 * docs/grub.texi (Vendor power-on keys): New section.
28460 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28461 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28462 and GRUB_BUTTON_CMOS_ADDRESS.
28463 * util/grub.d/00_header.in: Handle powering-on by separate button.
28464
ad603f61
VS
284652010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28466
28467 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28468 Removed drawing_scrollbar argument. All users updated
28469 Fixes #29792.
28470 Reported by Jo Shields
28471
3ecb080a
VS
284722010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28473
28474 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28475 buffer since gfxterm handles double repaint.
28476
5f2316c1
VS
284772010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28478
28479 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28480 * term/gfxterm.c (real_scroll): Likewise.
28481
9a25f885
VS
284822010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28483
28484 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28485 before calling BIOS.
28486
39fbb79a
VS
284872010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28488
28489 * include/grub/i18n.h: Always enable grub_gettext.
28490
228cfa97
VS
284912010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28492
28493 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28494 partition naming style.
28495
21717c8f
CW
284962010-05-21 Colin Watson <cjwatson@ubuntu.com>
28497
28498 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28499 not the first option.
28500
c0f48e65
CW
285012010-05-20 Colin Watson <cjwatson@ubuntu.com>
28502
28503 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28504
96779aec
CW
285052010-05-20 Colin Watson <cjwatson@ubuntu.com>
28506
28507 * util/misc.c: Move inclusion of <limits.h> to ...
28508 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28509
fa9d256e
GS
285102010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28511
28512 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28513 Fix merge error in NetBSD code.
28514 (find_partition_start) [__NetBSD__]: Likewise.
28515
123b7a85
BC
285162010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28517
28518 Fix grub-mkrescue usage unit testing.
28519
28520 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28521
74276c0d
CF
285222010-05-18 Christian Franke <franke@computer.org>
28523
28524 * util/grub.d/10_windows.in: Use path names instead of
28525 drive letters to prevent warning from Cygwin 1.7.
28526 Add drivemap command to menuentry if needed.
28527
c4f7b523
ST
285282010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28529
28530 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28531 gnumach and gnumach.gz.
28532
95b97950
VS
285332010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28534
28535 * include/grub/i18n.h (gettext): Inline instead of using #define.
28536 (grub_gettext): Likewise.
28537 (_): Likewise.
28538
01b8d2d7
VS
285392010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28540
28541 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28542 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28543 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28544 (main): Add a slash after pkglibdirroot.
28545
654e1d1e
VS
285462010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28547
28548 * util/grub-install.in: Add missing "in" keyword.
28549
26966aeb
VS
285502010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28551
28552 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28553 Reported by: Seth Goldberg.
28554
75006747
VS
285552010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28556
28557 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28558
74cbf5bd
CW
285592010-05-18 Colin Watson <cjwatson@ubuntu.com>
28560
28561 * configure.ac: Check for Linux device-mapper support.
28562
28563 * util/hostdisk.c (device_is_mapped): New function.
28564 (find_partition_start): New function, partly broken out from
28565 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28566 device-mapper support added.
28567 (linux_find_partition): Use find_partition_start.
28568 (convert_system_partition_to_system_disk): Add `st' argument.
28569 Support Linux /dev/mapper/* devices if device-mapper support is
28570 available; only DM-RAID devices are understood at present.
28571 (find_system_device): Add `st' argument. Pass it to
28572 convert_system_partition_to_system_disk.
28573 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28574 find_system_device and convert_system_partition_to_system_disk. Use
28575 find_partition_start.
28576
28577 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28578 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28579 * util/deviceiter.c [__linux__]: Define MINOR.
28580 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28581 * util/mkdevicemap.c (grub_putchar): New function.
28582 (grub_getkey): New function.
28583 (grub_refresh): New function.
28584 (main): Set debug=all if -v -v is used.
28585
355b51e9
CW
285862010-05-18 Colin Watson <cjwatson@ubuntu.com>
28587
28588 Fix build with non-GNU libcs.
28589
28590 * util/misc.c (canonicalize_file_name): Move to ...
28591 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28592 grub_make_system_path_relative_to_its_root.
28593
7fb5c25f
CW
285942010-05-18 Colin Watson <cjwatson@ubuntu.com>
28595
28596 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28597 we handle finding grub-mkimage. Default to finding grub-mkimage in
28598 ${bindir} with program_transform_name applied, and provide a
28599 --grub-mkimage option to override this.
28600
1d3293d6
VS
286012010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28602
28603 Remove grub-mkisofs.
28604
28605 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28606 (grub_mkisofs_SOURCES): Removed.
28607 (grub_mkisofs_CFLAGS): Removed.
28608 * util/mkisofs/defaults.h: Removed.
28609 * util/mkisofs/eltorito.c: Likewise.
28610 * util/mkisofs/exclude.h: Likewise.
28611 * util/mkisofs/hash.c: Likewise.
28612 * util/mkisofs/include/: Likewise.
28613 * util/mkisofs/include/fctldefs.h: Likewise.
28614 * util/mkisofs/include/mconfig.h: Likewise.
28615 * util/mkisofs/include/prototyp.h: Likewise.
28616 * util/mkisofs/include/statdefs.h: Likewise.
28617 * util/mkisofs/iso9660.h: Likewise.
28618 * util/mkisofs/joliet.c: Likewise.
28619 * util/mkisofs/match.c: Likewise.
28620 * util/mkisofs/match.h: Likewise.
28621 * util/mkisofs/mkisofs.c: Likewise.
28622 * util/mkisofs/mkisofs.h: Likewise.
28623 * util/mkisofs/msdos_partition.h: Likewise.
28624 * util/mkisofs/multi.c: Likewise.
28625 * util/mkisofs/name.c: Likewise.
28626 * util/mkisofs/rock.c: Likewise.
28627 * util/mkisofs/tree.c: Likewise.
28628 * util/mkisofs/write.c: Likewise.
28629
5dde9afe
VS
286302010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28631
28632 Unify grub-mkimage accross platforms.
28633
28634 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28635 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28636 (grub_mkelfimage_SOURCES): Removed.
28637 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28638 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28639 (bin_UTILITIES): Add grub-mkimage.
28640 (grub_mkimage_SOURCES): New variable.
28641 (kernel_img_HEADERS): Remove machine/kernel.h.
28642 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28643 (pkglib_PROGRAMS): Add kernel.img.
28644 (kernel_img_HEADERS): Add machine/kernel.h.
28645 (kernel_img_FORMAT): Removed.
28646 (bin_UTILITIES): Remove grub-mkimage.
28647 (grub_mkimage_SOURCES): Removed.
28648 (grub_mkimage_CFLAGS): Likewise.
28649 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28650 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28651 (pkglib_PROGRAMS): Add kernel.img.
28652 (bin_UTILITIES): Remove grub-mkimage.
28653 (grub_mkimage_SOURCES): Removed.
28654 (grub_mkimage_CFLAGS): Likewise.
28655 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28656 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28657 (pkglib_PROGRAMS): Add kernel.img.
28658 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28659 (pkglib_PROGRAMS): Add kernel.img.
28660 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28661 (grub_mkimage_SOURCES): Removed.
28662 (grub_mkimage_CFLAGS): Likewise.
28663 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28664 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28665 (pkglib_PROGRAMS): Add kernel.img.
28666 (bin_UTILITIES): Remove grub-mkimage.
28667 (grub_mkimage_SOURCES): Removed.
28668 (grub_mkimage_CFLAGS): Likewise.
28669 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28670 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28671 (grub_mkimage_SOURCES): Removed.
28672 (grub_mkimage_CFLAGS): Likewise.
28673 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28674 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28675 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28676 (grub_pe32_optional_header): ... this.
28677 (grub_pe64_optional_header): ... and this. All users updated.
28678 (GRUB_PE32_PE32_MAGIC): Split into ..
28679 (GRUB_PE32_PE32_MAGIC): .. this.
28680 (GRUB_PE32_PE64_MAGIC): .. and this.
28681 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28682 * include/grub/elf.h (PT_GNU_STACK): New definition.
28683 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28684 * include/grub/i386/efi/kernel.h: Likewise.
28685 * include/grub/i386/kernel.h: Likewise.
28686 * include/grub/i386/pc/kernel.h: Likewise.
28687 * include/grub/i386/qemu/boot.h: Likewise.
28688 * include/grub/mips/kernel.h: Likewise.
28689 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28690 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28691 * include/grub/powerpc/kernel.h: Likewise.
28692 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28693 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28694 * include/grub/sparc64/kernel.h: Likewise.
28695 * include/grub/x86_64/efi/kernel.h: Likewise.
28696 * include/grub/x86_64/kernel.h: Likewise.
28697 * include/grub/offsets.h: New file.
28698 * include/grub/kernel.h (grub_module_info): Split into ...
28699 (grub_module_info32): ... this.
28700 (grub_module_info64): ... and this.
28701 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28702 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28703 (grub_boot_blocklist): Moved from here ...
28704 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28705 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28706 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28707 * include/grub/types.h (grub_target_to_host16): Removed.
28708 (grub_target_to_host32): Likewise.
28709 (grub_target_to_host64): Likewise.
28710 (grub_host_to_target16): Likewise.
28711 (grub_host_to_target32): Likewise.
28712 (grub_host_to_target64): Likewise.
28713 (grub_host_to_target_addr): Likewise.
28714
28715 Support grub-mkrescue for efi, coreboot and qemu.
28716
28717 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28718 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28719 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28720 * util/grub-mkrawimage.c: Moved from here ...
28721 * util/grub-mkimage.c: ... here. All users updated.
28722 (ALIGN_ADDR): Use image_target.
28723 (TARGET_NO_FIELD): New const.
28724 (image_target_desc): New type.
28725 (image_targets): New array.
28726 (grub_target_to_host64): Use image_target.
28727 (grub_target_to_host32): Likewise.
28728 (grub_target_to_host16): Likewise.
28729 (grub_host_to_target64): Likewise.
28730 (grub_host_to_target32): Likewise.
28731 (grub_host_to_target16): Likewise.
28732 (grub_host_to_target_addr): Likewise.
28733 (generate_image): Handle multiimage.
28734 (main): Require -O parameter. All users updated.
28735 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28736 util/efi/grub-mkimage.c
28737 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28738 New option --rom-directory.
28739 Use xorriso.
28740 * util/i386/efi/grub-mkimage.c: Removed.
28741 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28742 (grub_target_to_host32): Likewise.
28743 (grub_target_to_host64): Likewise.
28744 (grub_host_to_target16): Likewise.
28745 (grub_host_to_target32): Likewise.
28746 (grub_host_to_target64): Likewise.
28747 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28748 (grub_target_to_host32): Likewise.
28749 (grub_target_to_host64): Likewise.
28750 (grub_host_to_target16): Likewise.
28751 (grub_host_to_target32): Likewise.
28752 (grub_host_to_target64): Likewise.
28753
f4fc97d0
BC
287542010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28755
28756 Source tree is reorganized for emu build.
28757
28758 * include/grub/util/console.h: Move from here...
28759 * include/grub/emu/console.h: ...to here.
28760 * include/grub/util/getroot.h: Move from here...
28761 * include/grub/emu/getroot.h: ...to here.
28762 * include/grub/util/hostdisk.h: Move from here...
28763 * include/grub/emu/hostdisk.h: ...to here.
28764 * util/console.c: Move from here...
28765 * kern/emu/console.c: ...to here.
28766 * util/getroot.c: Move from here...
28767 * kern/emu/getroot.c: ...to here.
28768 * util/grub-emu.c: Move from here...
28769 * kern/emu/main.c: ...to here.
28770 * util/hostdisk.c: Move from here...
28771 * kern/emu/hostdisk.c: ...to here.
28772 * util/hostfs.c: Move from here...
28773 * kern/emu/hostfs.c: ...to here.
28774 * util/mm.c: Move from here...
28775 * kern/emu/mm.c: ...to here.
28776 * util/pci.c: Move from here...
28777 * bus/emu/pci.c: ...to here.
28778 * util/sdl.c: Move from here...
28779 * video/emu/sdl.c: ...to here.
28780 * util/time.c: Move from here...
28781 * kern/emu/time.c: ...to here.
28782 * util/usb.c: Move from here...
28783 * bus/usb/emu/usb.c: ...to here.
28784
28785 * include/grub/emu/misc.h: New header for grub-emu functions.
28786 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28787
28788 * conf/any-emu.rmk: Rule updates for above renames.
28789 * conf/common.rmk: Likewise.
28790 * conf/i386-pc.rmk: Likewise.
28791 * conf/i386-qemu.rmk: Likewise.
28792 * conf/mips.rmk: Likewise.
28793 * conf/sparc64-ieee1275.rmk: Likewise.
28794 * conf/x86-efi.rmk: Likewise.
28795
28796 * disk/lvm.h: #include updates for above renames.
28797 * util/grub-mkrelpath.c: Likewise.
28798 * util/grub-probe.c: Likewise.
28799 * util/i386/pc/grub-setup.c: Likewise.
28800 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28801 * kern/emu/console.c: Likewise.
28802 * kern/emu/getroot.c: Likewise.
28803 * kern/emu/hostdisk.c: Likewise.
28804 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28805
28806 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28807 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28808 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28809 * util/misc.c: Remove grub-emu functions.
28810
cced9145
VS
288112010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28812
28813 Fix gfxmenu crash.
28814 Reported by: Thorsten Grützmacher.
28815
28816 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28817 timeout hook.
28818 (circprog_set_property): Register and unregister timeout hook.
28819 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28820 (label_destroy): Free template. and unregister hook.
28821 (label_set_state): New function.
28822 (label_set_property): Handle templates and hooks.
28823 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28824 timeout hook.
28825 (progress_bar_set_property): Register and unregister timeout hook.
28826 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28827 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28828 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28829 (update_timeout_visit): Removed.
28830 (update_timeouts): New function.
28831 (redraw_timeouts): Likewise.
28832 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28833 (grub_gfxmenu_clear_timeout): Likewise.
28834 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28835 (grub_gfxmenu_timeout_notify): Likewise.
28836 (grub_gfxmenu_timeout_notifications): New external variable.
28837 (grub_gfxmenu_timeout_register): New function.
28838 (grub_gfxmenu_timeout_unregister): Likewise.
28839
c6e5caab
VS
288402010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28841
28842 Transform (broken) vga terminal into (working) vga video driver.
28843
28844 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28845 video/i386/pc/vga.c.
28846 * include/grub/video.h (grub_video_driver_id):
28847 Add GRUB_VIDEO_DRIVER_VGA.
28848 * term/i386/pc/vga.c: Renamed to ...
28849 * video/i386/pc/vga.c: ...this
28850 (DEBUG_VGA): Removed.
28851 (CHAR_WIDTH): Likewise.
28852 (CHAR_HEIGHT): Likewise.
28853 (TEXT_WIDTH): Likewise.
28854 (TEXT_HEIGHT): Likewise.
28855 (DEFAULT_FG_COLOR): Likewise.
28856 (DEFAULT_BG_COLOR): Likewise.
28857 (colored_char): Likewise.
28858 (xpos): Likewise.
28859 (ypos): Likewise.
28860 (cursor_state): Likewise.
28861 (fg_color): Likewise.
28862 (bg_color): Likewise.
28863 (text_buf): Likewise.
28864 (page): Likewise.
28865 (font): Likewise.
28866 (framebuffer): New variable.
28867 (set_read_map): Disabled.
28868 (setup): New variable.
28869 (is_target): Likewise.
28870 (grub_vga_mod_init): Likewise.
28871 (grub_vga_mod_fini): Likewise.
28872 (check_vga_mem): Likewise.
28873 (write_char): Likewise.
28874 (write_cursor): Likewise.
28875 (scroll_up): Likewise.
28876 (grub_vga_putchar): Likewise.
28877 (grub_vga_getcharwidth): Likewise.
28878 (grub_vga_getwh): Likewise.
28879 (grub_vga_getxy): Likewise.
28880 (grub_vga_gotoxy): Likewise.
28881 (grub_vga_cls): Likewise.
28882 (grub_vga_setcolorstate): Likewise.
28883 (grub_vga_setcursor): Likewise.
28884 (grub_video_vga_init): New function.
28885 (grub_video_vga_setup): Likewise.
28886 (grub_video_vga_fini): Likewise.
28887 (update_target): Likewise.
28888 (grub_video_vga_blit_bitmap): Likewise.
28889 (grub_video_vga_blit_render_target): Likewise.
28890 (grub_video_vga_set_active_render_target): Likewise.
28891 (grub_video_vga_get_active_render_target): Likewise.
28892 (grub_video_vga_swap_buffers): Likewise.
28893 (grub_video_vga_set_palette): Likewise.
28894 (grub_video_vga_get_info_and_fini): Likewise.
28895 (grub_vga_term): Removed.
28896 (grub_video_vga_adapter): New variable.
28897 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28898 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28899
2bf61a98
VS
289002010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28901
28902 * video/readers/jpeg.c: Indented.
28903
09ddcd11
VS
289042010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28905
28906 Various jpeg cleanups.
28907
28908 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28909 (grub_jpeg_decode_quan_table): Use sizeof.
28910 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28911
e5507505
PH
289122010-05-05 Peter Hurley <No e-mail available> (tiny change)
28913
28914 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28915 tables. Ignore non-last ac bit.
28916 (grub_jpeg_decode_quan_table): Likewise.
28917
7e720a9b
VS
289182010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28919
28920 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28921 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28922 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28923 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28924 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28925 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28926
a7fc080b
VS
289272010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28928
28929 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28930 error.
28931
2bf6012d
VS
289322010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28935
265d68cd
VS
289362010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28937
28938 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28939 condition.
28940
289412010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
28942
28943 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28944 part.
28945
265d68cd 289462010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
28947
28948 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28949 pointers.
28950
265d68cd 289512010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
28952
28953 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28954
d1b61374
CF
289552010-05-01 Christian Franke <franke@computer.org>
28956
28957 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28958 Remove broken Cygwin path conversion.
28959 * util/misc.c: [__CYGWIN__] Add include and define.
28960 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28961 for Cygwin 1.7.
28962 (make_system_path_relative_to_its_root): Simplify loop, replace early
28963 return by break.
28964 [__CYGWIN__] Add conversion to win32 path.
28965 Include "/" case in trailing slash removal.
28966
3558c6e9
VS
289672010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28968
28969 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28970 Reported by: Seth Goldberg
28971
f5f3ff93
VS
289722010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28973
28974 * commands/help.c (grub_cmd_help): Fix a typo.
28975 Reported by: Seth Goldberg
28976
d8b5cd40
VS
289772010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28978
28979 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28980 name and add N_.
28981 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28982 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28983 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28984 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28985 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28986 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28987 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28988 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28989 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28990 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28991 * normal/context.c (GRUB_MOD_INIT): Likewise.
28992 * normal/main.c (GRUB_MOD_INIT): Likewise.
28993 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28994 * term/serial.c (GRUB_MOD_INIT): Likewise.
28995 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28996
88c14915
VS
289972010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28998
28999 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
29000 extra == 0.
29001
165134bc
VS
290022010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29003
29004 * commands/iorw.c: New file.
29005 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29006 (iorw_mod_SOURCES): New variable.
29007 (iorw_mod_CFLAGS): Likewise.
29008 (iorw_mod_LDFLAGS): Likewise.
29009
c5ac9b32
VS
290102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29011
29012 Hotkey support
29013
29014 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29015 * normal/main.c (hotkey_aliases): New variable.
29016 (grub_normal_add_menu_entry): Parse "--hotkey".
29017 * normal/menu_text.c (run_menu): Handle hotkeys.
29018
ce60689c
VS
290192010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29020
29021 * kern/i386/coreboot/init.c (grub_machine_init): Call
29022 grub_machine_mmap_init on qemu.
29023
0359d006
VS
290242010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29025
29026 * boot/i386/qemu/boot.S: Add a missing .code16.
29027
7819a456
VS
290282010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29029
29030 Use LBIO on coreboot.
29031
29032 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29033 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29034 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29035 New declaration.
29036 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29037 grub_machine_mmap_init on coreboot.
29038 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29039 GRUB_LINUXBIOS_MEMBER_LINK.
29040 (grub_machine_mmap_iterate): Fix declaration.
29041 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29042
7210dca9
VS
290432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29044
29045 Split coreboot and multiboot ports.
29046
29047 * conf/i386-multiboot.rmk: New file.
29048 * configure.ac: Add multiboot port.
29049 * include/grub/i386/multiboot/boot.h: New file.
29050 * include/grub/i386/multiboot/console.h: Likewise.
29051 * include/grub/i386/multiboot/init.h: Likewise.
29052 * include/grub/i386/multiboot/kernel.h: Likewise.
29053 * include/grub/i386/multiboot/loader.h: Likewise.
29054 * include/grub/i386/multiboot/memory.h: Likewise.
29055 * include/grub/i386/multiboot/serial.h: Likewise.
29056 * include/grub/i386/multiboot/time.h: Likewise.
29057 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29058 * loader/multiboot.c: Likewise.
29059 * loader/multiboot_mbi2.c: Likewise.
29060 * util/grub-mkrescue.in: Generate multiboot rescue.
29061
6f8aaf68
VS
290622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29063
3080f7a7
VS
29064 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29065
290662010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29067
29068 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
29069
29070 * commands/terminal.c (abstract_terminal): New struct.
29071 (handle_command): New function. Based on grub_cmd_terminal_input.
29072 (grub_cmd_terminal_input): Use handle_command.
29073 (grub_cmd_terminal_output): Use handle_command.
29074
a8ebb841
BC
290752010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29076
29077 Fix comment handling.
29078
29079 * tests/grub_script_comments.in: New testcase.
29080 * conf/tests.rmk: Rules for new testcase.
29081 * script/yylex.l: Updated flex rules.
29082
bb06ba08
ST
290832010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29084
29085 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
29086 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29087 if argc is 1.
bb06ba08 29088
cc9d2425
VS
290892010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29090
29091 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29092 autogen issues.
29093
460d8402
CF
290942010-04-26 Christian Franke <franke@computer.org>
29095
29096 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29097 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29098 (grub_get_prefix): Remove function.
29099 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29100 make_system_path_relative_to_its_root ().
29101 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29102
553c01f9
CF
291032010-04-24 Christian Franke <franke@computer.org>
29104
29105 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29106 (kernel_img_LDFLAGS): Remove -static-libgcc.
29107
2aec1692
CF
291082010-04-24 Christian Franke <franke@computer.org>
29109
29110 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29111 and CHECK_END_SYMBOL if grub-emu is built.
29112 Unset TARGET_OBJ2ELF if grub-emu is built
29113 without module support.
29114
f67dc308
JS
291152010-04-24 Jiro SEKIBA <jir@unicus.jp>
29116
29117 Nilfs2 support.
29118
29119 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29120 (grub_fstest_SOURCES): Likewise.
29121 (pkglib_MODULES): Add nilfs2.mod.
29122 (nilfs2_mod_SOURCES): New variable.
29123 (nilfs2_mod_CFLAGS): Likewise.
29124 (nilfs2_mod_LDFLAGS): Likewise.
29125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29126 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29127 * fs/nilfs2.c: New file.
29128
4ba8d354
VS
291292010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29130
29131 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29132 is not supported.
29133
0d2c20c6
GS
291342010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29135
29136 Add grub-mkconfig support for NetBSD.
29137
29138 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29139 * util/grub-mkconfig.in: export new NetBSD specific variables.
29140 * po/POTFILES-shell: added 10_netbsd.in.
29141 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29142
bc4a2d83
BC
291432010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29144
29145 Fix emu build with grub-emu-pci and grub-emu-modules.
29146
29147 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29148 functions.
29149 * include/grub/libpciaccess.h: New file.
29150 * conf/any-emu.rmk: Update kernel headers for emu build.
29151
f48c87aa
VS
291522010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29153
29154 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29155
18959385
VS
291562010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29157
29158 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29159
0037de3f
VS
291602010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29161
29162 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29163 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29164 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29165 util/ieee1275/ofpath.c.
29166 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29167 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29168 * include/grub/sparc64/ieee1275/boot.h
29169 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29170 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29171 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29172 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29173 const char *.
29174 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29175 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29176 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29177 install.
29178
38e55e90
GS
291792010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29180
29181 * util/grub-mkconfig.in: Corrected two == equality tests.
29182 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29183 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29184 expect a number appended to it.
29185 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29186 expects a number appended to it.
29187
a9e6ff28
VS
291882010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29189
29190 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29191
0b830b8f
VS
291922010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29193
29194 * util/hostdisk.c (make_device_name): Change to new partition naming.
29195
0973daeb
VS
291962010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29197
29198 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29199
460d8402 292002010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
29201
29202 * Makefile.in: Add missing localedir setting.
29203
0b456309
CW
292042010-04-14 Colin Watson <cjwatson@ubuntu.com>
29205
29206 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29207 mistake in r2156. Noticed by Anthony Fok.
29208
29209 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29210 @localedir@.
29211 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29212
08f46d62
BC
292132010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29214
29215 Fix a spurious, uninitialized variable warning.
29216
29217 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29218 Initialize variable, shdr.
29219 (grub_freebsd_load_elfmodule): Likewise.
29220 (grub_freebsd_load_elf_meta): Likewise.
29221
8c4a72d4
BC
292222010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29223
29224 Fix for escaped dollar in double quoted strings.
29225
29226 * script/yylex.l: Updated flex rules.
29227 * conf/tests.rmk: Rule for new testcase.
29228 * tests/grub_script_dollar.in: New testcase.
29229
ce44826e
CPE
292302010-04-13 Carles Pina i Estany <carles@pina.cat>
292312010-04-13 Colin Watson <cjwatson@ubuntu.com>
29232
29233 Enclose all translated strings in grub.cfg in single quotes, and
29234 escape them appropriately (Ubuntu bug #552921).
29235
29236 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29237 * util/grub.d/10_hurd.in: Use it.
29238 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29239 * util/grub.d/10_linux.in (linux_entry): Likewise.
29240
4b0cd8f8
VS
292412010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29242
29243 Fix cygwin compilation.
29244
29245 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29246 * include/grub/misc.h (__register_frame_info)
29247 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29248 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29249 * kern/misc.c (__register_frame_info)
29250 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29251 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29252
01fcf061
VS
292532010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29254
29255 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29256
5d04b11e
VS
292572010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29258
29259 Unify libgcc processing.
29260
29261 * Makefile.in (kernel_img_LDFLAGS): New variable.
29262 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29263 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29264 overwriting.
29265 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29266 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29267 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29268 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29269 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29270 overwriting. Remove -lgcc and -static-libgcc
29271 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29272 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29273 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29274 (kernel_img_LDFLAGS): Append instead of overwriting.
29275 Remove -lgcc and -static-libgcc
29276 * conf/sparc64-ieee1275.rmk: Likewise.
29277 * include/grub/powerpc/libgcc.h: Move to ...
29278 * include/grub/libgcc.h: .. this.
29279 * include/grub/libgcc.h: Don't export most of the function on x86.
29280 (__bswapsi2): New export.
29281 (__bswapdi2): Likewise.
29282 * include/grub/mips/libgcc.h: Removed.
29283 * include/grub/sparc64/libgcc.h: Likewise.
29284
b7f3ac29
VS
292852010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29286
29287 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29288 disk_info_msg (conflicts with gettexting into languages with cases).
29289
2c7031b1
GS
292902010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29291
29292 Add grub-probe support for NetBSD.
29293
29294 * util/getroot.c (find_root_device): Convert block device to
29295 character device on NetBSD.
29296 * util/probe.c (probe): Require character device on NetBSD.
29297 * util/hostdisk.c: NetBSD specific headers.
29298 (configure_device_driver): new function to tune device driver
29299 parameters (currently only for NetBSD floppy driver).
29300 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29301 via disklabel ioctl).
29302 (open_device): call configure_device_driver on NetBSD.
29303 (convert_system_partition_to_system_disk): NetBSD specific code.
29304 (device_is_wholedisk): Likewise.
29305 (grub_util_biosdisk_get_grub_dev): Likewise.
29306 (make_device_name): Fixed a typo in bsd_part_str.
29307 * configure.ac: check for opendisk() and getrawpartition() on
29308 NetBSD and set LIBUTIL.
29309 * Makefile.in: add LIBUTIL to LIBS.
29310
f516290c
BC
293112010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29312
29313 Documentation fix.
29314
29315 * util/grub-script-check.c: Better help message.
29316
d8dcc0df
BC
293172010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29318
29319 Fix FreeBSD build.
29320
29321 * configure.ac: Flex version check.
29322 * conf/common.rmk: Add -Wno-error to sh.mod.
29323 * script/yylex.l: Remove all #pragma.
29324
6734334a
VS
293252010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29328 prototype.
29329 Reported by: Seth Goldberg.
29330
daea6abd
VS
293312010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29332
29333 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29334 Rename "module" to "module2".
29335 Reported by: Seth Goldberg.
29336
f2fd9d2b
VS
293372010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29338
29339 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29340 EXPORT_FUNC.
29341 Reported by: Seth Goldberg.
29342
be124579
VS
293432010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29344
29345 * lib/posix_wrap/locale.h: Add missing file.
29346 Reported by: Seth Goldberg.
29347
ef5da797
VS
293482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29349
29350 grub-emu module load support.
29351
29352 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29353 NO_DYNAMIC_MODULES switched to this.
29354 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29355 (CFLAGS): Likewise.
29356 * conf/any-emu.rmk: Generate symlist.
29357 (kernel_img_HEADERS): Add util/datetime.h.
29358 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29359 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29360 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29361 kern/$(target_cpu)/cache.S.
29362 * configure.ac (grub-emu-modules): New option.
29363 * genmk.rb: Handle multiple source lists.
29364 * include/grub/sdl.h: New file.
29365 * include/grub/libusb.h: Likewise.
29366 * util/grub-emu.c (main): Hanle (host) root.
29367 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29368 GRUB_ERR_UNKNOWN_DEVICE.
29369 * util/misc.c: Move mm functions to ...
29370 * util/mm.c: ... here. All users updated.
29371
47822096
VS
293722010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29373
29374 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29375 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29376 missing files.
29377 (maintainer-clean): Remove libgcrypt-grub.
29378
5d7e7445
VS
293792010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29380
29381 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29382
25f4e252
EC
293832010-04-09 EFI Coder <eficoder@hotmail.com>
29384
29385 * normal/menu_text.c (print_message): Clean up the message and show
29386 the Fn information when on EFI
29387 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29388
027de555
VS
293892010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29390
29391 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29392 All users updated.
29393 * normal/crypto.c (read_crypto_list): Likewise.
29394 * normal/dyncmd.c (read_command_list): Likewise.
29395 * normal/term.c (read_terminal_list): Likewise.
29396 * normal/main.c (read_lists): Use explicit prefix.
29397 (read_lists_hook): Use read_lists.
29398 (grub_normal_execute): Likewise.
29399
47779711
VS
294002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29401
29402 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29403 Reported by: Thomas Schmitt.
29404 Add -no-emul-boot to grub-mkisofs parameters.
29405
1118c32e
VS
294062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29407
29408 * font/font.c: Indented.
29409
7d652447
BC
294102010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29411
29412 Elif support to GRUB script (by Deepak Vankadaru).
29413
29414 * tests/grub_script_if.in: New testcase.
29415 * conf/tests.rmk: Rule for new testcase.
29416 * script/parser.y: Grammar rules for elif.
29417
34bb22df
BC
294182010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29419
29420 While and until loops support to GRUB script.
29421
29422 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29423 (grub_script_create_cmdwhile): New function prototype.
29424 (grub_script_execute_cmdwhile): New function prototype.
29425 * script/execute.c (grub_script_execute_cmdwhile): New function.
29426 * script/parser.y (command): New commands.
29427 (whilecmd): New grammar rule.
29428 (untilcmd): New grammar rule.
29429 * script/script.c (grub_script_create_cmdwhile): New function.
29430 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29431 function.
29432
29433 * tests/grub_script_while1.in: New testcase.
29434 * conf/tests.rmk: Rule for new testcase.
29435
e215d8e0
VS
294362010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29437
29438 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29439 as *.jpg.
29440
d7c43ba1
MV
294412010-04-09 Mario Vazquez <mariovazq@gmail.com>
29442
29443 GRUB_BACKGROUND support.
29444
29445 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29446 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29447
d64795c0
VS
294482010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29449
29450 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 29451 Idea by: Mario Vazquez
d64795c0
VS
29452
29453 * util/grub.d/00_header.in: Load pf2 and image modules.
29454
f267f83a
VS
294552010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29456
29457 grub-mkconfig multiple terminal support.
29458
29459 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29460 * util/grub.d/00_header.in: Likewise.
29461
b7841ceb
VS
294622010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29463
29464 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29465 we use cd $(srcdir).
29466
df60998c
CW
294672010-04-08 Colin Watson <cjwatson@ubuntu.com>
29468
29469 * util/grub.d/10_linux.in: Only use the first word of
29470 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29471 spaces in GRUB_DISTRIBUTOR.
29472 * util/grub.d/10_kfreebsd.in: Likewise.
29473 * util/grub.d/10_hurd.in: Likewise.
29474
fa09c82e
BC
294752010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29476
14e18ae3 29477 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
29478
29479 * tests/util/grub-shell.in: Remove -serial stdio option.
29480
daf892b3
BC
294812010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29482
29483 POSIX header file wrappers.
29484
29485 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29486 equivalents.
29487 * lib/posix_wrap/ctype.h: Likewise.
29488 * lib/posix_wrap/errno.h: Likewise.
29489 * lib/posix_wrap/langinfo.h: Likewise.
29490 * lib/posix_wrap/limits.h: Likewise.
29491 * lib/posix_wrap/localcharset.h: Likewise.
29492 * lib/posix_wrap/stdint.h: Likewise.
29493 * lib/posix_wrap/stdio.h: Likewise.
29494 * lib/posix_wrap/stdlib.h: Likewise.
29495 * lib/posix_wrap/string.h: Likewise.
29496 * lib/posix_wrap/sys/types.h: Likewise.
29497 * lib/posix_wrap/unistd.h: Likewise.
29498 * lib/posix_wrap/wchar.h: Likewise.
29499 * lib/posix_wrap/wctype.h: Likewise.
29500 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29501 (grub_script.yy.h): Likewise.
29502 * script/yylex.l: Remove POSIX emulation #defines.
29503 * Makefile.in (POSIX_CFLAGS): New variable.
29504 (GNULIB_UTIL_CFLAGS): Likewise.
29505
29506 Regexp support.
29507
29508 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29509 (regexp_mod_SOURCES): New variable.
29510 (regexp_mod_CFLAGS): Likewise.
29511 (regexp_mod_LDFLAGS): Likewise.
29512 * commands/regexp.c: New file.
29513 * gnulib/regcomp.c: New file. Imported from gnulib.
29514 * gnulib/regex.c: Likewise.
29515 * gnulib/regex_internal.c: Likewise.
29516 * gnulib/regex_internal.h: Likewise.
29517 * gnulib/regexec.c: Likewise.
29518 * gnulib/regex.h: Likewise.
29519
974ac4f7
VS
295202010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29521
29522 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29523 unsupported video mode types.
29524
2622c3ff
VS
295252010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29526
29527 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29528
064cb524
VS
295292010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29530
29531 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29532 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29533
a8c3b552
VS
295342010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29535
29536 Remove unused grub_vga_get_font.
29537
29538 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29539 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29540
187bbe3d
GS
295412010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29542
29543 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29544 * include/grub/misc.h: Likewise.
29545
b9396631
GS
295462010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29547
29548 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29549 for which failure is fatal.
29550
50479feb
GS
295512010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29552
29553 * util/grub-install.in: Use mkdir -p to create grub directory.
29554 * util/i386/efi/grub-install.in: Likewise.
29555 * util/ieee1275/grub-install.in: Likewise.
29556
b1654fdf
GS
295572010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29558
29559 * Makefile.in (LEX): new variable.
29560
bd5a6415
GS
295612010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29562
29563 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29564 `=' and added double quotes on operands of this equality test.
29565
3db3a82b
VS
295662010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29567
29568 * Makefile.in (uninstall): Remove a leftover debug echo.
29569 Reported by: Grégoire Sutre
29570
38023412
VS
295712010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29572
29573 MIPS multiboot2 support.
29574
29575 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29576 (multiboot2_mod_SOURCES): New variable.
29577 (multiboot2_mod_CFLAGS): Likewise.
29578 (multiboot2_mod_LDFLAGS): Likewise.
29579 (multiboot2_mod_ASFLAGS): Likewise.
29580 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29581 definition.
29582 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29583 (MULTIBOOT_MBI_REGISTER): Likewise.
29584 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29585 (MULTIBOOT_ELF32_MACHINE): Likewise.
29586 (MULTIBOOT_ELF64_MACHINE): Likewise.
29587 * include/grub/mips/multiboot.h: New file.
29588 * include/grub/video.h (grub_video_driver_id): New type
29589 GRUB_VIDEO_DRIVER_SM712.
29590 (grub_video_get_info_and_fini): Export.
29591 (grub_video_get_palette): Likewise.
29592 (grub_video_get_driver_id): Likewise.
29593 * include/multiboot2.h: Resynced with spec.
29594 * loader/i386/multiboot.c: Moved from here ...
29595 * loader/multiboot.c: ... here. All users updated.
29596 (grub_multiboot_boot): Use platform-specific macros.
29597 * loader/i386/multiboot_elfxx.c: Moved from here ...
29598 * loader/multiboot_elfxx.c: ... here. All users updated.
29599 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29600 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29601 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29602
47674667
VS
296032010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29604
29605 Import gnulib argp module.
29606
29607 * gnulib/argp-ba.c: New file.
29608 * gnulib/argp-eexst.c: Likewise.
29609 * gnulib/argp-fmtstream.c: Likewise.
29610 * gnulib/argp-fmtstream.h: Likewise.
29611 * gnulib/argp-fs-xinl.c: Likewise.
29612 * gnulib/argp-help.c: Likewise.
29613 * gnulib/argp-namefrob.h: Likewise.
29614 * gnulib/argp-parse.c: Likewise.
29615 * gnulib/argp-pin.c: Likewise.
29616 * gnulib/argp-pv.c: Likewise.
29617 * gnulib/argp-pvh.c: Likewise.
29618 * gnulib/argp-version-etc.c: Likewise.
29619 * gnulib/argp-version-etc.h: Likewise.
29620 * gnulib/argp-xinl.c: Likewise.
29621 * gnulib/argp.h: Likewise.
29622
495442ed
VS
296232010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29624
29625 * kern/device.c (grub_device_iterate): Clear errors after failed
29626 opening device.
29627
f9fd65df
VS
296282010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29629
29630 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29631 returned by firmware.
29632
af09641e
VS
296332010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29634
29635 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29636 compilation on coreboot and qemu
29637
016883a5
VS
296382010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29639
29640 * include/multiboot2.h: Resync with spec.
29641
f97e1f7d
VS
296422010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29643
29644 Multiboot2 tag support
29645
29646 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29647 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29648 Remove loader/multiboot_loader.c.
29649 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29650 (grub_multiboot2_real_boot): Likewise.
29651 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29652 (grub_get_multiboot_mmap_count): New proto.
29653 (grub_fill_multiboot_mmap): Likewise.
29654 (grub_multiboot_set_video_mode): Likewise.
29655 (grub_multiboot_set_console): Likewise.
29656 (grub_multiboot_load): Likewise.
29657 (grub_multiboot_load_elf): Likewise.
29658 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29659 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29660 * include/multiboot.h: Resynced with specification.
29661 * include/multiboot2.h: Resynced with specification.
29662 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29663 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29664 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29665 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29666 users updated.
29667 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29668 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29669 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29670 Removed.
29671 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29672 Moved from here...
29673 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29674 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29675 Moved from here...
29676 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29677 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29678 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29679 All users updated.
29680 * loader/i386/multiboot_mbi2.c: New file.
29681
3506b90b
VS
296822010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29683
29684 Resync with gnulib.
29685
29686 * Makefile.in (GNULIB_CFLAGS): New variable.
29687 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29688 (grub_script_check_CFLAGS): New variable.
29689 * gnulib/alloca.h: Resync with gnulib.
29690 * gnulib/error.c: Likewise.
29691 * gnulib/error.h: Likewise.
29692 * gnulib/fnmatch.c: Likewise.
29693 * gnulib/fnmatch_loop.c: Likewise.
29694 * gnulib/getdelim.c: Likewise.
29695 * gnulib/getline.c: Likewise.
29696 * gnulib/getopt.c: Likewise.
29697 * gnulib/getopt1.c: Likewise.
29698 * gnulib/getopt_int.h: Likewise.
29699 * gnulib/gettext.h: Likewise.
29700 * gnulib/progname.c: Likewise.
29701 * gnulib/progname.h: Likewise.
29702
394a3120
GS
297032010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29704
29705 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29706 which is the case with --disabled-nls.
29707
29708 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29709 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29710 * util/misc.c: Likewise.
29711 * util/mkisofs/mkisofs.c: Likewise.
29712 * util/mkisofs/mkisofs.h: Likewise.
29713
969d1c78
VS
297142010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29715
29716 Simplify Apple CC support.
29717
29718 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29719 Add 0 byte at the end not to have a symbol with empty target.
29720 * mmap/i386/pc/mmap_helper.S: Likewise.
29721 * genmk.rb: Ignore errors 2030 and 2050.
29722 * kern/i386/pc/startup.S: Use LOCAL when possible.
29723
8d2977bb
BC
297242010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29725
29726 Testcase and the fix for final semicolon on cmdline.
29727
29728 * tests/grub_script_final_semicolon.in: New testcase.
29729 * conf/tests.rmk: Rules for the new testcase.
29730 * script/parser.y: Grammar fix.
29731
a7bd6915
BC
297322010-03-26 BVK Chaitanya <bvk@localhost>
29733
29734 Blank lines testcase for GRUB script.
29735
29736 * tests/grub_script_blanklines.in: New testcase.
29737 * conf/tests.rmk: Rules for the new testcase.
29738
e4ff6628
VS
297392010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29740
29741 Don't use __FILE__.
29742
29743 * genmk.rb: Add -DGRUB_FILE to all C targets.
29744 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29745 * include/grub/list.h: Likewise.
29746 * include/grub/misc.h: Likewise.
29747 * include/grub/mm.h: Likewise.
29748 * include/grub/test.h: Likewise.
29749 * kern/mm.c: Likewise.
29750 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29751
6a5cf6b6
VS
297522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29753
29754 Sunpc partitions support.
29755
29756 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29757 (grub_fstest_SOURCES): Likewise.
29758 (pkglib_MODULES): Add part_sunpc.mod.
29759 (part_sunpc_mod_SOURCES): New variable.
29760 (part_sunpc_mod_CFLAGS): Likewise.
29761 (part_sunpc_mod_LDFLAGS): Likewise.
29762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29763 * partmap/sunpc.c: New file.
29764
746d9045
BC
297652010-03-26 BVK Chaitanya <bvk@localhost>
29766
29767 For loop support to GRUB script.
29768
29769 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29770 (grub_script_create_cmdfor): New function prototype.
29771 (grub_script_execute_cmdfor): New function prototype.
29772 * script/execute.c (grub_script_execute_cmdfor): New function.
29773 * script/parser.y (command): New for command.
29774 (forcmd): New grammar rule.
29775 * script/script.c (grub_script_create_cmdfor): New function.
29776 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29777 function.
29778 * tests/grub_script_for1.in: New testcase.
29779 * conf/tests.rmk: Rules for new testcase.
29780
18486b18
VS
297812010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29782
29783 Nested partitions
29784
29785 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29786 'partition' is NULL, grub_partition_get_start already does that.
29787 * commands/loadenv.c (check_blocklists): Likewise.
29788 (write_blocklists): Likewise.
29789 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29790 (grub_fstest_SOURCES): Likewise.
29791 (pkglib_MODULES): Add part_bsd.mod.
29792 (part_bsd_mod_SOURCES): New variable.
29793 (part_bsd_mod_CFLAGS): Likewise.
29794 (part_bsd_mod_LDFLAGS): Likewise.
29795 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29796 (grub_emu_SOURCES): Likewise.
29797 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29798 * include/grub/bsdlabel.h: New file.
29799 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29800 'get_name'.
29801 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29802 (grub_partition_map_list): New variable.
29803 (grub_partition_map_register): Inline.
29804 (grub_partition_map_unregister): Likewise.
29805 (FOR_PARTITION_MAPS): New macro.
29806 (grub_partition_map_iterate): Removed.
29807 (grub_partition_get_start): Handle nested partitions.
29808 * include/grub/msdos_partition.h: Remove bsd-related entries.
29809 (grub_pc_partition): Remove.
29810 * kern/disk.c (grub_disk_close): Free partition data.
29811 (grub_disk_adjust_range): Handle nested partitions.
29812 * kern/partition.c (grub_partition_map_probe): New function.
29813 (grub_partition_probe): Parse name to number, handle subpartitions.
29814 (get_partmap): New function.
29815 (grub_partition_iterate): Handle subpartitions.
29816 (grub_partition_get_name): Likewise.
29817 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29818 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29819 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29820 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29821 Set 'number'.
29822 (acorn_partition_map_probe): Remove.
29823 (acorn_partition_map_get_name): Likewise.
29824 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29825 Set 'number'.
29826 Set 'index' to 0 since there can be only one partition entry per sector.
29827 (amiga_partition_map_probe): Remove.
29828 (amiga_partition_map_get_name): Likewise.
29829 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29830 Set 'number'.
29831 Set 'offset' and 'index' to real positions of partitions.
29832 (apple_partition_map_probe): Remove.
29833 (apple_partition_map_get_name): Likewise.
29834 * partmap/bsdlabel.c: New file.
29835 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29836 Set 'number'.
29837 Allocate 'data' so it can be correctly freed.
29838 Set 'index' to offset inside sector.
29839 (gpt_partition_map_probe): Remove.
29840 (gpt_partition_map_get_name): Likewise.
29841 * partmap/msdos.c (grub_partition_parse): Remove.
29842 (pc_partition_map_iterate): Don't force raw access.
29843 Set 'number'.
29844 Make 'ext_offset' a local variable.
29845 (pc_partition_map_probe): Remove.
29846 (pc_partition_map_get_name): Remove.
29847 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29848 Set 'number'.
29849 (sun_partition_map_probe): Remove.
29850 (sun_partition_map_get_name): Likewise.
29851 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29852 (grub_pcpart_type): Likewise.
29853 * util/hostdisk.c (open_device): Handle new numbering scheme.
29854 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29855 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29856 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29857 * util/grub-install.in: Insert all subpartition modules.
29858 * util/ieee1275/grub-install.in: Likewise.
29859
a3940f88
AG
298602010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29861
29862 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29863 grammar.
29864
21b99926 298652010-03-24 Colin Watson <cjwatson@ubuntu.com>
29866
29867 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29868
bed1d352
CW
298692010-03-21 Colin Watson <cjwatson@ubuntu.com>
29870
29871 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29872 match where 'make install' puts them.
29873 * util/i386/efi/grub-install.in: Likewise.
29874
c9f58427
CW
298752010-03-19 Colin Watson <cjwatson@ubuntu.com>
29876
29877 * .bzrignore: Add gentrigtables, grub-script-check,
29878 grub_script_check_init.c, grub_script_check_init.h, and
29879 trigtables.c.
29880
f84afb27
VS
298812010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29882
29883 * kern/parser.c: Indented.
29884
ed0e3d30
VS
298852010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29888
0ea81d98
VS
298892010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29890
29891 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29892 alpha_mask_size == 0 case.
29893
0cdc2a09
BC
298942010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29895
29896 GRUB shell lexer and parser improvements.
29897
29898 * conf/any-emu.rmk: Build rule updates.
29899 * conf/common.rmk: Likewise.
29900 * conf/i386-coreboot.rmk: Likewise.
29901 * conf/i386-efi.rmk: Likewise.
29902 * conf/i386-ieee1275.rmk: Likewise.
29903 * conf/i386-pc.rmk: Likewise.
29904 * conf/powerpc-ieee1275.rmk: Likewise.
29905 * conf/x86_64-efi.rmk: Likewise.
29906
29907 * configure.ac: Configure check for flex.
29908
29909 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29910 types.
29911 (grub_lexer_param): Struct member updates.
29912 (grub_parser_param): Likewise.
29913 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29914 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29915 (grub_script_lexer_init): Prototype update.
29916 (grub_script_lexer_record_start): Likewise.
29917 (grub_script_lexer_record_stop): Likewise.
29918 (grub_script_lexer_yywrap): New function prototype.
29919 (grub_script_lexer_fini): Likewise.
29920 (grub_script_execute_argument_to_string): Removed by...
29921 (grub_script_execute_argument_to_argv): ...better version.
29922
29923 * script/execute.c (ROUND_UPTO): New macro.
29924 (grub_script_execute_cmdline): Out of memory fixes.
29925 (grub_script_execute_menuentry): Likewise.
29926 (grub_script_execute_argument_to_string): Removed. Update all
29927 users by...
29928 (grub_script_execute_argument_to_argv): ...better version.
29929 * script/function.c (grub_script_function_create): Use
29930 grub_script_execute_argument_to_argv instead of
29931 grub_script_execute_argument_to_string.
29932
29933 * script/lexer.c (check_varstate): Removed.
29934 (check_textstate): Removed.
29935 (grub_script_lexer_record_start): Likewise.
29936 (grub_script_lexer_record_stop): Likewise.
29937 (recordchar): Replaced with...
29938 (grub_script_lexer_record): ...new function.
29939 (nextchar): Removed.
29940 (grub_script_lexer_init): Rewritten.
29941 (grub_script_yylex): Rewritten.
29942 (append_newline): New function.
29943 (grub_script_lexer_yywrap): New function.
29944 (grub_script_lexer_fini): New function.
29945 (grub_script_yyerror): Sets error flag.
29946
29947 * script/yylex.l: New file.
29948 (grub_lexer_yyfree): Wrapper for flex yyffre.
29949 (grub_lexer_yyalloc): Likewise.
29950 (grub_lexer_yyrealloc): Likewise.
29951 * script/parser.y: Refactored.
29952
29953 * script/script.c (grub_script_arg_add): Out of memory fixes.
29954 (grub_script_add_arglist): Likewise.
29955 (grub_script_create_cmdline): Likewise.
29956 (grub_script_create_cmdmenu): Likewise.
29957 (grub_script_add_cmd): Likewise.
29958 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29959 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29960 unnecessary code.
29961
29962 * tests/grub_script_echo1.in: New testcase.
29963 * tests/grub_script_vars1.in: New testcase.
29964 * tests/grub_script_echo_keywords.in: New testcase.
29965
1d63a066
VS
299662010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29967
29968 Remove some redundancy in build system.
29969
29970 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29971 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29972 (TARGET_LDFLAGS): Add -nostdlib.
29973 (TARGET_IMG_LDFLAGS): Likewise.
29974 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29975 anything since mmap isn't available.
29976 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29977 Add util/time.c.
29978 (pkglib_MODULES): Remove reboot.mod.
29979 (reboot_mod_SOURCES): Removed.
29980 (reboot_mod_CFLAGS): Likewise.
29981 (reboot_mod_LDFLAGS): Likewise.
29982 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29983 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29984 (DEFSYMFILES): Add kernel_syms.lst.
29985 (kernel_img_HEADERS): Add common headers.
29986 (symlist.c): New target.
29987 (kernel_syms.lst): Likewise.
29988 (pkglib_MODULES): Add memdisk.mod.
29989 (memdisk_mod_SOURCES): New variable.
29990 (memdisk_mod_CFLAGS): Likewise.
29991 (memdisk_mod_LDFLAGS): Likewise.
29992 (pkglib_MODULES): Add reboot.mod.
29993 (reboot_mod_SOURCES): New variable.
29994 (reboot_mod_CFLAGS): Likewise.
29995 (reboot_mod_LDFLAGS): Likewise.
29996 (pkglib_MODULES): Add date.mod.
29997 (date_mod_SOURCES): New variable.
29998 (date_mod_CFLAGS): Likewise.
29999 (date_mod_LDFLAGS): Likewise.
30000 (pkglib_MODULES): Add datehook.mod.
30001 (datehook_mod_SOURCES): New variable.
30002 (datehook_mod_CFLAGS): Likewise.
30003 (datehook_mod_LDFLAGS): Likewise.
30004 (pkglib_MODULES): Add lsmmap.mod.
30005 (lsmmap_mod_SOURCES): New variable.
30006 (lsmmap_mod_CFLAGS): Likewise.
30007 (lsmmap_mod_LDFLAGS): Likewise.
30008 (pkglib_MODULES): Add boot.mod.
30009 (boot_mod_SOURCES): New variable.
30010 (boot_mod_CFLAGS): Likewise.
30011 (boot_mod_LDFLAGS): Likewise.
30012 * conf/i386-coreboot.rmk: Removed redundant parts.
30013 * conf/i386-ieee1275.rmk: Likewise.
30014 * conf/i386-pc.rmk: Likewise.
30015 * conf/mips-yeeloong.rmk: Likewise.
30016 * conf/mips.rmk: Likewise.
30017 * conf/powerpc-ieee1275.rmk: Likewise.
30018 * conf/sparc64-ieee1275.rmk: Likewise.
30019 * conf/x86_64-efi.rmk: Likewise.
30020 * conf/i386-coreboot.rmk: Moved qemu parts ..
30021 * conf/i386-qemu.rmk: ... here
30022 * conf/i386-efi.rmk: Moved common parts to...
30023 * conf/x86-efi.rmk: ... here.
30024 * conf/i386.rmk: Added modules common to all x86 variants.
30025 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30026 * disk/memdisk.c: Remove grub/machine/kernel.h.
30027 * gensymlist.sh.in: Include symbol.h.
30028 * hook/datehook.c: Correct module name.
30029 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30030 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30031 * include/grub/i386/efi/serial.h: New file.
30032 * include/grub/x86_64/efi/serial.h: Likewise.
30033 * util/time.c: Likewise.
30034 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30035
463ac55f
CK
300362010-03-14 Colin King <colin.king@ubuntu.com>
300372010-03-14 Colin Watson <cjwatson@ubuntu.com>
30038
30039 Shrink the pre-partition-table part of boot.img by eight bytes.
30040
30041 * boot/i386/pc/boot.S (ERR): New macro.
30042 (chs_mode): Use ERR.
30043 (geometry_error): Likewise.
30044 (hd_probe_error): Remove. This is only used once, so we wrwite
30045 it inline instead.
30046 (read_error): Instead of printing read_error_string, just set up
30047 %si and fall through to ...
30048 (error_message): ... this new function, also used by ERR.
30049
08e46ede
CW
300502010-03-14 Colin Watson <cjwatson@ubuntu.com>
30051
30052 Speed up consecutive hostdisk operations on the same device.
30053
30054 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30055 (grub_util_biosdisk_open): Initialise disk->data.
30056 (struct linux_partition_cache): New structure.
30057 (linux_find_partition): Cache partition start positions; these are
30058 expensive to compute on every read and write.
30059 (open_device): Cache open file descriptor in disk->data, so that we
30060 don't have to reopen it and flush the buffer cache for consecutive
30061 operations on the same device.
30062 (grub_util_biosdisk_close): New function.
30063 (grub_util_biosdisk_dev): Set `close' member.
30064
30065 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30066 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30067 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30068 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30069 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30070
4a6d2d06
VS
300712010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30072
30073 Compile parts of grub-emu as modules.
30074
30075 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30076 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30077 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30078 (all-local): Add $(GRUB_EMU).
30079 (install-local): Install $(GRUB_EMU).
30080 (uninstall): Uninstall $(GRUB_EMU).
30081 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30082 * kern/dl.c: Likewise.
30083 * commands/sleep.c: Not include machine/time.h.
30084 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30085 (COMMON_CFLAGS): Likewise.
30086 (sbin_UTILITIES): Remove grub-emu.
30087 (grub_emu_SOURCES): Removed.
30088 (kernel_img_RELOCATABLE): New variable.
30089 (pkglib_PROGRAMS): Add kernel.img.
30090 (kernel_img_SOURCES): New variable
30091 (kernel_img_CFLAGS): Likewise.
30092 (kernel_img_LDFLAGS): Likewise.
30093 (TARGET_NO_STRIP): Likewise.
30094 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30095 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30096 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30097 (grub-emu): New target.
30098 (GRUB_EMU): New variable.
30099 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30100 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30101 * loader/xnu.c: Likewise.
30102 * include/grub/pci.h: Likewise.
30103 * genemuinit.sh: New file.
30104 * genemuinitheader.sh: Likewise.
30105 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30106 Support TARGET_NO_DYNAMIC_MODULES.
30107 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30108 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30109 * disk/loopback.c: Likewise.
30110 * font/font_cmd.c: Likewise.
30111 * partmap/acorn.c: Likewise.
30112 * partmap/amiga.c: Likewise.
30113 * partmap/apple.c: Likewise.
30114 * partmap/gpt.c: Likewise.
30115 * partmap/msdos.c: Likewise.
30116 * partmap/sun.c: Likewise.
30117 * parttool/msdospart.c: Likewise.
30118 * term/gfxterm.c: Likewise.
30119 * video/bitmap.c: Likewise.
30120 * video/readers/jpeg.c: Likewise.
30121 * video/readers/png.c: Likewise.
30122 * video/readers/tga.c: Likewise.
30123 * video/video.c: Likewise.
30124 * util/grub-emu.c (read_command_list): Removed.
30125 (main): Don't call util_init_nls.
30126 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30127 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30128
91fdd2ed
VS
301292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30130
30131 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30132 date.mod, datehook.mod.
30133 (datetime_mod_SOURCES): New variable.
30134 (datetime_mod_CFLAGS): Likewise.
30135 (datetime_mod_LDFLAGS): Likewise.
30136 (date_mod_SOURCES): Likewise.
30137 (date_mod_CFLAGS): Likewise.
30138 (date_mod_LDFLAGS): Likewise.
30139 (datehook_mod_SOURCES): Likewise.
30140 (datehook_mod_CFLAGS): Likewise.
30141 (datehook_mod_LDFLAGS): Likewise.
30142 * conf/sparc64-ieee1275.rmk: Likewise.
30143 * lib/ieee1275/datetime.c: New file.
30144
873ccae6
VS
301452010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30146
30147 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30148 (ieee1275_fb_mod_SOURCES): New variable.
30149 (ieee1275_fb_mod_CFLAGS): Likewise.
30150 (ieee1275_fb_mod_LDFLAGS): Likewise.
30151 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30152 New proto.
30153 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30154 (HEAP_MAX_ADDR): Likewise.
30155 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30156 type.
30157 Correct stop condition.
30158 (grub_ieee1275_devices_iterate): New function.
30159 * video/ieee1275.c: New file.
30160
601c97c0
VS
301612010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30164
30165 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30166 as scratch.
30167 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30168 SCRATCH_PAD_DISKBOOT as scratch.
30169 (bootit): Pass Openfirmware pointer in %o4.
30170 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30171 of 0x200000.
30172 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30173 with util/grub-mkrawimage.c.
30174 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30175 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30176 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30177 (grub_aout_load) [GRUB_UTIL]: Likewise.
30178 * include/grub/kernel.h (grub_modules_get_end): New proto.
30179 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30180 (SCRATCH_PAD_BOOT): New definition.
30181 (SCRATCH_PAD_DISKBOOT): Likewise.
30182 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30183 * include/grub/sparc64/ieee1275/ieee1275.h
30184 (grub_ieee1275_original_stack): New variable
30185 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30186 New definition
30187 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30188 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30189 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30190 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30191 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30192 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30193 (grub_platform_image_format_t): New type.
30194 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30195 * kern/main.c (grub_modules_get_end)
30196 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30197 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30198 (codestart): Switch stacks.
30199 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30200 variable.
30201 (grub_heap_init): Use grub_modules_get_end.
30202 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30203 stack.
30204 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30205 (main): Likewise.
30206 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30207
d68b491e
TG
302082010-03-14 Thorsten Glaser <tg@mirbsd.org>
30209
30210 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30211
4e02ed50
MK
302122010-03-08 Matt Kraai <kraai@ftbfs.org>
30213
30214 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30215 bug #559005).
30216
1f15fc1e
VS
302172010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30218
30219 * genmoddep.awk: Output all missing symbols and not only first.
30220
fce5d8ff
VS
302212010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30222
30223 * NEWS: Put the date of 1.98 release.
30224
d1e8a02f
VS
302252010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30226
30227 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30228 ft2build.h.
30229
696fd607
VS
302302010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30231
30232 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30233 completition in the middle of string.
30234
33e2e6f3
VS
302352010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30236
30237 * util/grub-mkrescue.in: Use mktemp with explicit template.
30238
b1f6d291
VS
302392010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30242
2ac227c7
VS
302432010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30244
30245 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30246 right pointer.
30247
8f9a632b
VS
302482010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30249
30250 Fix FreeBSD compilation.
30251
30252 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30253 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30254
60b03859
VS
302552010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30256
30257 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30258
48a5a769
VS
302592010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30260
30261 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30262
3ab4bd77
VS
302632010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30264
30265 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30266
d116e0d8
RM
302672010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30268
30269 Support relative image path in theme file.
30270
30271 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30272 (image_set_property): Handle theme_dir and relative path.
30273
c7ef54aa
VS
302742010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30275
30276 * configure.ac: Alias amd64 to x86_64.
30277
fcee14ed
VS
302782010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30279
30280 * NEWS: mention multiboot on EFI.
30281
d0780363
VS
302822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30283
30284 * kern/main.c (grub_load_modules): Handle errors from init functions of
30285 embeded modules.
30286
41168ea4
VS
302872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 * normal/autofs.c (autoload_fs_module): Handle errors.
30290
b54d93ac
VS
302912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30292
30293 Disable linux.mod on qemu-mips since it's not functional and leads
30294 to compilation failure.
30295
30296 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30297 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30298 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30299 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30300 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30301 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30302 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30303 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30304 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30305 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30306 Reported by: BVK Chaitanya
30307
fc8345da
JU
303082010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30309
30310 * INSTALL: Add gettext as a dependency and add qemu to a new section
30311 "Prerequisites for make-check".
30312
4760f979
CF
303132010-03-04 Christian Franke <franke@computer.org>
30314
30315 * util/grub-pe2elf.c: Add missing include "progname.h".
30316
f209b5b2
VS
303172010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30318
30319 * normal/crypto.c (read_crypto_list): Fix a typo.
30320 Reported by: Seth Goldberg.
30321
b4b7be98
VS
303222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 30325 Reported by: Seth Goldberg.
b4b7be98 30326
c0ee0385
VS
303272010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30328
30329 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30330 ascii.bitmaps.
30331
a8efbf64
VS
303322010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30333
30334 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 30335 Reported by: Seth Goldberg.
a8efbf64 30336
08dcd913
VS
303372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 * util/i386/efi/grub-install.in: Copy gettext files.
30340
c4d0b332
VS
303412010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30342
30343 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30344
c6f2fe52
VS
303452010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30346
30347 Wait for user entry basing on presence of output rather than on errors.
30348
30349 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30350 (grub_install_newline_hook): Likewise.
30351 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30352 * normal/menu.c (show_menu): Check line_counter to determine presence
30353 of output.
30354 * normal/term.c (grub_normal_line_counter): New variable.
30355 (grub_normal_get_line_counter): New function.
30356 (grub_install_newline_hook): Likewise.
30357
5382b1e4
VS
303582010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30359
30360 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30361
5519963b
VS
303622010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * configure.ac: Update version to 1.98.
30365
72b28631
VS
303662010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30367
30368 * util/grub.d/10_linux.in (linux_entry): Don't default to
30369 gfxpayload=keep if Linux doesn't support video handover.
30370
c140a180
VS
303712010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30372
30373 Don't compile video modules on yeeloong since video subsystem is part
30374 of kernel.
30375
30376 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30377 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30378 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30379 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30380 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30381 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30382 * include/grub/bitmap_scale.h: Likewise.
30383 * include/grub/bufio.h: Likewise.
30384 * include/grub/font.h: Likewise.
30385 * include/grub/gfxterm.h: Likewise.
30386 * include/grub/video.h: Likewise.
30387 * include/grub/vbe.h: Don't include video_fb.h.
30388 * video/i386/pc/vbe.c: Include video_fb.h.
30389 * commands/i386/pc/vbetest.c: Include video.h.
30390
a0ca21c2
CW
303912010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30392
30393 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30394 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30395 default entry if GRUB_SAVEDEFAULT=true. This allows using
30396 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30397 saving a new default on every boot.
30398
4a8a763c
VS
303992010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30402 * normal/term.c (read_terminal_list): Likewise.
30403 * normal/main.c (grub_normal_init_page): Likewise.
30404 (grub_normal_read_line_real): Likewise.
30405
607ffde2
VS
304062010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30407
30408 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30409 memory leak.
30410 Reported by: Seth Goldberg.
30411
2b8fa975
CW
304122010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30413
30414 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30415 duplicate declaration of `start'.
30416
618307dd
VS
304172010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30418
30419 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30420 filename.
30421 Reported by: Georgy Buranov
30422
7dd05b96 304232010-02-20 Carles Pina i Estany <carles@pina.cat>
30424
30425 * util/grub-mkrawimage.c (usage): Change string formatting to
30426 improve gettext.
30427
d1484a42
MRA
304282010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30429
30430 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30431 backspace keys.
30432
42b1d186
VS
304332010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30434
30435 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30436 Reported by: Michael Suchanek.
30437
304382010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
30439
30440 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30441 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30442
d9f31a41
VS
304432010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30444
30445 Remove any reference to non-free fonts.
30446
30447 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30448 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30449 uses non-free components.
30450 * font/font.c (grub_font_get_name): Remove example name.
30451 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30452 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30453 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30454 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30455
2793c71e
GB
304562010-02-16 Georgy Buranov <gburanov@gmail.com>
30457
30458 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30459
402e3779
VS
304602010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30461
30462 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30463 Double divisor.
30464 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30465 features.
30466 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30467
0dd1e0dd
VS
304682010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30469
30470 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30471
6fa7cfce
ST
304722010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30473
30474 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30475 * docs/grub.texi (Command-line and menu entry commands): Document play
30476 command.
30477
37c8483b
ST
304782010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30479
30480 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30481 parse arguments as inline tempo and notes. Move code for playing notes
30482 to...
30483 (play): ... new function.
30484
14da0fb7
ST
304852010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30486
30487 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30488 grub_uint16_t instead of short.
30489 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30490 disk from little endian to cpu endianness.
30491
04459e70
ST
304922010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30493
30494 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30495 GRUB_TICKS_PER_SECOND instead of 120.
30496
a0876943
VS
304972010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30500 escape sequence after \e.
30501
e29f95dc
VS
305022010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30503
30504 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30505 non-ASCII characters.
30506
d27859b2
VS
305072010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30508
30509 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30510 set root in single quotes to prevent \, from being unescaped.
30511
bc028f2f
VS
305122010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 Prevent unknown commands from stopping menuentry execution.
30515
30516 * script/execute.c (grub_script_execute_cmdline): Print error after
30517 unknown command.
30518
095f5f82
VS
305192010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30520
30521 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30522 Reported by: Pavel Pisa.
30523
8c717950
VS
305242010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30525
30526 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30527
904935c3
VS
305282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30529
30530 Merge grub_ieee1275_map_physical into grub_map and rename to
30531 grub_ieee1275_map
30532
30533 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30534 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30535 Remove.
30536 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30537 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30538 necessary.
30539 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30540
5b59a4e3
VS
305412010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30542
30543 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30544 opening and not after.
30545
69e137e8
VS
305462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30547
30548 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30549 constants.
30550
2c0fcc36
VS
305512010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30552
30553 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30554 (alloc_phys): Use ALIGN_UP instead of align_addr.
30555
8c6052ce
VS
305562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30557
30558 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30559
17cec782
VS
305602010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30561
30562 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30563
e0128bbd
VS
305642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30565
30566 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30567 verbose dprintf.
30568
ca62070b
VS
305692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30570
30571 Fix over-4GiB seek on sparc64.
30572
30573 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30574 Replace pos_i and pos_lo with pos. All users updated.
30575 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30576 New constant.
30577 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30578 Likewise.
30579 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30580 and pos_lo.
30581
bdca2607
VS
305822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30583
30584 * util/grub-mkrawimage.c (main): Call set_program_name.
30585
da278c4d
VS
305862010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30587
30588 Properly align 64-bit targets.
30589
30590 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30591 (generate_image): Use ALIGN_ADDR.
30592
b274d734
VS
305932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30594
30595 Properly create cross-endian images.
30596
30597 * include/grub/types.h (grub_host_to_target_addr): New macro
30598 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30599
82da2062
VS
306002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30601
30602 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30603
7cae4377
VS
306042010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30605
30606 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30607
30608 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30609 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30610 (grub_linux_boot): Divide by 64K when on VESA.
30611
65a533e7
VS
306122010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30613
30614 Support GRUB_GFXPAYLOAD_LINUX.
30615
30616 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30617 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30618
dd01d397
VS
306192010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30620
30621 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30622 to show messages instead of discarding them.
30623 Process errors after executing command and not before. Keep old method
30624 too as precaution.
30625
660960d6
VS
306262010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30627
30628 * configure.ac: Check for ft2build.h.
30629
62509f04
VS
306302010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30631
30632 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30633
473df63d
VS
306342010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30635
30636 * genkernsyms.sh.in: Use TARGET_CC.
30637
c98d2a13
CW
306382010-02-07 Colin Watson <cjwatson@ubuntu.com>
30639
30640 * NEWS: Update.
30641
6e14234c
VS
306422010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30643
30644 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
30645 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30646 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 30647
b255e9cf
YB
306482010-02-07 Yves Blusseau <blusseau@zetam.org>
30649
6e14234c 30650 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 30651
98e6959d
VS
306522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30653
30654 Fix warnings in grub-emu when compiling with maximum warning options.
30655
30656 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30657 (grub_arch_modules_addr): Return 0 and not NULL.
30658 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 30659 (xstrdup): Use newstr instead of dup.
f88d801b
VS
30660 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30661 of disk to dsk to avoid shadowing.
74e4934e
VS
30662 (find_free_slot): Fix prototype.
30663 * util/getroot.c (grub_util_is_dmraid): Make static.
30664 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30665 Add missing prototype.
30666 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 30667
74e31b5c
VS
306682010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30669
30670 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30671 appropriately.
30672
6b2ad14b
VS
306732010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30674
30675 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30676 code out.
30677
8f891adc
VS
306782010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30679
30680 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30681 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30682 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30683 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30684 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30685 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30686
74b45184
VS
306872010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30688
30689 * include/grub/err.h (grub_err_printf): Don't export.
30690
a4bced77
VS
306912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30692
30693 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30694
007d0695
VS
306952010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30696
30697 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30698 * kern/misc.c (grub_gettext_dummy): Make static.
30699
b6c0d9c2
VS
307002010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30701
30702 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30703 by non-valid ones.
30704 * kern/term.c (grub_putchar): Likewise.
30705
f51a90d0
VS
307062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30707
30708 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30709 buggy hook call and memory leak.
30710
6846cec5
VS
307112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30712
30713 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30714
468d69fe
VS
307152010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30716
30717 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30718
51906b8c
VS
307192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30720
30721 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30722 modevar.
30723 Return grub_errno on allocation error.
30724
09706ce5
VS
307252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30726
30727 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30728
911df80c
YB
307292010-02-06 Yves Blusseau <blusseau@zetam.org>
30730
30731 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30732 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30733
3746a6bc
VS
307342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30735
30736 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30737 non-pxe disk.
30738 (grub_pxefs_open): Likewise.
30739
09706ce5
VS
307402010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30741
30742 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30743 * util/grub.d/10_kfreebsd.in: Likewise.
30744 * util/grub.d/10_linux.in: Likewise.
30745
7cc192d9
VS
307462010-02-06 Colin D Bennett <colin@gibibit.com>
30747
30748 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30749 (gfxmenu_mod_SOURCES): New variable.
30750 (gfxmenu_mod_CFLAGS): Likewise.
30751 (gfxmenu_mod_LDFLAGS): Likewise.
30752 * include/grub/term.h (grub_term_set_current_output): Declare
30753 argument as const.
30754 * docs/gfxmenu-theme-example.txt: New file.
30755 * gfxmenu/gfxmenu.c: Likewise.
30756 * gfxmenu/gui_box.c: Likewise.
30757 * gfxmenu/gui_canvas.c: Likewise.
30758 * gfxmenu/gui_circular_progress.c: Likewise.
30759 * gfxmenu/gui_image.c: Likewise.
30760 * gfxmenu/gui_label.c: Likewise.
30761 * gfxmenu/gui_list.c: Likewise.
30762 * gfxmenu/gui_progress_bar.c: Likewise.
30763 * gfxmenu/gui_string_util.c: Likewise.
30764 * gfxmenu/gui_util.c: Likewise.
30765 * gfxmenu/icon_manager.c: Likewise.
30766 * gfxmenu/model.c: Likewise.
30767 * gfxmenu/named_colors.c: Likewise.
30768 * gfxmenu/theme_loader.c: Likewise.
30769 * gfxmenu/view.c: Likewise.
30770 * gfxmenu/widget-box.c: Likewise.
30771 * include/grub/gfxmenu_model.h: Likewise.
30772 * include/grub/gfxmenu_view.h: Likewise.
30773 * include/grub/gfxwidgets.h: Likewise.
30774 * include/grub/gui.h: Likewise.
30775 * include/grub/gui_string_util.h: Likewise.
30776 * include/grub/icon_manager.h: Likewise.
30777
307782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30779
30780 Agglomerate scrolling in gfxterm.
30781
30782 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30783 (grub_virtual_screen_setup): Initialise 'total_screen'.
30784 (write_char): Split to ...
30785 (paint_char): ... this ...
30786 (write_char): ... and this.
30787 (paint_char): Handle delayed scrolling.
30788 (draw_cursor): Likewise.
30789 (scroll_up): Split to ...
30790 (real_scroll): ... this ...
30791 (scroll_up): ... and this.
30792 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30793 characters.
30794 (grub_gfxterm_refresh): Call real_scroll.
30795
307962010-02-06 Colin D Bennett <colin@gibibit.com>
30797
30798 * include/grub/misc.h (grub_iscntrl): New inline function.
30799 (grub_isalnum): Likewise.
30800 (grub_strtol): Likewise.
30801
308022010-02-06 Colin D Bennett <colin@gibibit.com>
30803
30804 * normal/menu_text.c (get_entry_number): Move from here ...
30805 * normal/menu.c (get_entry_number): ... moved here.
30806 * include/grub/menu.h (grub_menu_get_default_entry_index):
30807 New prototype.
30808 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30809 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30810 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30811 (grub_menu_viewer_should_return): Likewise.
30812 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30813 * normal/menu_text.c (run_menu): Enable menu switching.
30814 * normal/menu_viewer.c (should_return): New variable.
30815 (menu_viewer_changed): Likewise.
30816 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30817 (grub_menu_viewer_should_return): New function.
30818 (menuviewer_write_hook): Likewise.
30819 (grub_menu_viewer_init): Likewise.
30820
308212010-02-06 Colin D Bennet <colin@gibibit.com>
308222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30823
30824 Support for gfxterm in a window.
30825
30826 * include/grub/gfxterm.h: New file.
30827 * include/grub/video.h (struct grub_video_rect): New declaration.
30828 (grub_video_rect_t): Likewise.
30829 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30830 (refcount): New variable.
30831 (render_target): Likewise.
30832 (window): Likewise.
30833 (repaint_callback): Likewise.
30834 (grub_virtual_screen_setup): Use 'render_target'.
30835 (init_window): New function.
30836 (grub_gfxterm_init_window): Likewise.
30837 (grub_gfxterm_init): Check reference counter.
30838 Use init_window.
30839 (destroy_window): New function.
30840 (grub_gfxterm_destroy_window): Likewise.
30841 (grub_gfxterm_fini): Check reference counter.
30842 Use destroy_window.
30843 (redraw_screen_rect): Restore viewport.
30844 Use 'render_target' and 'window'.
30845 Call 'repaint_callback'.
30846 (write_char): Use 'render_target'.
30847 (draw_cursor): Likewise.
30848 (scroll_up): Restore viewport.
30849 Use 'render_target' and 'window'.
30850 Call 'repaint_callback'.
30851 (grub_gfxterm_cls): Likewise.
30852 (grub_gfxterm_refresh): Use 'window'.
30853 (grub_gfxterm_set_repaint_callback): New function.
30854 (grub_gfxterm_background_image_cmd): Use 'window'.
30855 (grub_gfxterm_get_term): New function.
30856 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30857
308582010-02-06 Colin D Bennett <colin@gibibit.com>
30859
30860 Bitmap scaling support.
30861
30862 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30863 (bitmap_scale_mod_SOURCES): New variable.
30864 (bitmap_scale_mod_CFLAGS): Likewise.
30865 (bitmap_scale_mod_LDFLAGS): Likewise.
30866 * include/grub/bitmap_scale.h: New file.
30867 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30868 (background_image_cmd_options): New variable.
30869 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30870 (cmd): Rename and change type to ...
30871 (background_image_cmd_handle): ... this. All users updated.
30872 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30873 * video/bitmap_scale.c: New file.
30874
308752010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30876
30877 SDL support.
30878
30879 * Makefile.in (LIBSDL): New variable.
30880 (enable_grub_emu_sdl): Likewise.
30881 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30882 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30883 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30884 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30885 * util/sdl.c: New file.
30886
308872010-02-06 Colin D Bennett <colin@gibibit.com>
308882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30889
30890 Double buffering support.
30891
30892 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30893 * include/grub/video.h: Update comment.
30894 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30895 New type.
30896 (grub_video_fb_doublebuf_blit_init): New prototype.
30897 * term/gfxterm.c (scroll_up): Support double buffering.
30898 (grub_gfxterm_refresh): Likewise.
30899 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30900 (grub_video_fb_doublebuf_blit_init): Likewise.
30901 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30902 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30903 'displayed_page', 'render_page' and 'update_screen'.
30904 (grub_video_vbe_fini): Free offscreen buffer.
30905 (doublebuf_pageflipping_commit): New function.
30906 (doublebuf_pageflipping_update_screen): Likewise.
30907 (doublebuf_pageflipping_init): Likewise.
30908 (double_buffering_init): Likewise.
30909 (grub_video_vbe_setup): Enable doublebuffering.
30910 (grub_video_vbe_swap_buffers): Implement.
30911 (grub_video_vbe_set_active_render_target): Handle double buffering.
30912 (grub_video_vbe_get_active_render_target): Likewise.
30913 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30914 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30915 (grub_video_vbe_enable_double_buffering): Likewise.
30916 (grub_video_vbe_swap_buffers): Use update_screen.
30917 (grub_video_set_mode): Use double buffering.
30918
309192010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30920
30921 * maintainance/gentrigtables.py: Remove.
30922 * lib/trig.c: Likewise.
30923
30924 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30925
30926 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30927 `trigtables.c'.
30928 (trigtables.c): New rule.
30929 (gentrigtables): Likewise.
30930 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30931
309322010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30933
30934 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30935 integer constants.
30936
309372010-02-06 Colin D Bennet <colin@gibibit.com>
30938
30939 Trigonometry support.
30940
30941 * include/grub/trig.h: New file.
30942 * lib/trig.c: Likewise.
30943 * maintainance/gentrigtables.py: Likewise.
30944 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30945 (trig_mod_SOURCES): New variable.
30946 (trig_mod_CFLAGS): Likewise.
30947 (trig_mod_LDFLAGS): Likewise.
30948
5562834e
VS
309492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30950
30951 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30952 disk devices.
30953
4f8528fc
VS
309542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30955
30956 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30957 error.
30958
2b4068e9
VS
309592010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30960
30961 * util/hostdisk.c (open_device): Don't use partition device when reading
30962 before the partition.
30963 (grub_util_biosdisk_read): Don't read from partition and before the
30964 partition in single operation.
30965 (grub_util_biosdisk_write): Don't write to partition and before the
30966 partition in single operation.
30967
399f6e4d
TL
309682010-02-03 Torsten Landschoff <torsten@debian.org>
30969
30970 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30971 last sectors.
30972
996649b0
VS
309732010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30974
30975 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30976 CDROM reads.
30977 (grub_biosdisk_write): Refuse to write to CDROM.
30978
3b205d4d
VS
309792010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30980
30981 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30982
61e89d9d
VS
309832010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30984
30985 * font/font.c (find_glyph): Check that bmp_idx is available before
30986 using it.
30987 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30988 with (font == NULL).
30989
bf7fcba2
CS
309902010-01-28 Christian Schmitt <chris@ilovelinux.de>
30991
30992 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30993
f45d2663
BC
309942010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30995
30996 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30997 * util/grub-script-check.c (getline): Fix empty lines case.
30998
ec1444e6
RM
309992010-01-28 Robert Millan <rmh.grub@aybabtu.com>
31000
31001 * Makefile.in (check): Exit with fail status when one of the tests
31002 fails.
31003 * tests/example_functional_test.c (example_test): Fix reversed assert.
31004 * tests/example_unit_test.c (example_test): Likewise.
31005
2e1cb9bb
CW
310062010-01-28 Colin Watson <cjwatson@ubuntu.com>
31007
31008 * util/grub.d/10_linux.in: This script does not use any of the
31009 contents of gettext.sh, only the external command `gettext', so stop
31010 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
31011 the same prefix as GRUB.)
31012 * util/grub.d/10_kfreebsd.in: Likewise.
31013
63533ab0
VS
310142010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31015
31016 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31017 of the line.
31018
989e1f93
VS
310192010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31020
31021 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31022 last sectors.
31023
e709ebe2
VS
310242010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31025
31026 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31027 having a 4KiB and not 32KiB buffer size.
31028
27dea7ed
RM
310292010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31030
31031 * util/hostfs.c: Include `<errno.h>'.
31032 (grub_hostfs_read): Handle errors from fseeko() and fread().
31033
67667b9c
RM
310342010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31035
31036 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31037 loop when using read hooks on files whose size isn't sector-aligned.
31038
c294d9d8
RM
310392010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31040
31041 Remove unused parameter.
31042
31043 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31044 (grub_iso9660_open): Remove initialization of `data->length'.
31045
af75a9f1
RM
310462010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31047
31048 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31049 memleak conditions.
31050
254e2ce5 310512010-01-27 Carles Pina i Estany <carles@pina.cat>
31052
31053 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31054 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31055
b510928c 310562010-01-26 Carles Pina i Estany <carles@pina.cat>
31057
31058 * util/bin2h.c (usage): Fix warning (space after backslash).
31059
aa2f9dd2 310602010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 31061
31062 * font/font.c: Include `grub/fontformat.h.
31063 Remove font file format constants.
31064 (grub_font_load): Use the new macros.
31065 * include/grub/fontformat.h: New file.
31066 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31067 (write_font_pf2): Use the new macros.
31068
94e7e712
RM
310692010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31070
31071 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31072 does.
31073
3973a59a
RM
310742010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31075
31076 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31077
31078 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31079 (_start): Macroify `0x7F'.
31080
31081 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31082 (make_install_device): Use "(pxe)" as fallback prefix when booting
31083 via PXE.
31084
42e0cba3
GS
310852010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31086
31087 * configure.ac: Reset LIBS after check for libgcc symbols.
31088
847effd8
CW
310892010-01-25 Colin Watson <cjwatson@ubuntu.com>
31090
31091 * util/hostdisk.c (open_device): Add trailing newline to debug
31092 message.
31093
ea4a7e35
GS
310942010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31095
31096 * configure.ac: Check for `limits.h'.
31097 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31098
67951a53
RM
310992010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31100
31101 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31102 capitalize error strings.
31103
c273d4ce
ST
311042010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31105
31106 * util/grub.d/10_hurd.in: Add a recovery mode.
31107
69be5b74
VS
311082010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31109
31110 * configure.ac: Check for libgcc symbols with -nostdlib.
31111
fc9e5810
BC
311122010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31113
31114 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31115
4b358c0a
VS
311162010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31117
31118 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31119 stack since heap may be unavailable at that point.
31120 (grub_ofconsole_gotoxy): Likewise.
31121
454fcd1c
VS
311222010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31123
31124 * configure.ac: Check for _restgpr_14_x.
31125 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31126 and _savegpr_* prototypes.
31127
566863ca
RM
311282010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31129
31130 Use generic grub_reboot() for i386-efi.
31131
31132 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31133 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31134 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31135
bf86e59a
VS
311362010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31137
31138 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31139 presence of "prefix" variable as it breaks when normal.mod is
31140 embedded.
31141
d645e0f8
VS
311422010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31143
31144 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31145 stack since heap is unavailable at that point.
31146
f9ab2e25
VS
311472010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31148
31149 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31150 (grub_freebsd_bootinfo): Rewritten.
31151 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31152
01fc7054
VS
311532010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31154
31155 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31156
caab4fd6
RM
311572010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31158
31159 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31160 domain now.
31161
67eb1427
FZ
311622010-01-20 Felix Zielcke <fzielcke@z-51.de>
31163
31164 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31165 around for handling "/" to the correct fix. Fix a memory leak. Use
31166 xstrdup instead of strdup.
31167
a9ed4ff3
VS
311682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31169
31170 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31171
311722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
31173
31174 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31175
31176 * font/font.c (struct grub_font): New member 'bmp_idx'.
31177 (font_init): Initialise 'bmp_idx'.
31178 (load_font_index): Fill 'bmp_idx'.
31179 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31180
48209f4f
VS
311812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31182
31183 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31184 unnecessary calls.
31185
9f0a4bb7
VS
311862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31187
31188 Move context handling out of the kernel.
31189
31190 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31191 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31192 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31193 * conf/i386-efi.rmk: Likewise.
31194 * conf/i386-ieee1275.rmk: Likewise.
31195 * conf/i386-pc.rmk: Likewise.
31196 * conf/powerpc-ieee1275.rmk: Likewise.
31197 * conf/sparc64-ieee1275.rmk: Likewise.
31198 * conf/x86_64-efi.rmk: Likewise.
31199 * include/grub/env.h: Include grub/menu.h.
31200 (grub_env_var_type): Removed.
31201 (grub_env_var): Replaced field 'type' with 'global'.
31202 (grub_env_find): New prototype.
31203 (grub_env_context_open): Remove EXPORT_FUNC.
31204 (grub_env_context_close): Likewise.
31205 (grub_env_export): Likewise.
31206 (grub_env_set_data_slot): Removed.
31207 (grub_env_get_data_slot): Likewise.
31208 (grub_env_unset_data_slot): Likewise.
31209 (grub_env_unset_menu): New prototype.
31210 (grub_env_set_menu): Likewise.
31211 (grub_env_get_menu): Likewise.
31212 * include/grub/env_private.h: New file.
31213 * include/grub/normal.h (grub_context_init): New prototype.
31214 (grub_context_fini): Likewise.
31215 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31216 * normal/context.c (grub_cmd_export): ... to here.
31217 * kern/env.c: Include env_private.h.
31218 (HASHSZ): Moved to include/grub/env_private.h.
31219 (grub_env_context): Likewise.
31220 (grub_env_sorted_var): Likewise.
31221 (current_context): Renamed from this ...
31222 (grub_current_context): ...to this. 'static' removed. All users updated.
31223 (grub_env_find): Removed 'static'.
31224 (grub_env_context_open): Moved to normal/context.c.
31225 (grub_env_context_close): Likewise.
31226 (grub_env_export): Likewise.
31227 (mangle_data_slot_name): Removed.
31228 (grub_env_set_data_slot): Likewise.
31229 (grub_env_get_data_slot): Likewise.
31230 (grub_env_unset_data_slot): Likewise.
31231 * kern/main.c (grub_set_root_dev): Don't export root.
31232 It will be done later.
31233 (grub_main): Don't export prefix.
31234 It will be done later.
31235 * normal/context.c: New file.
31236 * normal/main.c (free_menu): Use grub_env_unset_menu.
31237 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31238 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31239 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31240 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31241
8dd35b8c
VS
312422010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31243
31244 setpci support.
31245
31246 * commands/setpci.c: New file.
31247 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31248 (setpci_mod_SOURCES): New variable.
31249 (setpci_mod_CFLAGS): Likewise.
31250 (setpci_mod_LDFLAGS): Likewise.
31251
449193d5
VS
312522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31253
31254 Byte-addressable PCI configuration space.
31255
31256 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31257 dword address.
31258 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31259 GRUB_PCI_REG_CACHELINE.
31260 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31261 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31262 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31263 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31264 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31265 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31266 grub_pci_make_address.
31267 (lock_rom_area): Likewise.
31268 * commands/lspci.c (grub_lspci_iter): Use macroses
31269 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31270 of grub_pci_make_address.
31271 * disk/ata.c (grub_ata_pciinit): Likewise.
31272 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31273 (GRUB_PCI_REG_VENDOR): Likewise.
31274 (GRUB_PCI_REG_DEVICE): Likewise.
31275 (GRUB_PCI_REG_COMMAND): Likewise.
31276 (GRUB_PCI_REG_STATUS): Likewise.
31277 (GRUB_PCI_REG_REVISION): Likewise.
31278 (GRUB_PCI_REG_CLASS): Likewise.
31279 (GRUB_PCI_REG_CACHELINE): Likewise.
31280 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31281 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31282 (GRUB_PCI_REG_BIST): Likewise.
31283 (GRUB_PCI_REG_ADDRESSES): Likewise.
31284 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31285 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31286 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31287 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31288 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31289 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31290 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31291 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31292 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31293 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31294 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31295 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31296 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31297 (GRUB_PCI_REG_MIN_GNT): Likewise.
31298 (GRUB_PCI_REG_MAX_LAT): Likewise.
31299 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31300 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31301 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 31302 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
31303 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31304 space.
31305
96d73208
RM
313062010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31307
31308 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31309 can be reliably determined to be supported.
31310
d4484482
RM
313112010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31312
31313 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31314 that VESA is supported.
31315 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31316 supported.
31317
00308ecf
VS
313182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31319
31320 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31321
f66924a4
RM
313222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31323
31324 * util/misc.c (make_system_path_relative_to_its_root): Work around
31325 special-casing of "/", as previous incarnation of this routine did.
31326
cbca0ada
VS
313272010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31328
31329 Fix any-emu compilation.
31330
31331 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31332 * grub_bin2h_SOURCES: New variable.
31333
34a66d99
RM
313342010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31335
31336 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31337
94fabf58
RM
313382010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31339
31340 * util/grub.d/00_header.in: Fix handling of locale_dir.
31341
02cf98ca
VS
313422010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31343
31344 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31345 as possible unifont location (Gentoo).
31346 Reported by: Alexander Brüning
31347
327dbcd7
VS
313482010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31349
31350 Don't try to generate lists for kernel.img.
31351
31352 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31353 (pkglib_MODULES): Remove kernel.img.
31354 (kernel_img_EXPORTS): Removed.
31355 (kernel_img_RELOCATABLE): New variable.
31356 * conf/x86_64-efi.rmk: Likewise.
31357 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31358
ca467290
VS
313592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31360
31361 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31362 grub_xasprintf or grub_snprintf.
31363 (grub_vsprintf): Likewise.
31364 (grub_snprintf): New proto.
31365 (grub_vsnprintf): Likewise.
31366 (grub_xasprintf): Likewise.
31367 (grub_xvasprintf): Likewise.
31368 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31369 (grub_sprintf): Removed.
31370 (grub_vsnprintf): New function.
31371 (grub_snprintf): Likewise.
31372 (grub_xvasprintf): Likewise.
31373 (grub_xasprintf): Likewise.
31374 (grub_vsprintf): Renamed to ...
31375 (grub_vsnprintf_real): ...this. New argument max_len.
31376
aca655fd
BC
313772010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31378
31379 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31380 fix grub-script-check warning.
31381
7ee92c32
VS
313822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31383
31384 * include/grub/font.h (grub_font_load): Fix prototype.
31385
f80927ca
VS
313862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31387
31388 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31389
119c50ea
VS
313902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31391
31392 * include/grub/x86_64/at_keyboard.h: New file.
31393
47d5f3c1
VS
313942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31395
31396 * loader/mips/linux.c: Include missing grub/i18n.h.
31397
55ff5266
RM
313982009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31399
31400 * normal/menu.c (notify_execution_failure): Clarify error message.
31401
c893cc87
RM
314022009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31403
31404 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31405 return value (and revert all return statements). Update users.
31406
917dd370
CW
314072010-01-20 Dan Merillat <debian@dan.merillat.org>
31408
31409 * kern/device.c (grub_device_iterate): Allocate new part_ent
31410 structure based on sizeof (*p) rather than sizeof (p->next), to
31411 account for structure padding.
31412
31413 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31414 disk is NULL, which might happen for LVM physical volumes with no
31415 LVM signature.
31416
d4a4ee57
RM
314172009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31418
31419 * loader/mips/linux.c (grub_cmd_initrd)
31420 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31421
314222009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31423
31424 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31425 (grub_video_video_init, grub_video_bitmap_init)
31426 (grub_font_manager_init, grub_term_gfxterm_init)
31427 (grub_at_keyboard_init): New extern declarations.
31428 (grub_machine_init): Initialize gfxterm and at_keyboard.
31429
31430 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31431
31432 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31433 `gfxterm.mod' into core image.
31434
31435 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31436 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31437 (kernel_img_FORMAT): Copy to ...
31438
31439 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31440 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31441 (kernel_img_FORMAT): ... here, and ...
31442
31443 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31444 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31445 (kernel_img_FORMAT): ... here.
31446
31447 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31448 and input (at_keyboard) terminals in kernel.
31449 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31450
31451 (pkglib_MODULES): Remove `pci.mod'.
31452 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31453 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31454 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31455 (at_keyboard_mod_LDFLAGS): Remove variables.
31456
314572010-01-11 Felix Zielcke <fzielcke@z-51.de>
31458
31459 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31460
314612009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31462
31463 * include/grub/mips/libgcc.h: Only export symbols for functions
31464 that libgcc provides.
31465
314662009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31467
31468 MIPS support.
31469
31470 * bus/bonito.c: New file.
31471 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31472 GRUB_PCI_NUM_DEVICES.
31473 * term/i386/pc/serial.c: Move to ...
31474 * term/serial.c: ... here. All users updated.
31475 * util/i386/pc/grub-mkimage.c: Move to ...
31476 * util/grub-mkrawimage.c: ... here. All users updated.
31477 * term/i386/pc/at_keyboard.c: Move to ...
31478 * term/at_keyboard.c: ... here. All users updated.
31479 * conf/mips-qemu-mips.rmk: New file.
31480 * conf/mips-yeeloong.rmk: Likewise.
31481 * conf/mips.rmk: Likewise.
31482 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31483 mipsel-qemu-mips.
31484 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31485 to port addresses.
31486 (grub_ata_pciinit): Support CS5536.
31487 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31488 * font/font_cmd.c (loadfont_command): Open file before passing it to
31489 grub_font_load.
31490 (pseudo_file_read): New function.
31491 (pseudo_file_close): Likewise.
31492 (pseudo_fs): New structure.
31493 (load_font_module): New function.
31494 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31495 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31496 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31497 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31498 * include/grub/i386/at_keyboard.h: Split into ...
31499 * include/grub/at_keyboard.h: ... this ...
31500 * include/grub/i386/at_keyboard.h: ... and this.
31501 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31502 New prototype.
31503 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31504 updated.
31505 (grub_elf64_size): Likewise.
31506 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31507 filename.
31508 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31509 * include/grub/i386/coreboot/serial.h: Rewritten.
31510 * include/grub/i386/ieee1275/serial.h: Include
31511 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31512 * include/grub/i386/pc/serial.h: Moved from here ...
31513 * include/grub/serial.h: ... to here. All users updated.
31514 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31515 (GRUB_PCI_NUM_BUS): Likewise.
31516 (GRUB_PCI_NUM_DEVICES): Likewise.
31517 (grub_pci_device_map_range): Add missing volatile keyword.
31518 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31519 * include/grub/mips/at_keyboard.h: New file.
31520 * include/grub/mips/cache.h: Likewise.
31521 * include/grub/mips/io.h: Likewise.
31522 * include/grub/mips/kernel.h: Likewise.
31523 * include/grub/mips/libgcc.h: Likewise.
31524 * include/grub/mips/pci.h: Likewise.
31525 * include/grub/mips/qemu-mips/boot.h: Likewise.
31526 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31527 * include/grub/mips/qemu-mips/loader.h: Likewise.
31528 * include/grub/mips/qemu-mips/memory.h: Likewise.
31529 * include/grub/mips/qemu-mips/serial.h: Likewise.
31530 * include/grub/mips/qemu-mips/time.h: Likewise.
31531 * include/grub/mips/relocator.h: Likewise.
31532 * include/grub/mips/time.h: Likewise.
31533 * include/grub/mips/types.h: Likewise.
31534 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31535 * include/grub/mips/yeeloong/boot.h: Likewise.
31536 * include/grub/mips/yeeloong/kernel.h: Likewise.
31537 * include/grub/mips/yeeloong/loader.h: Likewise.
31538 * include/grub/mips/yeeloong/memory.h: Likewise.
31539 * include/grub/mips/yeeloong/pci.h: Likewise.
31540 * include/grub/mips/yeeloong/serial.h: Likewise.
31541 * include/grub/mips/yeeloong/time.h: Likewise.
31542 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31543 * kern/elf.c (grub_elf32_size): New parameter. All users
31544 updated.
31545 (grub_elf64_size): Likewise.
31546 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31547 Load modules before saying "Welcome to GRUB!".
31548 Call grub_refresh after saying "Welcome to GRUB!".
31549 * kern/mips/cache.S: New file.
31550 * kern/mips/cache_flush.S: Likewise.
31551 * kern/mips/dl.c: Likewise.
31552 * kern/mips/init.c: Likewise.
31553 * kern/mips/qemu-mips/init.c: Likewise.
31554 * kern/mips/startup.S: Likewise.
31555 * kern/mips/yeeloong/init.c: Likewise.
31556 * kern/term.c (grub_putcode): Handle NULL terminal.
31557 (grub_getcharwidth): Likewise.
31558 (grub_getkey): Likewise.
31559 (grub_checkkey): Likewise.
31560 (grub_getkeystatus): Likewise.
31561 (grub_getxy): Likewise.
31562 (grub_getwh): Likewise.
31563 (grub_gotoxy): Likewise.
31564 (grub_cls): Likewise.
31565 (grub_setcolorstate): Likewise.
31566 (grub_setcolor): Likewise.
31567 (grub_getcolor): Likewise.
31568 (grub_refresh): Likewise.
31569 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31570 (write_jump): Add hatch nop.
31571 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31572 * lib/mips/setjmp.S: New file.
31573 * loader/mips/linux.c: Likewise.
31574 * term/i386/pc/at_keyboard.c: Move from here ...
31575 * term/at_keyboard.c: ... to here.
31576 * term/i386/pc/serial.c: Moved from here ...
31577 * term/serial.c: ... to here. All users updated.
31578 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31579 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31580 (serial_translate_key_sequence): Avoid deadlock.
31581 (grub_serial_getkey): Handle backspace.
31582 (grub_serial_putchar): Fix newline handling.
31583 * util/i386/pc/grub-mkimage.c: Move from here ...
31584 * util/grub-mkrawimage.c: ... to here. All users updated.
31585 (generate_image): New parameters 'font_path' and 'format'.
31586 Support embedding font.
31587 Use grub_host_to_target* instead of grub_cpu_to_le*.
31588 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31589 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31590 (options): New option "--font".
31591 (usage): Likewise.
31592 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31593 (main): Handle "--font".
31594 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31595 (grub_virtual_screen_setup): Set bg_color_display.
31596 (redraw_screen_rect): Use bg_color_display instead of incorrect
31597 bg_color.
31598 (grub_gfxterm_cls): Likewise.
31599 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31600 Support embedding config file.
31601 (add_segments): Likewise.
31602 (options): New option "--config".
31603 (main): Handle "--config".
31604 * video/sm712.c: New file.
31605
25c2b5b3
RM
316062010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31607
31608 Fix parallel builds.
31609
31610 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31611 font.c depend on ascii.h).
31612
316132010-01-12 Carles Pina i Estany <carles@pina.cat>
31614
31615 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31616
316172010-01-11 Carles Pina i Estany <carles@pina.cat>
31618
31619 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31620 By default: disabled.
31621 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31622 parameter.
31623
316242010-01-10 Carles Pina i Estany <carles@pina.cat>
31625
31626 * font/font.c: Update copyright years.
31627 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31628
316292010-01-10 Carles Pina i Estany <carles@pina.cat>
31630
31631 * font/font.c: Include `ascii.h'.
31632 (ASCII_BITMAP_SIZE): New macro.
31633 (ascii_font_glyph): Define.
31634 (ascii_glyph_lookup): New function.
31635 (grub_font_get_string_width): Change comment. If glyph not found, use
31636 ascii_glyph_lookup.
31637 (grub_font_get_glyph_with_fallback): If glyph not available returns
31638 ascii_glyph_lookup.
31639 * util/grub-mkfont.c (file_formats): New enum.
31640 (options): Add `ascii-bitmaps' new option.
31641 (usage): Add `asii-bitmaps' new option.
31642 (write_font_ascii_bitmap): New function.
31643 (write_font): Rename to ...
31644 (write_font_p2): ... this. Remove print_glyphs call.
31645 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31646 used. Call print_glyphs.
31647 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31648
316492010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31650
31651 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31652 (grub_bin2h_SOURCES): New variable.
31653 * util/bin2h.c: New file.
31654
915fc1b8
VS
316552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31656
31657 * include/multiboot.h: Resynced with spec.
31658 * include/multiboot2.h: Likewise.
31659 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31660 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31661
9444b678
RM
316622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31663
31664 * include/grub/term.h (grub_term_register_input,
31665 grub_term_register_output): Check return of terminal init()
31666 routines, and abort if errors are raised.
31667
31668 * commands/terminal.c: Update copyright year.
31669
cba98e8d
RM
316702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * commands/terminal.c (grub_cmd_terminal_input)
31673 (grub_cmd_terminal_output): Check return of terminal init()
31674 routines, and abort if errors are raised.
31675
6f7db5d6
VS
316762010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31677
31678 * include/grub/i386/bsd.h: Fix include pathes.
31679
262bff8d
VS
316802010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31681
31682 Add missing *BSD copyright headers.
31683
31684 * include/grub/aout.h: Add BSD licence.
31685 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31686 * include/grub/i386/freebsd_linker.h: ... here,
31687 * include/grub/i386/freebsd_reboot.h: ... here,
31688 * include/grub/i386/netbsd_bootinfo.h: ... here,
31689 * include/grub/i386/netbsd_reboot.h: ... here,
31690 * include/grub/i386/openbsd_bootarg.h: ... here,
31691 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31692 licence to each file.
31693
b2cab848
RM
316942010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31695
31696 * acinclude.m4: Remove `nop' assembly instruction; it's not
31697 implemented by all architectures.
31698
2cb6be4b
RM
316992010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31700
31701 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31702 ELILO. This is no longer necessary.
31703
a2eaee15
BC
317042010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31705
31706 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31707
31708 * util/grub-script-check.c: grub-script-check tool.
31709 * conf/common.rmk: Make rules for grub-script-check.
31710
88d17012
RM
317112010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31712
31713 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31714 spotting it back in 2008. Shame on me for forgetting he did.
31715
31716 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31717
8040619d
RM
317182010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31719
31720 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31721 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31722 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31723 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31724 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31725 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31726
a0c2a0f6
RM
317272010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31728
31729 * include/grub/test.h: Add license header.
31730 * tests/example_functional_test.c: Likewise.
31731 * tests/example_unit_test.c: Likewise.
31732 * tests/lib/functional_test.c: Likewise.
31733 * tests/lib/test.c: Likewise.
31734 * tests/lib/unit_test.c: Likewise.
31735
b0b13907
VS
317362010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31737
31738 Use flag-based instead of hook-based video mode selection and "auto"
31739 keyword.
31740
31741 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31742 (grub_video_set_mode): Changed prototype. All users updated.
31743 (grub_video_check_mode_flag): New inline function.
31744 * video/video.c (parse_modespec): New function.
31745 (grub_video_set_mode): Parse flags and keywords.
31746
ea379330 317472010-01-17 Carles Pina i Estany <carles@pina.cat>
31748
31749 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31750 fprintf call.
31751
e15c215e
FZ
317522010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31753
31754 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31755
409ae1c9 317562010-01-16 Carles Pina i Estany <carles@pina.cat>
31757
31758 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31759 string.
31760 * util/grub-emu.c (usage): Likewise.
31761 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31762 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31763 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31764 * util/i386/pc/grub-setup.c (usage): Likewise.
31765
70a14d3d 317662010-01-16 Carles Pina i Estany <carles@pina.cat>
31767
31768 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31769 the message.
31770 (grub_util_info): Likewise.
31771 (grub_util_error): Likewise.
31772 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31773 and/or new lines in `grub_util_warna', `grub_util_info',
31774 `grub_util_error' calls.
31775 * util/getroot.c: Likewise.
31776 * util/grub-editenv.c: Likewise.
31777 * util/grub-emu.c: Likewise.
31778 * util/grub-fstest.c: Likewise.
31779 * util/grub-mkdevicemap.c: Likewise.
31780 * util/grub-mkfont.c: Likewise.
31781 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31782 * util/grub-mkrelpath.c: Likewise.
31783 * util/grub-pe2elf.c: Likewise.
31784 * util/grub-probe.c: Likewise.
31785 * util/hostdisk.c: Likewise.
31786 * util/i386/efi/grub-mkimage.c: Likewise.
31787 * util/i386/pc/grub-mkimage.c: Likewise.
31788 * util/i386/pc/grub-setup.c: Likewise.
31789 * util/ieee1275/ofpath.c: Likewise.
31790 * util/mkisofs/eltorito.c: Likewise.
31791 * util/mkisofs/rock.c: Likewise.
31792 * util/mkisofs/write.c: Likewise.
31793 * util/raid.c: Likewise.
31794 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31795 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31796
a0b766fc
VS
317972010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31798
31799 Enable multiboot on non-pc.
31800
31801 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31802 multiboot.mod and multiboot2.mod to ...
31803 * conf/i386.rmk (pkglib_MODULES): ... here.
31804 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31805 Moved to ...
31806 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31807 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31808 Moved to ...
31809 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31810 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31811 Moved to ...
31812 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31813 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31814 Moved to ...
31815 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31816 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31817 relocator.mod.
31818 (ata_mod_SOURCES): Removed.
31819 (ata_mod_CFLAGS): Likewise.
31820 (ata_mod_LDFLAGS): Likewise.
31821 (relocator_mod_SOURCES): Removed.
31822 (relocator_mod_CFLAGS): Likewise.
31823 (relocator_mod_ASFLAGS): Likewise.
31824 (relocator_mod_LDFLAGS): Likewise.
31825 Include i386.mk.
31826 * include/grub/x86_64/multiboot.h: New file.
31827 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31828 Terminate EFI.
31829
884ade56
VS
318302010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31831
31832 Video multiboot support.
31833
31834 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31835 New prototype.
31836 * include/multiboot.h: Resynced with multiboot specification.
31837 * include/multiboot2.h: Likewise.
31838 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31839 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31840 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31841 (HAS_VGA_TEXT): Likewise.
31842 (accepts_video): New variable.
31843 (grub_multiboot_set_accepts_video): New function.
31844 (grub_multiboot_get_mbi_size): Account for video structures.
31845 (set_video_mode): New function.
31846 (retrieve_video_parameters): Likewise.
31847 (grub_multiboot_make_mbi): Fill video fields.
31848
0d90e8a6
VS
318492010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31850
31851 Video driver ids.
31852
31853 * include/grub/video.h (grub_video_driver_id): New type.
31854 (grub_video_adapter): New member 'id'. All users updated.
31855 (grub_video_get_driver_id): New proto.
31856 * video/video.c (grub_video_get_driver_id): New function.
31857
5c71db1b 318582010-01-14 Carles Pina i Estany <carles@pina.cat>
31859
31860 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31861 `var=val'.
31862
cca15b52 318632010-01-14 Carles Pina i Estany <carles@pina.cat>
31864
31865 * normal/cmdline.c (print_completion): Gettextizze.
31866
c586fbb2 318672001-01-14 Carles Pina i Estany <carles@pina.cat>
31868
31869 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31870
ba2f6848 318712010-01-14 Carles Pina i Estany <carles@pina.cat>
31872
31873 * gettext/gettext.c (grub_gettext_translate): Push and pop
31874 grub_errno.
31875 (grub_gettext_delete_list): Change comment style.
31876 * kern/err.c (grub_error): Gettextizze.
31877 (grub_fatal): Gettextizze.
31878
0a46429a
RM
318792010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31880
31881 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31882 (grub_linux16_real_boot): ... this.
31883 * kern/i386/loader.S: Likewise.
31884 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31885 (grub_linux16_boot): New function. Switches to text mode and calls
31886 grub_linux16_real_boot().
31887
31888 * loader/i386/bsd.c: Include `<grub/video.h>'.
31889 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31890 text mode before calling grub_unix_real_boot().
31891
31892 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31893 (grub_multiboot_boot): Switch to text mode before calling
31894 grub_relocator32_boot().
31895
31896 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31897 (grub_chainloader_boot): Switch to text mode before calling
31898 grub_chainloader_real_boot().
31899
d6f93a66
RM
319002010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
319012010-01-05 Colin Watson <cjwatson@ubuntu.com>
31902
31903 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31904 non-empty value.
31905
319062010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
319072010-01-05 Colin Watson <cjwatson@ubuntu.com>
31908
31909 * util/grub.d/00_header.in: Define a "savedefault" function for use
31910 in menu entries.
31911 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31912
319132010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
319142010-01-05 Colin Watson <cjwatson@ubuntu.com>
31915
31916 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31917 saved_entry if boot_once is unset.
31918 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31919 previous saved entry (i.e. grub-reboot).
31920
319212009-12-08 Colin Watson <cjwatson@ubuntu.com>
31922
31923 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31924
319252009-12-08 Colin Watson <cjwatson@ubuntu.com>
31926
31927 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31928 `var=val'.
31929 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31930
319312009-12-08 Colin Watson <cjwatson@ubuntu.com>
31932
31933 * util/grub-reboot.in: Fix --version output.
31934 * util/grub-set-default.in: Likewise.
31935
319362009-12-08 Colin Watson <cjwatson@ubuntu.com>
31937
31938 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31939 blocks.
31940
319412009-12-08 Colin Watson <cjwatson@ubuntu.com>
31942
31943 * util/grub.d/00_header.in: Quote the value assigned to `default',
31944 in case it contains spaces.
31945
319462009-12-08 Colin Watson <cjwatson@ubuntu.com>
31947
31948 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31949 `save_default_entry' call from the macosx case to the linux case.
31950
319512009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
319522009-10-25 Colin Watson <cjwatson@ubuntu.com>
31953
31954 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31955 in `chosen' environment variable.
31956 * normal/menu_text.c (get_entry_number): Check if the variable
31957 matches the title of a menu entry.
31958 (run_menu): Pass menu to get_entry_number.
31959
31960 * util/grub-reboot.in: New file.
31961 * util/grub-set-default.in: New file.
31962 * conf/common.rmk (grub-reboot): New utility.
31963 (grub-set-default): New utility.
31964
31965 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31966 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31967 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31968 move it to `saved_entry' for the next boot. Load environment on
31969 initialisation.
31970 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31971 * util/grub.d/10_hurd.in: Likewise.
31972 * util/grub.d/10_linux.in (linux_entry): Likewise.
31973 * util/grub.d/10_windows.in: Likewise.
31974 * util/grub.d/30_os-prober.in: Likewise.
31975
31976 * util/grub-install.in: Create environment block.
31977 * util/i386/efi/grub-install.in: Likewise.
31978 * util/ieee1275/grub-install.in: Likewise.
31979 * util/sparc64/ieee1275/grub-install.in: Likewise.
31980
0934d184
BC
319812010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31982
31983 Unit testing framework for GRUB.
31984
31985 * Makefile.in: Test framework build rules for 'make check'.
31986 * conf/tests.rmk: Build rules for individual tests and framework.
31987
31988 * include/grub/test.h: Header file for whitebox tests.
31989 * tests/lib/functional_test.c: Framework support for whitebox
31990 functional tests.
31991 * tests/lib/test.c: Common whitebox testing code for unit and
31992 functional tests.
31993 * tests/lib/unit_test.c: Framework support for whitebox unit
31994 tests.
31995
31996 * tests/util/grub-shell-tester.in: Support utility for grub-script
31997 tests.
31998 * tests/util/grub-shell.in: Utility to execute grub-script
31999 commands in a Qemu instance.
32000
32001 * tests/example_functional_test.c: Example whitebox functional
32002 test.
32003 * tests/example_grub_script_test.in: Example grub-script test.
32004 * tests/example_scripted_test.in: Example scripted test.
32005 * tests/example_unit_test.c: Example whitebox unit test.
32006
9c4ffeeb
VS
320072010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
32008
32009 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32010 Add loader/i386/multiboot_mbi.c.
32011 (multiboot2_mod_SOURCES): Likewise.
32012 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32013 (multiboot2_mod_SOURCES): Likewise.
32014 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32015 (grub_multiboot_make_mbi): Likewise.
32016 (grub_multiboot_free_mbi): Likewise.
32017 (grub_multiboot_init_mbi): Likewise.
32018 (grub_multiboot_add_module): Likewise.
32019 (grub_multiboot_set_bootdev): Likewise.
32020 * loader/i386/multiboot.c (mbi): Removed.
32021 (mbi_dest): Likewise.
32022 (alloc_mbi): New variable.
32023 (grub_multiboot_payload_size): Removed. All users updated.
32024 (grub_multiboot_pure_size): New variable.
32025 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32026 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32027 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32028 (grub_fill_multiboot_mmap): Likewise.
32029 (grub_multiboot_get_bootdev): Likewise.
32030 (grub_multiboot): Use multiboot_mbi functions.
32031 * loader/i386/multiboot_mbi.c: New file.
32032
17383dfe
VS
320332010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32034
32035 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32036 it would result in module crash.
32037
c1f28820
VS
320382010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32039
32040 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32041 (grub_ofconsole_getwh): Split to ...
32042 (grub_ofconsole_getwh): ... this.
32043 (grub_ofconsole_dimensions): ...and this.
32044 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32045
58655a16
RM
320462010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32047
32048 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32049
10891398
VS
320502010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32051
32052 * loader/i386/pc/multiboot2.c: Removed stalled file.
32053
0b8a223c
VS
320542010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32055
32056 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32057 Reported by: Grégoire Sutre
32058
92ab12b0
RM
320592010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32060
32061 * util/misc.c (canonicalize_file_name): New function.
32062 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32063 instead of realpath().
32064
a788afb6
CW
320652010-01-11 Colin Watson <cjwatson@ubuntu.com>
32066
32067 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32068 and make it clearer that it's optional. Based on confusion
32069 witnessed on IRC.
32070
ffa8e3d2
VS
320712010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32072
32073 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32074 in premature implicit newline.
32075
e9060a9d
VS
320762010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32077
32078 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32079 which resulted in garbled command line at the end of screen.
32080
f0d0c0b7
RM
320812010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32082
32083 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32084 initialization with similar approach as with other Linux loaders.
32085
0e60bae7
RM
320862010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32087
32088 Fix i386-ieee1275 build.
32089
32090 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32091 and grub_term_height() for video_{width,height} initialization.
32092
320932010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
32094
32095 Fix grub-emu build.
32096
32097 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32098
cdb3f378
RM
320992010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
321002010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32101
32102 Support for multiple terminals.
32103
32104 * Makefile.in (pkglib_DATA): terminal.lst.
32105 (terminal.lst): New target.
32106 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32107 (GRUB_MOD_INIT(handler)): Likewise.
32108 (GRUB_MOD_FINI(handler)): Likewise.
32109 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32110 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32111 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32112 (grub_cmd_sleep): Use grub_term_save_pos.
32113 * commands/terminal.c: New file.
32114 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32115 commands/terminal.c and lib/charset.c.
32116 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32117 (pkglib_MODULES): Add terminal.mod.
32118 (terminal_mod_SOURCES): New variable.
32119 (terminal_mod_CFLAGS): Likewise.
32120 (terminal_mod_LDFLAGS): Likewise.
32121 * genhandlerlist.sh: Don't handle terminals.
32122 * genmk.rb: Generate terminal-*.lst.
32123 * genterminallist.sh: New file.
32124 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32125 (grub_is_valid_utf8): Likewise.
32126 (grub_utf8_to_ucs4_alloc): Likewise.
32127 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32128 (grub_menu_register_viewer): Changed argument.
32129 (grub_menu_try_text): New proto.
32130 (grub_gfxmenu_try_hook): New declaration.
32131 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32132 (grub_menu_init_page): Additional argument term.
32133 (grub_normal_init_page): Likewise.
32134 (grub_cmdline_get): Arguments simplified.
32135 (grub_utf8_to_ucs4_alloc): Removed.
32136 (grub_print_ucs4): Additional argument term.
32137 (grub_getstringwidth): Likewise.
32138 (grub_print_message_indented): Likewise.
32139 (grub_menu_text_register_instances): New proto.
32140 (grub_show_menu): Likewise.
32141 (read_terminal_list): Likewise.
32142 (grub_set_more): Likewise.
32143 * include/grub/parser.h: Include handler.h.
32144 * include/grub/reader.h: Rewritten.
32145 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32146 (GRUB_TERM_WIDTH): Changed to function.
32147 (GRUB_TERM_HEIGHT): Likewise.
32148 (GRUB_TERM_BORDER_WIDTH): Likewise.
32149 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32150 (GRUB_TERM_NUM_ENTRIES): Likewise.
32151 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32152 (GRUB_TERM_CURSOR_X): Likewise.
32153 (grub_term_input_class): Likewise.
32154 (grub_term_output_class): Likewise.
32155 (grub_term_outputs_disabled): New declaration.
32156 (grub_term_inputs_disabled): Likewise.
32157 (grub_term_outputs): Likewise.
32158 (grub_term_inputs): Likewise.
32159 (grub_term_register_input): Rewritten.
32160 (grub_term_register_output): Likewise.
32161 (grub_term_unregister_input): Likewise.
32162 (grub_term_unregister_output): Likewise.
32163 (FOR_ACTIVE_TERM_INPUTS): New macro.
32164 (FOR_DISABLED_TERM_INPUTS): Likewise.
32165 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32166 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32167 * include/grub/terminfo.h: Add oterm argument to all protypes.
32168 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32169 Use grub_rescue_run.
32170 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32171 All users updated.
32172 * kern/reader.c: Removed. All users updated.
32173 * kern/rescue_reader.c (grub_rescue_init): Removed.
32174 (grub_rescue_reader): Likewise.
32175 (grub_register_rescue_reader): Likewise.
32176 (grub_rescue_run): New function based on kern/reader.c.
32177 * kern/term.c: Adapted for multiterm.
32178 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32179 (grub_is_valid_utf8): Likewise.
32180 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32181 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32182 right terminal.
32183 * loader/i386/linux.c (grub_linux_boot): Likewise.
32184 * normal/auth.c (grub_username_get): New function.
32185 (grub_auth_check_authentication): Use grub_username_get.
32186 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32187 * normal/color.c: Adapt for multiterm.
32188 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32189 (grub_normal_init_page): Additional argument term.
32190 (read_lists): Call read_terminal_lists.
32191 (grub_enter_normal_mode): Call grub_cmdline_run.
32192 Handle grub_normal_exit_level.
32193 (grub_cmd_normal): Make reentrant.
32194 (grub_cmd_normal_exit): New function.
32195 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32196 * normal/menu.c: Adapt for multiterm.
32197 * normal/menu_entry.c: Likewise.
32198 * normal/menu_text.c: Likewise.
32199 * normal/menu_viewer.c: Removed. All users updated.
32200 * normal/term.c: New file.
32201 * util/console.c: Change order of includes to workaround a bug in
32202 ncurses headers.
32203 * term/terminfo.c: New argument oterm on all exported functions.
32204 All users updated.
32205 * util/grub-editenv.c (grub_term_input_class): Removed.
32206 (grub_term_output_class): Likewise.
32207
1a064917
RM
322082010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32209
32210 Make loader output a bit more user-friendly.
32211
32212 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32213 is being loaded. Likewise for the Hurd.
32214
32215 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32216 that kernel of FreeBSD ${version} is being loaded.
32217
32218 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32219 grub_dprintf().
32220 (grub_cmd_initrd): Likewise.
32221 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32222 that Linux ${version} is being loaded. Likewise for initrd.
32223
5ce0a83a 322242010-01-09 Carles Pina i Estany <carles@pina.cat>
32225
32226 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32227
809bbfeb 322282010-01-08 Carles Pina i Estany <carles@pina.cat>
32229
32230 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32231 (GRUB_MOD_INIT): Gettextizze.
32232 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32233 (GRUB_MOD_INIT): Gettextizze.
32234 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32235 (grub_cmd_linux): Capitalise Linux.
32236 (GRUB_MOD_INIT): Gettextizze.
32237 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32238 (grub_cmd_linux): Capitalise Linux.
32239 (GRUB_MOD_INIT): Gettextizze.
32240 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32241 (grub_cmd_linux): Capitalise Linux.
32242 (GRUB_MOD_INIT): Gettextizze.
32243 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32244 (GRUB_MOD_INIT): Gettextizze.
32245 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32246 (grub_cmd_linux): Capitalise Linux.
32247 (GRUB_MOD_INIT): Gettextizze.
32248 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32249 (grub_cpu_xnu_init): Gettextizze.
32250 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32251 (GRUB_MOD_INIT): Gettextizze.
32252 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32253 (GRUB_MOD_INIT): Gettextizze.
32254 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32255 (grub_linux_load64): Capitalise Linux.
32256 (GRUB_MOD_INIT): Gettextizze.
32257 * loader/xnu.c: Include `<grub/i18n.h>'.
32258 (GRUB_MOD_INIT): Gettextizze.
32259 * po/POTFILES: Add `loader/efi/appleloader.c',
32260 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32261 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32262 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32263 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32264 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32265 and `loader/xnu.c'.
32266
b394b2ca
RM
322672010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32268
32269 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32270
322712010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
32272
32273 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32274 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32275 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32276
bc8b32b3
RM
322772010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32278
32279 Reset Multiboot 2 support. New loader implements the draft in
32280 /branches/multiboot2 and shares as much code as possible with the
32281 production Multiboot 1 implementation.
32282
32283 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32284 * loader/multiboot2.c: Likewise.
32285 * loader/i386/multiboot_helper.S: Likewise.
32286 * include/multiboot2.h: Replace with latest version from the draft
32287 in /branches/multiboot2.
32288
32289 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32290 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32291 and `loader/multiboot2.c'.
32292 (pkglib_MODULES): Add `multiboot2.mod'.
32293 (multiboot2_mod_SOURCES): New variable.
32294 (multiboot2_mod_LDFLAGS): Likewise.
32295 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32296
32297 * conf/i386-pc.rmk: Likewise.
32298
32299 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32300 (multiboot_mod_SOURCES): Remove variable.
32301 (multiboot_mod_LDFLAGS): Likewise.
32302 (multiboot_mod_CFLAGS): Likewise.
32303
32304 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32305 `<multiboot2.h>' instead of `<multiboot.h>'.
32306 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32307 (MULTIBOOT_HEADER_MAGIC): New macros.
32308
32309 * loader/multiboot_loader.c (module_version_status): Remove variable.
32310 (find_multi_boot2_header): Remove function.
32311 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32312 logic. Always check for the Multiboot version we're compiling for.
32313 (grub_cmd_module_loader): Likewise.
32314 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32315 command instead of `multiboot'.
32316
5d2c52b8
RM
323172010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32318
32319 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32320 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32321 all users.
32322
53108d92
RM
323232010-01-07 Robert Millan <rmh.grub@aybabtu.com>
323242010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32325
32326 Fix breakage introduced with previous commit.
32327
32328 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32329 commands.
32330 * normal/handler.c (read_handler_list): Revert part of previous commit
32331 affecting this file.
32332 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32333 (grub_normal_execute): ... here.
32334
e2e936b2
RM
323352010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32336
32337 Merge prefix-redefinition-fix branch.
32338
32339 * normal/autofs.c (read_fs_list): Make function capable of being
32340 run multiple times, gracefuly replacing the previous data
32341 structures.
32342 * normal/dyncmd.c (read_command_list): Likewise.
32343 * normal/handler.c (read_handler_list): Likewise.
32344 * normal/main.c (read_lists): New function. Calls all the
32345 list reading functions.
32346 (grub_normal_execute): Use read_lists() instead of calling all
32347 list reading functions explicitly. Register read_lists() as a
32348 variable hook attached to ${prefix}.
32349
607a3701
VS
323502010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32351
32352 Merge crypto branch.
32353
32354 * Makefile.in (pkglib_DATA): Add crypto.lst.
32355 (crypto.lst): New target.
32356 * commands/hashsum.c: New file.
32357 * commands/password.c (check_password): Use grub_crypto_memcmp.
32358 * commands/password_pbkdf2.c: New file.
32359 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32360 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32361 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32362 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32363 -I$(srcdir)/lib/libgcrypt_wrap.
32364 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32365 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32366 password_pbkdf2.mod.
32367 (crypto_mod_SOURCES): New variable.
32368 (crypto_mod_CFLAGS): Likewise.
32369 (crypto_mod_LDFLAGS): Likewise.
32370 (hashsum_mod_SOURCES): New variable.
32371 (hashsum_mod_CFLAGS): Likewise.
32372 (hashsum_mod_LDFLAGS): Likewise.
32373 (pbkdf2_mod_SOURCES): New variable.
32374 (pbkdf2_mod_CFLAGS): Likewise.
32375 (pbkdf2_mod_LDFLAGS): Likewise.
32376 (password_pbkdf2_mod_SOURCES): New variable.
32377 (password_pbkdf2_mod_CFLAGS): Likewise.
32378 (password_pbkdf2_mod_LDFLAGS): Likewise.
32379 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32380 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32381 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32382 Include conf/gcry.rmk.
32383 * include/grub/auth.h: Rewritten.
32384 * include/grub/crypto.h: New file.
32385 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32386 * include/grub/normal.h (read_crypto_list): New prototype.
32387 * lib/crypto.c: New file.
32388 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32389 * lib/pbkdf2.c: Likewise.
32390 * normal/auth.c (grub_auth_strcmp): Removed.
32391 (grub_iswordseparator): Likewise.
32392 (grub_auth_strword): Likewise.
32393 (is_authenticated): Use grub_strword.
32394 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32395 and grub_strword. Pass entered password to authentication callback.
32396 * normal/crypto.c: New file.
32397 * normal/main.c: Call read_crypto_list.
32398 * util/grub-mkpasswd-pbkdf2.c: New file.
32399 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32400
42841caa
VS
324012010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32402
32403 Fix descent and ascent calculation.
32404
32405 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32406 (options): New option "asce".
32407 (usage): Likewise.
32408 (add_char): Ignore invalid glyphs for descent calculation.
32409 Calculate ascent from actual content.
32410 (print_glyphs): Use 'asce'.
32411 (write_font): Likewise. Allow ascent override.
32412 (main): Handle "asce" option.
32413
e7730de7 324142010-01-06 Carles Pina i Estany <carles@pina.cat>
32415
32416 * kern/err.c: Include `<grub/i18n.h>'.
32417 (grub_print_error): Add full stop. Gettextizze.
32418 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32419 (grub_bsd_load_elf): Capitalise ELF.
32420 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32421 (grub_cmd_freebsd_module): Likewise.
32422 (grub_cmd_freebsd_module_elf): Likewise.
32423 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32424
40e3a41f 324252010-01-06 Carles Pina i Estany <carles@pina.cat>
32426
32427 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32428 * commands/search_file.c (HELP_MESSAGE): New macro.
32429 * commands/search_label.c (HELP_MESSAGE): Likewise.
32430 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32431 * po/POTFILES: Add `commands/search_file.c',
32432 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32433 `commands/search.c'.
32434
83507e68
RM
324352010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32436
32437 * config.rpath: Update from Gnulib.
32438
465c787b
YB
324392010-01-05 Yves Blusseau <blusseau@zetam.org>
32440
32441 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32442
6581dd3a
YB
324432010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32444
32445 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32446
3bff18c5
CW
324472010-01-05 Colin Watson <cjwatson@ubuntu.com>
32448
32449 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32450 arguments to fread so that we get a return value in bytes, rather
32451 than something that will normally be rounded down to 0.
32452 Adjust error handling to avoid producing garbage when size_t is not
32453 the same size as long long.
32454
a1368118
CW
324552010-01-05 Colin Watson <cjwatson@ubuntu.com>
32456
32457 * util/mkisofs/write.c (padblock_write): Check return value of
32458 fread.
32459
7c302978
RM
324602010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32461
32462 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32463 floppy images now.
32464
32465 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32466
e33ace06
RM
324672010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32468
32469 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32470 instead of manual alignment.
32471 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32472 verbose). Avoid attempts to read past end of the device
32473 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32474 but GRUB_DISK_CACHE_SIZE may exceed that).
32475
4b856776
RM
324762010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32477
32478 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32479 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32480 it to upper layer.
32481
52c2d97f
VS
324822010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32483
32484 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32485 New constant.
32486 (grub_efi_piwg_device_path): New structure
32487 (grub_efi_piwg_device_path_t): New type.
32488 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32489 (devpath_1): Transform to a structure. All users updated.
32490 (devpath_2): Likewise.
32491 (devpath_3): Likewise.
32492 (devpath_4): Likewise.
32493 (devpath_5): Likewise.
32494
98ff6a54
VS
324952010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32496
32497 * loader/efi/appleloader.c: Restored. Update all users.
32498
3a73dcb6
RM
324992010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32500
32501 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32502
32503 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32504 (struct boot_blocklist): Move from here ...
32505 * include/grub/i386/pc/boot.h [ASM_FILE]
32506 (struct grub_boot_blocklist): ... to here. Update all users.
32507 (setup): Only initialize `start' member of `first_block'
32508 structure. Add assert() calls to verify the other members.
32509
32510 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32511 (generate_image): Fix broken blocklist length initialization.
32512 Add assert() call to verify blocklist `segment' field.
32513
ab0eeb0c
RM
325142010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32515
32516 * loader/efi/appleloader.c: Remove. Update all users.
32517
58bc8bd5
RM
325182010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32519
32520 * boot/i386/pc/boot.S: Update copyright year.
32521 * boot/i386/pc/cdboot.S: Likewise.
32522 * boot/i386/pc/diskboot.S: Likewise.
32523 * boot/i386/pc/lnxboot.S: Likewise.
32524 * boot/i386/pc/pxeboot.S: Likewise.
32525 * bus/pci.c: Likewise.
32526 * commands/cmp.c: Likewise.
32527 * commands/help.c: Likewise.
32528 * commands/hexdump.c: Likewise.
32529 * commands/i386/pc/halt.c: Likewise.
32530 * commands/i386/pc/play.c: Likewise.
32531 * commands/i386/pc/vbeinfo.c: Likewise.
32532 * commands/ls.c: Likewise.
32533 * commands/test.c: Likewise.
32534 * disk/dmraid_nvidia.c: Likewise.
32535 * disk/i386/pc/biosdisk.c: Likewise.
32536 * disk/ieee1275/nand.c: Likewise.
32537 * disk/ieee1275/ofdisk.c: Likewise.
32538 * disk/lvm.c: Likewise.
32539 * disk/raid.c: Likewise.
32540 * disk/raid6_recover.c: Likewise.
32541 * disk/scsi.c: Likewise.
32542 * fs/affs.c: Likewise.
32543 * fs/cpio.c: Likewise.
32544 * fs/ext2.c: Likewise.
32545 * fs/hfs.c: Likewise.
32546 * fs/iso9660.c: Likewise.
32547 * fs/ntfs.c: Likewise.
32548 * fs/sfs.c: Likewise.
32549 * fs/udf.c: Likewise.
32550 * fs/ufs.c: Likewise.
32551 * fs/xfs.c: Likewise.
32552 * gencmdlist.sh: Likewise.
32553 * genmk.rb: Likewise.
32554 * include/grub/disk.h: Likewise.
32555 * include/grub/efi/api.h: Likewise.
32556 * include/grub/efi/efi.h: Likewise.
32557 * include/grub/efi/pe32.h: Likewise.
32558 * include/grub/elf.h: Likewise.
32559 * include/grub/fs.h: Likewise.
32560 * include/grub/i386/at_keyboard.h: Likewise.
32561 * include/grub/i386/pc/memory.h: Likewise.
32562 * include/grub/i386/pc/vbe.h: Likewise.
32563 * include/grub/i386/pci.h: Likewise.
32564 * include/grub/i386/tsc.h: Likewise.
32565 * include/grub/ieee1275/ieee1275.h: Likewise.
32566 * include/grub/ntfs.h: Likewise.
32567 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32568 * include/grub/sparc64/libgcc.h: Likewise.
32569 * include/grub/symbol.h: Likewise.
32570 * include/grub/types.h: Likewise.
32571 * include/multiboot2.h: Likewise.
32572 * io/gzio.c: Likewise.
32573 * kern/device.c: Likewise.
32574 * kern/disk.c: Likewise.
32575 * kern/efi/efi.c: Likewise.
32576 * kern/efi/mm.c: Likewise.
32577 * kern/elf.c: Likewise.
32578 * kern/file.c: Likewise.
32579 * kern/i386/dl.c: Likewise.
32580 * kern/i386/pc/init.c: Likewise.
32581 * kern/i386/pc/startup.S: Likewise.
32582 * kern/ieee1275/ieee1275.c: Likewise.
32583 * kern/ieee1275/init.c: Likewise.
32584 * kern/main.c: Likewise.
32585 * kern/mm.c: Likewise.
32586 * kern/powerpc/dl.c: Likewise.
32587 * kern/sparc64/dl.c: Likewise.
32588 * kern/x86_64/dl.c: Likewise.
32589 * lib/hexdump.c: Likewise.
32590 * loader/efi/appleloader.c: Likewise.
32591 * loader/i386/ieee1275/linux.c: Likewise.
32592 * loader/i386/pc/chainloader.c: Likewise.
32593 * loader/i386/pc/linux.c: Likewise.
32594 * loader/i386/pc/multiboot2.c: Likewise.
32595 * loader/ieee1275/multiboot2.c: Likewise.
32596 * loader/multiboot2.c: Likewise.
32597 * loader/multiboot_loader.c: Likewise.
32598 * loader/powerpc/ieee1275/linux.c: Likewise.
32599 * normal/completion.c: Likewise.
32600 * normal/menu_entry.c: Likewise.
32601 * partmap/apple.c: Likewise.
32602 * util/grub.d/10_hurd.in: Likewise.
32603 * util/hostfs.c: Likewise.
32604 * video/readers/png.c: Likewise.
32605
e2d70b5c
CW
326062010-01-03 Colin Watson <cjwatson@ubuntu.com>
32607
32608 * include/grub/misc.h (GNUC_PREREQ): New macro.
32609 (ATTRIBUTE_ERROR): New macro.
32610 * include/grub/list.h (grub_bad_type_cast_real): Use
32611 ATTRIBUTE_ERROR.
32612
a173283f 326132010-01-03 Carles Pina i Estany <carles@pina.cat>
32614
32615 * normal/menu_text.c (print_message): Change messages.
32616
7fa7ff74 326172010-01-03 Carles Pina i Estany <carles@pina.cat>
32618
32619 * normal/menu_entry.c (store_completion): Gettextizze.
32620
136d24f6 326212010-01-03 Carles Pina i Estany <carles@pina.cat>
32622
32623 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32624
f936862e 326252010-01-03 Carles Pina i Estany <carles@pina.cat>
32626
32627 * po/POTFILES: Sort correctly.
32628
29c44ad1 326292010-01-03 Carles Pina i Estany <carles@pina.cat>
32630
32631 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32632 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32633 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32634 full stop.
32635 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32636 summary. Gettextizze the strings.
32637 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32638 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32639 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32640 full stop.
32641 (GRUB_MOD_INIT): Remove command name from summary.
32642 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32643 summary.
32644 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32645 * term/i386/pc/serial.c (options): Add full stops.
32646 (GRUB_MOD_INIT): Remove command name from the summary.
32647
77a79592 326482010-01-03 Carles Pina i Estany <carles@pina.cat>
32649
32650 * commands/acpi.c: Gettextizze help strings and/or options. Include
32651 `grub/i18n.h' if needed.
32652 * commands/blocklist.c: Likewise.
32653 * commands/boot.c: Likewise.
32654 * commands/cat.c: Likewise.
32655 * commands/cmp.c: Likewise.
32656 * commands/configfile.c: Likewise.
32657 * commands/crc.c: Likewise.
32658 * commands/date.c: Likewise.
32659 * commands/echo.c: Likewise.
32660 * commands/efi/fixvideo.c: Likewise.
32661 * commands/efi/loadbios.c: Likewise.
32662 * commands/gptsync.c: Likewise.
32663 * commands/halt.c: Likewise.
32664 * commands/handler.c: Likewise.
32665 * commands/hdparm.c: Likewise.
32666 * commands/hexdump.c: Likewise.
32667 * commands/i386/cpuid.c: Likewise.
32668 * commands/i386/pc/drivemap.c: Likewise.
32669 * commands/i386/pc/halt.c: Likewise.
32670 * commands/i386/pc/pxecmd.c: Likewise.
32671 * commands/i386/pc/vbeinfo.c: Likewise.
32672 * commands/i386/pc/vbetest.c: Likewise.
32673 * commands/ieee1275/suspend.c: Likewise.
32674 * commands/keystatus.c: Likewise.
32675 * commands/loadenv.c: Likewise.
32676 * commands/ls.c: Likewise.
32677 * commands/lsmmap.c: Likewise.
32678 * commands/lspci.c: Likewise.
32679 * commands/memrw.c: Likewise.
32680 * commands/minicmd.c: Likewise.
32681 * commands/parttool.c: Likewise.
32682 * commands/password.c: Likewise.
32683 * commands/probe.c: Likewise.
32684 * commands/read.c: Likewise.
32685 * commands/reboot.c: Likewise.
32686 * commands/search.c: Likewise.
32687 * commands/sleep.c: Likewise.
32688 * commands/test.c: Likewise.
32689 * commands/true.c: Likewise.
32690 * commands/usbtest.c: Likewise.
32691 * commands/videotest.c: Likewise.
32692 * commands/xnu_uuid.c: Likewise.
32693 * disk/loopback.c: Likewise.
32694 * hello/hello.c: Likewise.
32695 * loader/i386/bsd.c: Likewise.
32696 * term/i386/pc/serial.c: Likewise.
32697 * po/POTFILES: Add new files.
32698
da8d5c53
CW
326992010-01-02 Colin Watson <cjwatson@ubuntu.com>
32700
32701 * term/i386/pc/at_keyboard.c
32702 (keyboard_controller_wait_untill_ready): Rename to ...
32703 (keyboard_controller_wait_until_ready): ... this. Update all users.
32704
33937904 327052010-01-01 Carles Pina i Estany <carles@pina.cat>
32706
32707 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32708 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32709 string using string width.
32710 * normal/menu_text.c (grub_print_message_indented): Use
32711 grub_print_spaces and not print_spaces.
32712 (print_timeout): Likewise.
32713 (print_spaces): Move to...
32714 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32715
3fd3b8d8
RM
327162010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32717
32718 Import from Gnulib.
32719
32720 * gnulib/getdelim.c: New file.
32721 * gnulib/getline.c: Likewise.
32722
33433555
VS
327232009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32724
32725 * include/grub/list.h (grub_assert_fail): Removed.
32726 (grub_bad_type_cast_real): New function.
32727 (grub_bad_type_cast): New macro.
32728 (GRUB_AS_LIST): Use grub_bad_type_cast.
32729 (GRUB_AS_LIST_P): Likewise.
e44721e8 32730 (GRUB_AS_NAMED_LIST): Likewise.
33433555 32731 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 32732 (GRUB_AS_PRIO_LIST): Likewise.
33433555 32733 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 32734 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 32735
f5a51306
VS
327362009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32737
32738 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32739 Fix syntax error.
32740
90d1e879
RM
327412009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32742
32743 * configure.ac: Check for TARGET_CFLAGS initialization before we
32744 initialize it ourselves (sigh).
32745 Move a few modifications to TARGET_CFLAGS to be unconditional
32746 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32747 eh_frame)
32748
32749 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32750 * term/i386/pc/at_keyboard.c
32751 (keyboard_controller_wait_untill_ready): Likewise.
32752 (keyboard_controller_led): Rename `led_status' paramter to avoid
32753 name conflict.
32754
465b5a81 327552009-12-28 Carles Pina i Estany <carles@pina.cat>
32756
32757 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32758 quotes.
32759
c181849b
VS
327602009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32761
32762 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32763
9c8739a4
VS
327642009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32765
32766 * normal/menu_text.c (grub_print_message_indented): Prevent
32767 past-the-end-of-array dereference.
32768
3e74249c
VS
327692009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32770
32771 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32772 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32773
64fd18ed 327742009-12-27 Carles Pina i Estany <carles@pina.cat>
32775
32776 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32777 * normal/main.c (grub_normal_read_line): Remove a space from the
32778 default prompt.
32779
714af9b9 327802009-12-27 Carles Pina i Estany <carles@pina.cat>
32781
32782 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32783 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32784 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32785 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32786 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32787 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32788 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32789
82f3e412 327902009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 32791
32792 * video/readers/jpeg.c (cmd): Declare.
32793 (grub_cmd_jpegtest): Use `grub_command_t' type.
32794 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32795 Assign to `cmd'.
32796 (GRUB_MOD_FINI): Use `cmd' to unregister.
32797 * video/readers/png.c (cmd): Declare.
32798 (grub_cmd_pngtest): Use `grub_command_t' type.
32799 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32800 Assign to `cmd'.
32801 (GRUB_MOD_FINI): Use `cmd' to unregister.
32802 * video/readers/tga.c (cmd): Declare.
32803 (grub_cmd_tgatest): Use `grub_command_t' type.
32804 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32805 Assign to `cmd'.
32806 (GRUB_MOD_FINI): Use `cmd' to unregister.
32807
82f3e412 328082009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 32809
32810 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32811 stops.
32812 * kern/corecmd.c (grub_register_core_commands): Likewise.
32813 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32814 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32815 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32816 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32817 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32818 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32819 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32820 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32821 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32822 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32823 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32824 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32825 * normal/handler.c (insert_handler): Likewise.
32826 * normal/main.c (GRUB_MOD_INIT): Likewise.
32827 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32828
fdcdbb66 328292009-12-26 Carles Pina i Estany <carles@pina.cat>
32830
32831 * commands/help.c (grub_cmd_help): Print the command name before the
32832 summary.
32833 (GRUB_MOD_INIT): Remove command name from the summary.
32834 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 32835 string as summary.
fdcdbb66 32836 * lib/arg.c (find_long): Print the command name before the summary.
32837 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32838 summary.
32839 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32840 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32841 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32842 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32843 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32844 * commands/date.c (GRUB_MOD_INIT): Likewise.
32845 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32846 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32847 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32848 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32849 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32850 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32851 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32852 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32853 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32854 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32855 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32856 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32857 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32858 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32859 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32860 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32861 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32862 * commands/password.c (GRUB_MOD_INIT): Likewise.
32863 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32864 * commands/read.c (GRUB_MOD_INIT): Likewise.
32865 * commands/search.c (GRUB_MOD_INIT): Likewise.
32866 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32867 * commands/test.c (GRUB_MOD_INIT): Likewise.
32868 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32869 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32870 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32871 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32872 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32873 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32874 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32875 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32876 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32877 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32878 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32879 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32880 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32881 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32882
9c288be2
VS
328832009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32884
32885 Use search command for preliminar UUID search.
32886
32887 * commands/search.c: Split into ...
32888 * commands/search_wrap.c: ...this
32889 * commands/search.c: ...and this.
32890 * commands/search_file.c: New file.
32891 * commands/search_label.c: New file.
32892 * commands/search_uuid.c: New file.
32893 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32894 Add commands/search_wrap.c, commands/search_file.c,
32895 commands/search_label.c and commands/search_uuid.c.
32896 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32897 (search_mod_SOURCES): Set to commands/search_wrap.c.
32898 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32899 search_label.mod.
32900 (search_fs_file_mod_SOURCES): New variable.
32901 (search_fs_file_mod_CFLAGS): Likewise.
32902 (search_fs_file_mod_LDFLAGS): Likewise.
32903 (search_label_mod_SOURCES): Likewise.
32904 (search_label_mod_CFLAGS): Likewise.
32905 (search_label_mod_LDFLAGS): Likewise.
32906 (search_fs_uuid_mod_SOURCES): New variable.
32907 (search_fs_uuid_mod_CFLAGS): Likewise.
32908 (search_fs_uuid_mod_LDFLAGS): Likewise.
32909 (fs_file_mod_SOURCES): Removed.
32910 (fs_file_mod_CFLAGS): Likewise.
32911 (fs_file_mod_LDFLAGS): Likewise.
32912 (fs_uuid_mod_SOURCES): Removed.
32913 (fs_uuid_mod_CFLAGS): Likewise.
32914 (fs_uuid_mod_LDFLAGS): Likewise.
32915 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32916 Set to util/grub-install.in.
32917 * disk/fs_file.c: Removed.
32918 * disk/fs_uuid.c: Likewise.
32919 * include/grub/search.h: New file.
32920 * util/grub-install.in: Handle sparc64.
32921 Create and use load.cfg.
32922 * util/sparc64/ieee1275/grub-install.in: Removed.
32923
db943399
VS
329242009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32925
32926 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32927 Ignore return status if CF is cleared.
32928 (grub_biosdisk_get_diskinfo_standard): Likewise.
32929
3fdae612
RM
329302009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32931
32932 * term/i386/pc/at_keyboard.c
32933 (keyboard_controller_wait_untill_ready): New function.
32934 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32935 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32936 for keyboard polling, rather than duplicate the same loop. This
32937 saves a few bytes in code size.
32938
7ebaa2b4
VS
329392009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32940
32941 Support for (pxe[:server[:gateway]]) syntax and
32942 use environment variable for PXE.
32943
32944 * commands/i386/pc/pxecmd.c (options): Removed.
32945 (print_ip): Removed.
32946 (grub_cmd_pxe): Removed
32947 (grub_cmd_pxe_unload): New function.
32948 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32949 (grub_pxe_your_ip): Made static.
32950 (grub_pxe_default_server_ip): Likewise.
32951 (grub_pxe_default_gateway_ip): Likewise.
32952 (grub_pxe_blksize): Likewise.
32953 (parse_ip): New function.
32954 (grub_pxe_open): Support server and gateway specification.
32955 (grub_pxe_close): Free disk->data.
32956 (grub_pxefs_open): Use disk->data.
32957 (grub_pxefs_read): Likewise.
32958 (grub_env_write_readonly): New function.
32959 (set_mac_env): Likewise.
32960 (set_env_limn_ro): Likewise.
32961 (parse_dhcp_vendor): Likewise.
32962 (grub_pxe_detect): Set the environment variables.
32963 (set_ip_env): New function.
32964 (write_ip_env): Likewise.
32965 (grub_env_write_pxe_default_server): Likewise.
32966 (grub_env_write_pxe_default_gateway): Likewise.
32967 (grub_env_write_pxe_blocksize): Likewise.
32968 (GRUB_MOD_INIT(pxe)): Set environment variables.
32969 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32970 (grub_pxe_mac_addr_t): ... this. All users updated.
32971 (grub_pxe_your_ip): Removed.
32972 (grub_pxe_server_ip): Likewise.
32973 (grub_pxe_gateway_ip): Likewise.
32974 (grub_pxe_blksize): Likewise.
32975
ec5f98ab 329762009-12-25 Carles Pina i Estany <carles@pina.cat>
32977
32978 * commands/help.c: Include `<grub/i18n.h>'.
32979 (grub_cmd_help): Gettextizze.
32980 (GRUB_MOD_INIT): Likewise.
32981 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32982 (GRUB_MOD_INIT): Gettextizze.
32983 * commands/search.c: Include `<grub/i18n.h>'.
32984 (options): Gettextizze.
32985 (GRUB_MOD_INIT): Gettextizze.
32986 * lib/arg.c: Include `<grub/i18n.h>'.
32987 (help_options): Gettextizze.
32988 (find_long): Likewise.
32989 (grub_arg_show_help): Likewise.
32990 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32991 (read_command_list): Gettextizze.
32992 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 32993 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 32994
22815526
RM
329952009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32996
32997 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32998 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32999 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
33000 (led_status): New variable.
33001 (keyboard_controller_led): New function.
33002 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
33003 update led status for caps lock, num lock and scroll lock.
33004
0ad46fd7
FZ
330052009-12-25 Felix Zielcke <fzielcke@z-51.de>
33006
33007 * util/hostdisk.c (open_device): Fix a comment.
33008
d0e158c2
RM
330092009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33010
33011 * util/grub-install.in (host_os): New variable.
33012 * util/i386/efi/grub-install.in (host_os): Likewise.
33013
401c0ad6
RM
330142009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33015
33016 * util/mkisofs/write.c (padblock_write): Abort when given an
33017 excedingly large embed image, instead of silently truncating it.
33018
d14d3370
RM
330192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33020
33021 * include/multiboot.h: Indentation fixes.
33022
eeed10b4
RM
330232009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33024
33025 * include/multiboot.h (struct multiboot_aout_symbol_table)
33026 (struct multiboot_elf_section_header_table): New structure
33027 declarations (stolen from GRUB Legacy).
33028 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33029 table information.
33030
33031 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33032 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33033 type aliases.
33034
681c70ab
RM
330352009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33036
33037 * include/multiboot.h: Make comments src2texi-friendly.
33038
e4d47d8d
RM
330392009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33040
33041 For consistency with [multiboot]/docs/boot.S.
33042
33043 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33044 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33045 (MULTIBOOT_MAGIC2): Rename from this ...
33046 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33047
a0b70bda
RM
330482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33049
33050 * include/multiboot.h: Remove `<grub/types.h>'.
33051 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33052 types. Update all users.
33053
61ba42be 330542009-12-25 Carles Pina i Estany <carles@pina.cat>
33055
33056 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33057 `couldn't' and `can not' by `cannot'.
33058 * commands/i386/pc/drivemap.c: Likewise.
33059 * disk/ata.c: Likewise.
33060 * disk/ieee1275/nand.c: Likewise.
33061 * fs/affs.c: Likewise.
33062 * fs/fat.c: Likewise.
33063 * fs/hfs.c: Likewise.
33064 * fs/hfsplus.c: Likewise.
33065 * fs/iso9660.c: Likewise.
33066 * fs/jfs.c: Likewise.
33067 * fs/minix.c: Likewise.
33068 * fs/reiserfs.c: Likewise.
33069 * fs/sfs.c: Likewise.
33070 * fs/udf.c: Likewise.
33071 * fs/ufs.c: Likewise.
33072 * fs/xfs.c: Likewise.
33073 * loader/powerpc/ieee1275/linux.c: Likewise.
33074 * loader/sparc64/ieee1275/linux.c: Likewise.
33075 * util/grub-probe.c: Likewise.
33076 * util/misc.c: Likewise.
33077
7fd0baee 330782009-12-24 Carles Pina i Estany <carles@pina.cat>
33079
33080 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33081 grub_errno calls.
33082 * commands/acpi.c: Likewise.
33083 * commands/blocklist.c: Likewise.
33084 * commands/efi/loadbios.c: Likewise.
33085 * commands/i386/pc/drivemap.c: Likewise.
33086 * commands/loadenv.c: Likewise.
33087 * commands/memrw.c: Likewise.
33088 * commands/password.c: Likewise.
33089 * commands/videotest.c: Likewise.
33090 * disk/ata.c: Likewise.
33091 * disk/ata_pthru.c: Likewise.
33092 * disk/dmraid_nvidia.c: Likewise.
33093 * disk/ieee1275/nand.c: Likewise.
33094 * disk/ieee1275/ofdisk.c: Likewise.
33095 * disk/loopback.c: Likewise.
33096 * disk/lvm.c: Likewise.
33097 * disk/mdraid_linux.c: Likewise.
33098 * disk/raid.c: Likewise.
33099 * disk/raid6_recover.c: Likewise.
33100 * disk/scsi.c: Likewise.
33101 * efiemu/main.c: Likewise.
33102 * efiemu/mm.c: Likewise.
33103 * efiemu/pnvram.c: Likewise.
33104 * efiemu/symbols.c: Likewise.
33105 * font/font.c: Likewise.
33106 * fs/cpio.c: Likewise.
33107 * fs/hfsplus.c: Likewise.
33108 * fs/iso9660.c: Likewise.
33109 * fs/jfs.c: Likewise.
33110 * fs/minix.c: Likewise.
33111 * fs/ntfs.c: Likewise.
33112 * fs/ntfscomp.c: Likewise.
33113 * fs/reiserfs.c: Likewise.
33114 * fs/ufs.c: Likewise.
33115 * fs/xfs.c: Likewise.
33116 * gettext/gettext.c: Likewise.
33117 * include/grub/auth.h: Likewise.
33118 * kern/elf.c: Likewise.
33119 * kern/file.c: Likewise.
33120 * kern/ieee1275/init.c: Likewise.
33121 * kern/ieee1275/mmap.c: Likewise.
33122 * kern/ieee1275/openfw.c: Likewise.
33123 * kern/powerpc/dl.c: Likewise.
33124 * kern/sparc64/dl.c: Likewise.
33125 * lib/arg.c: Likewise.
33126 * loader/i386/bsd.c: Likewise.
33127 * loader/i386/bsdXX.c: Likewise.
33128 * loader/i386/efi/linux.c: Likewise.
33129 * loader/i386/efi/xnu.c: Likewise.
33130 * loader/i386/ieee1275/linux.c: Likewise.
33131 * loader/i386/linux.c: Likewise.
33132 * loader/i386/multiboot.c: Likewise.
33133 * loader/i386/pc/linux.c: Likewise.
33134 * loader/i386/pc/multiboot2.c: Likewise.
33135 * loader/i386/xnu.c: Likewise.
33136 * loader/ieee1275/multiboot2.c: Likewise.
33137 * loader/macho.c: Likewise.
33138 * loader/machoXX.c: Likewise.
33139 * loader/multiboot2.c: Likewise.
33140 * loader/multiboot_loader.c: Likewise.
33141 * loader/powerpc/ieee1275/linux.c: Likewise.
33142 * loader/sparc64/ieee1275/linux.c: Likewise.
33143 * loader/xnu.c: Likewise.
33144 * loader/xnu_resume.c: Likewise.
33145 * mmap/i386/pc/mmap.c: Likewise.
33146 * normal/menu_viewer.c: Likewise.
33147 * partmap/acorn.c: Likewise.
33148 * partmap/amiga.c: Likewise.
33149 * partmap/apple.c: Likewise.
33150 * script/lexer.c: Likewise.
33151 * term/gfxterm.c: Likewise.
33152 * term/i386/pc/serial.c: Likewise.
33153 * term/i386/pc/vga.c: Likewise.
33154 * term/ieee1275/ofconsole.c: Likewise.
33155 * term/terminfo.c: Likewise.
33156 * video/bitmap.c: Likewise.
33157 * video/efi_gop.c: Likewise.
33158 * video/efi_uga.c: Likewise.
33159 * video/fb/video_fb.c: Likewise.
33160 * video/i386/pc/vbe.c: Likewise.
33161 * video/readers/tga.c: Likewise.
33162 * video/video.c: Likewise.
33163
0ad46fd7 331642009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
33165
33166 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33167 * commands/lspci.c: Likewise.
33168 * commands/probe.c: Likewise.
33169 * commands/xnu_uuid.c: Likewise.
33170 * conf/i386-coreboot.rmk: Likewise.
33171 * conf/i386-efi.rmk: Likewise.
33172 * conf/i386-ieee1275.rmk: Likewise.
33173 * conf/i386-pc.rmk: Likewise.
33174 * conf/powerpc-ieee1275.rmk: Likewise.
33175 * conf/sparc64-ieee1275.rmk: Likewise.
33176 * conf/x86_64-efi.rmk: Likewise.
33177 * fs/i386/pc/pxe.c: Likewise.
33178 * gettext/gettext.c: Likewise.
33179 * include/grub/efi/graphics_output.h: Likewise.
33180 * include/grub/i386/pc/memory.h: Likewise.
33181 * kern/env.c: Likewise.
33182 * kern/i386/qemu/startup.S: Likewise.
33183 * lib/i386/pc/biosnum.c: Likewise.
33184 * lib/i386/relocator.c: Likewise.
33185 * lib/i386/relocator_asm.S: Likewise.
33186 * lib/relocator.c: Likewise.
33187 * loader/i386/bsd.c: Likewise.
33188 * loader/i386/multiboot.c: Likewise.
33189 * loader/i386/pc/chainloader.c: Likewise.
33190 * loader/i386/xnu.c: Likewise.
33191 * loader/xnu.c: Likewise.
33192 * normal/main.c: Likewise.
33193 * normal/menu_text.c: Likewise.
33194 * util/getroot.c: Likewise.
33195 * util/grub-mkconfig_lib.in: Likewise.
33196 * util/grub.d/00_header.in: Likewise.
33197 * util/i386/pc/grub-mkimage.c: Likewise.
33198 * util/mkisofs/eltorito.c: Likewise.
33199 * util/mkisofs/exclude.h: Likewise.
33200 * util/mkisofs/hash.c: Likewise.
33201 * util/mkisofs/iso9660.h: Likewise.
33202 * util/mkisofs/joliet.c: Likewise.
33203 * util/mkisofs/mkisofs.c: Likewise.
33204 * util/mkisofs/mkisofs.h: Likewise.
33205 * util/mkisofs/multi.c: Likewise.
33206 * util/mkisofs/name.c: Likewise.
33207 * util/mkisofs/rock.c: Likewise.
33208 * util/mkisofs/tree.c: Likewise.
33209 * util/mkisofs/write.c: Likewise.
33210 * video/efi_gop.c: Likewise.
33211
009ec743
VS
332122009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33213
33214 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33215 size counting.
33216
0ad46fd7 332172009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
33218
33219 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33220 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33221
d3d30ea0
VS
332222009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33223
33224 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33225 (GRUB_MOD_INIT(memrw)): Update help line.
33226
a34f5c70
VS
332272009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33228
33229 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33230 Use grub_extcmd_t. All users updated.
33231 (options): New variable.
33232 (grub_cmd_read): Restructure for readability. Support "-v" option.
33233 (grub_cmd_write): Restructure for readability.
33234
0ad46fd7 332352009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
33236
33237 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33238
0ad46fd7 332392009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
33240
33241 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33242 with the actual contents of the correspondending make variable.
33243 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33244 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33245 specifying `*.lst' and `efiemu??.o'
33246
0ad46fd7 332472009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
33248
33249 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33250 after function name.
33251 Noticed by Rene Engelhard <rene@debian.org>.
33252
dc77a799
VS
332532009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33254
33255 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33256 (options): New variable.
33257 (iospace): Likewise.
33258 (grub_lspci_iter): List IO spaces if "-i" was given.
33259 (grub_cmd_lspci): Parse options.
33260 (GRUB_MOD_INIT(lspci)): Use extcmd.
33261 (GRUB_MOD_FINI(lspci)): Likewise.
33262
0ad46fd7 332632009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
33264
33265 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33266 `function' keyword.
33267 Patch by Tony Mancill <tmancill@debian.org>.
33268
b5d5993b
VS
332692009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33270
33271 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33272 (grub_uhci_portstatus): Likewise.
33273 (grub_uhci_portstatus): Add necessary delay.
11d18281 33274 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 33275
941903f2 332762009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 33277
941903f2 33278 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33279 (GRUB_MOD_INIT): Likewise.
33280 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 33281 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33282 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 33283 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33284 (enable_rom_area): Likewise.
33285 (GRUB_MOD_INIT): Likewise.
33286 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33287 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33288 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33289 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33290 * commands/hexdump.c (options): Likewise.
33291 * commands/i386/cpuid.c (options): Likewise.
33292 (GRUB_MOD_INIT): Likewise.
33293 * commands/i386/pc/drivemap.c (options): Likewise.
33294 (GRUB_MOD_INIT): Likewise.
33295 * commands/i386/pc/halt (options): Likewise.
33296 (GRUB_MOD_INIT): Likewise.
33297 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33298 * commands/i386/pc/pxecmd.c (options): Likewise.
33299 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33300 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33301 * commands/keystatus.c (options): Likewise.
33302 (GRUB_MOD_INIT): Likewise.
33303 * commands/loadenv.c (options): Likewise.
33304 * commands/ls.c (options): Likewise.
33305 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33306 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33307 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33308 * commands/parttool.c (helpmsg): Likewise.
33309 * commands/probe.c (options): Likewise.
33310 * commands/read.c (GRUB_MOD_INIT): Likewise.
33311 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33312 * commands/search.c (options): Likewise.
33313 * commands/sleep.c (options): Likewise.
33314 * commands/test.c (GRUB_MOD_INIT): Likewise.
33315 * commands/true.c (GRUB_MOD_INIT): Likewise.
33316 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33317 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33318 * lib/arg.c (help_options): Likewise.
e9bbb4e7 33319 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33320 `$(XGETTEXT)'.
98a50553 33321 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 33322
0ad46fd7 333232009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 33324
ef3c2c3a 33325 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
33326 instead of specifying them explicit.
33327
7922f68b
RM
333282009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33329
33330 * NEWS: Add grub-probe support for GNU/Hurd.
33331
537ce47f
RM
333322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33333
33334 * NEWS: gettext was added after 1.97.
33335
9b214e3a
RM
333362009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33337
33338 * util/mkisofs/msdos_partition.h: New file (based on
33339 include/grub/msdos_partition.h).
33340 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33341 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33342 (ld_options, main): Recognize --protective-msdos-label.
33343 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33344 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33345 (padblock_write): If `use_protective_msdos_label' is set, patch a
33346 protective DOS-style label in the output image.
33347
33348 * util/grub-mkrescue.in: Use --protective-msdos-label.
33349
e9309813
RM
333502009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33351
33352 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33353 boot.
33354
0ae56929
RM
333552009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33356
33357 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33358 variables.
33359 (ld_options, main): Recognize `--embedded-boot'.
33360 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33361 declarations.
33362 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33363 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33364 (padblock_write): Likewise. Rewrite to support embedded boot image.
33365
33366 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33367 for BIOS-based disk boot instead of only ElTorito.
33368
b15937b1
RM
333692009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33370
33371 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33372 build (not needed for bootstrap).
33373
52cc3ce0
RM
333742009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33375
33376 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33377 from i386-pc build (not needed for bootstrap).
33378 Rewrite a pair of strings.
33379
36f5ff04
RM
333802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33381
33382 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33383
973c6c85 333842009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
33385
33386 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33387
05d21547
AB
333882009-12-21 Andreas Born <futur.andy@googlemail.com>
33389
33390 * kern/env.c (grub_env_context_open): Mark exported variable for
33391 reexport.
33392
0175d51f
AB
333932009-12-21 Andreas Born <futur.andy@googlemail.com>
33394
33395 * kern/env.c (grub_env_export): Create nonexistent variables before
33396 exporting.
33397
7f39d92f 333982009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 33399
7f39d92f 33400 * include/grub/auth.h: Include `<grub/i18n.h>'.
33401 (GRUB_GET_PASSWORD): Gettextizze string.
33402 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33403 menu_text.c.
33404 (grub_utf8_to_ucs4_alloc): Fix indentation.
33405 (grub_print_ucs4): Likewise.
33406 (grub_getstringwidth): Likewise.
33407 (print_message_indented): New declaration.
33408 * normal/auth.c: Include `<grub/i18n.h>'.
33409 (grub_auth_check_authentication): Gettexttize string.
33410 * normal/cmdline.c: Include `<grub/i18n.h>'.
33411 (grub_cmdline_get): Gettextizze.
33412 * normal/color.c: Include `<grub/i18n.h>'.
33413 (grub_parse_color_name_pair): Gettexttize strings.
33414 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33415 string (use `print_message_indented').
33416 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33417 `include/grub/normal.h'.
33418 (print_message_indented): Renamed to ...
33419 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33420 used in normal/main.c).
33421 (print_message): Use `grub_print_message_indented' instead of
33422 `print_message_indented'.
33423 (print_timeout): Likewise.
33424 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33425 (grub_normal_print_device_info): Gettexttize strings.
33426 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33427
3041d898
VS
334282009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33429
33430 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33431 of arguments. Return number of tokens and not arguments. All users
33432 updated.
33433
de15bf8e
VS
334342009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33435
33436 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33437 non-MSDOS paritions.
33438
e0a6ca52
VS
334392009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33440
33441 * include/grub/types.h (UNUSED): Removed since it conflicts with
33442 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33443 Reported by Grégoire Sutre.
33444
b99518d1 334452009-12-19 Carles Pina i Estany <carles@pina.cat>
33446
33447 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33448 (grub_print_ucs4_alloc): Likewise.
33449 (grub_getstringwidth): Likewise.
33450 * normal/main.c (grub_normal_init_page): Gettextize version string.
33451 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33452 (getstringwidth): Renamed to ...
33453 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33454 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33455 (grub_print_ucs4): Remove `static' qualifer (now used in
33456 normal/main.c).
33457 * po/POTFILES: Add normal/main.c.
33458
bfd5e52b 334592009-12-19 Carles Pina i Estany <carles@pina.cat>
33460
33461 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33462 (print_message_indented): Add `margin_left' and `margin_right'
33463 parameters.
33464 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33465 strings.
33466 (print_timeout): Use `print_message_indented' to print the message.
33467 Deletes `second_stage' parameter.
33468 (run_menu): Update `print_timeout' calls.
33469
5a1ad2b9
VS
334702009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33471
33472 Fix console palette on OpenFirmware.
33473
33474 * term/ieee1275/ofconsole.c (MAX): Removed.
33475 (colors): Redone based on VGA palette.
33476 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33477 colors are supported.
33478 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33479
b045f00a
VS
334802009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33481
33482 Fix potential EfiEmu double prepare.
33483
33484 * efiemu/main.c (prepared): New variable
33485 (grub_efiemu_unload): Set prepare to '0'.
33486 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33487
33488 set_virtual_address_map support.
33489
33490 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33491 prototype.
33492 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33493 prototype.
33494 (grub_efiemu_crc32): Likewise.
33495 (grub_efiemu_crc64): Likewise.
33496 (grub_efiemu_set_virtual_address_map): Likewise.
33497 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33498 New definition.
33499 (grub_autoefi_set_virtual_address_map): Likewise.
33500 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33501 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33502 Restructure flow to accomodate it.
33503 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33504 (grub_efiemu_crc): Recompute CRC32.
33505 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33506 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33507 * efiemu/symbols.c (relocated_handle): New variable.
33508 (grub_efiemu_free_syms): Free relocated_handle.
33509 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33510 (grub_efiemu_write_sym_markers): New function.
33511 (grub_efiemu_set_virtual_address_map): Likewise.
33512
33513 Newer XNU parameters.
33514
33515 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33516 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33517 (grub_xnu_fill_devicetree): New prototype.
33518 (grub_xnu_heap_real_start): New variable.
33519 * loader/xnu.c (get_name_ptr): New function.
33520 (grub_xnu_load_driver): Fill namelen and name.
33521
33522 64-bit xnu support.
33523
33524 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33525 and 'loader/macho64.c'.
33526 * conf/i386-pc.rmk: Likewise.
33527 * conf/x86_64-efi.rmk: Likewise.
33528 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33529 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33530 * include/grub/macho.h (grub_macho_segment64): New structure.
33531 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33532 (grub_macho_size32): ... to this.
33533 (grub_macho32_get_entry_point): Renamed from ...
33534 (grub_macho_get_entry_point32): ... to this.
33535 (grub_macho_contains_macho64): New prototype.
33536 (grub_macho_size64): Likewise.
33537 (grub_macho_get_entry_point64): Likewise.
33538 (grub_macho32_load): Renamed from ...
33539 (grub_macho_load32): ... to this.
33540 (grub_macho32_filesize): Renamed from ...
33541 (grub_macho_filesize32): ... to this.
33542 (grub_macho32_readfile): Renamed from ...
33543 (grub_macho_readfile32): ... to this.
33544 (grub_macho_filesize64): New prototype.
33545 (grub_macho_readfile64): Likewise.
33546 (grub_macho_parse32): Likewise.
33547 (grub_macho_parse64): Likewise.
33548 * loader/macho.c: Split into ...
33549 * loader/machoXX.c: ... and this. Replace 32 with XX.
33550 * loader/macho32.c: New file.
33551 * loader/macho64.c: Likewise.
33552 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33553 (grub_cmd_xnu_kernel): Make 32-bit only.
33554 (grub_cmd_xnu_kernel64): New function.
33555 (grub_xnu_load_driver): Support Mach-O 64.
33556 (grub_cmd_xnu_mkext): Likewise.
33557 * util/grub.d/30_os-prober.in (osx_entry): New function.
33558 Generate entries for 64-bit boot too.
33559
33560 Eliminate ad-hoc tree format in XNU and EfiEmu.
33561
33562 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33563 * efiemu/pnvram.c: Rewritten to use environment variables.
33564 All users updated.
33565
33566 Inline utf16_to_utf8.
33567
33568 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33569 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33570 All users updated.
33571 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33572
33573 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33574 * commands/usbtest.c (grub_usb_get_string): ... move here.
33575 (usb_print_str): Fix error handling.
33576 * include/grub/usb.h (grub_usb_get_string): Remove.
33577
33578 UTF-8 to UTF-16 transformation.
33579
33580 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33581 (charset_mod_SOURCES): New variable.
33582 (charset_mod_CFLAGS): Likewise.
33583 (charset_mod_LDFLAGS): Likewise.
33584 * include/grub/utf.h: New file.
33585 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33586
33587 Support for device properties.
33588
33589 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33590 (grub_xnu_devprop_device_header): Likewise.
33591 (grub_xnu_devprop_device_descriptor): Likewise.
33592 (grub_xnu_devprop_add_device): New prototype.
33593 (grub_xnu_devprop_remove_device): Likewise.
33594 (grub_xnu_devprop_remove_property): Likewise.
33595 (grub_xnu_devprop_add_property_utf8): Likewise.
33596 (grub_xnu_devprop_add_property_utf16): Likewise.
33597 (grub_cpu_xnu_init): Likewise.
33598 (grub_cpu_xnu_fini): Likewise.
33599 (grub_cpu_xnu_unload): Likewise.
33600 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33601 (property_descriptor): Likewise.
33602 (devices): New variable.
33603 (grub_xnu_devprop_remove_property): New function.
33604 (grub_xnu_devprop_add_device): Likewise.
33605 (grub_xnu_devprop_remove_device): Likewise.
33606 (grub_xnu_devprop_add_property): Likewise.
33607 (grub_xnu_devprop_add_property_utf8): Likewise.
33608 (grub_xnu_devprop_add_property_utf16): Likewise.
33609 (hextoval): Likewise.
33610 (grub_cpu_xnu_fill_devprop): Likewise.
33611 (grub_cmd_devprop_load): Likewise.
33612 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33613 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33614 (cmd_devprop_load): New variable.
33615 (grub_cpu_xnu_init): New function.
33616 (grub_cpu_xnu_fini): Likewise.
33617 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33618 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33619 (grub_cmd_xnu_devtree): Likewise.
33620 (hextoval): New function.
33621 (unescape): Likewise.
33622 (grub_xnu_fill_devicetree): Likewise.
33623
33624 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33625 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33626
0945f181
VS
336272009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33628
33629 Workaround for broken ATI VBE.
33630
33631 * video/i386/pc/vbe.c (last_set_mode): New variable.
33632 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33633 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33634 (grub_video_vbe_setup): Don't check for reserved flag.
33635
0ad46fd7 336362009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
33637
33638 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33639 the `find' command.
33640
c179ebe4
VS
336412009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33642
33643 UUID support for HFS.
33644
33645 * fs/hfs.c (grub_hfs_uuid): New function.
33646 (grub_hfs_fs): New value .uuid.
33647 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33648
0ad46fd7 336492009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
33650
33651 Fix a segfault with parsing unknown long options.
33652
33653 * util/grub-mkrelpath.c (options): Zero terminate it.
33654
c4a3e41a
CPE
336552009-12-13 Carles Pina i Estany <carles@pina.cat>
33656
33657 * include/grub/misc.h (grub_puts): New declaration.
33658 (grub_puts_): Likewise.
a22008a6 33659 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
33660 (grub_puts_): Likewise.
33661
2e8a7602
RM
336622009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33663
33664 * util/grub-probe.c (probe): Improve error message.
33665
b50b77b9
RM
336662009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33667
33668 * loader/i386/multiboot_elfxx.c
33669 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33670 initialization.
33671
336722009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33673
33674 Relocator framework
33675
33676 * loader/i386/xnu_helper.S: Removed. All users updated.
33677 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33678 (relocator_mod_SOURCES): New variable.
33679 (relocator_mod_CFLAGS): Likewise.
33680 (relocator_mod_LDFLAGS): Likewise.
33681 (relocator_mod_ASFLAGS): Likewise.
33682 * conf/x86_64.rmk: Likewise.
33683 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33684 (grub_multiboot_payload_entry_offset): Likewise.
33685 (grub_multiboot_forward_relocator): Likewise.
33686 (grub_multiboot_forward_relocator_end): Likewise.
33687 (grub_multiboot_backward_relocator): Likewise.
33688 (grub_multiboot_backward_relocator_end): Likewise.
33689 (grub_multiboot_payload_eip): New variable.
33690 (grub_multiboot_payload_orig): Likewise.
33691 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33692 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33693 * include/grub/i386/memory.h
33694 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33695 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33696 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33697 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33698 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33699 * include/grub/i386/relocator.h: New file.
33700 * include/grub/x86_64/relocator.h: Likewise.
33701 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33702 (XNU_RELOCATOR): New macro.
33703 (grub_xnu_launcher_start): Remove.
33704 (grub_xnu_launcher_end): Likewise.
33705 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33706 (grub_xnu_heap_real_start): Remove.
33707 (grub_xnu_heap_start): Change to void *. All users updated.
33708 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33709 * lib/i386/relocator.c: New file.
33710 * lib/i386/relocator_asm.S: Likewise.
33711 * lib/i386/relocator_backward.S: Likewise.
33712 * lib/mips/relocator.c: Likewise.
33713 * lib/mips/relocator_asm.S: Likewise.
33714 * lib/relocator.c: Likewise.
33715 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33716 (entry): Removed.
33717 (playground): Likewise.
33718 (grub_multiboot_payload_orig): New variable.
33719 (grub_multiboot_payload_dest): Likewise.
33720 (grub_multiboot_payload_size): Likewise.
33721 (grub_multiboot_payload_eip): Likewise.
33722 (grub_multiboot_payload_esp): Likewise.
33723 (grub_multiboot_boot): Use grub_relocator32_boot.
33724 (grub_multiboot_unload): Free relocators.
33725 (grub_multiboot): Setup stack. Use relocators.
33726 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33727 (grub_multiboot_load_elfXX): Use relocators.
33728 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33729 (grub_multiboot_payload_size): Likewise.
33730 (grub_multiboot_payload_dest): Likewise.
33731 (grub_multiboot_payload_entry_offset): Likewise.
33732 (grub_multiboot_forward_relocator): Likewise.
33733 (grub_multiboot_backward_relocator): Likewise.
33734 (grub_multiboot_real_boot): Likewise.
33735 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33736 (grub_xnu_entry_point): Likewise.
33737 (grub_xnu_arg1): Likewise.
33738 (grub_xnu_stack): Likewise.
33739 (grub_xnu_launch): Removed.
33740 (grub_xnu_boot_resume): New function.
33741 (grub_xnu_boot): Use relocators.
33742 * loader/i386/xnu_helper.S: Removed.
33743 * loader/xnu.c (grub_xnu_heap_start): New variable.
33744 (grub_xnu_heap_size): Likewise.
33745 (grub_xnu_heap_malloc): Use relocators.
33746 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33747
29eb90c6
VS
337482009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33749
33750 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33751 anything.
33752
31027430
CPE
337532009-12-13 Carles Pina i Estany <carles@pina.cat>
33754
33755 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33756 GRUB_ERR_NONE before calling grub_env_set.
33757
dc0c71d9
RM
337582009-12-12 Robert Millan <rmh@aybabtu.com>
33759
33760 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33761 * genmk.rb (video): New variable.
33762 (CLEANFILES, VIDEOFILES): Add #{video}.
33763 (#{video}): New target rule.
33764 * genvideolist.sh: New file.
33765 * Makefile.in (pkglib_DATA): Add video.lst.
33766 (video.lst): New target rule.
33767 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33768 `video.lst'.
33769 * util/grub.d/30_os-prober.in: Replace `vbe' with
33770 ${GRUB_VIDEO_BACKEND}.
33771
2a4bfcf0
RM
337722009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33773
33774 * THANKS: Add David Miller.
33775
2a3aa4d5
RM
337762009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33777
33778 libpciaccess support.
33779
33780 * Makefile.in (LIBPCIACCESS): New variable.
33781 (enable_grub_emu_pci): Likewise.
33782 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33783 util/pci.c and commands/lspci.c.
33784 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33785 * configure.ac (grub-emu-pci): New option.
33786 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33787 (grub_pci_device_unmap_range): Likewise.
33788 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33789 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33790 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33791 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33792 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33793 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33794 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33795 * include/grub/pciutils.h: New file.
33796 * util/pci.c: Likewise.
33797
0ad46fd7 337982009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
33799
33800 * util/misc.c: Don't include <errno.h> twice.
33801
0ad46fd7 338022009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
33803
33804 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33805 name in an error message.
33806 (grub_biosdisk_rw): Likewise.
33807
2e59983c
VS
338082009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33809
33810 Eliminate NTFS 4Gib barrier.
33811
33812 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33813 (read_run_data): Likewise.
33814 (grub_ntfs_read_run_list): Likewise.
33815 (grub_ntfs_read_block): Likewise.
33816 (grub_ntfs_iterate_dir): Likewise.
33817 (read_mft): Likewise.
33818 (read_data): Likewise.
33819 Use COM_LOG_LEN.
33820 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33821 to avoid 64-bit division
33822 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33823 (grub_ntfs_rlst): Use grub_disk_addr_t.
33824
71ee178a
VS
338252009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33826
33827 Eliminate grub-fstest 4Gib barrier.
33828
33829 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33830 (read_file): Fix error reporting.
33831
2520d4b8
VS
338322009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33833
33834 Eliminate hexdump 4Gib barrier.
33835
33836 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33837 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33838
e1f27065
VS
338392009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33840
33841 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33842 Fixes amarsh bug.
33843
1a0f7f45
RM
338442009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33845
33846 Remove miscellaneous files in distclean target.
33847
33848 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33849
c631d9fb
CW
338502009-12-09 Colin Watson <cjwatson@ubuntu.com>
33851
33852 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33853 if they're already set. This resolves the conflict between my
33854 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33855 fixing the --grub-probe option again.
33856 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33857 change on 2009-10-06, so that we now once again source
33858 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33859
7c7b6106
RM
338602009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33861
33862 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33863 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33864 `util/devicemap.c'.
33865
e3069ec1
CPE
338662009-12-08 Carles Pina i Estany <carles@pina.cat>
33867
33868 * include/grub/misc.h (grub_printf_): New declaration.
33869 * kern/misc.c (grub_printf_): New definition.
33870 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33871 instead of `grub_printf' and `_'.
33872 * normal/menu_entry.c (store_completion): Likewise.
33873 (run): Likewise.
33874 (grub_menu_entry_run): Likewise.
33875 * normal/menu_text.c (grub_wait_after_message): Likewise.
33876 (notify_booting): Likewise.
33877 (notify_fallback): Likewise.
33878 (notify_execution_failure): Likewise.
33879
d6ceebf1
CW
338802009-12-07 Colin Watson <cjwatson@ubuntu.com>
33881
33882 * configure.ac: Check for vasprintf.
33883 * util/misc.c (asprintf): Move allocation from here ...
33884 (vasprintf): ... to here. New function.
33885 (xasprintf): New function.
33886 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33887 prototypes.
33888 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33889 * util/grub-mkfont.c (write_font): Likewise.
33890 * util/grub-probe.c (probe): Likewise.
33891 * util/hostdisk.c (make_device_name): Likewise.
33892
de6daa8b
DM
338932009-12-06 David S. Miller <davem@sunset.davemloft.net>
33894
33895 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33896 anything even prefixed with 'cdrom' as a cdrom.
33897
0ad46fd7 338982009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
33899
33900 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33901 mount points.
33902
98d3dc02
CPE
339032009-12-05 Carles Pina i Estany <carles@pina.cat>
33904
33905 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33906 grub_gettext_msg_list.
33907 (grub_gettext_gettranslation_from_position): Return const char *
33908 and not char *.
a2c1332b 33909 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
33910 returns from the list if existing there.
33911 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33912 (grub_gettext_delete_list): Delete the list.
33913 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33914 lang environment variable is changed.
33915 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33916
b283f108
VS
339172009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33918
33919 Rename kernel.mod to kernel.img.
33920
33921 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33922 (kernel_mod_EXPORTS): Rename to ...
33923 (kernel_img_EXPORTS): ... this.
33924 (kernel_mod_SOURCES): Rename to ...
33925 (kernel_img_SOURCES): ... this.
33926 (kernel_mod_HEADERS): Rename to ...
33927 (kernel_img_HEADERS): ... this. All users updated.
33928 (kernel_mod_CFLAGS): Rename to ...
33929 (kernel_img_CFLAGS): ... this.
33930 (kernel_mod_ASFLAGS): Rename to ...
33931 (kernel_img_ASFLAGS): ... this.
33932 (kernel_mod_LDFLAGS): Rename to ...
33933 (kernel_img_LDFLAGS): ... this.
33934 * conf/x86_64-efi.rmk: Likewise.
33935 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33936 (read_kernel_image): ... this. All users updated.
33937 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33938
69055f8a
CPE
339392009-12-05 Carles Pina i Estany <carles@pina.cat>
33940
33941 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33942 (print_spaces): New function.
33943 (grub_print_ucs4): New function.
33944 (getstringwidth): New function.
33945 (print_message_indented): New function.
33946 (print_message): Gettexttize strings using print_message_indented.
33947 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33948 width.
33949 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 33950 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
33951 Gettextize.
33952 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33953 string.
33954 (run): Likewise.
33955 (grub_menu_entry_run): Likewise.
33956 * PO/POTFILES: Add normal/menu_entry.c.
33957
f616f51c
VS
339582009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33959
33960 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33961
57bbe3be
CPE
339622009-12-05 Carles Pina i Estany <carles@pina.cat>
33963
33964 * util/grub-install.in: Install gettext .mo files.
33965 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33966
013d67a1
CPE
339672009-12-05 Carles Pina i Estany <carles@pina.cat>
33968
33969 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33970 grub_dprintf.
33971
fb954db0
RM
339722009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33973
33974 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33975 non-firmware-dependant one in realmode.S takes precedence.
33976
6b8474f8
RM
339772009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33978
33979 * commands/halt.c: Replace misc arch-specific headers with
33980 `<grub/misc.h>'.
33981 * commands/reboot.c: Likewise.
33982 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33983 `<grub/misc.h>'.
33984 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33985 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33986 (kernel_img_SOURCES): ... to here.
33987
33988 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33989 * include/grub/i386/pc/init.h: Likewise.
33990 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33991 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33992
33993 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33994
33995 * include/grub/i386/halt.h: Remove.
33996 * include/grub/i386/reboot.h: Likewise.
33997
33998 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33999
4b2e6ca2
DM
340002009-12-03 David S. Miller <davem@sunset.davemloft.net>
34001
34002 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
34003 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34004 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34005 "progname.h"
34006 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34007 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34008 (usage): Add missing comma in printf.
34009
5239348f
RM
340102009-12-02 Robert Millan <rmh.grub@aybabtu.com>
34011
34012 Use the same reboot approach on i386 coreboot and qemu as we do on
34013 BIOS.
34014
34015 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34016 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34017 * kern/i386/reboot.c: Remove.
34018 * include/grub/i386/reboot.h (grub_reboot): Export function.
34019 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34020 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34021 0xf000:0xfff0 instead of 0xffff:0x0000.
34022 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34023 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34024
ef34cbd4
RM
340252009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34026
34027 Fix $srcdir != $objdir build.
34028
34029 * Makefile.in (po/%.po): Rewrite as ...
34030 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34031
dc9837ea
ST
340322009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34033
34034 Fix GNU/Hurd grub-install crash.
34035 * util/grub-probe.c (probe): Try to access `path' only when it is not
34036 NULL.
34037
2f857f98
VS
340382009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34039
34040 Correct module naming.
34041
34042 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34043 (GRUB_MOD_INIT(efi_uga)): ... to this
34044 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34045 (GRUB_MOD_FINI(efi_uga)): ... to this
34046 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34047 (GRUB_MOD_INIT(efi_gop)): ... to this
34048 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34049 (GRUB_MOD_FINI(efi_gop)): ... to this
34050
c5448046
RM
340512009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34052
34053 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34054 translatable.
34055 (usage): Translate `arg' strings using gettext().
34056 Thanks to Jordi Mallach for the suggestion.
34057
c85184ad
VS
340582009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34059
34060 GOP support. Based on patch from Bean
34061 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34062
34063 * video/efi_gop.c: New file.
34064 * include/grub/efi/graphics_output.h: Likewise.
34065 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34066 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34067 variables.
34068 * conf/x86_64-efi.rmk: Likewise.
34069
8a4c48d8
VS
340702009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34071
34072 Rename efi_fb to efi_uga.
34073
34074 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34075 'efi_uga.mod'.
34076 (efi_fb_mod_SOURCES): Rename this ...
34077 (efi_uga_mod_SOURCES): ... to this.
34078 (efi_fb_mod_CFLAGS): Rename this ...
34079 (efi_uga_mod_CFLAGS): ... to this.
34080 (efi_fb_mod_LDFLAGS): Rename this ...
34081 (efi_uga_mod_LDFLAGS): ... to this.
34082 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34083 'efi_uga.mod'.
34084 (efi_fb_mod_SOURCES): Rename this ...
34085 (efi_uga_mod_SOURCES): ... to this.
34086 (efi_fb_mod_CFLAGS): Rename this ...
34087 (efi_uga_mod_CFLAGS): ... to this.
34088 (efi_fb_mod_LDFLAGS): Rename this ...
34089 (efi_uga_mod_LDFLAGS): ... to this.
34090 * video/efi_fb.c: Move this ...
34091 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34092
fb6c1a7b
RM
340932009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34094
34095 * po/README: New file. Explain our PO file workflow.
34096
3bc7896c
RM
340972009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34098
34099 * po/ChangeLog: Remove. Move relevant entries back to ...
34100 * ChangeLog: ... here.
34101 * po/ca.po: Remove (now handled by TLP).
34102 * po/id.po: Likewise.
34103 * po/zh_CN.po: Likewise.
34104 * Makefile.in (LINGUAS): Initialize in a way that supports
34105 empty set.
34106
9ed4841d
RM
341072009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34108
34109 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34110 reliing on po/LINGUAS.
34111 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34112 (po/%.po): ... this.
34113
0ad46fd7 341142009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
34115
34116 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34117 (main): Use `program_name' instead of nonexistent `progname'.
34118
e30dd392
FZ
341192009-11-26 Felix Zielcke <fzielcke@z-51.de>
34120
34121 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34122 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34123
7656de4f
RM
341242009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34125
34126 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34127 commit.
34128 * conf/i386-efi.rmk: Likewise.
34129 * conf/i386-ieee1275.rmk: Likewise.
34130 * conf/powerpc-ieee1275.rmk: Likewise.
34131 * conf/sparc64-ieee1275.rmk: Likewise.
34132 * conf/x86_64-efi.rmk: Likewise.
34133
db77c4d4
FZ
341342009-11-26 Felix Zielcke <fzielcke@z-51.de>
34135
34136 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34137
a755bb04
FZ
341382009-11-26 Felix Zielcke <fzielcke@z-51.de>
34139
34140 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34141
8a4c07fd
RM
341422009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34143
34144 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34145 (grub_mkdevicemap_SOURCES): New variable.
34146 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34147 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34148 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34149 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34150 (grub_mkdevicemap_SOURCES): Remove.
34151 * conf/i386-efi.rmk: Likewise.
34152 * conf/i386-ieee1275.rmk: Likewise.
34153 * conf/i386-pc.rmk: Likewise.
34154 * conf/powerpc-ieee1275.rmk: Likewise.
34155 * conf/sparc64-ieee1275.rmk: Likewise.
34156 * conf/x86_64-efi.rmk: Likewise.
34157 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34158 (usage): Fix strings to use `program_name'.
34159 (main): Initialize gettext.
34160 * util/grub-editenv.c: Likewise.
34161 * util/grub-emu.c: Likewise.
34162 * util/grub-fstest.c: Likewise.
34163 * util/grub-mkdevicemap.c: Likewise.
34164 * util/grub-mkfont.c: Likewise.
34165 * util/grub-mkrelpath.c: Likewise.
34166 * util/grub-pe2elf.c: Likewise.
34167 * util/grub-probe.c: Likewise.
34168 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34169 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34170 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34171
34172 * util/misc.c: Include `"progname.h"'.
34173 (progname): Remove variable.
34174 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34175
6f61ed55
FZ
341762009-11-25 Felix Zielcke <fzielcke@z-51.de>
34177
34178 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34179 printf and print a newline after the menuentry header line.
34180 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34181
f022876b
FZ
341822009-11-25 Felix Zielcke <fzielcke@z-51.de>
34183
34184 autoconf >= 2.60 support $(localedir).
34185
34186 * INSTALL: Note that autoconf 2.60 is required.
34187 * configure.ac (AC_PREREQ): Bump to 2.60.
34188 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34189 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34190
6717926e
YB
341912009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34192
34193 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34194 aclocal is run.
34195
08806a54
RM
341962009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34197
34198 * normal/main.c (grub_normal_read_line): Fix off-by-one
34199 buffer overflow.
34200
13b33fba
RM
342012009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34202
34203 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34204 "parser.grub" in grub_command_execute() call.
34205
4a8572e9
CPE
342062009-11-24 Carles Pina i Estany <carles@pina.cat>
34207
34208 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34209 * conf/i386-efi.rmk: Likewise.
34210 * conf/i386-ieee1275.rmk: Likewise.
34211 * conf/i386-pc.rmk: Likewise.
34212 * conf/powerpc-ieee1275.rmk: Likewise.
34213 * conf/sparc64-ieee1275.rmk: Likewise.
34214 * conf/x86_64-efi.rmk: Likewise.
34215 * gettext/gettex.c: Include <grub/i18n.h>.
34216 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34217 here ...
34218 * include/grub/i18n.h: ... to here
34219 * include/grub/i18n.h: ... to here.
34220 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 34221 (grub_gettext_dummy): Move above user.
4a8572e9 34222
bee48093
FZ
342232009-11-24 Felix Zielcke <fzielcke@z-51.de>
34224
34225 * util/Makefile.in (install-local): Convert a `for' into a normal
34226 shell expansion.
34227
a031e91c
RM
342282009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34229
34230 * autogen.sh: Add automake call.
34231 * config.guess: Remove.
34232 * config.sub: Likewise.
34233 * install-sh: Likewise.
34234
26bec39d
FZ
342352009-11-24 Felix Zielcke <fzielcke@z-51.de>
34236
34237 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34238
8e2532fd
FZ
342392009-11-24 Felix Zielcke <fzielcke@z-51.de>
34240
34241 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34242 function to a normal shell `for'.
34243
fefa1b7d
FZ
342442009-11-24 Felix Zielcke <fzielcke@z-51.de>
34245
34246 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34247
4501250b
FZ
342482009-11-24 Felix Zielcke <fzielcke@z-51.de>
34249
34250 * util/grub-mkrelpath.c: New file.
34251 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34252 (grub_mkrelpath_SOURCES): New variable.
34253 * include/grub/util/misc.h: New function prototype.
34254 * util/misc.c (make_system_path_relative_to_its_root): New function.
34255
34256 * util/grub-mkconfig_lib.in (bindir): New variable.
34257 (grub_mkrelpath): Likewise.
34258 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34259
34260 * util/probe.c (probe): Make the file path relative to its root.
34261 Change a info message to use the GRUB path. Enable again the
34262 check if we can read the file with GRUB facilities.
34263
34264 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34265 to its root.
34266
11d9778b
FZ
342672009-11-24 Felix Zielcke <fzielcke@z-51.de>
34268
34269 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34270 platform.
34271
4465287d
FZ
342722009-11-24 Felix Zielcke <fzielcke@z-51.de>
34273
34274 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34275 strncmp().
34276
62b47f22
FZ
342772009-11-24 Felix Zielcke <fzielcke@z-51.de>
34278
34279 * util/getroot.c (grub_util_is_dmraid): New function.
34280 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34281 devices as normal ones, not as LVM.
34282
1eafb9b9 342832009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
34284
34285 * conf/common.rmk: Add grub-gettext_lib target and updates
34286 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34287 LDFLAGS.
34288 * gettext/gettext.c: New file. (Reads mo files).
34289 * include/grub/file.h (grub_file_pread): New prototype.
34290 * include/grub/i18n.h (_): New prototype.
34291 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34292 prototypes.
34293 * kern/misc.c (grub_gettext_dummy): New function.
34294 * normal/menu_text.c: Include <grub/i18n.h>.
34295 * normal/menu_text.c (print_timeout): Gettexttize string.
34296 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
34297 * po/POTFILES: Add `normal/menu_text.c'.
34298 * po/ca.po: Add new translations.
c3ea6bd4
CPE
34299 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34300 gettext module and defines locale_dir and lang in grub.cfg.
34301 * NEWS: Add gettext support.
34302
0fdb2568
RM
343032009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34304
34305 * util/hostdisk.c: Include `<grub/i18n.h>'.
34306 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34307 (make_device_name): Rewrite using asprintf.
34308 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34309 (find_system_device): If a device is not found, generate one just
34310 by reusing the OS path name.
34311 (read_device_map): Make it permissible for device.map not to exist.
34312
f515aa62
RM
343132009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34314
34315 * script/sh/execute.c: Move from here ...
34316 * script/execute.c: ... to here. Update all users.
34317 * script/sh/function.c: Move from here ...
34318 * script/function.c: ... to here. Update all users.
34319 * script/sh/lexer.c: Move from here ...
34320 * script/lexer.c: ... to here. Update all users.
34321 * script/sh/main.c: Move from here ...
34322 * script/main.c: ... to here. Update all users.
34323 * script/sh/parser.y: Move from here ...
34324 * script/parser.y: ... to here. Update all users.
34325 * script/sh/script.c: Move from here ...
34326 * script/script.c: ... to here. Update all users.
34327
f84b481b
RM
343282009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34329
34330 * configure.ac: Detect all `emu' platforms. Define
34331 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34332 --enable-grub-emu logic. Disable include/grub/machine
34333 symlink on `emu' platforms.
34334
34335 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34336 * gensymlist.sh.in: Likewise.
34337
34338 * include/grub/i386/coreboot/machine.h: Remove file.
34339 * include/grub/i386/efi/machine.h: Likewise.
34340 * include/grub/i386/ieee1275/machine.h: Likewise.
34341 * include/grub/i386/pc/machine.h: Likewise.
34342 * include/grub/i386/qemu/machine.h: Likewise.
34343 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34344 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34345 * include/grub/x86_64/efi/machine.h: Likewise.
34346
34347 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34348 * commands/halt.c: Likewise.
34349 * commands/reboot.c: Likewise.
34350 * include/grub/autoefi.h: Likewise.
34351 * include/grub/i386/at_keyboard.h: Likewise.
34352 * include/grub/i386/kernel.h: Likewise.
34353 * include/grub/i386/loader.h: Likewise.
34354 * include/grub/i386/pc/memory.h: Likewise.
34355 * kern/dl.c: Likewise.
34356 * kern/i386/coreboot/init.c: Likewise.
34357 * loader/i386/bsd.c: Likewise.
34358 * loader/i386/linux.c: Likewise.
34359 * loader/multiboot_loader.c: Likewise.
34360 * term/i386/pc/serial.c: Likewise.
34361 * term/usb_keyboard.c: Likewise.
34362
34363 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34364 `<grub/machine/machine.h>'
34365 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34366 * util/misc.c: Remove `<grub/machine/machine.h>' and
34367 `<grub/machine/time.h>'.
34368
34369 * Makefile.in (enable_grub_emu): Remove variable.
34370 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34371
34372 * conf/any-emu.rmk: New file.
34373 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34374 (grub_emu_init.c): Move from here ...
34375 * conf/any-emu.rmk: ... to here.
34376
34377 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34378 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34379 * conf/any-emu.rmk: ... to here.
34380
4efeab03
RM
343812009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34382
34383 * include/grub/parser.h (grub_parser_register): Document need
34384 of `name' parameter.
34385 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34386 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34387 "sh" to "grub".
34388
ea1dd8bf
RM
343892009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34390
34391 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34392 `$(XGETTEXT)'.
34393 * include/grub/i18n.h (N_): New macro.
34394 * util/mkisofs/mkisofs.h: Likewise.
34395 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34396 around N_().
34397 (usage): Use gettext() to translate help strings when printing them.
34398
0c140626
RM
343992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34400
34401 Based on patch from Bean
34402 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34403
34404 * video/efi_fb.c: New file.
34405 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34406 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34407 variables.
34408 * conf/x86_64-efi.rmk: Likewise.
34409
87d58298
RM
344102009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34411
34412 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34413 * util/i386/pc/grub-setup.c: Likewise.
34414
994cc3a3
ST
344152009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34416
34417 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34418 <hurd/fs.h>
34419 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34420 file_get_storage_info to implement grub_guess_root_device.
34421
26a61d6a
FZ
344222009-11-21 Felix Zielcke <fzielcke@z-51.de>
34423
34424 * Makefile.in (target): Use make's builtin $(shell) function
34425 instead of calling directly $(SHELL) to create the locale directories,
34426 inside the $(foreach) function.
34427
74ff1dd5
FZ
344282009-11-21 Felix Zielcke <fzielcke@z-51.de>
34429
34430 * util/grub-mkrescue.in: Print an error and usage if output option
34431 has not been given.
34432
0b787d0e
FZ
344332009-11-21 Felix Zielcke <fzielcke@z-51.de>
34434
34435 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34436 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34437 root and /boot are on different devices.
34438
1164b270
RM
344392009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34440
34441 Fix build for srcdir != objdir.
34442
34443 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34444 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34445 $(srcdir).
34446 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34447 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34448 reference for input.
34449
13774a2f
RM
344502009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34451
34452 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34453 or hardlinking it). Remove -J option, Joliet is not compatible with
34454 multiple source directories.
34455
efda854e
RM
344562009-11-21 Carles Pina i Estany <carles@pina.cat>
344572009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34458
34459 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34460 (process_input_dir): New function. Process an arbitrary input
34461 directory.
34462 Misc adjustments to support both "override mode" and system-wide mode.
34463
6c09890c
FZ
344642009-11-20 Felix Zielcke <fzielcke@z-51.de>
34465
34466 * configure.ac (UNIFONT_BDF): Rename to ...
34467 (FONT_SOURCE): ... this. Update all users.
34468
a797824f
FZ
344692009-11-20 Felix Zielcke <fzielcke@z-51.de>
34470
34471 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34472 to the list of unifont files to look for.
34473
cd4f42b0
RM
344742009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34475
34476 Patch from Joe Auricchio <jauricchio@gmail.com>
34477 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34478 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34479 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34480
393c783d
FZ
344812009-11-19 Felix Zielcke <fzielcke@z-51.de>
34482
34483 * Makefile.in (install-local): Add a missing backslash.
34484
b2f1e327
FZ
344852009-11-19 Felix Zielcke <fzielcke@z-51.de>
34486
34487 * include/grub/x86_64/io.h: New file.
34488
f577f7a0
RM
344892009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34490
34491 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34492 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34493 Include `"progname.h"'.
34494 (main): Initialize gettext.
34495 * util/i386/pc/grub-setup.c: Gettexttize.
34496 * util/i386/pc/grub-mkimage.c: Likewise.
34497
34498 * Makefile.in (po/*.po): Redefine as ...
34499 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34500
3bc7896c
RM
34501 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34502
c37943b6
RM
345032009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34504
34505 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34506 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34507 (program_name): Remove.
34508 (main): Initialize gettext support.
6323f705
RM
34509 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34510 Include `<libintl.h>'.
34511 (_): New macro.
c37943b6
RM
34512
34513 * util/mkisofs/eltorito.c: Gettexttize.
34514 * util/mkisofs/joliet.c: Likewise.
34515 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
34516 * util/mkisofs/multi.c: Likewise.
34517 * util/mkisofs/rock.c: Likewise.
34518 * util/mkisofs/tree.c: Likewise.
34519 * util/mkisofs/write.c: Likewise.
34520
3bc7896c
RM
34521 * po/POTFILES: Update with new files.
34522
5ce77c6e
RM
345232009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34524
34525 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34526 * util/mkisofs/iso9660.h: Likewise.
34527 * util/mkisofs/joliet.c: Likewise.
34528 * util/mkisofs/mkisofs.c: Likewise.
34529 * util/mkisofs/mkisofs.h: Likewise.
34530 * util/mkisofs/rock.c: Likewise.
34531 * util/mkisofs/tree.c: Likewise.
34532 * util/mkisofs/write.c: Likewise.
34533
34534 * util/mkisofs/eltorito.c (rcsid): Remove.
34535 * util/mkisofs/hash.c: Likewise.
34536 * util/mkisofs/joliet.c: Likewise.
34537 * util/mkisofs/name.c: Likewise.
34538 * util/mkisofs/rock.c: Likewise.
34539 * util/mkisofs/tree.c: Likewise.
34540 * util/mkisofs/write.c: Likewise.
34541
1dabbc77
RM
345422009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34543
34544 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34545 instead of static allocation.
34546 * util/mkisofs/match.h: Likewise.
34547
633877cb
RM
345482009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34549
3bc7896c
RM
34550 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34551 and `util/grub.d/10_linux.in'.
633877cb
RM
34552 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34553 translatable Shell files.
34554
af1c0c85
RM
345552009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34556
34557 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34558
769ae37b
RM
345592009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34560
34561 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 34562 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
34563 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34564 Add gettext initialization.
34565 (kfreebsd_entry): Make menuentry output translatable.
34566
345672009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34568
34569 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34570 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34571 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34572 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34573 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 34574 * po/LINGUAS: New file.
769ae37b
RM
34575
345762009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34577
34578 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34579 other things).
34580 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34581 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34582 bindtextdomain() calls for gettext initialization.
34583
345842009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34585
34586 * gnulib/progname.c: New file (imported from Gnulib).
34587 * gnulib/progname.h: Likewise.
34588 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34589 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34590 (usage): Replace `progname' with `program_name'.
34591 (main): Use set_program_name() for program name initialization.
34592
345932009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34594
34595 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34596 from here ...
34597 * Makefile.in (CPPFLAGS): ... to here.
34598
345992009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34600
34601 * aclocal.m4: Move from here ...
34602 * acinclude.m4: ... to here.
34603 * autogen.sh: Add call to `aclocal'.
34604 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34605
346062009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34607
34608 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34609 (LINGUAS): New variable.
34610 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34611 (install-local): Install MO files.
34612 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34613 * include/grub/i18n.h: New file.
3bc7896c
RM
34614 * po/POTFILES: New file.
34615 * po/ca.po: New file.
769ae37b
RM
34616 * util/grub.d/10_linux.in (bindir): New variable.
34617 Add gettext initialization.
34618 (linux_entry): Make menuentry output translatable.
34619 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34620 (usage): Make --help output translatable.
34621 (main): Initialize gettext.
34622
02c0a6ad
RM
346232009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34624
34625 * import_gcry.py: New file (written by Vladimir with minor
34626 adjustments).
34627 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34628 ciphers.
34629 * INSTALL: Document that Python is required for bootstrap.
34630
346312009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34632
34633 Import ciphers from libgcrypt 1.4.4.
34634
34635 * lib/libgcrypt/cipher/ChangeLog
34636 * lib/libgcrypt/cipher/ac.c
34637 * lib/libgcrypt/cipher/arcfour.c
34638 * lib/libgcrypt/cipher/bithelp.h
34639 * lib/libgcrypt/cipher/blowfish.c
34640 * lib/libgcrypt/cipher/camellia-glue.c
34641 * lib/libgcrypt/cipher/camellia.c
34642 * lib/libgcrypt/cipher/camellia.h
34643 * lib/libgcrypt/cipher/cast5.c
34644 * lib/libgcrypt/cipher/cipher.c
34645 * lib/libgcrypt/cipher/crc.c
34646 * lib/libgcrypt/cipher/des.c
34647 * lib/libgcrypt/cipher/dsa.c
34648 * lib/libgcrypt/cipher/ecc.c
34649 * lib/libgcrypt/cipher/elgamal.c
34650 * lib/libgcrypt/cipher/hash-common.c
34651 * lib/libgcrypt/cipher/hash-common.h
34652 * lib/libgcrypt/cipher/hmac-tests.c
34653 * lib/libgcrypt/cipher/md.c
34654 * lib/libgcrypt/cipher/md4.c
34655 * lib/libgcrypt/cipher/md5.c
34656 * lib/libgcrypt/cipher/primegen.c
34657 * lib/libgcrypt/cipher/pubkey.c
34658 * lib/libgcrypt/cipher/rfc2268.c
34659 * lib/libgcrypt/cipher/rijndael-tables.h
34660 * lib/libgcrypt/cipher/rijndael.c
34661 * lib/libgcrypt/cipher/rmd.h
34662 * lib/libgcrypt/cipher/rmd160.c
34663 * lib/libgcrypt/cipher/rsa.c
34664 * lib/libgcrypt/cipher/seed.c
34665 * lib/libgcrypt/cipher/serpent.c
34666 * lib/libgcrypt/cipher/sha1.c
34667 * lib/libgcrypt/cipher/sha256.c
34668 * lib/libgcrypt/cipher/sha512.c
34669 * lib/libgcrypt/cipher/tiger.c
34670 * lib/libgcrypt/cipher/twofish.c
34671 * lib/libgcrypt/cipher/whirlpool.c
34672
af2f93ac
RM
346732009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34674
34675 Fix build for systems without error().
34676
34677 * gnulib/error.c: New file (imported from Gnulib).
34678 * gnulib/error.h: Likewise.
34679 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34680 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34681 (this variable is now used by error()).
34682
73fb3dd5
FZ
346832009-11-16 Felix Zielcke <fzielcke@z-51.de>
34684
814f5e96
FZ
34685 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34686 instead of relying that char is signed.
73fb3dd5 34687
a691ca33
VS
346882009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34689
34690 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34691 blocksize different from specified.
34692 (grub_pxefs_read): Likewise.
34693
2af8f0f4
FZ
346942009-11-16 Felix Zielcke <fzielcke@z-51.de>
34695
34696 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34697
34698 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34699 (grub_ata_readwrite): Likewise. Update 2 format strings.
34700 (grub_atapi_read): Likewise.
34701
34702 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34703 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34704 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34705 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34706 (ata_mod_LDFLAGS): Move from here ...
34707 * conf/i386.rmk: ... to here ...
34708 * conf/x86_64-efi.rmk: ... and here.
34709 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34710 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34711
83bdecaf
RM
347122009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34713
34714 Relicense multiboot.h, with RMS' blessing.
34715
34716 * include/multiboot.h: Change to X11 license.
34717
fd6fd3d7
RM
347182009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34719
34720 Support --version in grub-mkisofs.
34721
34722 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34723 (OPTION_VERSION): New macro.
34724 (ld_options): Recognize --version.
34725 (usage): Move `program_name' from here ...
34726 (program_name): ... to here. Add `static' qualifier.
34727 (main): Recognize `OPTION_VERSION'.
34728
16a88c49
FZ
347292009-11-15 Felix Zielcke <fzielcke@z-51.de>
34730
34731 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34732 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34733
a4158476
RM
347342009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34735
34736 Fix help2man generation for mkisofs.
34737
34738 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34739 (usage): Send output to stdout (rather than stderr).
34740
fc2208b0
RM
347412009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34742
34743 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34744 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34745 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34746 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34747 (bin_SCRIPTS): Add `grub-mkfloppy'.
34748 (grub_mkfloppy_SOURCES): New variable.
34749
34750 * util/grub-mkrescue.in: New file.
34751 * util/i386/pc/grub-mkfloppy.in: New file.
34752
34753 * util/i386/coreboot/grub-mkrescue.in: Remove.
34754 * util/i386/pc/grub-mkrescue.in: Remove.
34755
8d0edf4a
RM
347562009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34757
34758 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34759 from here ...
34760 * include/multiboot.h (struct multiboot_header): ... to here. Update
34761 all users.
34762 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34763 from here ...
34764 * include/multiboot.h (struct multiboot_info): ... to here. Update
34765 all users.
34766 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34767 from here ...
34768 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34769 Update all users.
34770 * include/grub/multiboot.h (struct grub_mod_list): Move
34771 from here ...
34772 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34773 Update all users.
34774
a73f5969
RM
347752009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34776
34777 * include/multiboot2.h (multiboot_word): Rename from this ...
34778 (multiboot2_word): ... to this. Update all users.
34779 (multiboot_header): Rename from this ...
34780 (multiboot2_header): ... to this. Update all users.
34781 (multiboot_tag_header): Rename from this ...
34782 (multiboot2_tag_header): ... to this. Update all users.
34783 (multiboot_tag_start): Rename from this ...
34784 (multiboot2_tag_start): ... to this. Update all users.
34785 (multiboot_tag_name): Rename from this ...
34786 (multiboot2_tag_name): ... to this. Update all users.
34787 (multiboot_tag_module): Rename from this ...
34788 (multiboot2_tag_module): ... to this. Update all users.
34789 (multiboot_tag_memory): Rename from this ...
34790 (multiboot2_tag_memory): ... to this. Update all users.
34791 (multiboot_tag_unused): Rename from this ...
34792 (multiboot2_tag_unused): ... to this. Update all users.
34793 (multiboot_tag_end): Rename from this ...
34794 (multiboot2_tag_end): ... to this. Update all users.
34795
1c8927f0
RM
347962009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34797
34798 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34799 this platform we should support Multiboot1 first.
34800
34801 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34802 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34803 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34804
6e1e0d89
RM
348052009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34806
34807 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34808 of write calls (converting them to fwrite() if they aren't already).
34809 (get_torito_desc): Likewise.
34810 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34811
7f2b34d8
RM
348122009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34813
34814 * util/i386/pc/grub-install.in: Move from here ...
34815 * util/grub-install.in: ... to here. Update all users.
34816
c0ef3311
CW
348172009-11-11 Colin Watson <cjwatson@ubuntu.com>
34818
34819 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34820
e1f240ff
RM
348212009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34822
34823 Support for El Torito without floppy emulation.
34824
34825 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34826 (init_boot_catalog): Improve error handling.
34827 (get_torito_desc): Don't use floppy emulation unless requested by
34828 user. Patch boot information table when requested via
34829 `-boot-info-table'.
34830 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34831 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34832 (use_boot_info_table): New variables.
34833 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34834 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34835 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34836 `--eltorito-emul-floppy'.
34837 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34838 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34839 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34840 (use_boot_info_table, get_731): New prototypes.
34841 * util/mkisofs/write.c (get_731): New function.
34842
af7d4de5
FZ
348432009-11-11 Felix Zielcke <fzielcke@z-51.de>
34844
34845 Fix the generation of the man page.
34846
34847 * util/pc/i386/grub-install.in: Source
34848 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34849
2c55dbc0
RM
348502009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34851
34852 Large file support for grub-mkisofs.
34853
34854 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34855 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34856 (session_start): Upgrade type to `uint64_t'. Update all users.
34857 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34858 (struct directory_entry): Upgrade type of `starting_block' and
34859 `size' to `uint64_t'. Update all users.
34860 (struct deferred): Remove unused structure.
34861 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34862 Update all users.
34863 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34864 file is larger than `UINT32_MAX'.
34865 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34866 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34867 return value.
34868 (struct deferred_write): Upgrade type of `extent' and `size' to
34869 `uint64_t'. Update all users.
34870 (last_extent_written): Upgrade type to `uint64_t'. Update all
34871 users.
34872 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34873 Update all users. Upgrade type of `remain' to `int64_t' and
34874 `use' to `size_t'. Use error() to handle fread() errors.
34875 (write_files): Rely on write_one_file() rather than calling
34876 xfwrite() directly.
34877
6a9cead5
FZ
348782009-11-09 Felix Zielcke <fzielcke@z-51.de>
34879
34880 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34881
4825d790
RM
348822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34883
34884 * util/mkisofs/fnmatch.c: Remove.
34885 * util/mkisofs/getopt1.c: Likewise.
34886 * util/mkisofs/getopt.c: Likewise.
34887 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34888 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34889 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34890 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34891 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34892
34893 * configure.ac: Detect `mingw32msvc' host_os.
34894 Check for lstat(), getuid() and getgid().
34895
34896 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34897 instances of `u_char' with `uint8_t'.
34898
34899 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34900 [!HAVE_GETUID] (getuid): New function (stub).
34901 [!HAVE_GETGID] (getgid): Likewise.
34902 [!HAVE_LSTAT] (lstat): Likewise.
34903 [!S_IROTH] (S_IROTH): New macro (dummy).
34904 [!S_IRGRP] (S_IRGRP): Likewise.
34905
84b860d8
RM
349062009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34907
34908 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34909 conditional expression).
34910
66e9b712
RM
349112009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34912
34913 Import from Gnulib.
34914
34915 * gnulib/fnmatch.c: New file.
34916 * gnulib/fnmatch.h: Likewise.
34917 * gnulib/fnmatch_loop.c: Likewise.
34918 * gnulib/getopt.c: Likewise.
34919 * gnulib/getopt.h: Likewise.
34920 * gnulib/getopt1.c: Likewise.
34921 * gnulib/getopt_int.h: Likewise.
34922 * gnulib/gettext.h: Likewise.
34923
34f4a5b0
RM
349242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34925
34926 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34927 * normal/handler.c (read_handler_list): Likewise.
34928
ac451143
RM
349292009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34930
34931 Misc cleanup.
34932
34933 * kern/command.c (grub_register_command_prio): Use
34934 grub_zalloc() instead of explicitly zeroing data.
34935 * kern/list.c: Include `<grub/mm.h>'.
34936 (grub_named_list_find): Replace `0' with `NULL'.
34937 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34938 (fs_module_list): Change type to `grub_named_list_t'. Update all
34939 users.
34940 * normal/dyncmd.c (read_command_list): Add space between function
34941 call and parenthesis.
34942 * normal/handler.c (read_handler_list): Likewise.
34943
4089b167
RM
349442009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34945
34946 * normal/auth.c (punishment_delay): Moved from here ...
34947 (grub_auth_strcmp): ... to here (inside function).
34948
325f5037
RM
349492009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34950
34951 * include/grub/list.h (struct grub_named_list): Remove `const'
34952 qualifier from `name'.
34953 (struct grub_prio_list): Likewise.
34954
7aea29a3
RM
349552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34956
34957 * normal/auth.c: Include `<grub/time.h>'.
34958 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34959
3fd6f044
RM
349602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34961
34962 * normal/auth.c (punishment_delay): New variable.
34963 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34964 (grub_auth_check_authentication): Punish failed login attempts with
34965 an incremental (2^N) delay.
34966
a4cd68e4
RM
349672009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34968
34969 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34970 path with $(srcdir).
34971
7ad12f43
VS
349722009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34973
34974 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34975
c1129f03
RM
349762009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34977
34978 * util/i386/coreboot/grub-mkrescue.in: New file.
34979 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34980 variables.
34981
34982 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34983 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34984 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34985 requirements.
34986 * util/mkisofs/defaults.h: New file.
34987 * util/mkisofs/eltorito.c: Likewise.
34988 * util/mkisofs/exclude.h: Likewise.
34989 * util/mkisofs/fnmatch.c: Likewise.
34990 * util/mkisofs/getopt.c: Likewise.
34991 * util/mkisofs/getopt1.c: Likewise.
34992 * util/mkisofs/hash.c: Likewise.
34993 * util/mkisofs/include/fctldefs.h: Likewise.
34994 * util/mkisofs/include/mconfig.h: Likewise.
34995 * util/mkisofs/include/prototyp.h: Likewise.
34996 * util/mkisofs/include/statdefs.h: Likewise.
34997 * util/mkisofs/iso9660.h: Likewise.
34998 * util/mkisofs/joliet.c: Likewise.
34999 * util/mkisofs/match.c: Likewise.
35000 * util/mkisofs/match.h: Likewise.
35001 * util/mkisofs/mkisofs.c: Likewise.
35002 * util/mkisofs/mkisofs.h: Likewise.
35003 * util/mkisofs/multi.c: Likewise.
35004 * util/mkisofs/name.c: Likewise.
35005 * util/mkisofs/rock.c: Likewise.
35006 * util/mkisofs/tree.c: Likewise.
35007 * util/mkisofs/write.c: Likewise.
35008
ec8bb77d
VS
350092009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35010
35011 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35012 being insecure.
35013
3716b12c
RM
350142009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35015
35016 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35017 `grub-mkimage' (and use $0 when possible).
35018
b97b7b91
RM
350192009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35020
35021 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35022 error message for excessively large memory map.
35023
04114812
RM
350242009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35025
35026 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35027 executable bit.
35028
e4eb2373
RM
350292009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35030
35031 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35032 message for coreboot users.
35033
c926e1d5 350342009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35035
35036 Fix build with GNU gold.
35037
35038 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35039 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35040 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35041 link addresses.
35042 * aclocal.m4: Likewise.
35043
86e5b1db 350442009-11-04 Felix Zielcke <fzielcke@z-51.de>
35045
35046 * configure.ac (AC_PREREQ): Bump to 2.59d.
35047 * INSTALL: Make it more clear when Autoconf and Ruby are
35048 needed and when to run `./autogen.sh'.
35049
246cd78f 350502009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35051
35052 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35053 OSes.
35054
4f9dfb37 350552009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35056
35057 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35058
b82bd5e1 350592009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35060
35061 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35062 giving it to GNU Mach.
35063
ff1a9bca 350642009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35065
35066 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35067 GNU partition number to get internal GRUB partition number.
35068
61697d9c 350692009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35070
35071 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35072 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35073
a50569e1 350742009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35075
35076 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35077 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35078 case.
35079
5b153867 350802009-11-01 Felix Zielcke <fzielcke@z-51.de>
35081
35082 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35083
d9e2cd70 350842009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35085
35086 Fix build problem.
35087
35088 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35089 `-isystem=$(srcdir)/include'.
35090
805111a4 350912009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35092
35093 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35094 checked (grub-install doesn't currently rely on it).
35095
fa6e945f 350962009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35097
35098 Revert SVN r2660.
35099
35100 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35101 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35102 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35103 * conf/i386-ieee1275.rmk: Likewise.
35104 * conf/i386-pc.rmk: Likewise.
35105 * conf/powerpc-ieee1275.rmk: Likewise.
35106 * conf/sparc64-ieee1275.rmk: Likewise.
35107 * conf/x86_64-efi.rmk: Likewise.
35108
cee15086 351092009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35110
35111 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35112
95b9239e 351132009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35114
35115 * include/grub/misc.h: Stop checking for APPLE_CC.
35116
2ed19dfd 351172009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35118
35119 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35120 doesn't cause an infinite call loop.
35121
fdcdde19 351222009-10-28 Felix Zielcke <fzielcke@z-51.de>
35123
35124 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35125 strings.
35126
cefabfe1 351272009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35128
35129 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35130 variable.
35131 * Makefile.in: Likewise.
35132
ed96ab6d 351332009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35134
35135 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35136
0579b753 351372009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35138
35139 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35140
478df409 351412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35142
35143 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35144
083d1679 351452009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35146
35147 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35148 from here ...
35149 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35150
5947ae32 351512009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35152
35153 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35154 in $(MAKEINFO) invocation. This makes it clear in output that
35155 errors are being ignored.
35156
94180ff6 351572009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35158
35159 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35160 from here ...
35161 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35162 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35163 * conf/i386-ieee1275.rmk: Likewise.
35164 * conf/i386-pc.rmk: Likewise.
35165 * conf/powerpc-ieee1275.rmk: Likewise.
35166 * conf/sparc64-ieee1275.rmk: Likewise.
35167 * conf/x86_64-efi.rmk: Likewise.
35168
9031b03a 351692009-10-26 Colin Watson <cjwatson@ubuntu.com>
35170
35171 * util/grub-editenv.c (main): If only a command is given, use
35172 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35173 (usage): FILENAME is now optional and has a default.
35174
e4f6809b 351752009-10-26 Colin Watson <cjwatson@ubuntu.com>
35176
35177 Improve grub-mkconfig performance when there are several menu
35178 entries on a single filesystem.
35179
35180 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35181 prepare_grub_to_access_device.
35182 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35183 * util/grub.d/30_os-prober.in: Likewise.
35184
67937d4d 351852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35186
35187 * util/grub.d/10_freebsd.in: Remove.
35188 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35189 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35190
ee3756cc 351912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35192
5c35048e 35193 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 35194
4dea1c6f 351952009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35196
35197 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35198 grub_util_error() call.
35199
042484d7 352002009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35201
35202 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35203 `reserved_first_sector' member.
35204 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35205 `reserved_first_sector' to 1.
35206 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35207 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35208 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35209 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35210 filesystems which begin at first sector.
35211 (options): New option --skip-fs-probe.
35212 (main): Handle --skip-fs-probe and pass it to setup().
35213
d64448a7 352142009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35215
35216 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35217 (memset): Fix function prototype.
35218
508d42ec 352192009-10-25 Robert Millan <rmh.grub@aybabtu.com>
352202009-10-25 Vasily Averin <vvs@parallels.com>
35221
35222 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35223 `dirent.direntlen == 0'.
35224
b240e30c 352252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35226
35227 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35228 `cpio'.
35229 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35230
346e7fbe 352312009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35232
35233 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35234 `__trampoline_setup' and `__ucmpdi2'.
35235 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35236 that libgcc provides.
35237
cdb308b0 352382009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35239
35240 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35241 * include/grub/sparc64/libgcc.h (memset): Likewise.
35242 * include/grub/misc.h (memset, memcmp): New function prototypes.
35243
fb26abc2 352442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35245
35246 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35247 `cpio'.
35248 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35249
f6693890 352502009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35251
35252 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35253 * docs/grub.cfg: Compensate for recent change in multiboot
35254 loader (since 2009-08-14 it won't pass filename to payload).
35255 * util/grub.d/10_hurd.in: Likewise.
35256
0933cdc0 352572009-10-21 Felix Zielcke <fzielcke@z-51.de>
35258
35259 * config.guess: Update to latest version from config git
35260 repository.
35261 * config.sub: Likewise.
35262
3b2fe8c2 352632009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35264
35265 Fix build on sparc64.
35266
35267 * configure.ac: Perform checks for libgcc symbols before
35268 adding `-nostdlib' to LDFLAGS.
35269
46695a62 352702009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35271
35272 Let user specify OpenBSD root device.
35273
35274 * loader/i386/bsd.c (openbsd_root): New variable.
35275 (openbsd_opts): New option 'root'.
35276 (OPENBSD_ROOT_ARG): New macro.
35277 (grub_openbsd_boot): Use 'openbsd_root'.
35278 (grub_cmd_openbsd): Fill 'openbsd_root'.
35279
d2b6b7fc 352802009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35281
35282 * NEWS: Misc adjustments.
35283
421bd7ac 352842009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35285
35286 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35287
f1d29d87 352882009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35289
35290 * configure.ac: Bump version to 1.97.
35291
6f3cd880 352922009-10-16 Colin Watson <cjwatson@ubuntu.com>
35293
35294 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35295 -mno-3dnow on x86 architectures. Some toolchains enable these
35296 features by default, but they rely on registers that aren't enabled
35297 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35298
035f7122 352992009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35300
35301 Make entry text a bit more readable.
35302
35303 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35304
44998e58 353052009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35306
35307 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35308
cd2851b3 353092009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35310
35311 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35312 operations.
35313
c6f3b249 353142009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35315
35316 * configure.ac: Add missing dollar.
35317
6b5886ba 353182009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35319
35320 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35321
35322 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35323 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35324 exports.
35325 * include/grub/sparc64/libgcc.h: Likewise. Use
35326 preprocessor conditionals.
35327
e9d66f6d 353282009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35329
35330 * conf/common.rmk (grub-dumpbios): Remove rule.
35331 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35332 * util/grub-dumpbios.in: Remove file.
35333
9155bc17 353342009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35335
35336 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35337 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35338
35339 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35340 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35341 users.
35342
35343 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35344 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35345 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35346 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35347 users.
35348
bf7f7a18 353492009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35350
35351 * term/tparm.c: Switch to GPLv3.
35352
86564c26 353532009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35354
35355 * include/grub/i386/cpuid.h: Add header protection.
35356
5c936493 353572009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35358
35359 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35360
35361 * include/grub/i386/cpuid.h: New file.
35362 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35363 (has_longmode): Rename to ...
35364 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35365 `static' attribute.
35366 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35367 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35368 on a CPU that doesn't implement AMD64 instruction set.
35369
186e7cf2 353702009-10-06 Colin Watson <cjwatson@ubuntu.com>
35371
35372 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35373 that version.texi is rebuilt on version number changes.
35374
83b65c4a 353752009-10-06 Colin Watson <cjwatson@ubuntu.com>
35376
35377 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35378 Fixes bug #27602.
35379
d244281c 353802009-10-06 Colin Watson <cjwatson@ubuntu.com>
35381
35382 * util/i386/pc/grub-install.in: Source
35383 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35384 that the --grub-probe option will work.
35385 * util/sparc64/ieee1275/grub-install.in: Likewise.
35386
da25306d 353872009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35388
35389 * configure.ac: Bump version to 1.97~beta4.
35390
e8ee83c0 353912009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35392
35393 Resync grub-mkdevicemap in x86_64-efi.
35394
35395 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35396 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35397 `util/devicemap.c'.
35398
50dcabcf 353992009-10-01 Colin Watson <cjwatson@ubuntu.com>
35400
35401 * util/grub-editenv.c (create_envblk_file): Write new block with a
35402 .new suffix and then rename it into place, to ensure atomic
35403 creation.
35404
0e51c3a7 354052009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35406
35407 Do not automatically install headers.
35408
35409 * Makefile.in (include_DATA): Remove. Update all users.
35410
31299a95 354112009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35412
35413 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35414 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35415
35416 * util/osdetect.lua: Remove.
35417 * script/lua/lauxlib.c: Likewise.
35418 * script/lua/ldebug.c: Likewise.
35419 * script/lua/grub_main.c: Likewise.
35420 * script/lua/lauxlib.h: Likewise.
35421 * script/lua/ldebug.h: Likewise.
35422 * script/lua/ltablib.c: Likewise.
35423 * script/lua/liolib.c: Likewise.
35424 * script/lua/lstrlib.c: Likewise.
35425 * script/lua/lualib.h: Likewise.
35426 * script/lua/ldo.c: Likewise.
35427 * script/lua/ldump.c: Likewise.
35428 * script/lua/ldo.h: Likewise.
35429 * script/lua/loslib.c: Likewise.
35430 * script/lua/lundump.c: Likewise.
35431 * script/lua/grub_lib.c: Likewise.
35432 * script/lua/ldblib.c: Likewise.
35433 * script/lua/lundump.h: Likewise.
35434 * script/lua/lmem.c: Likewise.
35435 * script/lua/grub_lib.h: Likewise.
35436 * script/lua/lmathlib.c: Likewise.
35437 * script/lua/lstate.c: Likewise.
35438 * script/lua/ltm.c: Likewise.
35439 * script/lua/lvm.c: Likewise.
35440 * script/lua/lmem.h: Likewise.
35441 * script/lua/lstate.h: Likewise.
35442 * script/lua/ltm.h: Likewise.
35443 * script/lua/ltable.c: Likewise.
35444 * script/lua/lvm.h: Likewise.
35445 * script/lua/llex.c: Likewise.
35446 * script/lua/lgc.c: Likewise.
35447 * script/lua/grub_lua.h: Likewise.
35448 * script/lua/loadlib.c: Likewise.
35449 * script/lua/lfunc.c: Likewise.
35450 * script/lua/lopcodes.c: Likewise.
35451 * script/lua/lparser.c: Likewise.
35452 * script/lua/ltable.h: Likewise.
35453 * script/lua/llex.h: Likewise.
35454 * script/lua/lgc.h: Likewise.
35455 * script/lua/lfunc.h: Likewise.
35456 * script/lua/lbaselib.c: Likewise.
35457 * script/lua/lopcodes.h: Likewise.
35458 * script/lua/lparser.h: Likewise.
35459 * script/lua/lzio.c: Likewise.
35460 * script/lua/linit.c: Likewise.
35461 * script/lua/lobject.c: Likewise.
35462 * script/lua/llimits.h: Likewise.
35463 * script/lua/lstring.c: Likewise.
35464 * script/lua/lzio.h: Likewise.
35465 * script/lua/lapi.c: Likewise.
35466 * script/lua/lcode.c: Likewise.
35467 * script/lua/lua.h: Likewise.
35468 * script/lua/lobject.h: Likewise.
35469 * script/lua/lstring.h: Likewise.
35470 * script/lua/lapi.h: Likewise.
35471 * script/lua/lcode.h: Likewise.
35472 * script/lua/luaconf.h: Likewise.
35473
cb8a2c38 354742009-09-26 Colin Watson <cjwatson@ubuntu.com>
35475
35476 * docs/grub.texi (Command-line and menu entry commands): Document
35477 date and echo commands.
35478
6b9b6276 354792009-09-24 Pavel Roskin <proski@gnu.org>
35480
35481 * include/grub/kernel.h (struct grub_module_header): Remove
35482 `grub_module_header_types'. Make `type' unsigned. Make `size'
35483 32-bit on all platforms.
35484 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35485 8-bit field. Use grub_host_to_target32() for `size'.
35486 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35487 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35488 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35489
4e5a02a7 354902009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35491
35492 Fix "lost keypress" bug in at_keyboard.
35493
35494 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35495 Checks for readyness of input buffer (without flushing it).
35496 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35497 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35498
c6dcedf6 354992009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35500
35501 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35502 size check within GRUB_MACHINE_PCBIOS section.
35503
74c958b1 355042009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35505
35506 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35507 return value.
35508 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35509 KEYBOARD_ISREADY check.
35510 (grub_at_keyboard_checkkey): Rename to ...
35511 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35512 Remove gratuitous cast.
35513
ff420223 355142009-09-23 Colin Watson <cjwatson@ubuntu.com>
35515
35516 * configure.ac: Call AC_PROG_MKDIR_P.
35517 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35518 version.texi in $(builddir) rather than $(srcdir).
35519 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35520 to makeinfo's @include search path.
35521
d96875df 355222009-09-23 Felix Zielcke <fzielcke@z-51.de>
35523
35524 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35525
9b3f8365 355262009-09-23 Felix Zielcke <fzielcke@z-51.de>
35527
35528 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35529 for `*.dpkg-new'.
35530
c44c90db 355312009-09-21 Colin Watson <cjwatson@ubuntu.com>
35532
35533 Build info documentation. Some code borrowed from Automake.
35534
35535 * configure.ac: Check for makeinfo.
35536 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35537 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35538 docs/version.texi.
35539 (MOSTLYCLEANFILES): Add vti.tmp.
35540 (docs/version.texi, docs/stamp-vti): Update automatically.
35541 (docs/grub.info): Build info documentation. Use --force and ignore
35542 errors for now.
35543 (all-local): Add $(INFOS).
35544 (install-local): Install info files.
35545 (uninstall): Uninstall info files.
35546 * docs/version.texi: Remove from revision control. This file is
35547 automatically generated on build now.
35548 * gendistlist.sh: Add `*.info'.
35549
e0b37bb5 355502009-09-21 Felix Zielcke <fzielcke@z-51.de>
35551
35552 * kern/term.c: Fix indentation.
35553
5a78865b 355542009-09-21 Felix Zielcke <fzielcke@z-51.de>
35555
35556 * util/hostdisk.c: Fix a comment.
35557
dace7e8a 355582009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35559
35560 Fix regression introduced in r2539.
35561
35562 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35563 to 0xA1.
35564
a83d079b 355652009-09-19 Colin Watson <cjwatson@ubuntu.com>
35566
35567 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 35568 os-prober. Under normal operation, it does not print anything to
35569 stderr; if it does, we need to debug it, and throwing away stderr
35570 makes that excessively difficult.
a83d079b 35571
be94a509 355722009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35573
35574 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35575
63f745e8 355762009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35577
35578 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35579 AC_LANG_PROGRAM from autoconf.
35580 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35581 prototypes (fixes warning).
35582
35583 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35584 `--disable-werror' was used.
35585
bbb2a70f 355862009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35587
35588 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35589 uninitialized `lastaddr'.
35590
77c24f1d 355912009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35592
0f0b8c87 35593 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 35594
07197f23 355952009-09-14 Colin Watson <cjwatson@ubuntu.com>
35596
35597 * commands/test.c (get_fileinfo): Return immediately if
35598 grub_fs_probe fails.
35599
dabf1798 356002009-09-14 José Martínez <xosemp@gmail.com>
35601
35602 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35603
d52109a7 356042009-09-14 Colin Watson <cjwatson@ubuntu.com>
35605
35606 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35607 output.
35608
56532179 356092009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35610
35611 * configure.ac: Remove --enable-grub-pe2elf. Only build
35612 grub-pe2elf when needed by the build system itself.
35613 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35614
8ef070f5 356152009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35616
35617 * configure.ac: Bump version to 1.97~beta3.
35618 * docs/version.texi: Likewise.
35619
61229557 356202009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35621
35622 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35623 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35624 from here ...
35625 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35626 (grub_linux_setup_video): ... to here (with some adjustments).
35627
5c9f8d84 356282009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35629
35630 Fix memory corruption issue (spotted by Colin Watson).
35631
35632 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35633 causing returned size to be stored in an incorrect memory location.
35634 Fix use of uninitialized value when storing the returned size.
35635
e8f5d6e9 356362009-09-12 Yves Blusseau <blusseau@zetam.org>
35637
35638 Change clean rules to properly remove files
35639
35640 * genmk.rb: add new clean rules
35641 * Makefile.in (clean): add the new targets
35642 (mostlyclean): likewise
35643
cda2a409 356442009-09-11 Colin Watson <cjwatson@ubuntu.com>
35645
35646 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35647 to grub_uint64_t.
35648 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35649 non-resident files.
35650
86695375 356512009-09-11 Colin Watson <cjwatson@ubuntu.com>
35652
35653 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35654 part of bug #27349.
35655
8aa1541a 356562009-09-10 Felix Zielcke <fzielcke@z-51.de>
35657
35658 * util/grub-mkconfig.in: Make the created config mode 400 and
35659 print a warning if it fails.
35660
48d9bb0a 356612009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35662
35663 * util/grub.d/40_custom.in: Ask user to type custom entries below
35664 comment, rather than below 'exec tail' line.
35665
3b0521be 356662009-09-10 Colin Watson <cjwatson@ubuntu.com>
35667
35668 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35669 visible in grub.cfg.
35670
50051d55 356712009-09-10 Colin Watson <cjwatson@ubuntu.com>
35672
35673 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35674 file.
35675
c0d34387 356762009-09-10 Felix Zielcke <fzielcke@z-51.de>
35677
35678 * docs/grub.cfg: Add an example menu entry for memtest86+.
35679
80a608f3 356802009-09-09 Felix Zielcke <fzielcke@z-51.de>
35681
a2094832 35682 * config.guess: Update to latest version from config git.
80a608f3 35683 * config.sub: Likewise.
35684
99423078 356852009-09-08 Colin Watson <cjwatson@ubuntu.com>
35686
35687 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35688 unknown-command case. Fixes bug #27320.
35689
44454e4c 356902009-09-08 Felix Zielcke <fzielcke@z-51.de>
35691
35692 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35693 `help' if the command exists.
35694
e30d87ad 356952009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35696
35697 * INSTALL: Require GCC 4.1.3 or later.
35698
9a86f1ec 356992009-09-06 Yves Blusseau <blusseau@zetam.org>
35700
35701 * Makefile.in (RMKFILES): add i386-qemu.rmk
35702 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35703 $(srcdir)/stamp-h.in
35704
7f26d466 357052009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35706
35707 * util/grub-probe.c (probe): Comment out buggy codepath, which
35708 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35709 should be re-enabled after 1.97.
35710
3a613259 357112009-09-05 Felix Zielcke <fzielcke@z-51.de>
35712
35713 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35714 find searches for.
35715
197f76c7 357162009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35717
35718 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35719 unnecessary calls to grub_error.
35720
70ba68ce 357212009-09-04 Colin Watson <cjwatson@ubuntu.com>
35722
35723 * NEWS: Mention `keystatus' and Unicode fonts.
35724
4ff0d7a4 357252009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35726
35727 * configure.ac: Bump version to 1.97~beta2.
35728 * docs/version.texi: Likewise.
35729
77c55a87 357302009-09-03 Colin Watson <cjwatson@ubuntu.com>
35731
35732 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35733 containing unwind information in some cases where it previously did
35734 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35735 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35736 discussion.
35737
f79572cd 357382009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35739
35740 Embedding loadenv module into grub-emu
35741
35742 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35743 commands/loadenv.c
35744 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35745 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35746 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35748 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35749 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35750
93a81088 357512009-09-03 Magnus Granberg <zorry@ume.nu>
35752
35753 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35754 include -fPIE in the default specs.
35755 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35756 to TARGET_CFLAGS.
35757
160034b2 357582009-09-03 Felix Zielcke <fzielcke@z-51.de>
35759
35760 * INSTALL: Note that GNU Bison 2.3 or later is required.
35761
087c07c4 357622009-09-03 Colin Watson <cjwatson@ubuntu.com>
35763
35764 * kern/i386/pc/startup.S: Fix typo.
35765
cbf978c0 357662009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35767
35768 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35769 according to GCS.
35770
357712009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 35772
35773 * docs/grub.texi (Naming convention): Describe one-based partition
35774 numbering.
35775 (Device syntax): Likewise.
35776 (File name syntax): Likewise.
35777 (Block list syntax): Likewise.
35778 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35779 menu.lst.
35780 (File name syntax): Likewise.
35781 (Command-line and menu entry commands): Document acpi, blocklist,
35782 crc, export, insmod, keystatus, ls, set, and unset commands.
35783
f3e8cdfd 357842009-09-02 Colin Watson <cjwatson@ubuntu.com>
35785
35786 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35787 to avoid implying that only one of --shift, --ctrl, or --alt may be
35788 used.
35789
c0bc232b 357902009-09-02 Colin Watson <cjwatson@ubuntu.com>
35791
35792 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35793 rather than comparing against S_IFREG, which will almost never work.
35794
aa0f752d 357952009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35796
35797 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35798 (write_blocklists): Likewise.
35799
ecb3166a 358002009-09-01 Colin Watson <cjwatson@ubuntu.com>
35801
35802 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35803 argument to grub_printf.
35804
c403a125 358052009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 35806
35807 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 35808 non GNU test.
31aba781 35809
b5e7312c 358102009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35811
35812 * kern/file.c (grub_file_read): Spelling fix
35813
fe00f472 358142009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35815
35816 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35817 loading of headers in some cases.
35818
cc55302e 358192009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35820
35821 * configure.ac: Bump version to 1.97~beta1.
35822 * docs/version.texi: Likewise.
35823
5c90cdd2 358242009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 35825
35826 * include/grub/i386/xnu.h: Add license header.
35827 include grub/err.h explicitly.
35828
c90edae4 358292009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35830
35831 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35832 to `ufs' in the vfs.root.mountfrom kernel parameter.
35833
d8888b5c 358342009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35835
35836 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35837
35838 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35839 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35840
35841 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35842 `ARRAY_SIZE' macro.
35843
6f07b921 358442009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35845
35846 * kern/file.c (grub_file_read): Check offset.
35847 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35848 * fs/jfs.c (grub_jfs_read_file): Likewise.
35849 * fs/ntfs.c (grub_ntfs_read): Likewise.
35850 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35851 * fs/minix.c (grub_minix_read_file): Correct offset check.
35852 * fs/ufs.c (grub_ufs_read_file): Likewise.
35853
b4f34077 358542009-08-28 Colin Watson <cjwatson@ubuntu.com>
35855
35856 * term/i386/pc/console.c (bios_data_area): Cast
35857 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35858
e7c69859 358592009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35860
35861 1-bit optimised blitters.
35862
35863 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35864 prototype.
35865 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35866 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35867 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35868 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35869 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35870 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35871 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35872 function.
35873 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35874 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35875 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35876 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35877 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35878 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35879 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35880 when possible.
35881 * video/video.c (grub_video_get_blit_format): Return
35882 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35883
a57da43f 358842009-08-28 Colin Watson <cjwatson@ubuntu.com>
35885
35886 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35887 the first argument to grub_printf.
35888
4cbe67e5 358892009-08-28 Colin Watson <cjwatson@ubuntu.com>
358902009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35891
35892 Add `getkeystatus' terminal method. Add a new `keystatus' command
35893 to query it.
35894
35895 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35896 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35897 modifier key bitmasks.
35898 (struct grub_term_input): Add `getkeystatus' member.
35899 (grub_getkeystatus): Add prototype.
35900 * kern/term.c (grub_getkeystatus): New function.
35901
35902 * include/grub/i386/pc/memory.h
35903 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35904 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35905 Data Area layout.
35906 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35907 (grub_console_term_input): Set `getkeystatus' member.
35908 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35909 constants.
35910 (grub_usb_keyboard_getreport): Likewise.
35911 (grub_usb_keyboard_checkkey): Likewise.
35912 (grub_usb_keyboard_getkeystatus): New function.
35913 (grub_usb_keyboard_term): Set `getkeystatus' member.
35914
35915 * commands/keystatus.c: New file.
35916 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35917 (keystatus_mod_SOURCES): New variable.
35918 (keystatus_mod_CFLAGS): Likewise.
35919 (keystatus_mod_LDFLAGS): Likewise.
35920 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35921 commands/keystatus.c.
35922 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35923 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35924 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35926 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35927 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 35928
6e2a9085 359292009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35930
35931 Split befs.mod and afs.mod into *_be.mod and *.mod
35932
35933 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35934 (grub_fstest_SOURCES): Likewise.
35935 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35936 (afs_be_mod_SOURCES): New variable.
35937 (afs_be_mod_CFLAGS): Likewise.
35938 (afs_be_mod_LDFLAGS): Likewise.
35939 (befs_be_mod_SOURCES): Likewise.
35940 (befs_be_mod_CFLAGS): Likewise.
35941 (befs_be_mod_LDFLAGS): Likewise.
35942 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35943 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35944 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35945 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35946 (grub_emu_SOURCES): Likewise.
35947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35948 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35949 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35950 * fs/afs_be.c: New file.
35951 * fs/befs_be.c: New file.
35952 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35953 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35954 (U16): Replaced with ...
35955 (grub_afs_to_cpu16): ...this. All users updated.
35956 (U32): Replaced with ...
35957 (grub_afs_to_cpu32): ...this. All users updated.
35958 (U64): Replaced with ...
35959 (grub_afs_to_cpu64): ...this. All users updated.
35960 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35961 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 35962 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 35963 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35964 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35965 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35966 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35967 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35968 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35969 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35970 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35971
32a71655 359722009-08-26 Bean <bean123ch@gmail.com>
35973
35974 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35975 64-bit number.
35976 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35977 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35978 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35979
552bf6c5 359802009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35981
35982 NetBSD memory map support.
35983
35984 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35985 (grub_netbsd_btinfo_mmap_header): New structure.
35986 (grub_netbsd_btinfo_mmap_entry): Likewise.
35987 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35988
1ae2078c 359892009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35990
35991 Enable bsd.mod on coreboot.
35992
35993 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35994 (bsd_mod_SOURCES): New variable.
35995 (bsd_mod_CFLAGS): Likewise.
35996 (bsd_mod_LDFLAGS): Likewise.
35997 (bsd_mod_ASFLAGS): Likewise.
35998 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35999 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
36000
beefc598 360012009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36002
36003 Cleanup NetBSD root support.
36004
36005 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36006 grub_bsd_get_device.
36007 Fix typo.
36008
3b76e68b 360092009-08-25 Felix Zielcke <fzielcke@z-51.de>
36010
36011 * util/grub.d/00_header.in: Move check for the video backend of
36012 gfxterm from here ...
36013 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
36014 a suitable video backend.
36015
aea664ea 360162009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36017
36018 Fix breakage in grub-setup.
36019
36020 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36021 "msdos_partition_map".
36022
ff747d50 360232009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36024
36025 Fix breakage in normal/auth.c.
36026
36027 * normal/auth.c (grub_iswordseparator): New function.
36028
e7e1f93f 360292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36030
36031 Authentication support.
36032
36033 * commands/password.c: New file.
36034 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36035 (password_mod_SOURCES): New variable.
36036 (password_mod_CFLAGS): Likewise.
36037 (password_mod_LDFLAGS): Likewise.
36038 (normal_mod_SOURCES): Add normal/auth.c.
36039 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36040 normal/auth.c.
36041 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36042 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36043 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36045 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36047 * include/grub/auth.h: New file.
36048 * include/grub/err.h (grub_err_t): New enum value
36049 GRUB_ERR_ACCESS_DENIED.
36050 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36051 'users'.
36052 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36053 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36054 users updated.
36055 * normal/auth.c: New file.
36056 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36057 (grub_cmdline_run): Don't allow to go to command line without
36058 authentication.
36059 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36060 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36061 menuentry without superuser rights.
36062 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36063 user isn't a superuser.
36064
70f1161d 360652009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36066
36067 Save space by inlining misc.c functions.
36068
36069 * kern/misc.c (grub_iswordseparator): Made static.
36070 * kern/misc.c (grub_strcat): Moved from here ...
36071 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36072 * kern/misc.c (grub_strncat): Moved from here ...
36073 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36074 * kern/misc.c (grub_strcasecmp): Moved from here ...
36075 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36076 * kern/misc.c (grub_strncasecmp): Moved from here ...
36077 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36078 * kern/misc.c (grub_isalpha): Moved from here ...
36079 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36080 * kern/misc.c (grub_isdigit): Moved from here ...
36081 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36082 * kern/misc.c (grub_isgraph): Moved from here ...
36083 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36084 * kern/misc.c (grub_tolower): Moved from here ...
36085 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36086
48e40bff 360872009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36088
36089 * script/sh/function.c (grub_script_function_find): Cut error message
36090 not to flood terminal.
36091 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36092 limit.
36093 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36094
c385bfc3 360952009-08-24 Colin Watson <cjwatson@ubuntu.com>
36096
36097 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36098 `report' grub_uint8_t *.
36099 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36100 Use a 50-millisecond timeout rather than just repeating
36101 grub_usb_keyboard_getreport 50 times.
36102 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36103
2d21e3e8 361042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36105
36106 Rename *_partition_map to part_*
36107
36108 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36109 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36110 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36111 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36112 All users updated.
36113 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36114 All users updated.
36115 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36116 * util/grub-probe.c (probe_partmap): Don't transform partition name
36117 to get module name.
36118
dd103c4e 361192009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36120
36121 Fix OpenBSD and NetBSD support.
36122
36123 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36124 memory address conflict.
36125 (OPENBSD_MMAP_ACPI): New definition.
36126 (OPENBSD_MMAP_NVS): Likewise.
36127 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36128 and OPENBSD_MMAP_NVS.
36129 Add memory map terminator
36130 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 36131 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 36132
16c84d74 361332009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36134
36135 Let user specify NetBSD root device.
36136
36137 * loader/i386/bsd.c (netbsd_root): New variable.
36138 (netbsd_opts): New option 'root'.
36139 (NETBSD_ROOT_ARG): New macro.
36140 (grub_netbsd_boot): Use 'netbsd_root'.
36141 (grub_bsd_unload): Free 'netbsd_root'.
36142 (grub_cmd_netbsd): Fill 'netbsd_root'.
36143
adb29902 361442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36145
36146 Support for 64-bit NetBSD.
36147
36148 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36149 point when booting non-FreeBSD.
36150
f5ae9f74 361512009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36152
36153 Support --no-smp and --no-acpi for NetBSD.
36154
36155 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36156 (NETBSD_AB_NOACPI): Likewise.
36157 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36158 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36159
de74f136 361602009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36161
36162 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36163 errors.
36164 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36165 errors. Call grub_error when needed.
36166
e9a925da 361672009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36168
36169 * commands/search.c (search_fs): Try searching without autoload first.
36170 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36171 filesystem module explicitly for faster booting.
36172
5174302b 361732009-08-23 Colin Watson <cjwatson@ubuntu.com>
36174
36175 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36176
c8c80635 361772009-08-23 Colin Watson <cjwatson@ubuntu.com>
36178
36179 * util/grub.d/30_os-prober.in: Disable os-prober if
36180 `GRUB_DISABLE_OS_PROBER' was set to true.
36181
71acf5e5 361822009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36183
36184 * partmap/pc.c: Rename to ...
36185 * partmap/msdos.c: ... this. Update all users.
36186 (grub_pc_partition_map): Rename to ...
36187 (grub_msdos_partition_map): ... this. Update all users.
36188
36189 * parttool/pcpart.c: Rename to ...
36190 * parttool/msdospart.c: ... this. Update all users.
36191
36192 * include/grub/pc_partition.h: Rename to ...
36193 * include/grub/msdos_partition.h: ... this. Update all users.
36194 (grub_pc_partition_bsd_entry): Rename to ...
36195 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36196 (grub_pc_partition_disk_label): Rename to ...
36197 (grub_msdos_partition_disk_label): ... this. Update all users.
36198 (grub_pc_partition_entry): Rename to ...
36199 (grub_msdos_partition_entry): ... this. Update all users.
36200 (grub_pc_partition_mbr): Rename to ...
36201 (grub_msdos_partition_mbr): ... this. Update all users.
36202 (grub_pc_partition): Rename to ...
36203 (grub_msdos_partition): ... this. Update all users.
36204 (grub_pc_partition_is_empty): Rename to ...
36205 (grub_msdos_partition_is_empty): ... this. Update all users.
36206 (grub_pc_partition_is_extended): Rename to ...
36207 (grub_msdos_partition_is_extended): ... this. Update all users.
36208 (grub_pc_partition_is_bsd): Rename to ...
36209 (grub_msdos_partition_is_bsd): ... this. Update all users.
36210
36211 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36212 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36213 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36214 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36215 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36216 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36217 (gpt_mod_LDFLAGS): Rename to ...
36218 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36219 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36220 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36221 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36222 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36223 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36224 (part_gpt_mod_LDFLAGS): ... this.
36225 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36226 `pcpart.mod' to `msdospart.mod'.
36227 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36228 to ...
36229 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36230 (msdospart_mod_LDFLAGS): ... this.
36231
c11fded5 362322009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36233
36234 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36235 (openbsd_opts): Likewise.
36236 (netbsd_opts): Likewise.
36237 (freebsd_flags): Added 0 terminator.
36238 (openbsd_flags): Likewise.
36239 (netbsd_flags): Likewise.
36240 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36241 (grub_cmd_freebsd): Transformed into extended command.
36242 (grub_cmd_openbsd): Likewise.
36243 (grub_cmd_netbsd): Likewise.
36244 (cmd_freebsd): Changed type to grub_extcmd_t.
36245 (cmd_openbsd): Likewise.
36246 (cmd_netbsd): Likewise.
36247 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36248 grub_cmd_openbsd as extended commands.
36249 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36250 cmd_netbsd and cmd_openbsd
36251
11d1c769 362522009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36253
36254 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36255
7a9094e5 362562009-08-21 Pavel Roskin <proski@gnu.org>
36257
5496c37e 36258 * Makefile.in (install-local): When checking if a file is in the
36259 build directory, use "test -e" to detect symlinks.
36260
7a9094e5 36261 * Makefile.in (install-local): Remove all files in
36262 $(DESTDIR)$(pkglibdir) before installing new files there.
36263
e53cea11 362642009-08-18 Felix Zielcke <fzielcke@z-51.de>
36265
36266 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36267 grub-mkelfimage.
36268
9aced544 362692009-08-18 Felix Zielcke <fzielcke@z-51.de>
36270
36271 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36272 explicitly specified by the user.
36273
b7da6bab 362742009-08-18 Pavel Roskin <proski@gnu.org>
36275
36276 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36277 grub_uint8_t pointer for data.
36278 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36279 Likewise.
36280 * video/fb/fbutil.c: Remove unnecessary casts.
36281
19f1b335 362822009-08-17 Michal Suchanek <hramrach@centrum.cz>
36283
36284 VBE cleanup.
36285
36286 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36287 (grub_vbe_set_video_mode): Save active mode info
36288 only after setting the mode.
36289 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36290 second argument.
36291
2f467aa9 362922009-08-17 Michal Suchanek <hramrach@centrum.cz>
36293
36294 Rename variables for clarity.
36295
36296 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36297 (active_vbe_mode_info): ... this. All users updated.
36298 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36299 All users updated.
36300 (initial_mode): Rename to ...
36301 (initial_vbe_mode): ... this. All users updated.
36302 (mode_in_use): Rename to ..
36303 (vbe_mode_in_use): ... this. All users updated.
36304 (mode_list): Rename to ..
36305 (vbe_mode_list): ... this. All users updated.
36306 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36307 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36308 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36309 'mode_list_size' to 'vbe_mode_list_size'.
36310 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36311 'best_mode_info' to 'best_vbe_mode_info' and
36312 'best_mode' to 'best_vbe_mode'
36313
6025fcd7 363142009-08-17 Michal Suchanek <hramrach@centrum.cz>
36315
36316 Remove duplicate grub_video_fb_get_video_ptr.
36317
36318 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36319 (grub_video_fb_get_video_ptr): ... this.
36320 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36321 * video/fb/fbutil.c: Add comment about addressing.
36322 (get_data_ptr): Rename to ...
36323 (grub_video_fb_get_video_ptr): ... this. All users updated.
36324 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36325
cc8c6faf 363262009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36327
36328 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36329 grub_dprintf() that was just added.
36330
08aa61f0 363312009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36332
36333 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36334 (DEFAULT_VIDEO_MODE): Remove macros.
36335 (grub_linux_boot): Remove assumption that Linux has FB support,
36336 and use "text" as default video mode.
36337
7cef4f75 363382009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36339
36340 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36341 grub_dprintf.
36342 * fs/fat.c (grub_fat_read_data): Likewise.
36343
e1f39873 363442009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36345
36346 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36347 payload.
36348 (grub_module): Likewise.
36349
c166d79e 363502009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36351
36352 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36353 mbi->cmdline but free playground.
36354
c60cee8e 363552009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36356
36357 Handle group offset on UFS1.
36358
36359 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36360 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36361
c0d8b5d4 363622009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36363
36364 Split ufs.mod into ufs1.mod and ufs2.mod.
36365
36366 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36367 (grub_fstest_SOURCES): Likewise.
36368 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36369 (ufs_mod_SOURCES): Remove.
36370 (ufs_mod_CFLAGS): Likewise.
36371 (ufs_mod_LDFLAGS): Likewise.
36372 (ufs1_mod_SOURCES): New variable.
36373 (ufs1_mod_CFLAGS): Likewise.
36374 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 36375 (ufs2_mod_SOURCES): New variable.
36376 (ufs2_mod_CFLAGS): Likewise.
36377 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 36378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36379 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36380 Likewise.
36381 (grub_emu_SOURCES): Likewise.
36382 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36383 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36384 (grub_setup_SOURCES): Likewise.
36385 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36386 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36387 (grub_setup_SOURCES): Likewise.
36388 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36389 Likewise.
36390 * fs/ufs2.c: New file.
36391 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36392
d3539132 363932009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36394
36395 Framebuffer split.
36396
36397 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36398 subsystem at the end.
36399 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36400 (video_fb_mod_SOURCES): New variable.
36401 (video_fb_mod_CFLAGS): Likewise.
36402 (video_fb_mod_LDFLAGS): Likewise.
36403 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36404 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36405 * video/i386/pc/vbeblit.c: Moved from here ...
36406 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36407 * video/i386/pc/vbefill.c: Moved from here ...
36408 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36409 * video/i386/pc/vbeutil.c: Moved from here ...
36410 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36411 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36412 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36413 * include/grub/i386/pc/vbefill.h: Moved from here ...
36414 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36415 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36416 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36417 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36418 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36419 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36420 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36421 (grub_video_adapter): Added 'get_info_and_fini'.
36422 (grub_video_get_info_and_fini): New prototype.
36423 (grub_video_set_mode): make modestring const char *.
36424 * loader/i386/linux.c (grub_linux_setup_video): Use
36425 grub_video_get_info_and_fini.
36426 (grub_linux_boot): Move modesetting just before booting.
36427 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36428 grub_video_get_info_and_fini.
36429 * video/i386/pc/vbe.c: Moved framebuffer part ...
36430 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36431 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36432 grub_video_fbstd_colors and grub_video_fb_set_palette.
36433 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36434 grub_video_fb_init.
36435 (grub_video_vbe_fini): Use grub_video_fb_fini.
36436 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36437 render_target and use grub_video_fb_set_active_render_target and
36438 grub_video_fb_set_palette.
36439 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36440 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36441 (grub_video_vbe_adapter): Use framebuffer.
36442 * video/video.c (grub_video_get_info_and_fini): New function.
36443 (grub_video_set_mode): Make modestring const char *.
36444 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36445 values are already initialised.
36446
d404ee56 364472009-08-14 Pavel Roskin <proski@gnu.org>
36448
36449 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36450 ABS and APPLE_CC.
36451 * boot/i386/pc/diskboot.S: Likewise.
36452 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36453 sectors allow compilation on MacOSX.
36454 * conf/i386-pc.rmk: Enable unconditional compilation of
36455 lnxboot.img.
36456
9a10df16 364572009-08-13 Colin Watson <cjwatson@ubuntu.com>
36458
36459 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36460 * util/grub.d/00_header.in: Enter interruptible sleep if
36461 GRUB_HIDDEN_TIMEOUT is set.
36462
be3c9ca7 364632009-08-13 Yves Blusseau <blusseau@zetam.org>
36464
36465 * include/grub/symbol.h: Add the LOCAL macro.
36466 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36467 starting with "L_".
36468
1f9e557e 364692009-08-13 Pavel Roskin <proski@gnu.org>
36470
9ca62843 36471 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36472 any modern compilers we support.
36473
1f9e557e 36474 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36475 Use local labels starting with "L_" so that Apple assembler
36476 knows they are local.
36477
81623db6 364782009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36479
36480 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36481 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36482 (bsd_kernel_types): ... this enum.
36483
36484 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36485 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36486 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36487
36488 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36489 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36490 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36491 messages.
36492
f5d35e7a 364932009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36494
36495 * util/grub-dumpdevtree: Moved from here ...
36496 * util/i386/efi/grub-dumpdevtree: ... to here.
36497 (hexify): New function. Converts a string to its hex version.
36498 Generate hex versions of "efi" and "device-properties" by calling
36499 hexify() on the ASCII strings rather than by hardcoding numbers.
36500
d1e1d527 365012009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36502
36503 * fs/jfs.c: Update copyright year.
36504
1ebbe064 365052009-08-08 Felix Zielcke <fzielcke@z-51.de>
36506
36507 * util/grub.d/00_header.in: Fix a comment.
36508 * util/grub.d/10_linux.in: Likewise.
36509 * util/grub.d/10_windows.in: Likewise.
36510 * util/grub.d/10_hurd.in: Likewise.
36511
a78c8d24 365122009-08-08 Felix Zielcke <fzielcke@z-51.de>
36513
36514 * util/grub-mkconfig.in: Allow the user to specify the used font
36515 with GRUB_FONT.
36516
29a6b9e8 365172009-08-08 Pavel Roskin <proski@gnu.org>
36518
b5f16cc4 36519 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36520 available, xfs.mod needs it now.
36521
2f5cb827 36522 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36523 the "g" modifier in sed when the intention is to strip something
36524 once. This fixes comparison of kernels with multiple dashes.
36525
29a6b9e8 36526 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36527 on it. Add missing space before closing bracket. Fix
36528 misleading formatting.
36529
892a3d98 365302009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36531
36532 * docs/grub.texi: Major overhaul. Remove all sections that are
36533 specific to GRUB Legacy, or mostly composed of Legacy-specific
36534 information.
36535
ed94253f 365362009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36537
36538 * docs/version.texi: New file. Provides version information for
36539 grub.texi.
36540
126d6628 365412009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36542
36543 * docs/grub.texi: Update CVS information to SVN.
36544 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36545
998b5aa9 365462009-08-07 Felix Zielcke <fzielcke@z-51.de>
36547
36548 * util/grub-mkconfig.in: Remove a wrong `fi'.
36549
818e094a 365502009-08-07 Felix Zielcke <fzielcke@z-51.de>
36551
36552 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36553 (grub_jfs_uuid): New function.
36554 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36555
b969c52f 365562009-08-07 Felix Zielcke <fzielcke@z-51.de>
36557
36558 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36559 of it to ...
36560 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36561 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36562
7a4894cc 365632009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36564
36565 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36566 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36567 Update all users.
36568
36569 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36570 not just "vmlinu[zx]".
36571 Moved from here ...
36572 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36573 all users.
36574
36575 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36576 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36577 all users.
36578
4e2171f8 365792009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36580
36581 * util/grub.d/10_freebsd.in: Use an absolute device path for
36582 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36583
6dcfcb32 365842009-08-06 Felix Zielcke <fzielcke@z-51.de>
36585
36586 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36587 handling of multiple abstraction modules.
36588
f56a8756 365892009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36590
36591 Fix a bug resulting in black screen when loading Linux using a
36592 packed video mode.
36593
36594 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36595 function.
36596
36597 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36598 (grub_vbe_bios_getset_dac_palette_width): New function.
36599 (grub_vbe_bios_get_dac_palette_width)
36600 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36601 grub_vbe_bios_getset_dac_palette_width()).
36602
36603 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36604 check for return status.
36605 (grub_vbe_get_video_mode_info): When getting information for a packed
36606 mode (<= 8 bpp), obtain DAC palette width using
36607 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36608 {red,green,blue}_mark_size.
36609
222671b2 366102009-08-04 Felix Zielcke <fzielcke@z-51.de>
36611
ecb1a6d9 36612 * commands/search.c (options): Fix help output to match actual code.
222671b2 36613
f84114f5 366142009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36615
36616 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36617 of homegrown code.
36618
bd288a20 366192009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 36620
36621 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36622 on XFS or ReiserFS.
36623
8aab5e25 366242009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36625
36626 Support Apple partition map with sector size different from 512 bytes.
36627
36628 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36629 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36630 and 'apart.partmap_size'.
36631
6ad6258a 366322009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
366332009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36634
36635 Fix cpuid command.
36636
36637 * commands/i386/cpuid.c (options): New variable.
36638 (grub_cmd_cpuid): Return real error.
36639 (GRUB_MOD_INIT(cpuid)): Declare options.
36640
67459bc6 366412009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36642
36643 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36644 valid.
36645
fbc6ab54 366462009-07-31 Bean <bean123ch@gmail.com>
36647
36648 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36649 log2_inode.
36650 (grub_fshelp_node): Move inode field to the end.
36651 (grub_xfs_data): Remove inode field.
36652 (grub_xfs_inode_block): Calculate inode size using sblock.
36653 (grub_xfs_inode_offset): Likewise.
36654 (grub_xfs_read_inode): Calculate inode size using sblock.
36655 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36656 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36657 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36658 to match inode size.
36659 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36660 not accessible when data is null.
36661 (grub_xfs_open): Likewise.
36662
f45d6cfc 366632009-07-31 Bean <bean123ch@gmail.com>
36664
36665 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36666 Don't change pv->disk if it's already set.
36667
36668 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36669 (grub_raid_register): ... here.
36670 (grub_raid_rescan): Removed.
36671
36672 * include/grub/raid.h (grub_raid_rescan): Removed.
36673
36674 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36675 (fstest): Replace grub_raid_rescan with module fini function followed
36676 by init function.
36677
36678 * util/grub-probe.c: Add include file <grub/raid.h>.
36679 (probe_raid_level): New function.
36680 (probe): Detect abstraction by walking the disk device, support two
36681 level of abstraction (LVM on RAID) when detecting partition map.
36682
24443b5a 366832009-07-31 Pavel Roskin <proski@gnu.org>
36684
36685 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36686 to grub_zalloc(), it was erroneous.
36687 Reported by Bean <bean123ch@gmail.com>
36688
a275d9e7 366892009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36690
36691 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 36692 embedding zone, not only the first one.
a275d9e7 36693
56c5a47f 366942009-07-29 Joe Auricchio <jauricchio@gmail.com>
36695
36696 * term/gfxterm.c (clear_char): New function.
36697 (grub_virtual_screen_setup): Use clear_char.
36698 (scroll_up): Likewise.
36699 (grub_virtual_screen_cls): Likewise.
36700
67bb323a 367012009-07-29 Felix Zielcke <fzielcke@z-51.de>
36702
36703 * util/deviceiter.c (get_acceleraid_disk_name): New static
36704 function.
36705 (grub_util_iterate_devices): Handle Accelraid devices.
36706 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36707
388a7c75 367082009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36709
36710 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36711 separator for the suggested gfxpayload string (';' collides with the
36712 parser and needs escaping).
36713
3bb7abcf 367142009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36715
36716 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36717 Clear direction flag before jumping to OS.
36718 (grub_multiboot2_real_boot): Likewise.
36719
2ddd36d7 367202009-07-28 Felix Zielcke <fzielcke@z-51.de>
36721
36722 * util/i386/pc/grub-install: Fix parsing of --disk-module
36723 option.
36724
c521b62b 367252009-07-28 Felix Zielcke <fzielcke@z-51.de>
36726
36727 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36728 when embedding.
36729
880e0a0c 367302009-07-26 Felix Zielcke <fzielcke@z-51.de>
36731
36732 * util/grub-mkconfig.in (package_version): New variable.
36733 Use it do display the version.
36734
2366e356 367352009-07-25 Felix Zielcke <fzielcke@z-51.de>
36736
36737 * kern/file.c (grub_file_open): Revert to previous check with
36738 grub_errno.
36739
7ad8c80e 367402009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36741
36742 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36743 from help line. It's out of sync with code.
36744
72b9658b 367452009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36746
36747 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36748 entries on failed boot.
36749
77435277 367502009-07-25 Felix Zielcke <fzielcke@z-51.de>
36751
36752 * kern/file.c (grub_file_open): Fix an error check.
36753
fcaa8b21 367542009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36755
35d16c74 36756 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36757 partition map couldn't be identified.
fcaa8b21 36758
48904cd1 367592009-07-23 Pavel Roskin <proski@gnu.org>
36760
ef3c317f 36761 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36762 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36763 case of little endian words becomes just an optimization.
36764 Respect const modifier.
ad8ea1f4 36765 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 36766
48904cd1 36767 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36768 to avoid loss of upper bits if align is unsigned and shorter
36769 than addr.
36770
260c9a89 367712009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36772
36773 UUID support for UFS
36774
36775 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36776 (grub_ufs_uuid): New function.
36777 (grub_ufs_fs): add .uuid
36778
f76ce889 367792009-07-21 Pavel Roskin <proski@gnu.org>
36780
36781 * kern/dl.c (grub_dl_check_header): Make static.
36782
6a6cbcaf 367832009-07-21 Felix Zielcke <fzielcke@z-51.de>
36784
36785 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36786 add drivemap for Vista. It breaks Windows 7.
36787
cffcddb2 367882009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36789
36790 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36791 128 bytes
36792
1ef44b80 367932009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36794
36795 Add BFS support
36796
36797 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36798 (grub_fstest_SOURCES): Likewise.
36799 (pkglib_MODULES): Add befs.mod.
36800 (befs_mod_SOURCES): New variable.
36801 (befs_mod_CFLAGS): Likewise.
36802 (befs_mod_LDFLAGS): Likewise.
36803 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36804 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36805 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36806 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36807 (grub_setup_SOURCES): Likewise.
36808 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36809 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36810 (grub_setup_SOURCES): Likewise.
36811 * fs/befs.c: New file.
36812 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36813 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36814 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36815 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36816 (B_KEY_INDEX_ALIGN): New declaration.
36817 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36818 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36819 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36820 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36821 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36822 (grub_afs_mount) [MODE_BFS]: Likewise.
36823 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36824 (grub_afs_fs): Use GRUB_AFS_FSNAME
36825 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36826 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36827 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36828 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36829
4f253044 368302009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36831
36832 * util/getroot.c (find_root_device): Add support for MacOSX.
36833 * util/hostdisk.c: Likewise.
36834
57a55913 368352009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36836
36837 * font/font.c (find_glyph): Check whether a font is present to avoid
36838 segmentation fault.
75421ca9 36839
368402009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 36841
36842 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36843
e98cd0c2 368442009-07-20 Pavel Roskin <proski@gnu.org>
36845
36846 * configure.ac: Trim excessively wordy excuses.
36847
1d2d169a 368482009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36849
36850 Add symlink, mtime and label support to AtheFS.
36851
36852 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36853 (grub_afs_iterate_dir): Handle symlinks.
36854 (grub_afs_open): Use grub_afs_read_symlink.
36855 (grub_afs_dir): Likewise.
36856 Pass mtime.
36857 (grub_afs_label): New function.
36858 (grub_afs_fs): Add grub_afs_label.
36859 (grub_afs_read_symlink): New function.
36860
186f3189 368612009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36862
36863 Fix AtheFS support.
36864
36865 * fs/afs.c: Fix comments style.
36866 (grub_afs_blockrun): Declare as packed.
36867 (grub_afs_datastream): Likewise.
36868 (grub_afs_bnode): Likewise.
36869 (grub_afs_btree): Likewise.
36870 (grub_afs_sblock): Likewise.
36871 Declare `name' as char.
36872 (grub_afs_inode): Declare as packed.
36873 Change void *vnode to grub_uint32_t unused.
36874 (grub_afs_iterate_dir): Check that key_size is positive.
36875 (grub_afs_mount): Don't read superblock twice.
75421ca9 36876 (grub_afs_dir): Don't free node in case of error,
186f3189 36877 grub_fshelp_find_file already handles this.
36878 (grub_afs_open): Likewise.
36879
5680109e 368802009-07-19 Pavel Roskin <proski@gnu.org>
36881
36882 * Makefile.in: Remove LIBLZO and enable_lzo.
36883 * conf/i386-pc.rmk: Remove lzo support.
36884 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36885 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36886 support.
36887 * kern/i386/pc/lzo1x.S: Remove.
36888 * kern/i386/pc/startup.S: Remove lzo support.
36889 * util/i386/pc/grub-mkimage.c: Likewise.
36890
ac70fa32 368912009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36892
36893 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36894 * fs/xfs.c (grub_xfs_dir): Likewise.
36895 * fs/afs.c (grub_afs_dir): Likewise.
36896 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36897 (grub_iso9660_open): Likewise.
36898 * fs/jfs.c (grub_jfs_open): Likewise.
36899 * fs/ext2.c (grub_ext2_dir): Likewise.
36900 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36901 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 36902
eab58da2 369032009-07-16 Pavel Roskin <proski@gnu.org>
36904
d2838156 36905 * configure.ac: Never add "-c" to CFLAGS.
36906
55c70904 36907 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36908
43e6200c 36909 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36910 grub_cv_cc_efiemu should be used.
36911
ce7a733d 36912 * configure.ac: Typo fixes.
36913
eab58da2 36914 * kern/mm.c (grub_zalloc): New function.
36915 (grub_debug_zalloc): Likewise.
36916 * include/grub/mm.h: Declare grub_zalloc() and
36917 grub_debug_zalloc().
36918 * util/misc.c (grub_zalloc): New function.
36919 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36920 instead of grub_malloc(), remove unneeded initializations.
36921 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36922 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36923 * commands/parttool.c (grub_cmd_parttool): Likewise.
36924 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36925 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36926 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36927 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36928 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36929 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36930 (grub_cmd_efiemu_pnvram): Likewise.
36931 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36932 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36933 (grub_iso9660_iterate_dir): Likewise.
36934 * fs/jfs.c (grub_jfs_opendir): Likewise.
36935 * fs/ntfs.c (list_file): Likewise.
36936 (grub_ntfs_mount): Likewise.
36937 * kern/disk.c (grub_disk_open): Likewise.
36938 * kern/dl.c (grub_dl_load_core): Likewise.
36939 * kern/elf.c (grub_elf_file): Likewise.
36940 * kern/env.c (grub_env_context_open): Likewise.
36941 (grub_env_set): Likewise.
36942 (grub_env_set_data_slot): Likewise.
36943 * kern/file.c (grub_file_open): Likewise.
36944 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36945 * loader/i386/multiboot.c (grub_module): Likewise.
36946 * loader/xnu.c (grub_xnu_create_key): Likewise.
36947 (grub_xnu_create_value): Likewise.
36948 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36949 (read_config_file): Likewise.
36950 * normal/menu_entry.c (make_screen): Likewise.
36951 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36952 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36953 * script/sh/script.c (grub_script_parse): Likewise.
36954 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36955 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36956 * video/readers/png.c (grub_png_output_byte): Likewise.
36957 (grub_video_reader_png): Likewise.
36958
830afef7 369592009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 36960
36961 Enable all targets that can be built by default
36962
830afef7 36963 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 36964 grub-mkfont and grub-fstest if they can be built
36965
ee293aee 369662009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36967
36968 Fix hang and segmentation fault in grub-emu-usb
36969
36970 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36971 * util/usb.c (grub_libusb_devices): likewise
36972 (grub_libusb_init): rename to ...
36973 (GRUB_MOD_INIT (libusb)):...this
36974 (grub_libusb_fini): rename to ..
36975 (GRUB_MOD_FINI (libusb)):...this
36976 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36977 * include/grub/disk.h (grub_raid_init): removed, it's useless
36978 (grub_raid_fini): likewise
36979 (grub_lvm_init): likewise
36980 (grub_lvm_fini): likewise
36981 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36982 by grub_init_all
36983
94414221 369842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36985
36986 Fix libusb
36987
36988 * Makefile.in (LIBUSB): new macro
36989 * genmk.rb (Utility/print_tail): new method
36990 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36991 (top level): call util.print_tail at the end.
36992
59ade63d 369932009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36994
36995 Make FreeBSD accept zpool.cache
36996
36997 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36998 type is /boot/zfs/zpool.cache
36999
a58da8c7 370002009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
37001
37002 Fix 64-bit efiemu
37003
37004 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37005 correct wrong typedef
37006 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37007
20591577 370082009-07-15 Pavel Roskin <proski@gnu.org>
37009
560ca572 37010 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37011 * kern/disk.c (struct grub_disk_cache): Likewise.
37012
e8e8e4fd 37013 * commands/probe.c (options): Typo fix.
37014
fde24e10 37015 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37016 Increase to 0x5a to accommodate FAT32. Adjust other offsets
37017 accordingly.
37018 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37019
379c54c1 37020 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37021 the end of "Error" to make the message more readable.
37022
7bd8f5bf 37023 * boot/i386/pc/boot.S (kernel_segment): Remove.
37024 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37025 for destination.
37026
40b132c5 37027 * boot/i386/pc/boot.S (boot_version): Remove.
37028 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37029 Remove.
37030
20591577 37031 * include/grub/i386/pc/boot.h: Sort all offsets.
37032 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37033 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37034 * boot/i386/pc/boot.S: Assert location of every offset listed in
37035 include/grub/i386/pc/boot.h.
37036
2df32b2c 370372009-07-13 Pavel Roskin <proski@gnu.org>
37038
44b5d879 37039 * include/grub/i386/coreboot/machine.h: Rename
37040 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37041 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37042 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37043
17dc3751 37044 * kern/dl.c: Force native word size to suppress warnings when
37045 compiling grub-emu.
37046
2df32b2c 37047 * kern/device.c (grub_device_iterate): Change struct part_ent to
37048 hold the name, not a pointer to it. Use one grub_malloc() per
37049 partition, not two. Free partition_name if grub_malloc() fails.
37050 Set ents to NULL only before grub_partition_iterate() is called.
37051
75c59f59 370522009-07-11 Bean <bean123ch@gmail.com>
37053
37054 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37055 childname.
37056
0ae1bf88 370572009-07-10 Bean <bean123ch@gmail.com>
370582009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37059
37060 * kern/ieee1275/openfw.c (grub_children_iterate)
37061 (grub_devalias_iterate): Fix size evaluation for property or path
37062 strings, which was broken since r2132.
37063
8279cade 370642009-07-07 Pavel Roskin <proski@gnu.org>
37065
7d8a52d3 37066 * commands/search.c (search_file): Merge into ...
37067 (search_fs): ... this. Accept search type as argument.
37068 (grub_cmd_search): Pass search type to search_fs().
37069
25f9a05a 37070 * include/grub/util/console.h: New file.
37071 * util/console.c: Use it instead of grub/machine/console.h.
37072 * util/grub-emu.c: Likewise.
37073
8279cade 37074 * lib/arg.c (find_long_option): Remove.
37075 (find_long): Add `len' argument, make `s' const char *.
37076 (grub_arg_parse): Parse long options in place, not in a
37077 temporary buffer.
37078
4a11b60f 370792009-07-06 Pavel Roskin <proski@gnu.org>
37080
99f68041 37081 * commands/search.c (search_fs): Fix potential NULL pointer
37082 dereference.
37083
4a11b60f 37084 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37085 function pointer.
37086
e110f4de 370872009-07-06 Daniel Mierswa <impulze@impulze.org>
37088
37089 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37090 comparison.
37091
46eeb6a2 370922009-07-05 Pavel Roskin <proski@gnu.org>
37093
bab74958 37094 * include/grub/i386/linux.h (struct linux_kernel_params):
37095 Restore padding3, it's still needed.
37096
46eeb6a2 37097 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37098 FreeBSD.
37099 * util/osdetect.lua: Likewise.
37100
b4a1dc79 371012009-07-05 Bean <bean123ch@gmail.com>
37102
37103 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37104
37105 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37106 (grub_lua_getenv): Likewise.
37107 (grub_lua_setenv): Likewise.
37108 (save_errno): New function.
37109 (push_result): Likewise.
37110 (grub_lua_enum_device): Likewise.
37111 (grub_lua_enum_file): Likewise.
37112 (grub_lua_file_open): Likewise.
37113 (grub_lua_file_close): Likewise.
37114 (grub_lua_file_seek): Likewise.
37115 (grub_lua_file_read): Likewise.
37116 (grub_lua_file_getline): Likewise.
37117 (grub_lua_file_getsize): Likewise.
37118 (grub_lua_file_getpos): Likewise.
37119 (grub_lua_file_eof): Likewise.
37120 (grub_lua_file_exist): Likewise.
37121 (grub_lua_add_menu): Likewise.
37122
37123 * script/lua/grub_lua.h (isupper): New inline function.
37124 (islower): Likewise.
37125 (ispunct): Likewise.
37126 (isxdigit): Likewise.
37127 (strcspn): Change to normal function.
37128 (strpbkr): New function declaration.
37129 (memchr): Likewise.
37130
37131 * script/lua/grub_main.c (scan_str): New function.
37132 (strcspn): Likewise.
37133 (strpbrk): Likewise.
37134 (memchr): Likewise.
37135
37136 * script/lua/linit.c (lualibs): Enable the string library.
37137
37138 * util/osdetect.lua: New file.
37139
2da92295 371402009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37141
37142 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37143 `capabilities' member.
37144
b2582ec9 371452009-07-02 Pavel Roskin <proski@gnu.org>
37146
37147 * genparttoollist.sh: Add missing newline at the end.
37148
32622956 371492009-07-01 Pavel Roskin <proski@gnu.org>
37150
87a7339e 37151 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37152
d23af54e 37153 * util/hostdisk.c (open_device): Remove `const' from
37154 `sysctl_size', as sysctlbyname() can change it (in this case it
37155 doesn't actually happen).
37156
c94b18a9 37157 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37158 using signed long int constants.
37159
c6cd3ef0 37160 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37161 constant to avoid a warning on FreeBSD.
37162
0df63420 37163 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37164 where it's needed.
37165
999577f1 37166 * Makefile.in: Install include/grub/machine symlink.
37167
6f41557f 37168 * Makefile.in: When installing symlinks, use "cp -fR", which
37169 works on FreeBSD and MacOSX.
37170 From Yves Blusseau <cl7m42e02@sneakemail.com>
37171
c8d22988 37172 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37173 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37174
1b96e952 37175 * util/misc.c: Move grub_reboot() and grub_halt() ...
37176 * util/grub-emu.c: ... here. Make main_env static.
37177 * include/grub/util/misc.h: Remove main_env.
37178
2ef0084d 37179 * kern/mm.c: Use correct format to print size_t.
37180
32622956 37181 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37182 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37183 * kern/powerpc/dl.c: Likewise.
37184 * kern/sparc64/dl.c: Likewise.
37185 * kern/x86_64/dl.c: Likewise.
37186
3f7f0cd0 371872009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37188
37189 Fix grub-emu build on sparc64-ieee1275.
37190
75421ca9 37191 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 37192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37193
211d06b5 371942009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37195
37196 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37197 (grub_reboot, grub_halt): New functions.
37198
37199 * util/i386/pc/misc.c: Delete. Update all users.
37200 * util/sparc64/ieee1275/misc.c: Likewise.
37201 * util/powerpc/ieee1275/misc.c: Likewise.
37202
aaf53e3c 372032009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37204
37205 * conf/i386.rmk (setjmp_mod_SOURCES)
37206 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37207 * conf/common.rmk (setjmp_mod_SOURCES)
37208 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37209 to use $(target_cpu).
37210 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37211 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37212 * conf/powerpc-ieee1275.rmk: Likewise.
37213 * conf/sparc64-ieee1275.rmk: Likewise.
37214
37215 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37216 $(target_cpu) for kern/$(target_cpu)/dl.c.
37217 * conf/i386-efi.rmk: Likewise.
37218 * conf/i386-ieee1275.rmk: Likewise.
37219 * conf/x86_64-efi.rmk: Likewise.
37220 * conf/i386-coreboot.rmk: Likewise.
37221 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37222 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37223 kern/$(target_cpu)/cache.S.
37224 * conf/sparc64-ieee1275.rmk: Likewise.
37225
a337130b 372262009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37227
37228 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37229 type to `grub_uint8_t', and adjust `padding9' accordingly.
37230
c6fe4d53 372312009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37232
b09db61d 37233 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37234
c6fe4d53 37235 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37236 assembly in final jump, using register constraints.
37237
b09db61d 37238 (grub_linux_boot): For text mode, initialize `have_vga' using
37239 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37240
37241 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37242 right before the final jump.
37243
37244 Set `video_mode' to 0x3.
37245
37246 Document initialization of `video_page', `video_mode' and
37247 `video_ega_bx'.
37248
28333ad0 372492009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37250
37251 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37252 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 37253 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 37254
02164e1b 372552009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37256
37257 Fix build on Debian / sparc.
37258
37259 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37260
18b6c557 372612009-06-28 Pavel Roskin <proski@gnu.org>
37262
85f2aab6 37263 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37264 fix a warning.
37265
18b6c557 37266 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37267
ad760f81 372682009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37269
37270 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37271 `err'.
37272
87a4623b 372732009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37274
37275 Revert r2338.
37276
37277 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37278 file can't be opened. grub_file_open() is already supposed to set
75421ca9 37279 grub_errno / grub_errmsg appropriately.
87a4623b 37280 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37281
8231fb77 372822009-06-27 Pavel Roskin <proski@gnu.org>
372832009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37284
37285 * include/grub/dl.h: Include grub/elf.h.
37286 (struct grub_dl): Add symtab field.
37287 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37288 GRUB_MODULES_MACHINE_READONLY.
37289 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37290 of the header for read-only modules.
37291 (grub_dl_unload): Free mod->symtab for read-only modules.
37292 * kern/i386/dl.c: Use mod->symtab.
37293 * kern/powerpc/dl.c: Likewise.
37294 * kern/sparc64/dl.c: Likewise.
37295 * kern/x86_64/dl.c: Likewise.
37296
37297 * conf/i386-qemu.rmk: New file.
37298 * kern/i386/qemu/startup.S: Likewise.
37299 * kern/i386/qemu/mmap.c: Likewise.
37300 * boot/i386/qemu/boot.S: Likewise.
37301 * include/grub/i386/qemu/time.h: Likewise.
37302 * include/grub/i386/qemu/serial.h: Likewise.
37303 * include/grub/i386/qemu/kernel.h: Likewise.
37304 * include/grub/i386/qemu/console.h: Likewise.
37305 * include/grub/i386/qemu/boot.h: Likewise.
37306 * include/grub/i386/qemu/init.h: Likewise.
37307 * include/grub/i386/qemu/machine.h: Likewise.
37308 * include/grub/i386/qemu/loader.h: Likewise.
37309 * include/grub/i386/qemu/memory.h: Likewise.
37310
37311 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37312 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37313 [qemu] (pkglib_IMAGES): Add `boot.img'.
37314 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37315 [qemu] (boot_img_FORMAT): New variables.
37316 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37317 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37318 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37319 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37320 [qemu] (kernel_img_FORMAT): New variables.
37321
37322 * configure.ac: Recognise `i386-qemu'.
37323
37324 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37325 (for no compression).
37326 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37327 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37328 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37329 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37330 ifdefs).
37331
97fe384e 373322009-06-27 Pavel Roskin <proski@gnu.org>
37333
37334 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37335 read.
37336 * efiemu/prepare32.c: Likewise.
37337 * efiemu/prepare64.c: Likewise.
37338
c402ab17 373392009-06-26 Pavel Roskin <proski@gnu.org>
37340
37341 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37342 * include/grub/elf.h: Define symbols without "32" or "64" based
37343 on GRUB_TARGET_WORDSIZE.
37344 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37345 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37346 ELF definitions.
37347 * efiemu/loadcore64.c: Likewise.
37348 * loader/i386/bsd32.c: Likewise.
37349 * loader/i386/bsd64.c: Likewise.
37350 * kern/dl.c: Remove own ELF definitions.
37351 * util/i386/efi/grub-mkimage.c: Likewise.
37352
9bbdfd4d 373532009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37354
37355 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37356 segment 0x0 unconditionally, because the reference generated by
37357 GAS is an absolute address.
37358
a42ce6e9 373592009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37360
37361 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37362 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37363
c952cf92 373642009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37365
37366 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37367 indexes. Check for -f explicitly.
cc3752ad 37368 (search_file): Improve error message.
37369 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 37370
132a0a59 373712009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37372
37373 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37374 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37375
387a140c 373762009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37377
37378 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37379 * conf/i386-ieee1275.rmk: Likewise.
37380 * conf/i386-coreboot.rmk: Likewise.
37381
37382 * kern/i386/pc/startup.S (grub_stop): Remove function.
37383 * kern/i386/ieee1275/startup.S: Likewise.
37384 * kern/i386/coreboot/startup.S: Likewise.
37385 * kern/i386/misc.S (grub_stop): New function.
37386
41da9665 373872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37388
37389 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37390 * kern/i386/realmode.S (real_to_prot): ... to here.
37391
bf337234 373922009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37393
37394 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37395 with `kernel.img'.
37396 (kernel_elf_SOURCES): Rename to ...
37397 (kernel_img_SOURCES): ... this.
37398 (kernel_elf_HEADERS): Rename to ...
37399 (kernel_img_HEADERS): ... this. Update all users.
37400 (kernel_elf_ASFLAGS): Rename to ...
37401 (kernel_img_ASFLAGS): ... this.
37402 (kernel_elf_CFLAGS): Rename to ...
37403 (kernel_img_CFLAGS): ... this.
37404 (kernel_elf_LDFLAGS): Rename to ...
37405 (kernel_img_LDFLAGS): ... this.
37406 * conf/i386-coreboot.rmk: Likewise.
37407 * conf/powerpc-ieee1275.rmk: Likewise.
37408
37409 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37410 with "kernel.img".
37411
f52196ff 374122009-06-21 Pavel Roskin <proski@gnu.org>
37413
c3cee413 37414 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37415 to match nested functions.
37416 * loader/sparc64/ieee1275/linux.c: Likewise.
37417
f52196ff 37418 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37419
58750afc 374202009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37421
37422 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37423 all i386 platforms.
37424
15355c7d 374252009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37426
37427 Fix asm file handling on ELF, and remove workarounds.
37428
37429 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 37430 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 37431 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37432 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37433
3f3ec72b 374342009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37435
37436 Load BSD ELF modules
37437
37438 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37439 and loader/i386/bsd64.c
37440 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37441 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37442 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37443 (grub_freebsd_load_elfmodule32): New declaration
37444 (grub_freebsd_load_elfmoduleobj64): Likewise
37445 (grub_freebsd_load_elf_meta32): Likewise
37446 (grub_freebsd_load_elf_meta64): Likewise
37447 (grub_freebsd_add_meta): Likewise
37448 (grub_freebsd_add_meta_module): Likewise
37449 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37450 (grub_freebsd_add_meta_module): Likewise and move module-specific
37451 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37452 (grub_cmd_freebsd): Add elf-kernel specific parts
37453 based on grub_freebsd_add_meta_module
37454 (grub_cmd_freebsd_module): Add type parsing moved from
37455 grub_freebsd_add_meta_module
37456 (grub_cmd_freebsd_module_elf): New function
37457 (cmd_freebsd_module_elf): New variable
37458 (GRUB_MOD_INIT): Register freebsd_module_elf
37459 * loader/i386/bsd32.c: New file
37460 * loader/i386/bsd64.c: Likewise
37461 * loader/i386/bsdXX.c: Likewise
37462 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37463 (grub_elf64_load): Likewise
37464 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37465 All users updated
37466 (grub_elf64_load_hook_t): Likewise
37467
0db15301 374682009-06-21 Colin Watson <cjwatson@ubuntu.com>
37469
37470 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37471 variable.
37472 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37473 don't write a menu entry for recovery mode.
37474
546796c1 374752009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37476
37477 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37478 after it's no longer needed.
37479
cd7310d5 374802009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37481
37482 * include/grub/i386/loader.h (grub_linux_prot_size)
37483 (grub_linux_tmp_addr, grub_linux_real_addr)
37484 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37485 GRUB_MACHINE_PCBIOS.
37486 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37487 common grub_util_info() call to ...
37488 (generate_image): ... here.
37489 Fix use of uninitialized memory, comparison of signed with
37490 unsigned integers and memory leak.
37491 Remove bogus module address message.
37492
ab32d3b5 374932009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37494
37495 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37496 grub_raid_register
37497 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37498
024ef597 374992009-06-19 Pavel Roskin <proski@gnu.org>
37500
37501 * configure.ac: Remove stray AC_MSG_CHECKING.
37502
3ac72b51 375032009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37504
37505 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 37506
e14cd814 375072009-06-18 Pavel Roskin <proski@gnu.org>
37508
37509 * conf/common.rmk: Add fs_file.mod.
37510 * disk/fs_file.c: New file.
37511 * include/grub/disk.h (enum grub_disk_dev_id): Add
37512 GRUB_DISK_DEVICE_FILE_ID.
37513
26586d98 375142009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37515
37516 Fix build with Apple's toolchain. Part 2
37517
37518 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37519 a fake start
37520
26de2bcd 375212009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37522
37523 Fix build with Apple's toolchain. Part 1
37524
37525 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37526 for long calls
37527 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 37528 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 37529 Apple's toolchain
37530
09b3490b 375312009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37532
37533 Fix warnings
37534
37535 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37536 (decomp_block): initialize ch
37537 use grub_memcpy instead of memcpy
37538
c22a006a 375392009-06-17 Pavel Roskin <proski@gnu.org>
37540
d3638678 37541 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37542 version, use declarations needed to use vga_text as the startup
37543 console.
37544
c22a006a 37545 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37546 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37547 the kernel.
37548 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37549 and grub_at_keyboard_fini(), it's done on module load and
37550 unload.
37551
05b129e0 375522009-06-17 Felix Zielcke <fzielcke@z-51.de>
37553
37554 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37555 file can't be found.
37556 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37557
cf24ed9e 375582009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37559
37560 Fix newline handling
37561
37562 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 37563 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 37564 (grub_script_yylex): don't segfault on unterminated script
37565 newline terminates command and variable
37566
74aa8e4b 375672009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37568
37569 avoid double grub_adjust_range call. Bug reported by David Simner
37570
37571 * kern/disk.c (grub_disk_write): change to raw disk access before
37572 calling disk_read
37573
1bd265f3 375742009-06-17 Colin Watson <cjwatson@ubuntu.com>
37575
37576 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37577 spaces, for the benefit of help2man.
37578 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37579
a2d08c06 375802009-06-16 Pavel Roskin <proski@gnu.org>
37581
37582 * kern/i386/halt.c: Include grub/machine/init.h.
37583 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37584
b97bcb19 375852009-06-16 Felix Zielcke <fzielcke@z-51.de>
37586
37587 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37588 drivemap menuentry.
37589
0644f96c 375902009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37591
37592 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37593 `echo' command.
37594
3ef17a2e 375952009-06-16 Pavel Roskin <proski@gnu.org>
37596
37597 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37598 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37599 save %dx, we only need %dl and we never change it.
37600 * boot/i386/pc/cdboot.S: Don't set the root drive.
37601 * boot/i386/pc/pxeboot.S: Likewise.
37602 * include/grub/i386/pc/boot.h: Remove
37603 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37604 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37605 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37606 * kern/i386/pc/init.c (make_install_device): Remove references
37607 to grub_root_drive.
37608 * kern/i386/pc/startup.S: Likewise.
37609 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37610
693fe637 376112009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37612
37613 xnu_uuid command
37614
37615 * commands/xnu_uuid.c: new file
37616 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37617 (xnu_uuid_mod_SOURCES): new variable
37618 (xnu_uuid_mod_CFLAGS): likewise
37619 (xnu_uuid_mod_LDFLAGS): likewise
37620 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37621 * conf/i386-ieee1275.rmk: likewise
37622 * conf/i386-pc.rmk: likewise
37623 * conf/powerpc-ieee1275.rmk: likewise
37624 * conf/sparc64-ieee1275.rmk: likewise
37625 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37626
c9da87d0 376272009-06-16 Pavel Roskin <proski@gnu.org>
37628
37629 * configure.ac: Avoid '==' in test command, it's not portable.
37630
9c6f4596 376312009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37632
37633 Probe command
37634
37635 * commands/probe.c: new file
37636 * conf/common.rmk (pkglib_MODULES): add probe.mod
37637 (probe_mod_SOURCES): new variable
37638 (probe_mod_CFLAGS): likewise
37639 (probe_mod_LDFLAGS): likewise
37640 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37641 * conf/i386-ieee1275.rmk: likewise
37642 * conf/i386-pc.rmk: likewise
37643 * conf/powerpc-ieee1275.rmk: likewise
37644 * conf/sparc64-ieee1275.rmk: likewise
37645
70b7f9fd 376462009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37647
37648 Fix handling of string like \"hello\" and "a
37649 b"
37650
37651 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37652 (grub_script_yylex): fix parsing of quoting, escaping and newline
37653
71c79a6b 376542009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37655
dd74360c 37656 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 37657 handling
dd74360c 37658
0644f96c 376592009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 37660
37661 * util/grub-mkconfig.in: Fix parsing of --output option.
37662
e40893c3 376632009-06-12 Pavel Roskin <proski@gnu.org>
37664
37665 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37666 genmk.rb don't need to be generated or installed.
37667
3a1acfe2 376682009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37669
37670 * commands/i386/pc/drivemap_int13h.S: add more comments
37671
3a4575d4 376722009-06-11 Pavel Roskin <proski@gnu.org>
37673
0658e928 37674 * Makefile.in (uninstall): Uninstall manuals.
37675
ca0388f0 37676 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37677 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37678 and update-grub_lib in two places.
37679 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37680
e3b27c39 37681 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37682 a compiler warning.
37683
3a4575d4 37684 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37685 `entry_lo' to fix variable shadowing.
37686
af1f4f55 376872009-06-11 Christian Franke <franke@computer.org>
37688
37689 * kern/misc.c (__enable_execute_stack): Add missing return type
37690 to prevent gcc warning.
37691
5225e649 376922009-06-11 Felix Zielcke <fzielcke@z-51.de>
37693
37694 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37695
7d83bd47 376962009-06-11 Pavel Roskin <proski@gnu.org>
37697
c1cb63ba 37698 * Makefile.in: Don't rely on any scripts being executable.
37699 Always use $(SHELL) to run shell scripts.
37700
7d83bd47 37701 * configure.ac: Always define ___main if using -nostdlib. This
37702 fixes tests on Cygwin.
37703
948f48e7 377042009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37705
37706 UDF fix
37707
7d83bd47 37708 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 37709 is in bytes and not in blocks
7d83bd47 37710
8ada9bc1 377112009-06-11 Pavel Roskin <proski@gnu.org>
37712
37713 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37714 warning.
37715
25ad2323 377162009-06-11 Felix Zielcke <fzielcke@z-51.de>
37717
37718 * util/grub.d/30_os-prober.in: Fix a comment. Source
37719 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37720 to set the root device. Place drivemap command in the generated
37721 chain entry.
37722
e65acb0c 377232009-06-11 Pavel Roskin <proski@gnu.org>
37724
37725 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37726 have long been resolved.
37727
f285fe2d 377282009-06-11 Colin Watson <cjwatson@ubuntu.com>
37729
bd47b0b5 37730 * util/grub.d/10_linux.in: Capitalise "Linux".
37731
f285fe2d 37732 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37733
a0c62e4e 377342009-06-11 Pavel Roskin <proski@gnu.org>
37735
b6783cb2 37736 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37737 fix a gcc warning and ensure that the function won't ever exit.
37738
dde032e8 37739 * kern/i386/ieee1275/init.c: Add missing prototype for
37740 grub_stop_floppy().
37741
22cd079d 37742 * loader/ieee1275/multiboot2.c [__i386__]: Include
37743 grub/cpu/multiboot.h.
37744
a0c62e4e 37745 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37746 casts to short - they are not portable and cause warnings. Fix
37747 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37748
63963d17 377492009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37750
37751 Drivemap fixes
37752
37753 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37754 new function
37755 (grub_get_root_biosnumber_saved): new variable
37756 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37757 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 37758 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 37759 %dx after the call if necessary
37760 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37761 (boot_mod_SOURCES): remove
37762 (boot_mod_CFLAGS): remove
37763 (boot_mod_LDFLAGS): remove
37764 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37765 (boot_mod_SOURCES): new variable
37766 (boot_mod_CFLAGS): likewise
37767 (boot_mod_LDFLAGS): likewise
37768 * conf/i386-efi.rmk: likewise
37769 * conf/i386-ieee1275.rmk: likewise
37770 * conf/i386-pc.rmk: likewise
37771 * conf/powerpc-ieee1275.rmk: likewise
37772 * conf/sparc64-ieee1275.rmk: likewise
37773 * conf/x86_64-efi.rmk: likewise
37774 * include/grub/i386/pc/biosnum.h: new file
37775 * lib/i386/pc/biosnum.c: likewise
37776 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37777 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37778 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 37779
33abf7ae 377802009-06-10 Pavel Roskin <proski@gnu.org>
37781
5ac35b35 37782 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37783 Use separate variables. Read only the file size at the end, but
37784 not the checksum that we don't use.
37785
5c5215d5 37786 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37787 Adjust all callers.
37788
27d5fef7 37789 * kern/ieee1275/openfw.c: Remove libc includes.
37790 * kern/ieee1275/cmain.c: Likewise.
37791 * include/grub/ieee1275/ieee1275.h: Likewise.
37792
33abf7ae 37793 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37794 compiler warnings.
37795
19d50c2b 377962009-06-10 Felix Zielcke <fzielcke@z-51.de>
37797
37798 * Makefile.in: Remove all trailing whitespace.
37799 * conf/i386-pc.rmk: Likewise.
37800 * conf/powerpc-ieee1275.rmk: Likewise.
37801 * conf/sparc64-ieee1275.rmk: Likewise.
37802 * docs/grub.texi: Likewise.
37803 * docs/texinfo.tex: Likewise.
37804 * disk/fs_uuid.c: Likewise.
37805 * disk/lvm.c: Likewise.
37806 * disk/scsi.c: Likewise.
37807 * disk/ata.c: Likewise.
37808 * disk/ieee1275/ofdisk.c: Likewise.
37809 * disk/i386/pc/biosdisk.c: Likewise.
37810 * disk/host.c: Likewise.
37811 * disk/raid.c: Likewise.
37812 * disk/efi/efidisk.c: Likewise.
37813 * disk/usbms.c: Likewise.
37814 * disk/memdisk.c: Likewise.
37815 * disk/loopback.c: Likewise.
37816 * kern/powerpc/dl.c: Likewise.
37817 * kern/device.c: Likewise.
37818 * kern/dl.c: Likewise.
37819 * kern/sparc64/dl.c: Likewise.
37820 * kern/ieee1275/ieee1275.c: Likewise.
37821 * kern/term.c: Likewise.
37822 * kern/fs.c: Likewise.
37823 * kern/i386/dl.c: Likewise.
37824 * kern/i386/pc/startup.S: Likewise.
37825 * kern/i386/pc/init.c: Likewise.
37826 * kern/i386/pc/mmap.c: Likewise.
37827 * kern/i386/pc/lzo1x.S: Likewise.
37828 * kern/i386/ieee1275/init.c: Likewise.
37829 * kern/i386/realmode.S: Likewise.
37830 * kern/i386/tsc.c: Likewise.
37831 * kern/partition.c: Likewise.
37832 * kern/corecmd.c: Likewise.
37833 * kern/file.c: Likewise.
37834 * kern/efi/efi.c: Likewise.
37835 * kern/efi/init.c: Likewise.
37836 * kern/efi/mm.c: Likewise.
37837 * kern/main.c: Likewise.
37838 * kern/err.c: Likewise.
37839 * kern/env.c: Likewise.
37840 * kern/disk.c: Likewise.
37841 * kern/generic/millisleep.c: Likewise.
37842 * kern/generic/rtc_get_time_ms.c: Likewise.
37843 * kern/misc.c: Likewise.
37844 * kern/parser.c: Likewise.
37845 * genmk.rb: Likewise.
37846 * configure.ac: Likewise.
37847 * boot/i386/pc/diskboot.S: Likewise.
37848 * boot/i386/pc/pxeboot.S: Likewise.
37849 * boot/i386/pc/boot.S: Likewise.
37850 * boot/i386/pc/lnxboot.S: Likewise.
37851 * boot/i386/pc/cdboot.S: Likewise.
37852 * parttool/pcpart.c: Likewise.
37853 * video/readers/tga.c: Likewise.
37854 * video/video.c: Likewise.
37855 * video/bitmap.c: Likewise.
37856 * lib/envblk.c: Likewise.
37857 * lib/i386/setjmp.S: Likewise.
37858 * fs/xfs.c: Likewise.
37859 * fs/afs.c: Likewise.
37860 * fs/fat.c: Likewise.
37861 * fs/ntfs.c: Likewise.
37862 * fs/udf.c: Likewise.
37863 * fs/affs.c: Likewise.
37864 * fs/iso9660.c: Likewise.
37865 * fs/hfs.c: Likewise.
37866 * fs/fshelp.c: Likewise.
37867 * fs/ext2.c: Likewise.
37868 * fs/jfs.c: Likewise.
37869 * fs/reiserfs.c: Likewise.
37870 * fs/hfsplus.c: Likewise.
37871 * fs/minix.c: Likewise.
37872 * fs/cpio.c: Likewise.
37873 * fs/sfs.c: Likewise.
37874 * fs/ufs.c: Likewise.
37875 * efiemu/prepare.c: Likewise.
37876 * efiemu/loadcore_common.c: Likewise.
37877 * efiemu/runtime/efiemu.sh: Likewise.
37878 * efiemu/runtime/efiemu.S: Likewise.
37879 * efiemu/runtime/efiemu.c: Likewise.
37880 * efiemu/pnvram.c: Likewise.
37881 * efiemu/main.c: Likewise.
37882 * efiemu/i386/pc/cfgtables.c: Likewise.
37883 * efiemu/i386/loadcore64.c: Likewise.
37884 * efiemu/i386/loadcore32.c: Likewise.
37885 * efiemu/loadcore.c: Likewise.
37886 * efiemu/symbols.c: Likewise.
37887 * efiemu/mm.c: Likewise.
37888 * include/grub/autoefi.h: Likewise.
37889 * include/grub/datetime.h: Likewise.
37890 * include/grub/term.h: Likewise.
37891 * include/grub/hfs.h: Likewise.
37892 * include/grub/lvm.h: Likewise.
37893 * include/grub/i386/tsc.h: Likewise.
37894 * include/grub/i386/linux.h: Likewise.
37895 * include/grub/i386/xnu.h: Likewise.
37896 * include/grub/i386/efiemu.h: Likewise.
37897 * include/grub/i386/pc/biosdisk.h: Likewise.
37898 * include/grub/i386/pc/memory.h: Likewise.
37899 * include/grub/i386/pc/vbe.h: Likewise.
37900 * include/grub/parttool.h: Likewise.
37901 * include/grub/video.h: Likewise.
37902 * include/grub/memory.h: Likewise.
37903 * include/grub/fs.h: Likewise.
37904 * include/grub/partition.h: Likewise.
37905 * include/grub/xnu.h: Likewise.
37906 * include/grub/efi/api.h: Likewise.
37907 * include/grub/efi/pe32.h: Likewise.
37908 * include/grub/efi/memory.h: Likewise.
37909 * include/grub/multiboot.h: Likewise.
37910 * include/grub/usbdesc.h: Likewise.
37911 * include/grub/multiboot2.h: Likewise.
37912 * include/grub/acpi.h: Likewise.
37913 * include/grub/efiemu/efiemu.h: Likewise.
37914 * include/grub/disk.h: Likewise.
37915 * include/grub/ieee1275/ieee1275.h: Likewise.
37916 * include/grub/net.h: Likewise.
37917 * include/grub/machoload.h: Likewise.
37918 * include/grub/macho.h: Likewise.
37919 * include/multiboot.h: Likewise.
37920 * genmoddep.awk: Likewise.
37921 * normal/main.c: Likewise.
37922 * normal/menu_entry.c: Likewise.
37923 * normal/menu_viewer.c: Likewise.
37924 * normal/completion.c: Likewise.
37925 * normal/cmdline.c: Likewise.
37926 * normal/misc.c: Likewise.
37927 * normal/datetime.c: Likewise.
37928 * bus/usb/usbtrans.c: Likewise.
37929 * bus/usb/ohci.c: Likewise.
37930 * bus/usb/uhci.c: Likewise.
37931 * bus/usb/usb.c: Likewise.
37932 * mmap/efi/mmap.c: Likewise.
37933 * mmap/i386/pc/mmap_helper.S: Likewise.
37934 * mmap/i386/pc/mmap.c: Likewise.
37935 * mmap/i386/mmap.c: Likewise.
37936 * mmap/i386/uppermem.c: Likewise.
37937 * mmap/mmap.c: Likewise.
37938 * commands/acpi.c: Likewise.
37939 * commands/echo.c: Likewise.
37940 * commands/blocklist.c: Likewise.
37941 * commands/loadenv.c: Likewise.
37942 * commands/usbtest.c: Likewise.
37943 * commands/boot.c: Likewise.
37944 * commands/parttool.c: Likewise.
37945 * commands/search.c: Likewise.
37946 * commands/cat.c: Likewise.
37947 * commands/i386/pc/play.c: Likewise.
37948 * commands/i386/pc/drivemap.c: Likewise.
37949 * commands/i386/pc/vbeinfo.c: Likewise.
37950 * commands/i386/pc/acpi.c: Likewise.
37951 * commands/i386/pc/vbetest.c: Likewise.
37952 * commands/ls.c: Likewise.
37953 * commands/cmp.c: Likewise.
37954 * commands/test.c: Likewise.
37955 * commands/efi/acpi.c: Likewise.
37956 * commands/gptsync.c: Likewise.
37957 * commands/help.c: Likewise.
37958 * partmap/amiga.c: Likewise.
37959 * partmap/apple.c: Likewise.
37960 * partmap/acorn.c: Likewise.
37961 * partmap/pc.c: Likewise.
37962 * partmap/sun.c: Likewise.
37963 * partmap/gpt.c: Likewise.
37964 * script/sh/lexer.c: Likewise.
37965 * script/sh/function.c: Likewise.
37966 * font/font.c: Likewise.
37967 * font/font_cmd.c: Likewise.
37968 * loader/powerpc/ieee1275/linux.c: Likewise.
37969 * loader/efi/chainloader.c: Likewise.
37970 * loader/multiboot_loader.c: Likewise.
37971 * loader/macho.c: Likewise.
37972 * loader/i386/multiboot.c: Likewise.
37973 * loader/i386/linux.c: Likewise.
37974 * loader/i386/pc/linux.c: Likewise.
37975 * loader/i386/pc/multiboot2.c: Likewise.
37976 * loader/i386/pc/chainloader.c: Likewise.
37977 * loader/i386/pc/xnu.c: Likewise.
37978 * loader/i386/bsd_trampoline.S: Likewise.
37979 * loader/i386/efi/linux.c: Likewise.
37980 * loader/i386/multiboot_elfxx.c: Likewise.
37981 * loader/i386/bsd_helper.S: Likewise.
37982 * loader/i386/bsd.c: Likewise.
37983 * loader/i386/linux_trampoline.S: Likewise.
37984 * loader/i386/xnu_helper.S: Likewise.
37985 * loader/i386/xnu.c: Likewise.
37986 * loader/i386/bsd_pagetable.c: Likewise.
37987 * loader/i386/multiboot_helper.S: Likewise.
37988 * loader/xnu.c: Likewise.
37989 * loader/xnu_resume.c: Likewise.
37990 * io/gzio.c: Likewise.
37991 * term/efi/console.c: Likewise.
37992 * term/terminfo.c: Likewise.
37993 * term/ieee1275/ofconsole.c: Likewise.
37994 * term/i386/pc/serial.c: Likewise.
37995 * term/i386/pc/vesafb.c: Likewise.
37996 * term/i386/pc/vga.c: Likewise.
37997 * term/usb_keyboard.c: Likewise.
37998 * term/gfxterm.c: Likewise.
37999 * aclocal.m4: Likewise.
38000 * util/lvm.c: Likewise.
38001 * util/grub.d/30_os-prober.in: Likewise.
38002 * util/grub.d/10_hurd.in: Likewise.
38003 * util/console.c: Likewise.
38004 * util/grub-macho2img.c: Likewise.
38005 * util/grub-probe.c: Likewise.
38006 * util/hostfs.c: Likewise.
38007 * util/i386/pc/grub-mkimage.c: Likewise.
38008 * util/i386/pc/grub-setup.c: Likewise.
38009 * util/i386/efi/grub-mkimage.c: Likewise.
38010 * util/grub-mkconfig.in: Likewise.
38011 * util/raid.c: Likewise.
38012 * util/resolve.c: Likewise.
38013 * util/grub-mkdevicemap.c: Likewise.
38014 * util/grub-emu.c: Likewise.
38015 * util/getroot.c: Likewise.
38016 * util/hostdisk.c: Likewise.
38017 * util/usb.c: Likewise.
38018 * util/grub-editenv.c: Likewise.
38019 * util/misc.c: Likewise.
38020
d2d49665 380212009-06-10 Felix Zielcke <fzielcke@z-51.de>
38022
38023 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38024 `genparttoollist.sh'.
38025 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38026 Add `*.sh' to the list find searches for and change `mdate.sh'
38027 to `mdate-sh'.
38028
fe052e37 380292009-06-10 Pavel Roskin <proski@gnu.org>
38030
2763ac18 38031 * include/grub/multiboot2.h: Provide compatibility defines for
38032 multiboot2.h.
38033 * include/multiboot2.h: Include stdint.h only if needed, using
38034 angle brackets.
38035 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38036 grub/multiboot2.h.
38037 * loader/ieee1275/multiboot2.c: Likewise.
38038 * loader/multiboot2.c: Likewise.
38039 * loader/multiboot_loader.c: Likewise.
38040
437e6adc 38041 * configure.ac: Use -nostdlib when probing for the target. It
38042 should not be required to have libc for the target.
38043
06a6836c 38044 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38045 they fail without libc headers for the target.
38046 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38047 exports.
38048 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38049 preprocessor conditionals.
38050
fe052e37 38051 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38052 build system doesn't need to be aware of the tar.c internals.
38053
afd22553 380542009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 38055
afd22553 38056 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 38057
6b787c4f 380582009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38059
38060 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38061 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38062
380632009-06-09 Felix Zielcke <fzielcke@z-51.de>
38064
38065 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 38066 aren't available if ata.mod gets used.
6b787c4f 38067
473d1e45 380682009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 38069
473d1e45 38070 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 38071 initialising controller.
473d1e45 38072 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 38073
255a27d4 380742009-06-08 Felix Zielcke <fzielcke@z-51.de>
38075
38076 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38077 to choose between ata and biosdisk module on i386-pc.
38078
473d1e45 380792009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 38080
d55842d8 38081 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38082 Subclass and Programming Interface fields in terms of the 3 byte
38083 Class Code register.
38084 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38085
fa5db0b1 38086 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38087 interface is OHCI. Add grub_dprintf for symmetry with
38088 bus/usb/uhci.c.
38089 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38090 interface is UHCI. Add interf variable for programming
38091 interface. Print interface with class/subclass.
38092
c0947beb 38093 * bus/usb/ohci.c: Set interf with correct field.
38094
69da8877 38095 * bus/usb/uhci.c: Remove unneeded doubled lines.
38096 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38097 Remove whitespace inside comment.
38098
9e172e30 380992009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38100
38101 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38102 as fallback an equivalent option without depth.
38103
de65ee2b 381042009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38105
38106 Not fail if unable to retrieve C/H/S on LBA disks
38107
473d1e45 38108 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 38109 if unable to retrieve C/H/S on LBA disks
38110
b57ea2c9 381112009-06-08 Pavel Roskin <proski@gnu.org>
38112
38113 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38114 about aliasing.
38115
af361263 381162009-06-08 Felix Zielcke <fzielcke@z-51.de>
38117
38118 * Makefile.in (uninstall): Remove all $lib_DATA files.
38119
4c9ec6b3 381202009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38121
38122 Bugfix: install on partitionless device
38123
38124 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38125 is a whole disk
38126
e76fc924 381272009-06-08 Felix Zielcke <fzielcke@z-51.de>
38128
38129 * Makefile.in (uninstall): Remove all $include_DATA files.
38130
ba5a0d05 381312009-06-08 Felix Zielcke <fzielcke@z-51.de>
38132
38133 * commands/true.c: New file. Implement the true and false commands.
38134 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38135 (true_mod_SOURCES): New variable.
38136 (true_mod_CFLAGS): Likewise.
38137 (true_mod_LDFLAGS): Likewise.
38138
c8048e32 381392009-06-05 Colin D Bennett <colin@gibibit.com>
38140
38141 Optimized font character lookup using binary search instead of linear
38142 search. Fonts now are required to have the character index ordered by
38143 code point.
38144
38145 * font/font.c (load_font_index): Verify that fonts have ordered
38146 character indices.
38147 (find_glyph): Use binary search instead of linear search to find a
38148 character in a font.
38149
408305be 381502009-06-05 Michael Scherer <misc@mandriva.org>
38151
38152 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38153 uses case sensitive btree.
38154 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38155 only for case insensitive filesystems.
38156
8ee1e0d9 381572009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38158
38159 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38160 * conf/common.rmk (search_mod_CFLAGS): likewise
38161
a9966eb1 381622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38163
473d1e45 38164 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 38165 compensate a compiler bug
38166
9e7100fb 381672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38168
473d1e45 38169 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 38170 instead of '\b'
473d1e45 38171
ede21d71 381722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38173
38174 Definitions for creating asm symbols with Apple's CC
38175
38176 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38177 [APPLE_CC] (VARIABLE): likewise
38178
9dbf7653 381792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38180
38181 Disable lnxboot.img when compiled
38182 with Apple's CC
38183
38184 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38185 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38186 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38187 [! APPLE_CC] (CODE_LENG): skip
38188 [! APPLE_CC] (setup_sects): likewise
38189 [! APPLE_CC]: skip filling
473d1e45 38190
e93cdc3d 381912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38192
38193 Address in trampolines based on 32-bit registers when compiled
38194 with Apple's CC
38195
473d1e45 38196 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 38197 for addresses
38198 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38199
6c688477 382002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38201
38202 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38203
38204 * kern/misc.c [APPLE_CC] (memcpy): new function
38205 [APPLE_CC] (memmove): likewise
38206 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 38207 (memcpy): define alias conditionally on !APPLE_CC
6c688477 38208 (memset): likewise
38209 (abort): likewise
38210 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38211 APPLE_CC are defined
38212 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38213 (grub_assert_fail): make prototype conditional
38214
e37ffc5c 382152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38216
38217 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38218
473d1e45 38219 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38220 grub-macho2img
e37ffc5c 38221 (CLEANFILES): add grub-macho2img
38222 (grub_macho2img_SOURCES): new variable
38223 * kern/i386/pc/startup.S (bss_start): new variable
38224 (bss_end): likewise
38225 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38226 * util/grub-macho2img.c: new file
38227
cf00df31 382282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38229
38230 Use objconv when compiling with Apple's CC
38231
38232 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38233 (efiemu64.o): likewise
38234 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38235 when compiling with Apple's CC
38236 (efiemu64_s.o): likewise
38237 * configure.ac: check for objconv when compiling with Apple's CC
38238 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 38239
d119a20c 382402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38241
38242 Define segment as well as section when compiling with
38243 Apple's CC
38244
38245 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38246 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38247 (efiemu_convert_pointer): likewise
38248 (efiemu_set_virtual_address_map): likewise
38249 (efiemu_convert_pointer): likewise
38250 (efiemu_getcrc32): likewise
38251 (init_crc32_table): likewise
38252 (reflect): likewise
38253 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38254 (GRUB_MOD_DEP): likewise
473d1e45 38255
c8600122 382562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38257
38258 Allow a compilation without -mcmodel=large
38259
38260 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38261 when compiled without -mcmodel=large
473d1e45 38262 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 38263 without -mcmodel=large
473d1e45 38264 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 38265 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 38266
e8df1d4e 382672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38268
38269 Remove nested functions in efiemu core
38270
38271 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 38272
cc6c3ac1 382732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38274
38275 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38276
38277 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38278 temporary storage
473d1e45 38279 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38280 using Apple's CC
cc6c3ac1 38281 (grub_cpu_is_tsc_supported): likewise
38282 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 38283
3e325901 382842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38285
38286 Absolute addressing through constant with Apple's cc
38287
38288 * kern/i386/pc/startup.S: Define necessary constants
38289 and address through it when using ABS with Apple's CC
38290 * boot/i386/pc/diskboot.S: likewise
38291 * boot/i386/pc/boot.S: likewise
38292 * boot/i386/pc/lnxboot.S: likewise
38293 * boot/i386/pc/cdboot.S: likewise
38294 * mmap/i386/pc/mmap_helper.S: likewise
38295 * commands/i386/pc/drivemap_int13h.S: likewise
38296
2b167a72 382972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38298
38299 Check if compiler is apple cc
38300
38301 * Makefile.in (ASFLAGS): new variable
38302 (TARGET_ASFLAGS): likewise
38303 (TARGET_MODULE_FORMAT): likewise
38304 (TARGET_APPLE_CC): likewise
38305 (OBJCONV): likewise
38306 (TARGET_IMG_CFLAGS): likewise
38307 (TARGET_CPPFLAGS): add includedir
38308 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38309 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38310 Check for linker script only if compiler isn't Apple's CC
38311 (TARGET_MODULE_FORMAT): set
38312 (TARGET_APPLE_CC): likewise
38313 (TARGET_ASFLAGS): likewise
38314 (ASFLAGS): likewise
38315 Check for objcopy only if compiler isn't Apple's CC
38316 Check for BSS symbol only if compiler isn't Apple's CC
38317 * genmk.rb: adapt nm options if we use Apple's utils
38318 * aclocal.m4 (grub_apple_cc): new test
38319 (grub_apple_target_cc): likewise
473d1e45 38320
fb14123e 383212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38322
38323 Simplify sed expressions and improve awk
38324
38325 * Makefile.in (install-local): simplify sed expression
38326 * gencmdlist.sh: likewise
38327 * genmoddep.awk: avoid adding module as a dependency of itself
38328
5b889789 383292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38330
38331 Add missing start symbols
38332
38333 * boot/i386/pc/boot.S: add start
fb14123e 38334 * boot/i386/pc/pxeboot.S: likewise
473d1e45 38335
fd2bf2e3 383362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38337
38338 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 38339
38340 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 38341 (relocate_addresses): consider both r_addend and value at offset
38342 (make_mods_section): zerofill modinfo and header
38343 (convert_elf): write prefix here
473d1e45 38344
5389763d 383452009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38346
38347 Use .asciz instead of .string
38348
38349 * i386/pc/diskboot.S: use .asciz instead of .string
38350 * i386/pc/boot.S: likewise
38351 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38352 (GRUB_MOD_NAME): likewise
473d1e45 38353
3eb5ed4e 383542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38355
38356 gfxpayload support
38357
38358 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38359 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38360 (grub_video_setup): remove
38361 (grub_video_set_mode): new prototype
38362 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38363 (vid_mode): remove
38364 (linux_vesafb_res): compile only on PCBIOS
38365 (grub_linux_boot): support gfxpayload
38366 * loader/i386/pc/xnu.c (video_hook): new function
38367 (grub_xnu_set_video): support gfxpayload
38368 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38369 (DEFAULT_VIDEO_HEIGHT): likewise
38370 (DEFAULT_VIDEO_FLAGS): likewise
38371 (DEFAULT_VIDEO_MODE): new definition
38372 (video_hook): new function
38373 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 38374 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 38375 loading xnu
38376 * video/video.c (grub_video_setup): removed
473d1e45 38377 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 38378 grub_video_setup
38379
4b0e1143 383802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38381
38382 Avoid calling biosdisk in drivemap
38383
38384 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38385 (revparse_biosdisk): likewise
38386 (list_mappings): derive name from id directly
38387 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 38388
fda6cb98 383892009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38390
38391 Script fixes
38392
38393 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38394 (grub_lexer_param): add tokenonhold
38395 (grub_script_create_cmdline): remove cmdline. All callers updated
38396 (grub_script_function_create): make functionname
38397 grub_script_arg. All callers updated
38398 (grub_script_execute_argument_to_string): new prototype
38399 * kern/parser.c (state_transitions): reorder
38400 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 38401 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 38402 make global
38403 (grub_script_execute_cmdline): use new format
38404 * script/sh/function.c (grub_script_function_create): make functionname
38405 grub_script_arg. All callers updated
473d1e45 38406 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 38407 (grub_script_yylex): remove
38408 (grub_script_yylex2): renamed to ...
38409 (grub_script_yylex): ...renamed
38410 parse the expressions like a${b}c
38411 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38412 (GRUB_PARSER_TOKEN_VAR): remove
38413 (GRUB_PARSER_TOKEN_NAME): likewise
38414 ("if"): declare as typeless
38415 ("while"): likewise
38416 ("function"): likewise
38417 ("else"): likewise
38418 ("then"): likewise
38419 ("fi"): likewise
38420 (text): remove
38421 (argument): likewise
38422 (script): accept empty scripts and make exit on error
38423 (arguments): use GRUB_PARSER_TOKEN_ARG
38424 (function): likewise
38425 (command): move error handling to script
38426 (menuentry): move grub_script_lexer_ref before
473d1e45 38427 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 38428 argument. All callers updated
38429
f4448a07 384302009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38431
38432 Prevent GRUB from probing floppies during boot.
38433
38434 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38435 * commands/search.c (options): Add --no-floppy.
38436 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38437 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38438 --no-floppy when searching for UUIDs.
38439
2bf5885a 384402009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38441
38442 Simplify the code duplication in commands/search.c.
38443
38444 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38445 (search_fs): ... this. Update all users.
38446
f6fd460a 384472009-06-03 Felix Zielcke <fzielcke@z-51.de>
38448
38449 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38450
cbb3c83e 384512009-05-28 Pavel Roskin <proski@gnu.org>
38452
57788cfd 38453 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38454 Remove the original symlink explicitly.
38455
cbb3c83e 38456 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38457 just one slash. That's how grub_fshelp_find_file() does it.
38458
cd0d5e30 384592009-05-26 Pavel Roskin <proski@gnu.org>
38460
f0f8bbe2 38461 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38462 to `str'.
38463
cd0d5e30 38464 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38465 possibly unused.
38466
8c2cab51 384672009-05-25 Christian Franke <franke@computer.org>
38468
38469 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38470 register.
38471 (grub_atapi_identify): Add wait after drive select.
38472 (grub_ata_identify): Do more strict status register check before
38473 calling grub_atapi_identify (). Suppress error message if status
38474 register is 0x00 after command failure. Add status register
38475 check after PIO read to avoid bogus identify due to stuck DRQ.
38476 Thanks to Pavel Roskin for testing.
38477 (grub_device_initialize): Remove unsafe status register check.
38478 Thanks to 'phcoder' for problem report and patch.
38479 Prevent sign extension in debug message.
38480
230c0ad6 384812009-05-23 Colin D Bennett <colin@gibibit.com>
38482
38483 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38484 definition file, and functions defined in `normal/menu.c' have had
38485 their prototypes moved to `include/grub/menu.h' for consistency.
38486
38487 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38488 from normal.h.
38489 (grub_menu_get_entry): Likewise.
38490 (grub_menu_get_timeout): Likewise.
38491 (grub_menu_set_timeout): Likewise.
38492 (grub_menu_execute_entry): Likewise.
38493 (grub_menu_execute_with_fallback): Likewise.
38494 (grub_menu_entry_run): Likewise.
38495
38496 * include/grub/normal.h: Re-ordered and grouped function
38497 prototypes by file that the function is defined in.
38498 (grub_menu_execute_callback): Removed; moved to menu.h.
38499 (grub_menu_get_entry): Likewise.
38500 (grub_menu_get_timeout): Likewise.
38501 (grub_menu_set_timeout): Likewise.
38502 (grub_menu_execute_entry): Likewise.
38503 (grub_menu_execute_with_fallback): Likewise.
38504 (grub_menu_entry_run): Likewise.
38505 (grub_menu_addentry): Renamed from this ...
38506 (grub_normal_add_menu_entry): ... to this.
38507
38508 * normal/main.c (grub_menu_addentry): Renamed from this ...
38509 (grub_normal_add_menu_entry): ... to this.
38510
38511 * script/sh/execute.c (grub_script_execute_menuentry): Update
38512 reference to renamed grub_menu_addentry function.
38513
861f03a5 385142009-05-23 Felix Zielcke <fzielcke@z-51.de>
38515
38516 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38517
96b1619a 385182009-05-22 Pavel Roskin <proski@gnu.org>
38519
bf6a5fb2 38520 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38521 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38522 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38523 compiling for the i386 targets, but not for the utilities.
38524
96b1619a 38525 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38526 to grub_uint8_t.
38527 (grub_root_drive): Likewise.
38528 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38529 remove alignment.
38530 (grub_root_drive): Change size to byte.
38531 (grub_start_addr): Remove.
38532 (grub_end_addr): Likewise.
38533 (grub_apm_bios_info): Likewise.
38534
b729776b 385352009-05-21 Felix Zielcke <fzielcke@z-51.de>
38536
38537 * normal/i386: Remove.
38538 * normal/powerpc: Likewise.
38539 * normal/sparc64: Likewise.
38540 * normal/x86_64: Likewise.
38541
0a15ce80 385422009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38543
38544 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 38545 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 38546 * loader/i386/xnu_helper.S: Likewise
d6da58e6 38547
33db9015 385482009-05-18 Colin D Bennett <colin@gibibit.com>
38549
d6da58e6 38550 Display error messages when parsing a Lua statement fails.
38551 Previously, executing a syntactically invalid statement like
38552 ")foo" or "bar;" would silently fail.
33db9015 38553
38554 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 38555 (grub_lua_parse_line): Improved reporting of Lua parser and
38556 execution errors.
33db9015 38557
46422c89 385582009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38559
38560 Remove -Werror which causes build to fail on some systems
38561
38562 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38563 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38564 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 38565
22f53a96 385662009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38567
38568 trampoline for linux on 64-bit platform
38569
18f547ad 38570 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38571 loader/i386/efi/linux_trampoline.S
38572 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 38573 declaration
d6da58e6 38574 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38575 here
22f53a96 38576 * loader/i386/linux_trampoline.S: moved here
d6da58e6 38577 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38578 trampoline
22f53a96 38579 (jumpvector): removed
38580 (grub_linux_trampoline_start): new declaration
38581 (grub_linux_trampoline_end): likewise
38582 (grub_linux_boot): use trampoline when on 64-bit platform
38583 * loader/i386/linux.c: likewise
38584
cb5a0f40 385852009-05-16 Pavel Roskin <proski@gnu.org>
38586
38587 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38588 const to avoid a warning.
38589 (grub_lua_setenv): Likewise.
38590 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38591 lmsg to fix a warning.
38592
334f2c28 385932009-05-16 Felix Zielcke <fzielcke@z-51.de>
38594
38595 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 38596 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38597 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38598 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38599 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38600 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38601 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38602 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 38603
59e5d3ec 386042009-05-16 Felix Zielcke <fzielcke@z-51.de>
38605
38606 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38607
9d87a1ba 386082009-05-16 Bean <bean123ch@gmail.com>
38609
38610 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38611 (lua_mod_SOURCES): New variable.
38612 (lua_mod_CFLAGS): Likewise.
38613 (lua_mod_LDFLAGS): Likewise.
38614
38615 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38616 (setjmp_mod_SOURCES): New variable.
38617 (setjmp_mod_CFLAGS): Likewise.
38618 (setjmp_LDFLAGS): Likewise.
38619
38620 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38621 (setjmp_mod_SOURCES): New variable.
38622 (setjmp_mod_CFLAGS): Likewise.
38623 (setjmp_LDFLAGS): Likewise.
38624
38625 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38626 (setjmp_mod_SOURCES): New variable.
38627 (setjmp_mod_CFLAGS): Likewise.
38628 (setjmp_LDFLAGS): Likewise.
38629
38630 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38631 (setjmp_mod_SOURCES): New variable.
38632 (setjmp_mod_CFLAGS): Likewise.
38633 (setjmp_LDFLAGS): Likewise.
38634
38635 * normal/i386/setjmp.S: Moved from here ...
38636 * lib/i386/setjmp.S: ... Moved here
38637 * normal/x86_64/setjmp.S: Moved from here ...
38638 * lib/x86_64/setjmp.S: ... Moved here
38639 * normal/powerpc/setjmp.S: Moved from here ...
38640 * lib/powerpc/setjmp.S: ... Moved here
38641 * normal/sparc64/setjmp.S: Moved from here ...
38642 * lib/sparc64/setjmp.S: ... Moved here
38643
38644 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38645 returns_twice in mingw.
38646
38647 * script/lua/grub_lib.c: New file.
38648 * script/lua/grub_lib.h: Likewise.
38649 * script/lua/grub_lua.h: Likewise.
38650 * script/lua/grub_main.c: Likewise.
38651 * script/lua/lapi.c: Likewise.
38652 * script/lua/lapi.h: Likewise.
38653 * script/lua/lauxlib.c: Likewise.
38654 * script/lua/lauxlib.h: Likewise.
38655 * script/lua/lbaselib.c: Likewise.
38656 * script/lua/lcode.c: Likewise.
38657 * script/lua/lcode.h: Likewise.
38658 * script/lua/ldblib.c: Likewise.
38659 * script/lua/ldebug.c: Likewise.
38660 * script/lua/ldebug.h: Likewise.
38661 * script/lua/ldo.c: Likewise.
38662 * script/lua/ldo.h: Likewise.
38663 * script/lua/ldump.c: Likewise.
38664 * script/lua/lfunc.c: Likewise.
38665 * script/lua/lfunc.h: Likewise.
38666 * script/lua/lgc.c: Likewise.
38667 * script/lua/lgc.h: Likewise.
38668 * script/lua/linit.c: Likewise.
38669 * script/lua/liolib.c: Likewise.
38670 * script/lua/llex.c: Likewise.
38671 * script/lua/llex.h: Likewise.
38672 * script/lua/llimits.h: Likewise.
38673 * script/lua/lmathlib.c: Likewise.
38674 * script/lua/lmem.c: Likewise.
38675 * script/lua/lmem.h: Likewise.
38676 * script/lua/loadlib.c: Likewise.
38677 * script/lua/lobject.c: Likewise.
38678 * script/lua/lobject.h: Likewise.
38679 * script/lua/lopcodes.c: Likewise.
38680 * script/lua/lopcodes.h: Likewise.
38681 * script/lua/loslib.c: Likewise.
38682 * script/lua/lparser.c: Likewise.
38683 * script/lua/lparser.h: Likewise.
38684 * script/lua/lstate.c: Likewise.
38685 * script/lua/lstate.h: Likewise.
38686 * script/lua/lstring.c: Likewise.
38687 * script/lua/lstring.h: Likewise.
38688 * script/lua/lstrlib.c: Likewise.
38689 * script/lua/ltable.c: Likewise.
38690 * script/lua/ltable.h: Likewise.
38691 * script/lua/ltablib.c: Likewise.
38692 * script/lua/ltm.c: Likewise.
38693 * script/lua/ltm.h: Likewise.
38694 * script/lua/lua.h: Likewise.
38695 * script/lua/luaconf.h: Likewise.
38696 * script/lua/lualib.h: Likewise.
38697 * script/lua/lundump.c: Likewise.
38698 * script/lua/lundump.h: Likewise.
38699 * script/lua/lvm.c: Likewise.
38700 * script/lua/lvm.h: Likewise.
38701 * script/lua/lzio.c: Likewise.
38702 * script/lua/lzio.h: Likewise.
38703
5e898c9d 387042009-05-16 Bean <bean123ch@gmail.com>
38705
38706 * include/grub/kernel.h (grub_module_header_types): Add type
38707 OBJ_TYPE_CONFIG.
38708
38709 * kern/main.c (grub_load_config): New function.
38710 (grub_main): Call grub_load_config to read boot config.
38711
38712 * grub-mkimage (generate_image): New parameter config_path.
38713 (options): New option --config.
38714 (main): Parse --config option, and pass it to generate_image.
38715
cf353a47 387162009-05-14 Christian Franke <franke@computer.org>
38717
38718 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38719 This fixes build on Cygwin.
38720
3834887f 387212009-05-14 Pavel Roskin <proski@gnu.org>
38722
38723 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38724 jump. This saves two bytes, so the typical case of 2 swapped
38725 drives would fit 32 bytes.
38726
8090fc01 387272009-05-13 Pavel Roskin <proski@gnu.org>
38728
ac963883 38729 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38730 grub_uint32_t to avoid a warning.
38731
8090fc01 38732 * loader/i386/linux.c (allocate_pages): When assigning
38733 real_mode_mem, cast through grub_size_t to fix a warning. The
38734 code already makes sure that the value would fit a pointer.
38735 (grub_linux_setup_video): Cast render_target->data to
38736 grub_size_t to fix a warning.
38737
18f547ad 387382009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 38739
38740 * commands/i386/pc/drivemap.c: New file - implement drivemap
38741 command.
38742 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38743 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38744
6f6a8b28 387452009-05-13 Pavel Roskin <proski@gnu.org>
38746
38747 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38748 embedding_area_exists.
38749
15fbf4c4 387502009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38751
38752 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38753 it easier to understand / work with.
59978c8a 38754 Improve warning messages for cases where there's no embedding area,
38755 or when it is too small (or core.img too large).
15fbf4c4 38756
238e871f 387572009-05-13 Pavel Roskin <proski@gnu.org>
38758
0ab3a9a4 38759 * loader/i386/pc/multiboot2.c: Add necessary includes for
38760 grub_multiboot2_real_boot().
38761
a2c8c5f8 38762 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38763 PX record is always little-endian. We only need the lower 2
38764 bytes of the mode.
38765
faec96af 38766 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38767 facilitate code reuse.
38768 (grub_cpio_mount): Use "struct head", not a char buffer. This
38769 fixes a warning reported by gcc 4.4.
38770
238e871f 38771 * kernel/disk.c (grub_disk_read): Use void pointer for the
38772 buffer.
38773 (grub_disk_write): Use const void pointer for the buffer.
38774 Adjust all callers. Remove unnecessary casts.
38775
901d2f0c 387762009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38777
38778 * util/i386/pc/grub-install.in: Update copyright year.
38779
18f547ad 387802009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 38781
38782 gptsync
38783
38784 * commands/gptsync.c: new file
38785 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38786 (gptsync_mod_SOURCES): new variable
38787 (gptsync_mod_CFLAGS): likewise
38788 (gptsync_mod_LDFLAGS): likewise
18f547ad 38789 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 38790 new definition
38791 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38792 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38793 * conf/i386-ieee1275.rmk: likewise
38794 * conf/i386-pc.rmk: likewise
38795 * conf/powerpc-ieee1275.rmk: likewise
38796
b4ba690a 387972009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38798
38799 Fixed grub-emu
38800
38801 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38802 (grub_dl_ref): likewise
38803
317e1a44 388042009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38805
38806 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38807 split in two functions (one for msdos and one for gpt).
38808
041b8094 388092009-05-08 Pavel Roskin <proski@gnu.org>
38810
752473c2 38811 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38812 not modified.
38813
041b8094 38814 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38815 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38816 Initialize them with -1. Add sanity check for bad1. Eliminate
38817 nerr variable.
38818
172800ce 388192009-05-08 David S. Miller <davem@davemloft.net>
38820
38821 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38822
29aa5e81 388232009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38824
38825 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 38826 existence.
29aa5e81 38827
96613b62 388282009-05-05 Felix Zielcke <fzielcke@z-51.de>
38829
38830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 38831 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 38832
eef73c8a 388332009-05-05 David S. Miller <davem@davemloft.net>
38834
38835 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38836
119494b5 388372009-05-05 Pavel Roskin <proski@gnu.org>
38838
38839 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38840 of grub_dl_ref() and grub_dl_unref().
38841 * commands/parttool.c: Remove preprocessor conditionals around
38842 grub_dl_ref() and grub_dl_unref().
38843 * fs/affs.c: Likewise.
38844 * fs/afs.c: Likewise.
38845 * fs/cpio.c: Likewise.
38846 * fs/ext2.c: Likewise.
38847 * fs/fat.c: Likewise.
38848 * fs/hfs.c: Likewise.
38849 * fs/hfsplus.c: Likewise.
38850 * fs/iso9660.c: Likewise.
38851 * fs/jfs.c: Likewise.
38852 * fs/minix.c: Likewise.
38853 * fs/ntfs.c: Likewise.
38854 * fs/reiserfs.c: Likewise.
38855 * fs/sfs.c: Likewise.
38856 * fs/udf.c: Likewise.
38857 * fs/ufs.c: Likewise.
38858 * fs/xfs.c: Likewise.
38859 * include/grub/dl.h: Likewise.
38860 * loader/xnu.c: Likewise.
38861
de5fd76e 388622009-05-04 Pavel Roskin <proski@gnu.org>
38863
38864 * commands/acpi.c: Remove unused variable my_mod.
38865 * partmap/amiga.c: Likewise.
38866 * partmap/apple.c: Likewise.
38867 * partmap/gpt.c: Likewise.
38868 * partmap/pc.c: Likewise.
38869 * partmap/sun.c: Likewise.
38870 * term/gfxterm.c: Likewise.
38871 * term/i386/pc/vesafb.c: Likewise.
38872 * term/i386/pc/vga.c: Likewise.
38873
983598ad 388742009-05-04 David S. Miller <davem@davemloft.net>
38875
38876 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38877 pointer args to grub_ieee1275_get_property().
38878
8aadec43 38879 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38880
9554b15e 38881 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38882 devices, and do not traverse down under controller nodes.
38883
67e23c90 38884 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38885 (grub_ofdisk_open): Use it to un-escape "," characters.
38886 * kern/disk.c (find_part_sep): New.
38887 (grub_disk_open): Use it to find the first non-escaped ','
38888 character in the disk name.
38889 * util/ieee1275/devicemap.c (escape_of_path): New.
38890 (grub_util_emit_devicemap_entry): Use it.
38891 * util/sparc64/ieee1275/grub-install.in: Update script to
38892 strip partition specifiers properly by not triggering on
38893 '\' escaped ',' characters.
38894
74bfdd2f 388952009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38896
38897 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38898 to 0x300.
38899 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38900 resolutions.
38901 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38902 on documentation from Wikipedia).
38903
4241d2b1 389042009-05-04 Pavel Roskin <proski@gnu.org>
38905
38906 * disk/ata.c: Spelling fixes.
38907 * disk/raid.c: Likewise.
38908 * disk/usbms.c: Likewise.
38909 * disk/dmraid_nvidia.c: Likewise.
38910 * kern/ieee1275/openfw.c: Likewise.
38911 * kern/ieee1275/init.c: Likewise.
38912 * kern/ieee1275/cmain.c: Likewise.
38913 * boot/i386/pc/cdboot.S: Likewise.
38914 * video/readers/png.c: Likewise.
38915 * video/i386/pc/vbe.c: Likewise.
38916 * fs/udf.c: Likewise.
38917 * fs/hfs.c: Likewise.
38918 * fs/reiserfs.c: Likewise.
38919 * efiemu/runtime/efiemu.c: Likewise.
38920 * efiemu/main.c: Likewise.
38921 * efiemu/mm.c: Likewise.
38922 * include/grub/elf.h: Likewise.
38923 * include/grub/xnu.h: Likewise.
38924 * include/grub/usbdesc.h: Likewise.
38925 * include/grub/usb.h: Likewise.
38926 * include/grub/script_sh.h: Likewise.
38927 * include/grub/lib/LzmaEnc.h: Likewise.
38928 * include/grub/efiemu/efiemu.h: Likewise.
38929 * include/grub/command.h: Likewise.
38930 * normal/menu.c: Likewise.
38931 * normal/main.c: Likewise.
38932 * normal/datetime.c: Likewise.
38933 * bus/usb/uhci.c: Likewise.
38934 * mmap/i386/uppermem.c: Likewise.
38935 * mmap/mmap.c: Likewise.
38936 * commands/acpi.c: Likewise.
38937 * commands/test.c: Likewise.
38938 * partmap/apple.c: Likewise.
38939 * font/font.c: Likewise.
38940 * loader/sparc64/ieee1275/linux.c: Likewise.
38941 * loader/macho.c: Likewise.
38942 * loader/i386/bsd_trampoline.S: Likewise.
38943 * loader/i386/bsd.c: Likewise.
38944 * loader/xnu.c: Likewise.
38945 * term/i386/pc/vesafb.c: Likewise.
38946 * term/usb_keyboard.c: Likewise.
38947 * util/resolve.c: Likewise.
38948 * util/getroot.c: Likewise.
38949
0cfc0083 389502009-05-04 Felix Zielcke <fzielcke@z-51.de>
38951
38952 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38953
7c1d00cd 389542009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38955
38956 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38957 build error.
38958
b01f0548 389592009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38960
38961 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38962 parameter only available on BIOS.
38963
ecc3eb22 389642009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38965
38966 Removed wrong semicolon in declaration
38967
38968 * grub/misc.h (grub_dprintf): remove semicolon
38969
112972a9 389702009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38971
38972 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38973 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38974 is done by grub_cmd_linux() now).
38975 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38976 restore video to text mode.
38977 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38978 indicates lack of "vga=" parameter. "vga=0" is mapped to
38979 `GRUB_LINUX_VID_MODE_NORMAL'.
38980
afd5c115 389812009-05-04 Felix Zielcke <fzielcke@z-51.de>
38982
38983 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38984 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38985 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 38986 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 38987 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38988 `grub_script.tab.c'.
38989
38990 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38991 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38992 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38993 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38994 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38995
faa517ce 38996 * Makefile.in: Remove duplicated 2008 in Copyright line.
38997
ae0c0bdc 389982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38999
473d1e45 39000 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 39001 unconditionally.
39002 * include/grub/util/misc.h (grub_util_warn): New declaration.
39003
39004 * util/i386/pc/grub-install.in: Understand --force and pass it down
39005 to grub-setup.
39006
39007 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39008 down to setup().
39009 (setup): Improve error messages and add warnings when requested to
39010 install in odd layouts. Refuse to install using blocklists unless
39011 --force was set.
39012
18f547ad 390132009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 39014
39015 * disk/raid.c (grub_raid_scan_device): Improve debug message.
39016
6d260daa 390172009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39018
39019 Updated copyright year
39020
39021 * fs/hfsplus.c: updated copyright year
18f547ad 39022
69f853f8 390232009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39024
39025 HFS+ UUID
39026
18f547ad 39027 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 39028 in the space previously used by unused3
39029 (grub_hfsplus_uuid): new function
39030 (grub_hfsplus_fs): added uuid field
39031
4c402e73 390322009-05-03 Pavel Roskin <proski@gnu.org>
39033
39034 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39035 suppress warnings. It's no longer needed.
39036 * disk/host.c: Likewise.
39037 * disk/ata_pthru.c: Likewise.
39038 * disk/loopback.c: Likewise.
39039 * hook/datehook.c: Likewise.
39040 * parttool/pcpart.c: Likewise.
39041 * fs/i386/pc/pxe.c: Likewise.
39042 * fs/ntfscomp.c: Likewise.
39043 * efiemu/main.c: Likewise.
39044 * mmap/mmap.c: Likewise.
39045 * commands/crc.c: Likewise.
39046 * commands/hexdump.c: Likewise.
39047 * commands/hdparm.c: Likewise.
39048 * commands/acpi.c: Likewise.
39049 * commands/echo.c: Likewise.
39050 * commands/minicmd.c: Likewise.
39051 * commands/blocklist.c: Likewise.
39052 * commands/memrw.c: Likewise.
39053 * commands/loadenv.c: Likewise.
39054 * commands/usbtest.c: Likewise.
39055 * commands/lsmmap.c: Likewise.
39056 * commands/boot.c: Likewise.
39057 * commands/parttool.c: Likewise.
39058 * commands/configfile.c: Likewise.
39059 * commands/search.c: Likewise.
39060 * commands/ieee1275/suspend.c: Likewise.
39061 * commands/cat.c: Likewise.
39062 * commands/i386/pc/pxecmd.c: Likewise.
39063 * commands/i386/pc/play.c: Likewise.
39064 * commands/i386/pc/halt.c: Likewise.
39065 * commands/i386/pc/vbeinfo.c: Likewise.
39066 * commands/i386/pc/vbetest.c: Likewise.
39067 * commands/lspci.c: Likewise.
39068 * commands/date.c: Likewise.
39069 * commands/handler.c: Likewise.
39070 * commands/ls.c: Likewise.
39071 * commands/test.c: Likewise.
39072 * commands/cmp.c: Likewise.
39073 * commands/efi/loadbios.c: Likewise.
39074 * commands/efi/fixvideo.c: Likewise.
39075 * commands/halt.c: Likewise.
39076 * commands/help.c: Likewise.
39077 * commands/reboot.c: Likewise.
39078 * hello/hello.c: Likewise.
39079 * script/sh/main.c: Likewise.
39080 * loader/xnu.c: Likewise.
39081 * term/terminfo.c: Likewise.
39082 * term/i386/pc/serial.c: Likewise.
39083 * term/usb_keyboard.c: Likewise.
39084
515b5079 390852009-05-03 David S. Miller <davem@davemloft.net>
39086
39087 * normal/menu.c: Include grub/parser.h
39088
dfc31a22 390892009-05-03 Pavel Roskin <proski@gnu.org>
39090
2fee74f1 39091 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39092 not char*.
39093 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39094 Suggested by Javier Martín <lordhabbit@gmail.com>
39095
dfc31a22 39096 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39097 efiemu??.o doesn't exist.
39098 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39099 copying.
39100
18f547ad 391012009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 39102
39103 FreeBSD 64-bit support
39104
18f547ad 39105 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 39106 and loader/i386/bsd_trampoline.S
39107 (bsd_mod_ASFLAGS): new variable
39108 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39109 (FREEBSD_MODTYPE_KERNEL64): likewise
39110 (grub_bsd64_trampoline_start): likewise
39111 (grub_bsd64_trampoline_end): likewise
39112 (grub_bsd64_trampoline_selfjump): likewise
39113 (grub_bsd64_trampoline_gdt): likewise
39114 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39115 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39116 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39117 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 39118 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 39119 of "attrib" member
39120 * loader/i386/bsd_pagetable.c: new file
39121 * loader/i386/bsd_trampoline.S: likewise
39122 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39123 (ALIGN_VAR): likewise
39124 (entry_hi): new variable
39125 (kern_end_mdofs): likewise
39126 (is_64bit): likewise
39127 (grub_freebsd_add_meta): use ALIGN_VAR
39128 (grub_e820_mmap): new declaration
39129 (grub_freebsd_add_mmap): new function
39130 (grub_freebsd_add_meta_module): support 64 bit kernels
39131 (grub_freebsd_list_modules): use ALIGN_VAR
39132 (gdt_descriptor): new declaration
39133 (grub_freebsd_boot): support 64 bit kernels
39134 (grub_bsd_elf64_hook): new function
39135 (grub_bsd_load_elf): support elf64
39136
038c5720 391372009-05-03 Bean <bean123ch@gmail.com>
39138
39139 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39140 after we get the result of if statement.
39141
fc45fb58 391422009-05-03 Bean <bean123ch@gmail.com>
39143
39144 * Makefile.in (enable_efiemu): New variable.
39145
39146 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39147 set.
39148 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39149 path.
39150 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39151 path, add -mno-red-zone option.
39152 (efiemu64_s.o): Likewise.
39153 (efiemu64.o): Use macro $^ for source file.
39154
39155 * configure.ac (--enable-efiemu): New option.
39156
bbee0f2b 391572009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39158
39159 xnu support
39160
39161 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39162 (pkglib_MODULES): add xnu.mod
39163 (xnu_mod_SOURCES): new variable
39164 (xnu_mod_CFLAGS): likewise
39165 (xnu_mod_LDFLAGS): likewise
39166 (xnu_mod_ASFLAGS): likewise
39167 * conf/i386-pc.rmk: likewise
39168 * conf/x86_64-efi.rmk: likewise
7dd4a573 39169 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 39170 new declaration
39171 * include/grub/i386/macho.h: new file
39172 * include/grub/i386/xnu.h: likewise
39173 * include/grub/macho.h: likewise
39174 * include/grub/machoload.h: likewise
39175 * include/grub/x86_64/macho.h: likewise
39176 * include/grub/x86_64/xnu.h: likewise
39177 * include/grub/xnu.h: likewise
39178 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39179 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39180 * loader/i386/efi/xnu.c: new file
39181 * loader/i386/pc/xnu.c: likewise
39182 * loader/i386/xnu.c: likewise
39183 * loader/i386/xnu_helper.S: likewise
39184 * loader/macho.c: likewise
39185 * loader/xnu.c: likewise
39186 * loader/xnu_resume.c: likewise
39187 * util/grub-dumpdevtree: likewise
39188 * include/grub/i386/pit.h: include grub/err.h
39189 (grub_pit_wait): export
39190 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 39191
5caf964d 391922009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39193
39194 Efiemu
7dd4a573 39195
5caf964d 39196 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 39197 _linux_efi, linux_efi.
39198 new files in grub-emu
5caf964d 39199 new targets efiemu32.o and efiemu64.o
39200 * loader/linux_normal_efiemu.c: likewise
39201 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 39202 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 39203 files to copy
39204 * include/grub/autoefi.h: new file
7dd4a573 39205 * include/grub/i386/efiemu.h: likewise
5caf964d 39206 * include/grub/i386/pc/efiemu.h: likewise
39207 * include/grub/efi/api.h: add LL suffix when necessary
39208 new definitions relating to tables
39209 * include/grub/efiemu/efiemu.h: new file
39210 * include/grub/efiemu/runtime.h: likewise
39211 * efiemu/prepare.c: likewise
39212 * efiemu/loadcore_common.c: likewise
39213 * efiemu/loadcore64.c: likewise
39214 * efiemu/runtime/efiemu.sh: likewise
39215 * efiemu/runtime/efiemu.S: likewise
39216 * efiemu/runtime/efiemu.c: likewise
39217 * efiemu/runtime/config.h: likewise
39218 * efiemu/prepare32.c: likewise
39219 * efiemu/main.c: likewise
39220 * efiemu/modules/pnvram.c: likewise
39221 * efiemu/modules/i386: likewise
39222 * efiemu/modules/i386/pc: likewise
39223 * efiemu/modules/acpi.c: likewise
39224 * efiemu/i386/pc/cfgtables.c: likewise
39225 * efiemu/i386/loadcore64.c: likewise
39226 * efiemu/i386/loadcore32.c: likewise
39227 * efiemu/prepare64.c: likewise
39228 * efiemu/loadcore.c: likewise
39229 * efiemu/symbols.c: likewise
39230 * efiemu/mm.c: likewise
39231 * efiemu/loadcore32.c: likewise
7dd4a573 39232
392332009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 39234
39235 ACPI spoofing
39236
39237 * commands/acpi.c: new file
39238 * commands/i386/pc/acpi.c: likewise
39239 * commands/efi/acpi.c: likewise
39240 * include/grub/acpi.h: likewise
39241 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39242 (acpi_mod_SOURCES): new variable
39243 (acpi_mod_CFLAGS): likewise
39244 (acpi_mod_LDFLAGS): likewise
39245 * conf/i386-efi.rmk: likewise
39246 * conf/x86_64-efi.rmk: likewise
39247
7dd4a573 392482009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 39249
39250 Missing part from mmap patch
39251
39252 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39253 (grub_mmap_unregister)
39254 (grub_mmap_free_and_unregister): use grub_mmap_register
39255
7dd4a573 392562009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 39257
39258 Mmap services
39259
39260 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39261 * loader/i386/linux.c (find_mmap_size): likewise
39262 (allocate_pages): likewise
39263 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39264 (grub_fill_multiboot_mmap): likewise
39265 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39266 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39267 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39268 (OPENBSD_MMAP_RESERVED): likewise
39269 * include/grub/i386/pc/memory.h: include grub/memory.h
39270 (grub_lower_mem): removed
39271 (grub_upper_mem): likewise
39272 (GRUB_MACHINE_MEMORY_ACPI): new definition
39273 (GRUB_MACHINE_MEMORY_NVS): likewise
39274 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39275 (GRUB_MACHINE_MEMORY_HOLE): likewise
39276 (grub_machine_mmap_register): likewise
39277 (grub_machine_mmap_unregister): likewise
39278 (grub_machine_get_upper): likewise
39279 (grub_machine_get_lower): likewise
39280 (grub_machine_get_post64): likewise
39281 * include/grub/i386/efi/memory.h: new file
39282 * include/grub/x86_64/efi/memory.h: likewise
39283 * include/grub/efi/memory.h: likewise
39284 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39285 (mmap_mod_SOURCES): new variable
39286 (mmap_mod_LDFLAGS): likewise
39287 (mmap_mod_ASFLAGS): likewise
39288 * conf/i386-coreboot.rmk: likewise
39289 * conf/i386-ieee1275.rmk: likewise
39290 * conf/i386-efi.rmk: likewise
39291 * conf/x86_64-efi.rmk: likewise
39292 * include/grub/types.h (UINT_TO_PTR): new macro
39293 (PTR_TO_UINT32): likewise
39294 (PTR_TO_UINT64): likewise
39295 * include/grub/memory.h: new file
39296 * mmap/i386/pc/mmap.c: likewise
39297 * mmap/i386/pc/mmap_helper.S: likewise
39298 * mmap/i386/uppermem.c: likewise
39299 * mmap/mmap.c: likewise
39300 * mmap/efi/mmap.c: likewise
7dd4a573 39301 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 39302 grub_upper_mem
39303 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39304 (grub_upper_mem): likewise
39305 (grub_machine_init): don't use grub_upper_mem,
39306 make grub_lower_mem local
39307 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39308 grub_mmap_iterate and grub_mmap_get_upper
39309 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39310
d558e6b5 393112009-05-02 Bean <bean123ch@gmail.com>
39312
39313 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39314 script/sh/parser.y.
39315 (pkglib_MODULES): Add normal.mod and sh.mod.
39316 (normal_SOURCES): New variable.
39317 (normal_mod_CFLAGS): Likewise.
39318 (normal_mod_LDFLAGS): Likewise.
39319 (sh_mod_SOURCES): Likewise.
39320 (sh_mod_CFLAGS): Likewise.
39321 (sh_mod_LDFLAGS): Likewise.
39322
39323 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39324 script/sh/lexer.c_DEPENDENCIES.
39325 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39326 kern/rescue_reader.c and kern/rescue_parser.c.
39327 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39328 (grub_emu_SOURCES): Change source files.
39329 (pkglib_MODULES): Remove normal.mod.
39330 (normal_SOURCES): Removed.
39331 (normal_mod_CFLAGS): Likewise.
39332 (normal_mod_LDFLAGS): Likewise.
39333 * conf/i386-coreboot.rmk: Likewise.
39334 * conf/i386-efi.rmk: Likewise.
39335 * conf/i386-ieee1276.rmk: Likewise.
39336 * conf/powerpc-ieee1275.rmk: Likewise.
39337 * conf/sparc64-ieee1275.rmk: Likewise.
39338 * conf/x86_64-efi.rmk: Likewise.
39339
39340 * include/grub/command.h (grub_command_execute): New inline function.
39341
39342 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39343
39344 * include/grub/normal.h: Remove <grub/setjmp.h>.
39345 (grub_fs_module_list): Moved to normal/autofs.c.
39346 (grub_exit_env): Removed.
39347 (grub_command_execute): Likewise.
39348 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39349 parameter script.
39350 (read_command_list): New function declaration.
39351 (read_fs_list): Likewise.
39352
39353 * include/parser.h: Include <grub/reader.h>.
39354 (grub_parser_split_cmdline): Change type of getline parameter.
39355 (grub_parser): New structure.
39356 (grub_parser_class): New variable.
39357 (grub_parser_execute): New function declaration.
39358 (grub_register_rescue_parser): Likewise.
39359 (grub_parser_register): New inline function.
39360 (grub_parser_unregister): Likewise.
39361 (grub_parser_get_current): Likewise.
39362 (grub_parser_set_current): Likewise.
39363
39364 * include/grub/reader.h: New file.
39365 * kern/reader.c: Likewise.
39366 * kern/rescue_parser.c: Likewise.
39367 * kern/rescue_reader.c: Likewise.
39368 * normal/autofs.c: Likewise.
39369 * normal/dyncmd.c: Likewise.
39370
39371 * include/grub/rescue.h: Removed.
39372 * normal/command.h: Likewise.
39373
39374 * include/grub/script.h: Moved to ...
39375 * include/grub/script_sh.h: ... Moved here.
39376 * normal/execute.c: Moved to ...
39377 * script/sh/execute.c: ... Moved here.
39378 * normal/function.c: Moved to ...
39379 * script/sh/function.c: ... Moved here.
39380 * normal/lexer.c: Moved to ...
39381 * script/sh/lexer.c: ... Moved here.
39382 * normal/parser.y: Moved to ...
39383 * script/sh/parser.y: ... Moved here.
39384 * normal/script.c: Moved to ...
39385 * script/sh/script.c: ... Moved here.
39386
39387 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39388 <grub/reader.h>.
39389 (grub_exit_env): Removed.
39390 (fs_module_list): Moved to normal/autofs.c.
39391 (grub_file_getline): Don't handle comment here.
39392 (free_menu): Skip removed field entry->commands.
39393 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39394 script parameter.
39395 (read_config_file): Removed nested parameter, change getline function.
39396 (grub_enter_normal_mode): Removed.
39397 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39398 (read_command_list): Likewise.
39399 (autoload_fs_module): Moved to normal/autofs.c.
39400 (read_fs_list): Likewise.
39401 (reader_nested): New variable.
39402 (grub_normal_execute): Run parser.sh to switch to sh parser.
39403 (grub_cmd_rescue): Removed.
39404 (cmd_normal): Removed.
39405 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39406 rescue command.
39407 (grub_cmdline_run): New function.
39408 (grub_normal_reader_init): Likewise.
39409 (grub_normal_read_line): Likewise.
39410 (grub_env_write_pager): Likewise.
39411 (cmdline): New variable.
39412 (grub_normal_reader): Likewise.
39413 (GRUB_MOD_INIT): Register normal reader and set as current, register
39414 pager hook, register normal command with grub_register_command_prio,
39415 so that it won't show up in command.lst.
39416 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39417 grub_fs_autoload_hook.
39418
39419 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39420 (grub_menu_execute_entry): Replace grub_script_execute with
39421 grub_parser_execute, change parameter to grub_command_execute.
39422
39423 * normal/menu_text.c: Remove <grub/script.h>.
39424
39425 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39426 and <grub/parser.h>.
39427 (run): Change editor_getline to use new parser interface. Change
39428 parameter to grub_command_execute.
39429
39430 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39431 <grub/reader.h> and <grub/parser.h>.
39432 (grub_load_normal_mode): Execute normal command.
39433 (grub_main): Call grub_register_core_commands,
39434 grub_register_rescue_parser and grub_register_rescue_reader, use
39435 grub_reader_loop to enter input loop.
39436
7dd4a573 39437 * kern/parser.c (grub_parser_split_cmdline): Change type of
39438 getline parameter.
d558e6b5 39439 (grub_parser_class): New variable.
39440 (grub_parser_execute): New function.
39441
39442 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39443 * loader/multiboot2.c: Likewise.
39444 * loader/sparc64/ieee1275/linux.c: Likewise.
39445
39446 * util/grub-emu.c (read_command_list): New dummy function.
39447
18db813d 394482009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39449
39450 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39451 count to 16 for CCISS and IDA.
39452
6c67de15 394532009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39454
39455 * normal/menu_text.c (grub_wait_after_message): Print a newline
39456 after waiting for user input.
39457
39458 * loader/i386/linux.c: Include `<grub/normal.h>'.
39459 (grub_cmd_linux): Improve the error message about `ask' mode, by
39460 waiting for user input so it's not missed (we can do this, since
39461 user requested interaction).
39462
d9dc87b0 394632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39464
39465 Added missing lst to grub-mkrescue
39466
39467 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39468 and ${input_dir}/parttool.lst
39469
ac8a2baa 394702009-04-30 David S. Miller <davem@davemloft.net>
39471
ad22a610 39472 * util/hostdisk.c (device_is_wholedisk): New function.
39473 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39474 zero only if device_is_wholedisk() returns true.
39475
6966215d 39476 * util/hostdisk.c (convert_system_partition_to_system_disk):
39477 Handle virtual disk devices named /dev/vdiskX as found on sparc
39478 and powerpc.
39479
ac8a2baa 39480 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39481 lettered partition specifier is found, convert to numbered.
39482
979b4fb4 394832009-04-29 David S. Miller <davem@davemloft.net>
39484
e2bf39b2 39485 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39486 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39487
3c64e104 39488 * normal/command.c: Add missing newline at end of file.
39489
979b4fb4 39490 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39491 warnings.
39492 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39493 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39494 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39495 ihandles have a 32-bit type but need to be stored in a "void *".
39496
136d9f82 394972009-04-28 Pavel Roskin <proski@gnu.org>
39498
9459c306 39499 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39500 not disk. Adjust all dependencies.
2e08a26a 39501 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 39502 grub_disk_close().
39503
136d9f82 39504 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39505 parent's partition, don't copy it by reference, as it gets freed
39506 on close.
39507
7dd4a573 395082009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 39509
39510 Preboot hooks support
39511
39512 * commands/boot.c (struct grub_preboot_t): new declaration
39513 (preboots_head): new variable
39514 (preboots_tail): likewise
39515 (grub_loader_register_preboot_hook): new function
39516 (grub_loader_unregister_preboot_hook): likewise
39517 (grub_loader_set): launch preboot hooks
39518 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39519 (grub_loader_register_preboot_hook): new declaration
39520 (grub_loader_unregister_preboot_hook): likewise
39521
5af922b5 395222009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39523
39524 Warning fix
39525
7dd4a573 39526 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 39527 calling grub_dprintf
39528
a5562c30 395292009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39530
39531 Bug and warning fixes
39532
7dd4a573 39533 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 39534 declaration
39535 * commands/test.c (test_parse): fixed bug with file tests and corrected
39536 declaration of find_file
39537
4006f85c 395382009-04-26 Pavel Roskin <proski@gnu.org>
39539
39540 * Makefile.in: Don't install empty manual pages if help2man is
39541 missing. Use help2man option for output, not shell redirection.
39542
5c77c3de 395432009-04-26 David S. Miller <davem@davemloft.net>
39544
39545 * util/grub-mkdevicemap.c (make_device_map): Add missing
39546 NESTED_FUNC_ATTR to process_device().
39547
033b10a8 395482009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39549
39550 Test command
39551
39552 * commands/test.c: rewritten to use bash-like test
39553
e4343593 395542009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39555
39556 Parttool autoloading and improvements
39557
7dd4a573 39558 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 39559 (parttool.lst): new target
39560 * genmk.rb: generate parttool-*
39561 (CLEANFILES): add #{parttool}
39562 (PARTTOOLFILES): new variable
39563 * genparttoollist.sh: new file
7dd4a573 39564 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 39565 (grub_pcpart_type): likewise
39566 * commands/parttool.c (helpmsg): new variable
39567 (grub_cmd_parttool): output help if not enough arguments are supplied
39568 autoload modules
39569 (GRUB_MOD_INIT(parttool)): use helpmsg
39570
0d312500 395712009-04-24 David S. Miller <davem@davemloft.net>
39572
7dd4a573 39573 Avoiding opening same device multiple times in device iterator.
0d312500 39574
39575 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 39576 and use it to build a list of partitions in iterate_disk() and
0d312500 39577 iterate_partition().
39578
ac20caff 39579 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39580 on disk->data.
39581
0dcf7495 39582 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39583 grub_devalias_iterate() result instead of unconditional 0.
39584 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39585 Also, capture hook return value, either directly or via
39586 grub_children_iterate(), and propagate to caller.
39587 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39588 grub_children_iterate): Return value is now 'int' instead of
39589 'grub_err_t'.
39590 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39591 like a proper iterator, stopping when hooks return non-zero.
39592 (grub_devalias_iterate): Likewise.
39593
c8c08833 395942009-04-23 David S. Miller <davem@davemloft.net>
39595
39596 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39597
f01005a8 395982009-04-22 David S. Miller <davem@davemloft.net>
39599
39600 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39601 is larger than address_cells, use that value for address_cells too.
39602
4e8269da 39603 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39604 IEEE1275_MAX_PATH_LEN): Define.
39605 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39606 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39607 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39608 'devtype'. Explicitly NULL terminate devalias expansion.
39609
a1447506 39610 * util/sparc64/ieee1275/misc.c: New file.
39611 * util/sparc64/ieee1275/grub-setup.c: New file.
39612 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39613 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39614 * util/sparc64/ieee1275/grub-install.in: New file.
39615 * util/ieee1275/ofpath.c: New file.
39616 * util/ieee1275/devicemap.c: New file.
39617 * util/devicemap.c: New file.
39618 * util/deviceiter.c: New file.
39619 * kern/sparc64/ieee1275/init.c: New file.
39620 * include/grub/util/ofpath.h: New file.
39621 * include/grub/util/deviceiter.h: New file.
39622 * util/grub-mkdevicemap.c: Include deviceiter.h.
39623 Implement using grub_util_emit_devicemap_entry and
39624 grub_util_iterate_devices.
39625 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39626 util/devicemap.c into grub-mkdevicemap
39627 * conf/i386-efi.rmk: Likewise.
39628 * conf/i386-ieee1275.rmk: Likewise.
39629 * conf/i386-pc.rmk: Likewise.
39630 * conf/powerpc-ieee1275.rmk: Likewise.
39631 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39632 images and installation utilities. Build kernel as image
39633 instead of as elf binary. Use common rules as much as possible.
39634
7dd4a573 396352009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 39636
39637 Correct GPT definition
39638
7dd4a573 39639 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 39640 of "attrib" member
39641
c6c5219f 396422009-04-19 Felix Zielcke <fzielcke@z-51.de>
39643
39644 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39645
0552ff9f 396462009-04-19 David S. Miller <davem@davemloft.net>
39647
39648 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39649 (grub_rescue_cmd_linux): Rename to...
39650 (grub_cmd_linux): and fix prototype.
39651 (grub_rescue_cmd_initrd): Rename to...
39652 (grub_cmd_initrd): and fix prototype.
39653 (cmd_linux, cmd_initrd): New.
39654 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39655 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39656
d1a282fc 396572009-04-17 Pavel Roskin <proski@gnu.org>
39658
07c5039f 39659 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39660 format.
39661 (grub_ohci_transfer): Likewise.
39662
b012002d 39663 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39664
1bc09c35 39665 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39666 return without a value. Fix inconsistent indentation.
39667
e0ff9126 39668 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39669 match struct grub_fs.
39670
d1a282fc 39671 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39672 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39673 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39674 * commands/lspci.c (grub_lspci_iter): Likewise.
39675
a96df3f2 396762009-04-16 Bean <bean123ch@gmail.com>
39677
39678 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39679 value.
39680
41bb0fe9 396812009-04-15 Pavel Roskin <proski@gnu.org>
39682
39683 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39684 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39685 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39686 definitions.
39687
596c6970 396882009-04-15 Felix Zielcke <fzielcke@z-51.de>
39689
39690 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 39691 that no multiple data or metadata areas are supported and `Unknown
596c6970 39692 metadata header'.
39693
7dd4a573 396942009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 39695
39696 Move loader out of the kernel
39697
39698 * kern/loader.c: moved to ...
39699 * commands/boot.c: ... moved here
39700 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39701 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39702 * include/grub/kernel.h (grub_machine_fini): export
39703 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39704 (grub_loader_set): likewise
39705 (grub_loader_unset): likewise
39706 (grub_loader_boot): likewise
39707 * conf/common.rmk: new module boot.mod
39708 (pkglib_MODULES): add boot.mod
39709 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39710 (grub_emu_SOURCES): likewise
39711 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39712 (grub_emu_SOURCES): likewise
39713 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39714 (grub_emu_SOURCES): likewise
39715 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39716 (grub_emu_SOURCES): likewise
39717 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39718 (grub_emu_SOURCES): likewise
7dd4a573 39719 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39720 (grub_emu_SOURCES): likewise
0d5d5653 39721 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 39722 (grub_emu_SOURCES): likewise
0d5d5653 39723
7dd4a573 397242009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 39725
39726 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 39727
5999d619 39728 * kern/misc.c (grub_itoa): Removed function
39729 (grub_ltoa): likewise
39730 (grub_vsprintf): use grub_lltoa
39731
7dd4a573 397322009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 39733
39734 Restore grub-emu
39735
39736 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39737 * conf/i386-coreboot.rmk: likewise
39738 * conf/i386-ieee1275.rmk: likewise
39739 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 39740
20318222 397412009-04-15 Felix Zielcke <fzielcke@z-51.de>
39742
39743 * INSTALL: Add that `./autogen.sh' needs to be run before
39744 `./configure.'.
39745
d05f0df3 397462009-04-14 Bean <bean123ch@gmail.com>
39747
39748 * Makefile.in (pkglib_DATA): Add handler.lst.
39749 (handler.lst): New rule.
39750
39751 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39752 * conf/i386-coreboot.rmk: Likewise.
39753 * conf/i386-ieee1275.rmk: Likewise.
39754 * conf/i386-efi.rmk: Likewise.
39755 * conf/x86_64-efi.rmk: Likewise.
39756 * conf/powerpc-ieee1275.rmk: Likewise.
39757 * conf/sparc64-ieee1275.rmk: Likewise.
39758
39759 * genhandlerlist.sh: New file.
39760
39761 * genmk.rb: Add rules to generate handler.lst.
39762
39763 * include/grub/normal.h (grub_file_getline): New function definition.
39764 (read_handler_list): Likewise.
39765 (free_handler_list): Likewise.
39766
39767 * include/grub/term.h (grub_term_register_input): Add name parameter
39768 for auto generation of handler.lst.
39769 (grub_term_register_output): Likewise.
39770
39771 * normal/handler.c: New file.
39772
39773 * normal/main.c (get_line): Renamed to grub_file_getline.
39774 (read_config_file): Use the newly renamed grub_file_getline.
39775 (read_command_list): Likewise.
39776 (read_fs_list): Likewise.
39777 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39778 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39779
39780 * term/efi/console.c (grub_console_init): Add name parameter for auto
39781 generation of handler.lst.
39782 * term/gfxterm.c: Likewise.
39783 * term/i386/pc/at_keyboard.c: Likewise.
39784 * term/i386/pc/console.c: Likewise.
39785 * term/i386/pc/serial.c: Likewise.
39786 * term/i386/pc/vesafb.c: Likewise.
39787 * term/i386/pc/vga.c: Likewise.
39788 * term/i386/pc/vga_text.c: Likewise.
39789 * term/ieee1275/ofconsole.c: Likewise.
39790 * term/usb_keyboard.c: Likewise.
39791
33c846be 397922009-04-14 Bean <bean123ch@gmail.com>
39793
39794 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39795 properly with null character.
39796
4484e01e 397972009-04-14 Felix Zielcke <fzielcke@z-51.de>
39798
39799 * configure: Remove.
39800 * config.h.in: Likewise.
f93d668e 39801 * stamp-h.in: Likewise.
4484e01e 39802 * DISTLIST: Likewise.
39803 * conf/common.mk: Likewise.
39804 * conf/i386-coreboot.mk: Likewise.
39805 * conf/i386-efi.mk: Likewise.
39806 * conf/i386-ieee1275.mk: Likewise.
39807 * conf/i386.mk: Likewise.
39808 * conf/i386-pc.mk: Likewise.
39809 * conf/powerpc-ieee1275.mk: Likewise.
39810 * conf/sparc64-ieee1275.mk: Likewise.
39811 * conf/x86_64-efi.mk: Likewise.
39812
39813 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39814 develop on GRUB.
39815
7dd4a573 398162009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 39817 David S. Miller <davem@davemloft.net>
39818
39819 * util/hostdisk.c (make_device_name): Fix buffer length
39820 calculations.
39821
e25b5a8c 398222009-04-14 Felix Zielcke <fzielcke@z-51.de>
39823
39824 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39825 <sys/param.h> and <sys/sysctl.h>.
39826 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39827 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39828 opening the device and reset them afterwards.
39829
1f1f580c 398302009-04-13 Pavel Roskin <proski@gnu.org>
39831
39832 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39833 Reported by John Stanley <jpsinthemix@verizon.net>
39834
7ebc2d6b 398352009-04-13 Robert Millan <rmh@aybabtu.com>
39836
39837 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 39838 that name for menuentries when appropriate.
7ebc2d6b 39839
d8ba3667 398402009-04-13 Felix Zielcke <fzielcke@z-51.de>
39841
39842 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39843
cba416eb 398442009-04-13 Robert Millan <rmh@aybabtu.com>
39845
39846 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39847 to Linux, simply abort telling the user it's no longer supported.
39848
a547a745 398492009-04-13 Felix Zielcke <fzielcke@z-51.de>
39850
39851 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 39852 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 39853 `freebsd_loadenv' only when devices.hints exist.
39854
232a769c 398552009-04-13 Pavel Roskin <proski@gnu.org>
39856
39857 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39858
c3012039 398592009-04-13 Felix Zielcke <fzielcke@z-51.de>
39860
39861 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39862 partition number.
39863 (grub_drive): Likewise.
39864
234022fe 398652009-04-13 David S. Miller <davem@davemloft.net>
39866
39867 * kern/sparc64/ieee1275/ieee1275.c: New file.
39868 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39869 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39870 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39871 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39872 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39873 grub_ieee1275_alloc_physmem): Declare new exported functions.
39874
d8e1836c 39875 * include/grub/sparc64/ieee1275/loader.h: New file.
39876 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39877 * include/grub/sparc64/kernel.h: Likewise.
39878 * loader/sparc64/ieee1275/linux.c: Likewise.
39879
96bd81ec 39880 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39881 (grub_fstest_SOURCES): Likewise.
39882
6a4737e5 39883 * util/hostdisk.c (make_device_name): Do not make any assumptions
39884 about the length of drive names.
39885
1d7a72fd 39886 * kern/dl.c (grub_dl_load_file): Close file immediately when
39887 we are done using it.
39888
56bc2471 398892009-04-12 David S. Miller <davem@davemloft.net>
39890
39891 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39892 values. Noticed by Pavel Roskin.
39893
df38d0bb 39894 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39895 target compiler.
7dd4a573 39896
e382e93a 39897 * genmk.rb: Add more flexible image type specification, also
39898 pass --strip-unneeded to objcopy.
39899 * conf/i386-pc.rmk: Use *_FORMAT.
39900 * conf/i386-pc.mk: Rebuilt.
39901
f5dbbca9 39902 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39903 (OFDISK_HASH_SZ): Define.
39904 (ofdisk_hash): New hash table.
39905 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39906 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39907 instead of device phandle which is not unique.
39908
91c88b12 39909 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39910 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39911 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39912 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39913 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39914 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39915 GRUB_KERNEL_MACHINE_DATA_END): Define.
39916 (grub_kernel_image_size, grub_total_module_size): Declare.
39917
5b5d4aa5 399182009-04-12 Pavel Roskin <proski@gnu.org>
39919
7dd4a573 39920 * configure.ac: Change the logic when we check for target tools.
39921 Do it when the target is specified and it's different from the
39922 specified value of the host.
5b5d4aa5 39923
c91e1793 399242009-04-11 Felix Zielcke <fzielcke@z-51.de>
39925
39926 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39927 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39928 GNU/kFreeBSD. Check if a device is a character device. Use
39929 DIOCGMEDIASIZE to get the size.
39930 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39931 support for GNU/kFreeBSD.
39932 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39933 is a character device instead of a block device. Add support for
39934 FreeBSD device names.
39935
39936 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39937 is a character device instead of a block device.
39938
39939 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39940 is a character device instead of a block device.
39941
b1ac8644 399422009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39943
39944 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39945 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39946 FreeBSD. Check if a device is a character device. Use
39947 DIOCGMEDIASIZE to get the size.
39948 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39949 support for FreeBSD.
39950 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39951 is a character device instead of a block device. Add support for
39952 FreeBSD device names.
39953
39954 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39955 a character device instead of a block device.
39956 (grub_util_check_char_device): New function.
39957
39958 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39959 a character device instead of a block device.
39960
39961 * include/grub/util/getroot.h (grub_util_check_char_device): New
39962 prototype.
39963
a3f7515a 399642009-04-11 David S. Miller <davem@davemloft.net>
39965
39966 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39967 static libgcc.
39968 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39969 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39970 function, if present.
39971 (__bswapdi2): Likewise.
39972
0d44993d 39973 * include/grub/sparc64/ieee1275/boot.h: New file.
39974 * boot/sparc64/ieee1275/boot.S: Likewise.
39975 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39976
ed3d2bc2 39977 * kern/misc.c (grub_ltoa): New function.
39978 (grub_vsprintf): Use it to format 'long' integers.
39979
d3bfb59c 399802009-04-10 David S. Miller <davem@davemloft.net>
39981
39982 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39983 slots are of type grub_ieee1275_cell_t.
39984 (grub_nand_read): Likewise.
39985 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39986 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39987 macros are used to compare values in arg/ret block of the call.
39988 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39989 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39990 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39991 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39992 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39993 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39994 grub_ieee1275_close, grub_ieee1275_set_property,
39995 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39996 grub_ieee1275_cell_t.
39997 * kern/ieee1275/openfw.c (grub_map): Likewise.
39998 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39999 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
40000
450e2238 40001 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
40002 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
40003 (grub_devalias_iterate): Likewise.
40004
7dd4a573 400052009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 40006
40007 UFS improvements
40008
40009 * fs/ufs.c (INODE_NBLOCKS): new definition
40010 (struct grub_ufs_dirent): added fields for non-BSD dirents
40011 (grub_ufs_get_file_block): fixed double indirect handling
40012 (grub_ufs_lookup_symlink): use more robust way to determine whether
40013 symlink is inline
40014 (grub_ufs_find_file): support for non-BSD dirents
40015 (grub_ufs_dir): support for non-BSD dirents
40016
e7e6862a 400172009-04-10 Bean <bean123ch@gnail.com>
40018
40019 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40020 attribute, otherwise the size would be wrong for i386 platform.
40021
40022 * include/grub/pci.h (grub_pci_read_word): New inline function.
40023 (grub_pci_read_byte): Likewise.
40024 (grub_pci_write): Likewise.
40025 (grub_pci_write_word): Likewise.
40026 (grub_pci_write_byte): Likewise.
40027
40028 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40029
40030 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40031 (find_framebuf): Scan pci to locate the frame buffer address.
40032
40033 * commands/efi/fixvideo.c: New file.
40034
40035 * commands/efi/loadbios.c: Likewise.
40036
40037 * commands/memrw.c: Likewise.
40038
40039 * util/grub-dumpbios.in: Likewise.
40040
40041 * conf/common.rmk (grub-dumpbios): New utility.
40042 (pkglib_MODULES): New module memrw.mod.
40043 (memrw_mod_SOURCE): New macro.
40044 (memrw_mod_CFLAGS): Likewise.
40045 (memrw_mod_LDFLAGS): Likewise.
40046
7dd4a573 40047 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 40048 fixvideo.mod.
40049 (loadbios_mod_SOURCE): New macro.
40050 (loadbios_mod_CFLAGS): Likewise.
40051 (loadbios_mod_LDFLAGS): Likewise.
40052 (fixvideo_mod_SOURCE): Likewise.
40053 (fixvideo_mod_CFLAGS): Likewise.
40054 (fixvideo_mod_LDFLAGS): Likewise.
40055
7dd4a573 40056 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 40057 fixvideo.mod.
40058 (loadbios_mod_SOURCE): New macro.
40059 (loadbios_mod_CFLAGS): Likewise.
40060 (loadbios_mod_LDFLAGS): Likewise.
40061 (fixvideo_mod_SOURCE): Likewise.
40062 (fixvideo_mod_CFLAGS): Likewise.
40063 (fixvideo_mod_LDFLAGS): Likewise.
40064
af63ada2 400652009-04-08 Felix Zielcke <fzielcke@z-51.de>
40066
40067 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40068
c2cdde70 400692009-04-07 David S. Miller <davem@davemloft.net>
40070
40071 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40072 support for R_SPARC_OLO10 relocations. Fix compile warning for
40073 R_SPARC_WDISP30 case.
ea3f72cf 40074 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 40075
761319cf 400762009-04-06 Pavel Roskin <proski@gnu.org>
40077
1007d1f5 40078 * include/grub/misc.h (ARRAY_SIZE): New macro.
40079 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40080 New macro.
40081 * loader/i386/linux.c (allocate_pages): Use free_pages().
40082 (grub_linux_unload): Don't use free_pages().
40083 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40084 wrong index. Treat all other modes as text modes.
40085 (grub_cmd_linux): Initialize vid_mode unconditionally to
40086 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40087
761319cf 40088 * commands/help.c (print_command_help): Use cmd->prio, not
40089 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40090
ea761d40 400912009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 40092
ea761d40 40093 Parttool
40094
40095 * parttool/pcpart.c: new file
40096 * commands/parttool.c: likewise
40097 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40098 (parttool_mod_SOURCES): new variable
40099 (parttool_mod_CFLAGS): likewise
40100 (parttool_mod_LDFLAGS): likewise
40101 (pcpart_mod_SOURCES): likewise
40102 (pcpart_mod_CFLAGS): likewise
40103 (pcpart_mod_LDFLAGS): likewise
7dd4a573 40104 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 40105 and parttool/pcpart.c
40106 * conf/i386-efi.rmk: likewise
40107 * conf/i386-ieee1275.rmk: likewise
40108 * conf/i386-pc.rmk: likewise
40109 * conf/powerpc-ieee1275.rmk: likewise
40110 * conf/sparc64-ieee1275.rmk: likewise
40111 * conf/x86_64-ieee1275.rmk: likewise
40112
05aaebfb 401132009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40114
40115 Support for mtime and further expandability of dir command
40116
40117 * include/grub/lib/datetime.h: moved to ...
7dd4a573 40118 * include/grub/datetime.h: ... moved here and added
05aaebfb 40119 declaration of grub_unixtime2datetime. All users updated
7dd4a573 40120 * include/grub/fs.h: new syntax for dir and mtime functions in
40121 struct grub_fs
05aaebfb 40122 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40123 and GRUB_FSHELP_FLAGS_MASK
40124 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40125 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40126 (grub_ext2_mtime): new function
40127 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40128 (grub_hfsplus_mtime): new function
40129 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40130 (GRUB_UFS_ATTR_FILE): likewise
40131 (GRUB_UFS_ATTR_LNK): likewise
40132 (struct grub_ufs_sblock): new fields mtime
40133 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40134 all users updated
40135 (grub_ufs_dir): mtime support
40136 (grub_ufs_mtime): new function
40137 * fs/affs.c (grub_affs_dir): use new dir syntax
40138 * fs/afs.c (grub_afs_dir): likewise
40139 * fs/cpio.c (grub_cpio_dir): likewise
40140 * fs/fat.c (grub_fat_find_dir): likewise
40141 * fs/hfs.c (grub_hfs_dir): likewise
40142 * fs/iso9660.c (grub_iso9660_dir): likewise
40143 * fs/jfs.c (grub_jfs_dir): likewise
40144 * fs/minix.c (grub_minix_dir): likewise
40145 * fs/ntfs.c (grub_ntfs_dir): likewise
40146 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40147 * fs/sfs.c (grub_sfs_dir): likewise
40148 * fs/xfs.c (grub_xfs_dir): likewise
40149 * util/hostfs.c (grub_hostfs_dir): likewise
40150 * lib/datetime.c: moved to ...
40151 * normal/datetime.c: ... moved here
40152 (grub_unixtime2datetime): new function
40153 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 40154 * normal/completion.c (iterate_dir): use new dir syntax
40155 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 40156 last modification time of a volume
7dd4a573 40157 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 40158 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 40159 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 40160 (normal_mod_SOURCES): likewise
40161 (datetime_mod_SOURCES): Removed lib/datetime.c
40162 * conf/i386-efi.rmk: likewise
7dd4a573 40163 * conf/i386-ieee1275.rmk: likewise
05aaebfb 40164 * conf/i386-pc.rmk: likewise
40165 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 40166 * conf/sparc64-ieee1275.rmk: likewise
40167 * conf/x86_64-efi.rmk: likewise
05aaebfb 40168
8a7e1a14 401692009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40170
40171 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 40172
40173 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 40174 on grub_fat_find_dir
40175 (grub_fat_find_dir): use grub_fat_iterate_dir
40176 (grub_fat_label): likewise
40177
04186a9c 401782009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40179
7dd4a573 40180 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 40181 and command.h
40182 remove extraneous kernel_elf_HEADERS
40183
da4c0bb6 401842009-04-04 Bean <bean123ch@gnail.com>
40185
40186 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40187
40188 * util/misc.c: Likewise.
40189
54ad9555 401902009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40191
40192 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40193 instead of grub_printf.
40194
7a6bf9f2 401952009-04-03 Robert Millan <rmh@aybabtu.com>
40196
40197 * loader/i386/linux.c (grub_linux_setup_video): Fill
40198 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40199 values from `mode info' structure instead of hardcoded
40200 values.
40201
3fcc2083 402022009-04-01 Pavel Roskin <proski@gnu.org>
40203
40204 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40205 unused now.
40206 * genmk.rb: Likewise.
40207 * configure.ac: Likewise.
40208
5ec9740b 402092009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40210
40211 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40212 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40213
5270cec8 402142009-04-01 David S. Miller <davem@davemloft.net>
40215
40216 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 40217 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 40218 (grub_setjmp): Mark with 'returns_twice' attribute.
40219 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40220 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40221 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40222
9c3dd854 402232009-04-01 Robert Millan <rmh@aybabtu.com>
40224
40225 Reapply fix from 2008-07-28 which was accidentally reverted; also
40226 perform the same fix to a similar check in same function.
40227
40228 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40229 with the same number are found, just use issue a warning with
40230 grub_dprintf(), as this error has been reported to be non-fatal.
40231
0d818b7e 402322009-03-31 Pavel Roskin <proski@gnu.org>
40233
40234 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40235 for cross-compilation.
40236
95646d92 402372009-03-30 Robert Millan <rmh@aybabtu.com>
40238
40239 Fix i386-ieee1275 build.
40240
40241 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40242 Remove declaration.
40243
6a003ed1 402442009-03-30 Pavel Roskin <proski@gnu.org>
40245
40246 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40247 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40248 zero-terminated, rely only on the strlen value. Fix comparison
40249 of strings differing in length.
40250
92f33540 402512009-03-30 Robert Millan <rmh@aybabtu.com>
40252
40253 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40254 checking for abi version. Improve error messages on BIOS to notify
40255 user about `linux16' command.
40256
a8c48fd5 402572009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40258
f968172e 40259 Leak fixes
a8c48fd5 40260
f968172e 40261 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40262 in case of collision
40263 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 40264
9c323f09 402652009-03-29 Robert Millan <rmh@aybabtu.com>
40266
40267 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40268 set `vid_mode' accordingly.
40269 (grub_linux_boot): Process `vid_mode' and set video mode.
40270
ae68f423 402712009-03-29 Robert Millan <rmh@aybabtu.com>
40272
40273 * util/grub.d/10_linux.in (linux_entry): New function.
40274 Factorize generation of Linux boot entries.
40275
5709cfc4 402762009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40277
40278 Make the format of Environment Block plain text. The boot loader
40279 part is not tested well yet.
7dd4a573 40280
5709cfc4 40281 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40282 (buffer): Removed.
40283 (envblk): Likewise.
40284 (usage): Remove "info" and "clear". Add "unset". Update the
40285 description of "set", as this does not delete variables any
40286 longer.
40287 (create_envblk_file): Complete rewrite.
40288 (open_envblk_file): Likewise.
40289 (cmd_info): Removed.
40290 (cmd_list): Likewise.
40291 (cmd_set): Likewise.
40292 (cmd_clear): Likewise.
40293 (list_variables): New function.
40294 (write_envblk): Likewise.
40295 (set_variables): Likewise.
40296 (unset_variables): Likewise.
40297 (main): Complete rewrite.
40298
40299 * commands/loadenv.c (buffer): Removed.
40300 (envblk): Likewise.
40301 (open_envblk_file): New function.
40302 (read_envblk_file): Complete rewrite.
40303 (grub_cmd_load_env): Likewise.
40304 (grub_cmd_list_env): Likewise.
40305 (struct blocklist): New struct.
40306 (free_blocklists): New function.
40307 (check_blocklists): Likewise.
40308 (write_blocklists): Likewise.
40309 (grub_cmd_save_env): Complete rewrite.
40310
40311 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40312 a plain text signature.
40313 (GRUB_ENVBLK_MAXLEN): Removed.
40314 (struct grub_envblk): Complete rewrite.
40315 (grub_envblk_find): Removed.
40316 (grub_envblk_insert): Likewise.
40317 (grub_envblk_open): New prototype.
40318 (grub_envblk_set): Likewise.
40319 (grub_envblk_delete): Put const to VALUE.
40320 (grub_envblk_iterate): Put const to NAME and VALUE.
40321 (grub_envblk_close): New prototype.
40322 (grub_envblk_buffer): New inline function.
40323 (grub_envblk_size): Likewise.
40324
40325 * lib/envblk.c: Include grub/mm.h.
40326 (grub_env_find): Removed.
40327 (grub_envblk_open): New function.
40328 (grub_envblk_close): Likewise.
40329 (escaped_value_len): Likewise.
40330 (find_next_line): Likewise.
40331 (grub_envblk_insert): Removed.
40332 (grub_envblk_set): New function.
40333 (grub_envblk_delete): Complete rewrite.
40334 (grub_envblk_iterate): Likewise.
40335
a9368fd3 403362009-03-28 Robert Millan <rmh@aybabtu.com>
40337
40338 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40339 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40340 variables. Use 16-bit loader.
40341 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40342 loader.
40343 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40344 (grub_linux16_boot): ... this. Update all users.
40345 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40346 (grub_linux_boot): ... this. Update all users.
40347
40348 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40349 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40350 commands to `linux16' and `initrd16'.
40351 (GRUB_MOD_FINI(linux)): Rename to ...
40352 (GRUB_MOD_FINI(linux16)): ... this.
40353
e4dd5a7e 403542009-03-24 Pavel Roskin <proski@gnu.org>
40355
40356 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40357 not just for compilation.
40358
c04d6e05 403592009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40360
40361 Move multiboot helper out of kernel
40362
40363 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40364 `loader/i386/multiboot_helper.S'.
40365 * conf/i386-coreboot.rmk: Likewise
40366 * conf/i386-ieee1275.rmk: Likewise
40367
40368 * kern/i386/loader.S: Move multiboot helpers from here...
40369 * loader/i386/multiboot_helper.S: ...moved here
40370 * include/grub/i386/loader.h: Move declarations of multiboot
40371 helpers from here...
40372 * include/grub/i386/multiboot.h: ...moved here
40373 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40374
42a5b3fc 403752009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40376
40377 * kern/env.c (grub_env_context_open): Added an argument to specify
40378 whether a new context inherits exported variables from current
40379 one. This is useful when making a sandbox to interpret a config
40380 file.
40381 All callers updated.
40382
40383 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40384
b28bbc4e 403852009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40386
40387 * kern/env.c (grub_env_context_close): Fix memory leaks.
40388
f04f02e4 403892009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40390
40391 * normal/main.c (grub_normal_execute): Added an argument
40392 BATCH to specify if an interactive interface should be provided
40393 after reading a config file.
40394 All callers updated.
40395 (read_command_list): Prevent being executed twice.
40396 (read_fs_list): Likewise.
40397
42a5b3fc 40398 * include/grub/normal.h (grub_normal_execute): Updated the
40399 prototype.
f04f02e4 40400
41473ac2 404012009-03-22 Pavel Roskin <proski@gno.org>
40402
fbc00b0c 40403 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40404 _start.
40405 * kern/i386/pc/startup.S: Likewise.
40406 * kern/i386/efi/startup.S: Likewise.
40407 * kern/i386/ieee1275/startup.S: Likewise.
40408 * kern/i386/coreboot/startup.S: Likewise.
40409 * kern/x86_64/efi/startup.S: Likewise.
40410
41473ac2 40411 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40412 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40413 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40414
2274cc8f 404152009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40416
40417 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40418
40419 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40420 limit detection.
40421 Use vaddr of correct segment for entry_point.
40422
b1b797cb 404232009-03-21 Bean <bean123ch@gmail.com>
40424
40425 * commands/blocklist.c: Add include file <grub/command.h>, remove
40426 <grub/normal.h> and <grub/arg.h>.
40427 (grub_cmd_blocklist): Use the new command interface.
40428 (GRUB_MOD_INIT): Likewise.
40429 (GRUB_MOD_FINI): Likewise.
40430 * commands/boot.c: Likewise.
40431 * commands/cat.c: Likewise.
40432 * commands/cmp.c: Likewise.
40433 * commands/configfile.c: Likewise.
40434 * commands/crc.c: Likewise.
40435 * commands/echo.c: Likewise.
40436 * commands/halt.c: Likewise.
40437 * commands/handler.c: Likewise.
40438 * commands/hdparm.c: Likewise.
40439 * commands/help.c: Likewise.
40440 * commands/hexdump.c: Likewise.
40441 * commands/loadenv.c: Likewise.
40442 * commands/ls.c: Likewise.
40443 * commands/lsmmap.c: Likewise.
40444 * commands/lspci.c: Likewise.
40445 * commands/loadenv.c: Likewise.
40446 * commands/read.c: Likewise.
40447 * commands/reboot.c: Likewise.
40448 * commands/search.c: Likewise.
40449 * commands/sleep.c: Likewise.
40450 * commands/test.c: Likewise.
40451 * commands/usbtest.c: Likewise.
40452 * commands/videotest.c: Likewise.
40453 * commands/i386/cpuid.c: Likewise.
40454 * commands/i386/pc/halt.c: Likewise.
40455 * commands/i386/pc/play.c: Likewise.
40456 * commands/i386/pc/pxecmd.c: Likewise.
40457 * commands/i386/pc/vbeinfo.c: Likewise.
40458 * commands/i386/pc/vbetest.c: Likewise.
40459 * commands/ieee1275/suspend.c: Likewise.
40460 * disk/loopback.c: Likewise.
40461 * font/font_cmd.c: Likewise.
40462 * hello/hello.c: Likewise.
40463 * loader/efi/appleloader.c: Likewise.
40464 * loader/efi/chainloader.c: Likewise.
40465 * loader/i386/bsd.c: Likewise.
40466 * loader/i386/efi/linux.c: Likewise.
40467 * loader/i386/ieee1275/linux.c: Likewise.
40468 * loader/i386/linux.c: Likewise.
40469 * loader/i386/pc/chainloader.c: Likewise.
40470 * loader/i386/pc/linux.c: Likewise.
40471 * loader/powerpc/ieee1275/linux.c: Likewise.
40472 * loader/multiboot_loader.c: Likewise.
40473 * term/gfxterm.c: Likewise.
40474 * term/i386/pc/serial.c: Likewise.
40475 * term/terminfo.c: Likewise.
40476
40477 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40478 * term/i386/pc/vga.c: Likewise.
40479 * video/readers/jpeg.c: Likewise.
40480 * video/readers/png.c: Likewise.
40481 * video/readers/tga.c: Likewise.
40482
40483 * util/grub-fstest (cmd_loopback): Removed.
40484 (cmd_blocklist): Likewise.
40485 (cmd_ls): Likewise.
40486 (grub_register_command): Likewise.
40487 (grub_unregister_command): Likewise.
40488 (execute_command): Use grub_command_find to locate command and execute
40489 it.
40490
40491 * include/grub/efi/chainloader.h: Removed.
40492 * loader/efi/chainloader_normal.c: Likewise.
40493 * loader/i386/bsd_normal.c: Likewise.
40494 * loader/i386/pc/chainloader_normal.c: Likewise.
40495 * loader/i386/pc/multiboot_normal.c: Likewise.
40496 * loader/linux_normal.c: Likewise.
40497 * loader/multiboot_loader_normal.c: Likewise.
40498 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40499
40500 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40501 and grub_register_command_p1.
40502
40503 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40504 kern/command.c, lib/arg.c and commands/extcmd.c.
40505 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40506 (minicmd_mod_SOURCES): New variable.
40507 (minicmd_mod_CFLAGS): Likewise.
40508 (minicmd_mod_LDFLAGS): Likewise.
40509 (extcmd_mod_SOURCES): Likewise.
40510 (extcmd_mod_CFLAGS): Likewise.
40511 (extcmd_mod_LDFLAGS): Likewise.
40512 (boot_mod_SOURCES): Removed.
40513 (boot_mod_CFLAGS): Likewise.
40514 (boot_mod_LDFLAGS): Likewise.
40515
40516 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40517 kern/corecmd.c.
40518 (kernel_img_HEADERS): Add command.h.
40519 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40520 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40521 and lib/arg.c.
40522 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40523 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40524 remove the corresponding normal mode command.
40525 (normal_mod_SOURCES): Remove normal/arg.c.
40526 * conf/i386-coreboot.rmk: Likewise.
40527 * conf/i386-efi.rmk: Likewise.
40528 * conf/i386-ieee1275.rmk: Likewise.
40529 * conf/powerpc-ieee1275.rmk: Likewise.
40530 * conf/x86_64-efi.rmk: Likewise.
40531
40532 * include/grub/arg.h: Move from here ...
40533 * include/grub/lib/arg.h: ... to here.
40534
40535 * normal/arg.c: Move from here ...
40536 * lib/arg.c: ... to here.
40537
40538 * commands/extcmd.c: New file.
40539 * commands/minicmd.c: Likewise.
40540 * include/grub/command.h: Likewise.
40541 * include/grub/extcmd.h: Likewise.
40542 * kern/command.c: Likewise.
40543 * kern/corecmd.c: Likewise.
40544
40545 * kern/list.c (grub_list_iterate): Return int instead of void.
40546 (grub_list_insert): New function.
40547 (grub_prio_list_insert): Likewise.
40548
40549 * kern/rescue.c (grub_rescue_command): Removed.
40550 (grub_rescue_command_list): Likewise.
40551 (grub_rescue_register_command): Likewise.
40552 (grub_rescue_unregister_command): Likewise.
40553 (grub_rescue_cmd_boot): Move to minicmd.c
40554 (grub_rescue_cmd_help): Likewise.
40555 (grub_rescue_cmd_info): Likewise.
40556 (grub_rescue_cmd_boot): Likewise.
40557 (grub_rescue_cmd_testload): Likewise.
40558 (grub_rescue_cmd_dump): Likewise.
40559 (grub_rescue_cmd_rmmod): Likewise.
40560 (grub_rescue_cmd_lsmod): Likewise.
40561 (grub_rescue_cmd_exit): Likewise.
40562 (grub_rescue_print_devices): Moved to corecmd.c.
40563 (grub_rescue_print_files): Likewise.
40564 (grub_rescue_cmd_ls): Likewise.
40565 (grub_rescue_cmd_insmod): Likewise.
40566 (grub_rescue_cmd_set): Likewise.
40567 (grub_rescue_cmd_unset): Likewise.
7d074e3c 40568 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 40569 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 40570 commands, remove grub_rescue_register_command calls.
b1b797cb 40571
7d074e3c 40572 * normal/command.c (grub_register_command): Removed.
b1b797cb 40573 (grub_unregister_command): Likewise.
40574 (grub_command_find): Likewise.
40575 (grub_iterate_commands): Likewise.
40576 (rescue_command): Likewise.
40577 (export_command): Moved to corecmd.c.
40578 (set_command): Removed.
40579 (unset_command): Likewise.
40580 (insmod_command): Likewise.
40581 (rmmod_command): Likewise.
40582 (lsmod_command): Likewise.
40583 (grub_command_init): Likewise.
40584
40585 * normal/completion.c (iterate_command): Use cmd->prio to check for
40586 active command.
40587 (complete_arguments): Use grub_extcmd_t structure to find options.
40588 (grub_normal_do_completion): Change function grub_iterate_commands to
40589 grub_command_iterate.
40590
40591 * normal/execute.c (grub_script_execute_cmd): No need to parse
40592 argument here.
40593
40594 * normal/main.c (grub_dyncmd_dispatcher): New function.
40595 (read_command_list): Register unload commands as dyncmd.
40596 (grub_cmd_normal): Use new command interface, register rescue,
40597 unregister normal at entry, register normal, unregister rescue at exit.
40598
40599 * include/grub/list.h (grub_list_test_t): New type.
40600 (grub_list_iterate): Return int instead of void.
40601 (grub_list_insert): New function.
40602 (GRUB_AS_NAMED_LIST_P): New macro.
40603 (GRUB_AS_PRIO_LIST): Likewise.
40604 (GRUB_AS_PRIO_LIST_P): Likewise.
40605 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40606 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40607 (grub_prio_list): New structure.
40608 (grub_prio_list_insert): New function.
40609 (grub_prio_list_remove): New inline function.
40610
40611 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40612 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40613 (GRUB_COMMAND_FLAG_MENU): Likewise.
40614 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40615 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40616 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40617 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40618 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40619 (grub_command): Likewise.
40620 (grub_register_command): Likewise.
40621 (grub_command_find): Likewise.
40622 (grub_iterate_commands): Likewise.
40623 (grub_command_init): Likewise.
40624 (grub_arg_parse): Likewise.
40625 (grub_arg_show_help): Likewise.
40626
40627 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40628 (grub_rescue_unregister_command): Likewise.
40629
40630 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40631 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40632 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40633
40634 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40635 grub_rescue_cmd_initrd.
40636 * include/grub/i386/loader.h: Likewise.
40637 * include/grub/x86_64/loader.h: Likewise.
40638
40639 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40640
1f4147aa 406412009-03-21 Bean <bean123ch@gmail.com>
40642
40643 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40644 instead of stat in mingw environment.
40645
40646 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40647
40648 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40649
40650 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40651 AC_CONFIG_LINKS.
40652
2156d5ba 406532009-03-21 Bean <bean123ch@gmail.com>
40654
40655 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40656 out of range error.
40657
177b82ca 406582009-03-18 Michel Dänzer <michel@daenzer.net>
40659
40660 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40661 checking inode flags for EXT4_EXTENTS_FLAG.
40662
14aad807 406632009-03-18 Robert Millan <rmh@aybabtu.com>
40664
40665 * loader/i386/linux.c: Include `<grub/video.h>' and
40666 `<grub/i386/pc/vbe.h>'..
40667 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40668 (grub_linux32_boot): Attempt to configure video settings with
40669 grub_linux_setup_video().
40670 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40671 to avoid grub_console_fini() which would step out of graphical mode
40672 unconditionally.
40673
8cf83a27 406742009-03-14 Robert Millan <rmh@aybabtu.com>
40675
40676 Fix build on powerpc.
40677 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40678
40164e75 406792009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40680
40681 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40682 background image command.
40683
c58bc32a 406842009-03-12 Colin D Bennett <colin@gibibit.com>
40685
40686 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40687 (grub_gfxterm_putchar): Extract pairs of identical calls to
40688 draw_cursor out of conditional blocks.
40689
5415144a 406902009-03-11 Pavel Roskin <proski@gnu.org>
40691
40692 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40693 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40694
6394042e 406952009-03-11 Robert Millan <rmh@aybabtu.com>
40696
40697 * loader/i386/multiboot_elfxx.c
40698 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40699
b7b50e5f 407002009-03-11 Felix Zielcke <fzielcke@z-51.de>
40701
40702 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40703 `kern/handler.c'.
40704
1ca7fc96 407052009-03-11 Robert Millan <rmh@aybabtu.com>
40706
40707 * loader/i386/multiboot.c (code_size): New variable.
40708 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 40709 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 40710 4-byte alignment to MBI and others by increasing
7d074e3c 40711 `boot_loader_name_length' appropriately.
1ca7fc96 40712
40713 * loader/i386/multiboot_elfxx.c
40714 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40715
a83ea1d2 407162009-03-09 Felix Zielcke <fzielcke@z-51.de>
40717
40718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40719 `fs/ext2.c'.
40720
aa9f3bff 407212009-03-08 Robert Millan <rmh@aybabtu.com>
40722
40723 Make loader/i386/linux.c usable on i386-pc again.
40724
40725 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40726 memory to heap.
40727 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40728 `#error' stanza.
40729
d8b3b60e 407302009-03-07 Bean <bean123ch@gmail.com>
40731
40732 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40733 allocation.
40734
b362c9e9 407352009-03-06 Robert Millan <rmh@aybabtu.com>
40736
40737 Fix display issue on terminals with screen size other than 80x25
40738 (e.g. gfxterm with resolution higher than 640x480).
40739
40740 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 40741 position relative to the center of the terminal instead of relying
b362c9e9 40742 on a hardcoded offset.
40743
9304eef1 407442009-03-04 Robert Millan <rmh@aybabtu.com>
40745
40746 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40747 installed.
40748
40749 * Makefile.in (host_kernel): New variable.
40750 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40751 scripts instead of just the windows one.
40752 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40753
eabc95fb 407542009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 40755
40756 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40757 `kern/handler.c'.
40758 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40762 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40763 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40764
ceb1223c 407652009-03-04 Felix Zielcke <fzielcke@z-51.de>
40766
40767 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40768 or if there's no space for the disk label and print the partition number on a
40769 invalid magic.
40770
4910684a 407712009-03-04 Felix Zielcke <fzielcke@z-51.de>
40772
40773 * util/misc.c: Include <time.h>.
40774 (grub_millisleep): New function.
40775
7e9ca17a 407762009-03-04 Bean <bean123ch@gmail.com>
40777
40778 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40779 another option -mno-red-zone.
40780
40781 * commands/handler.c: Change module description.
40782
40783 * kern/handler.c: Add missing space at the end of description line.
40784
40785 * kern/list.c: Likewise.
40786
f501677c 407872009-03-03 Robert Millan <rmh@aybabtu.com>
40788
40789 Move more components to the relocation area, and fix mbi pointer
40790 handling to use the destination rather than the origin (thanks to
40791 Vladimir Serbinenko for spotting).
40792
40793 * loader/i386/multiboot.c (mbi_dest): New variable.
40794 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40795 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40796 relocation area.
40797
9902d047 407982009-03-01 Bean <bean123ch@gmail.com>
40799
50fb7002 40800 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 40801 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40802 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40803 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40804
40805 * loader/i386/efi/linux.c (acpi_guid): New variable.
40806 (acpi_guid): Likewise.
40807 (EBDA_SEG_ADDR): New constant.
40808 (LOW_MEM_ADDR): Likewise.
40809 (FAKE_EBDA_SEG): Likewise.
40810 (fake_bios_data): New function.
40811 (grub_linux_boot): Call fake_bios_data.
40812
71b9f361 408132009-03-01 Bean <bean123ch@gmail.com>
40814
40815 * commands/terminal.c: Removed.
40816
40817 * commands/handler.c: New file.
40818
40819 * include/grub/list.h: Likewise.
40820
40821 * include/grub/handler.h: Likewise.
40822
40823 * kern/list.c: Likewise.
40824
40825 * kern/handler.c: Likewise.
40826
40827 * kern/term.h: Include header file <grub/handler.h>.
40828 (grub_term_input): Move next field to the beginning.
40829 (grub_term_output): Likewise.
40830 (grub_term_input_class): New variable.
40831 (grub_term_output_class): Likewise.
40832 (grub_term_register_input): Changed to inline function.
40833 (grub_term_register_output): Likewise.
40834 (grub_term_unregister_input): Likewise.
40835 (grub_term_unregister_output): Likewise.
40836 (grub_term_set_current_input): Likewise.
40837 (grub_term_set_current_output): Likewise.
40838 (grub_term_get_current_input): Likewise.
40839 (grub_term_get_current_output): Likewise.
40840 (grub_term_iterate_input): Removed.
40841 (grub_term_iterate_output): Likewise.
40842
40843 * kern/term.c (grub_term_list_input): Removed.
40844 (grub_term_list_output): Likewise.
40845 (grub_term_input_class): New variable.
40846 (grub_term_output_class): Likewise.
50fb7002 40847 (grub_cur_term_input): Change variable as macro.
71b9f361 40848 (grub_cur_term_output): Likewise.
40849 (grub_term_register_input): Removed.
40850 (grub_term_register_output): Likewise.
40851 (grub_term_unregister_input): Likewise.
40852 (grub_term_unregister_output): Likewise.
40853 (grub_term_set_current_input): Likewise.
40854 (grub_term_set_current_output): Likewise.
40855 (grub_term_iterate_input): Likewise.
40856 (grub_term_iterate_output): Likewise.
40857 (grub_term_get_current_input): Likewise.
40858 (grub_term_get_current_output): Likewise.
40859
40860 * util/grub-editenv.c: Include header file <grub/handler.h>.
40861 (grub_term_get_current_input): Removed.
40862 (grub_term_get_current_output): Likewise.
40863 (grub_term_input_class): New variable.
50fb7002 40864 (grub_term_output_class): Likewise.
71b9f361 40865
40866 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40867 (grub_term_get_current_output): Likewise.
40868 (grub_term_input_class): New variable.
50fb7002 40869 (grub_term_output_class): Likewise.
71b9f361 40870
40871 * util/grub-probe.c (grub_term_get_current_input): Removed.
40872 (grub_term_get_current_output): Likewise.
40873 (grub_term_input_class): New variable.
50fb7002 40874 (grub_term_output_class): Likewise.
71b9f361 40875
40876 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40877 (grub_term_get_current_output): Likewise.
40878 (grub_term_input_class): New variable.
50fb7002 40879 (grub_term_output_class): Likewise.
71b9f361 40880
40881 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40882 (terminal_mod_SOURCES): Likewise.
40883 (terminal_mod_CFLAGS): Likewise.
40884 (terminal_mod_LDFLAGS): Likewise.
40885
40886 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40887 handler.c.
40888 (kernel_img_SOURCES): Add list.c and handler.c.
40889 (kernel_img_HEADERS): Add list.h and handler.h.
40890
40891 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40892 handler.c.
40893 (kernel_mod_SOURCES): Add list.c and handler.c.
40894 (kernel_mod_HEADERS): Add list.h and handler.h.
40895
40896 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40897 handler.c.
40898 (kernel_elf_SOURCES): Add list.c and handler.c.
40899 (kernel_elf_HEADERS): Add list.h and handler.h.
40900
40901 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40902 handler.c.
40903 (kernel_elf_SOURCES): Add list.c and handler.c.
40904 (kernel_elf_HEADERS): Add list.h and handler.h.
40905
40906 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40907 handler.c.
40908 (kernel_mod_SOURCES): Add list.c and handler.c.
40909 (kernel_mod_HEADERS): Add list.h and handler.h.
40910
40911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40912 handler.c.
40913 (kernel_elf_SOURCES): Add list.c and handler.c.
40914 (kernel_elf_HEADERS): Add list.h and handler.h.
40915
8a31787f 409162009-02-27 Robert Millan <rmh@aybabtu.com>
40917
40918 Factorize elf32 / elf64 code in Multiboot loader. This will
40919 prevent it from getting out of sync again.
40920
40921 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40922 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40923 grub_multiboot_load_elf64): Move from here ...
40924 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40925 grub_multiboot_load_elf): ... to here (new file).
40926
51cd3dfc 409272009-02-27 Robert Millan <rmh@aybabtu.com>
40928
40929 * util/grub.d/10_linux.in: Rename "single-user mode" to
40930 "recovery mode".
40931
6e8c9c3a 409322009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40933
40934 Don't leak in SCSI code.
40935 * disk/scsi.c (grub_scsi_close): free `scsi'.
40936
4b6bf4f9 409372009-02-27 Robert Millan <rmh@aybabtu.com>
40938
40939 * loader/i386/pc/multiboot.c: Move from here ...
40940 * loader/i386/multiboot.c: ... to here. Update all users.
40941
b9413424 409422009-02-27 Robert Millan <rmh@aybabtu.com>
40943
40944 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40945 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40946
50fb7002 409472009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 40948
40949 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40950 b-tree.
40951
8cc50345 409522009-02-27 Robert Millan <rmh@aybabtu.com>
40953
40954 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40955 `0x' qualifier as 0 when base is specified as parameter).
40956
6e09b8b7 409572009-02-24 Bean <bean123ch@gmail.com>
40958
40959 * configure.ac: Check for -mcmodel=large in x86_64 target.
40960
40961 * include/grub/efi/api.h (efi_call_10): New macro.
40962 (efi_wrap_10): New function.
40963
40964 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40965 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40966 (GRUB_PE32_REL_BASED_LOW): Likewise.
40967 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40968 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40969 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40970 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40971 (GRUB_PE32_REL_BASED_REL): Likewise.
40972 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40973 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40974 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40975
40976 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40977 issue.
40978
40979 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40980 (efi_wrap_10): New function.
40981
40982 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40983
40984 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40985 MB/MBP model (NV chipset).
40986 (devdata_devs): Add devpath_5 to the list.
40987
40988 * load/i386/efi/linux.c (video_base): Remove variable.
40989 (RGB_MASK): New macro.
40990 (RGB_MAGIC): Likewise.
40991 (LINE_MIN): Likewise.
40992 (LINE_MAX): Likewise.
40993 (FBTEST_STEP): Likewise.
40994 (FBTEST_COUNT): Likewise.
40995 (fb_list): New variable.
40996 (grub_find_video_card): Remove function.
40997 (find_framebuf): New function.
40998 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40999 line length.
41000
41001 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
41002 problem for x86_64.
41003
74b21bee 410042009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
41005
41006 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41007
41008 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41009 coding tool name.
41010
a455f472 410112009-02-22 Robert Millan <rmh@aybabtu.com>
41012
41013 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41014 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41015 in our relocation, instead of using it directly from heap. Also
41016 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41017
6374daf3 410182009-02-21 Robert Millan <rmh@aybabtu.com>
41019
41020 Implement USB keyboard support (based on patch by Marco Gerards)
41021
41022 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41023 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41024 (usb_keyboard_mod_LDFLAGS): New variables.
41025
41026 * term/usb_keyboard.c: New file.
41027
8fa4ea70 410282009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41029
41030 Corrected wrong declaration
41031
41032 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41033
353976ac 410342009-02-14 Christian Franke <franke@computer.org>
41035
41036 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41037 (grub_lspci_iter): Print class code and programming interface byte.
41038
6aa1169b 410392009-02-14 Christian Franke <franke@computer.org>
41040
41041 * gendistlist.sh: Ignore `.svn' directories.
41042
265372ca 410432009-02-14 Felix Zielcke <fzielcke@z-51.de>
41044
41045 * fs/fat.c: Add 2009 to Copyright line.
41046
9ff516f3 410472009-02-14 Christian Franke <franke@computer.org>
41048
41049 * commands/hdparm.c: New file. Provides `hdparm' command
41050 which sends ATA commands via grub_disk_ata_pass_through ().
41051
41052 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41053
41054 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41055 and <grub/cpu/io.h> to include/grub/ata.h.
41056 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41057 (GRUB_CDROM_SECTOR_SIZE): Remove.
41058 (GRUB_ATA_*): Move to include/grub/ata.h.
41059 (GRUB_ATAPI_*): Likewise.
41060 (enum grub_ata_commands): Likewise.
41061 (enum grub_ata_timeout_milliseconds): Likewise.
41062 (struct grub_ata_device): Likewise.
41063 (grub_ata_regset): Likewise.
41064 (grub_ata_regget): Likewise.
41065 (grub_ata_regset2): Likewise.
41066 (grub_ata_regget2): Likewise.
41067 (grub_ata_check_ready): Likewise.
41068 (grub_ata_wait_not_busy): Remove static, exported in
41069 include/grub/ata.h.
41070 (grub_ata_wait_drq): Likewise.
41071 (grub_ata_pio_read): Likewise.
41072
41073 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41074 function for hdparm.mod.
41075
41076 * include/grub/ata.h: New file, contains declarations from
41077 disk/ata.c.
41078 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41079
41080 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41081 (grub_disk_ata_pass_through): New exported variable.
41082
41083 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41084
772e23da 410852009-02-13 Colin D Bennett <colin@gibibit.com>
41086
41087 Support multiple fallback entries, and provide an API to support
41088 executing default+fallback menu entries. Renamed the `terminal' menu
41089 viewer to `text'.
41090
41091 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41092 variable declaration.
41093 (grub_menu_execute_callback): New structure declaration.
41094 (grub_menu_execute_callback_t): New typedef.
41095 (grub_menu_execute_with_fallback): New function declaration.
41096 (grub_menu_get_entry): Likewise.
41097 (grub_menu_get_timeout): Likewise.
41098 (grub_menu_set_timeout): Likewise.
41099
41100 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41101
41102 * normal/menu.c (grub_wait_after_message): Moved to
41103 `normal/menu_text.c'.
41104 (draw_border): Likewise.
41105 (print_message): Likewise.
41106 (print_entry): Likewise.
41107 (print_entries): Likewise.
41108 (grub_menu_init_page): Likewise.
41109 (get_entry_number): Likewise.
41110 (print_timeout): Likewise.
41111 (run_menu): Likewise.
41112 (grub_menu_execute_entry): Likewise.
41113 (show_text_menu): Likewise.
41114 (get_and_remove_first_entry_number): New function.
41115 (grub_menu_execute_with_fallback): Likewise.
41116 (get_entry): Renamed to ...
41117 (grub_menu_get_entry): .. this and made it global.
41118 (get_timeout): Renamed to ...
41119 (grub_menu_get_timeout): ... this and made it global.
41120 (set_timeout): Renamed to ...
41121 (grub_menu_set_timeout): ... this and made it global.
41122 (grub_normal_terminal_menu_viewer): Renamed to ...
41123 (grub_normal_text_menu_viewer): ... this.
41124
41125 * normal/menu_text.c: New file. Extracted text-menu-specific code
41126 from normal/menu.c.
41127
41128 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41129 (normal_mod_SOURCES): Likewise.
41130
41131 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41132 (normal_mod_SOURCES): Likewise.
41133
41134 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41135 (normal_mod_SOURCES): Likewise.
41136
41137 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41138 (normal_mod_SOURCES): Likewise.
41139
41140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41141 (normal_mod_SOURCES): Likewise.
41142
41143 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41144 (normal_mod_SOURCES): Likewise.
41145
41146 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41147 (normal_mod_SOURCES): Likewise.
41148
16ac430e 411492009-02-11 Robert Millan <rmh@aybabtu.com>
41150
41151 * util/grub.d/00_header.in: Update old reference to `font' command.
41152
06ff20fc 411532009-02-10 Felix Zielcke <fzielcke@z-51.de>
41154
41155 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41156
41157 Based on patch from Javier Martín.
41158
96da9407 411592009-02-09 Felix Zielcke <fzielcke@z-51.de>
41160
41161 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 41162 to avoid false positives with FAT.
96da9407 41163 (grub_fstest_SOURCES): Likewise.
41164 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41165 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41168 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41169 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41170
6dca6fe4 411712009-02-09 Felix Zielcke <fzielcke@z-51.de>
41172
06ff20fc 41173 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 41174 bpb.version_specific.fat12_or_fat16.fstype and
41175 bpb.version_specific.fat32.fstype.
41176
2550c62f 411772009-02-08 Robert Millan <rmh@aybabtu.com>
41178
be110b30 41179 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 41180
56978920 411812009-02-08 Robert Millan <rmh@aybabtu.com>
41182
41183 * Makefile.in (host_os, host_cpu): New variables.
41184 (target_os): Remove. Update all users.
41185
d64399b5 411862009-02-08 Marco Gerards <marco@gnu.org>
41187
41188 * Makefile.in (enable_grub_emu_usb): New variable.
41189 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41190 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41191 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41192 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41193 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41194 `usbtest.mod' and `usbms.mod'.
41195 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41196 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41197 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41198 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41199 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41200 variables.
41201
41202 * disk/usbms.c: New file.
41203
41204 * include/grub/usb.h: Likewise.
41205
41206 * include/grub/usbtrans.h: Likewise.
41207
41208 * include/grub/usbdesc.h: Likewise.
41209
41210 * bus/usb/usbtrans.c: Likewise.
41211
41212 * bus/usb/ohci.c: Likewise.
41213
41214 * bus/usb/uhci.c: Likewise.
41215
41216 * bus/usb/usbhub.c: Likewise.
41217
41218 * bus/usb/usb.c: Likewise.
41219
41220 * commands/usbtest.c: Likewise.
41221
41222 * util/usb.c: Likewise.
50fb7002 41223
d64399b5 41224 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41225
41226 * configure.ac: Test for libusb presence.
50fb7002 41227
d64399b5 41228 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41229
2b40d6bb 412302009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41231
41232 * kern/mm.c: Add more comments.
41233
73a4ce81 412342009-02-08 Robert Millan <rmh@aybabtu.com>
41235
41236 Patch from Javier Martín.
41237 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41238 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41239
f821ce59 412402009-02-08 Robert Millan <rmh@aybabtu.com>
41241
41242 * fs/cpio.c: Split tar functionality to ...
41243 * fs/tar.c: ... here (new file). Update all users.
41244
aebfc4b0 412452009-02-07 Robert Millan <rmh@aybabtu.com>
41246
41247 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41248 backward-incompatible features.
41249
41250 Based on patch from Javier Martín, with some adjustments.
41251
50fb7002 412522009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 41253
41254 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41255
0bb5115e 412562009-02-07 Robert Millan <rmh@aybabtu.com>
41257
41258 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41259 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41260 after the RAID stuff.
41261
38a0f8e7 412622009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41263
50fb7002 41264 Fixes problem when running vbetest command as reported by
38a0f8e7 41265 Vladimir Serbinenko <phcoder@gmail.com>.
41266
41267 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41268
3143cc1c 412692009-02-04 Felix Zielcke <fzielcke@z-51.de>
41270
41271 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41272 /dev/md/NpN style mdraid devices.
41273
9cba6fce 412742009-02-03 Felix Zielcke <fzielcke@z-51.de>
41275
41276 * util/unifont2pff.rb: Remove.
41277
e507a2c1 412782009-02-03 Felix Zielcke <fzielcke@z-51.de>
41279
41280 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41281 `#'.
41282
d2c2b4cd 412832009-02-03 Felix Zielcke <fzielcke@z-51.de>
41284
41285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41286 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41287 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41288 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41290 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41291 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41292
b4315fb0 412932009-02-02 Christian Franke <franke@computer.org>
41294
41295 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41296
de3aa260 412972009-02-01 Felix Zielcke <fzielcke@z-51.de>
41298
7c3ff286 41299 * INSTALL: Note that we now require at least autoconf 2.59 and
41300 that LZO is optional.
de3aa260 41301
825a182b 413022009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41303
41304 Base on patch on bug #24154 created by Tomas Tintera
41305 <trosos@seznam.cz>.
41306
41307 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41308
a69ef770 413092009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41310
7c3ff286 41311 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 41312 <bero@arklinux.org>.
41313
41314 * normal/parser.y (script_init): Add missing semicolon.
41315
6fa42fa6 413162009-01-31 Colin D Bennett <colin@gibibit.com>
41317
7c3ff286 41318 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 41319 (free_menu_entry_classes): Added.
41320 (grub_normal_menu_addentry): Added class property handling.
41321 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41322 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41323
41324 * normal/menu_viewer.c: New file.
41325
41326 * normal/menu.c (run_menu_entry): Renamed to ...
41327 (grub_menu_execute_entry): ... this and made it as global.
41328 (grub_menu_run): Renamed to ...
41329 (show_text_menu): ... this and made it local.
41330 (show_text_menu): Adapt to new function names.
41331 (grub_normal_terminal_menu_viewer): New global variable.
41332
41333 * include/grub/menu.h: New file.
41334
41335 * include/grub/menu_viewer.h: New file.
41336
41337 * include/grub/normal.h: Added include to grub/menu.h.
41338 (grub_menu_entry): Moved to include/grub/menu.h.
41339 (grub_menu_entry_t): Likewise.
41340 (grub_menu): Likewise.
41341 (grub_menu_t): Likewise.
41342 (grub_normal_terminal_menu_viewer): Added.
41343 (grub_menu_execute_entry): Likewise.
41344 (grub_menu_run): Removed.
41345
41346 * DISTLIST: Added include/grub/menu.h.
41347 Added include/grub/menu_viewer.h.
41348 Added normal/menu_viewer.c.
41349
413502009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41351
41352 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41353 arglist for menutitle arguments.
41354
41355 * normal/main.c (grub_normal_menu_addentry): Likewise.
41356
41357 * normal/parser.y (menuentry): Likewise.
41358
41359 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41360
41361 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41362 (grub_script_create_cmdmenu): Likewise.
41363
41364 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41365
41366 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41367 changes.
41368
41369 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41370
41371 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41372
41373 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41374
41375 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41376
41377 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41378
41379 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41380
56192c23 413812009-01-30 Christian Franke <franke@computer.org>
41382
41383 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41384 in option help text.
41385
d72521b3 413862009-01-27 Pavel Roskin <proski@gnu.org>
41387
41388 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41389
994b5e84 413902009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41391
41392 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41393
41394 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41395
41396 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41397 unregister function.
41398
6a7eab2c 413992009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41400
41401 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41402
41403 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41404
41405 * util/grub-mkfont.c (usage): Fix typo.
41406
41407 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41408
1806b56e 414092009-01-26 Daniel Mierswa <impulze@impulze.org>
41410
3fb18f09 41411 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41412
336e1fb9 41413 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41414
1806b56e 41415 * kern/misc.c (grub_strcasecmp): New function.
41416 (grub_strcasecmp): Use grub_size_t instead of int for length.
41417 Fix return value.
41418 * include/grub/misc.h: Update function prototypes.
41419
580b2a0f 414202009-01-26 Robert Millan <rmh@aybabtu.com>
41421
41422 * configure.ac: Fix cross-compilation check.
ef257b36 41423
d31c24f1 414242009-01-22 Christian Franke <franke@computer.org>
41425
41426 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41427 (precision) digit string. Allow `.format2' without `format1' (width).
41428 Limit input chars for `%s' output to `format2' if specified. This is
41429 compatible with standard printf ().
41430
3138b44c 414312009-01-22 Christian Franke <franke@computer.org>
41432
41433 * disk/ata.c (grub_ata_wait_status): Replace by ...
41434 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41435 other status bits may be invalid while BSY is asserted.
41436 (grub_ata_check_ready): New function.
41437 (grub_ata_cmd): Removed.
41438 (grub_ata_wait_drq): New function.
41439 (grub_ata_strncpy): Remove inline.
41440 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41441 and error check now done by grub_ata_wait_drq ().
41442 (grub_ata_pio_write): Likewise.
41443 (grub_atapi_identify): Set DEV before check for !BSY. Use
41444 grub_ata_wait_drq () to wait for data.
41445 (grub_ata_device_initialize): Add status register check to
41446 detect missing SATA slave devices. Add debug messages.
41447 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41448 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41449 transfer loop by grub_ata_pio_write ().
41450 (grub_ata_identify): Set DEV before check for !BSY. Use
41451 grub_ata_wait_drq () to wait for data.
ef257b36 41452 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 41453 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41454 read/write in one loop. Fix invalid command on write. Fix incomplete
41455 command on (size % batch) == 0. Add missing error check after write of
41456 last block. Add debug messages.
41457 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41458
59a64ef6 414592009-01-19 Christian Franke <franke@computer.org>
41460
41461 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41462 (GRUB_ATAPI_IREASON_*): Likewise.
41463 (grub_ata_pio_write): Fix timeout error return.
41464 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41465 (grub_atapi_wait_drq): New function.
41466 (grub_atapi_packet): New parameter `size'.
41467 Use grub_atapi_wait_drq () and direct write instead of
41468 grub_ata_pio_write ().
41469 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41470 reads the number of bytes requested by the device for each DRQ
41471 assertion.
41472 (grub_atapi_write): Remove old implementation, return not
41473 implemented instead.
41474
1cfe20b3 414752009-01-19 Christian Franke <franke@computer.org>
41476
41477 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41478 of 512 to calculate data size.
41479 (grub_scsi_read12): Likewise.
41480 (grub_scsi_write10): Likewise.
41481 (grub_scsi_write12): Likewise.
41482 (grub_scsi_read): Adjust size according to blocksize.
41483 Add checks for invalid blocksize and unaligned transfer.
41484
bee5fe5d 414852009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41486
41487 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41488
ef257b36 41489 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 41490 width glyphs.
41491
3e643f8c 414922009-01-19 Robert Millan <rmh@aybabtu.com>
41493
41494 * config.guess: Update to latest version from config git.
41495 * config.sub: Likewise.
41496
4fa80998 414972009-01-17 Felix Zielcke <fzielcke@z-51.de>
41498
41499 * Makefile.in: Change font compilation to use new grub-mkfont instead
41500 of java version.
41501
41502 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41503 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41504 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41505 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41506 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41507 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41508 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41509 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41510 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41511
7086085b 415122009-01-16 Christian Franke <franke@computer.org>
41513
41514 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41515 (enum grub_ata_timeout_milliseconds): New enum.
41516 (grub_ata_wait_status): Add parameter milliseconds.
41517 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41518 recovery from timed-out commands.
41519 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41520 return grub_errno instead of REG_ERROR.
41521 (grub_ata_pio_write): Add parameter milliseconds.
41522 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41523 Pass milliseconds to grub_ata_wait_status () and
41524 grub_ata_pio_read ().
41525 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41526 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41527 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41528 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41529 It is not suitable for device detection, because DEV bit is ignored,
41530 the command may run too long, and not all devices set the signature
41531 properly.
41532 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41533 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41534 Fix device selection, DEV bit must be set first to address the registers
41535 of the correct device.
41536 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41537 grub_ata_pio_read/write ().
41538 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41539 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41540
4a412913 415412009-01-13 Carles Pina i Estany <carles@pina.cat>
41542
41543 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41544
7795c55e 415452009-01-13 Bean <bean123ch@gmail.com>
d913988c 41546
41547 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41548
7795c55e 415492009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 41550
41551 * Makefile.in: (enable_grub_mkfont): New variable.
41552 (freetype_cflags): Likewise.
41553 (freetype_libs): Likewise.
41554
41555 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41556 (grub_mkfont_SOURCES): New variable.
41557 (grub_mkfont_CFLAGS): Likewise.
41558 (grub_mkfont_LDFLAGS): Likewise.
41559
41560 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41561 library if `--enable-grub-mkfont' is requested.
41562 (enable_grub_mkfont): New variable.
41563 (freetype_cflags): Likewise.
41564 (freetype_libs): Likewise.
41565
41566 * util/grub-mkfont.c: New file.
41567
093af1fe 415682009-01-12 Christian Franke <franke@computer.org>
41569
41570 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41571 mode check. Fix setting of compat_use[].
41572
f36cc108 415732009-01-10 Robert Millan <rmh@aybabtu.com>
41574
41575 Update a few copyright years which we forgot to do in 2008 (only for
41576 files whose changes made in 2008 were copyright-significant)
41577
41578 * Makefile.in: Add 2008 to Copyright line.
41579 * disk/ieee1275/ofdisk.c: Likewise.
41580 * disk/efi/efidisk.c: Likewise.
41581 * kern/dl.c: Likewise.
41582 * kern/sparc64/ieee1275/init.c: Likewise.
41583 * kern/mm.c: Likewise.
41584 * kern/efi/mm.c: Likewise.
41585 * boot/i386/pc/boot.S: Likewise.
41586 * genfslist.sh: Likewise.
41587 * fs/iso9660.c: Likewise.
41588 * fs/hfs.c: Likewise.
41589 * fs/jfs.c: Likewise.
41590 * fs/minix.c: Likewise.
41591 * fs/ufs.c: Likewise.
41592 * gensymlist.sh.in: Likewise.
41593 * genkernsyms.sh.in: Likewise.
41594 * include/grub/misc.h: Likewise.
41595 * include/grub/types.h: Likewise.
41596 * include/grub/symbol.h: Likewise.
41597 * include/grub/elf.h: Likewise.
41598 * include/grub/kernel.h: Likewise.
41599 * include/grub/disk.h: Likewise.
41600 * include/grub/dl.h: Likewise.
41601 * include/grub/i386/linux.h: Likewise.
41602 * include/grub/i386/pc/biosdisk.h: Likewise.
41603 * include/grub/efi/api.h: Likewise.
41604 * include/grub/efi/pe32.h: Likewise.
41605 * include/grub/util/misc.h: Likewise.
41606 * normal/execute.c: Likewise.
41607 * normal/arg.c: Likewise.
41608 * normal/completion.c: Likewise.
41609 * normal/lexer.c: Likewise.
41610 * normal/parser.y: Likewise.
41611 * normal/misc.c: Likewise.
41612 * commands/i386/pc/vbeinfo.c: Likewise.
41613 * commands/hexdump.c: Likewise.
41614 * commands/terminal.c: Likewise.
41615 * commands/ls.c: Likewise.
41616 * commands/help.c: Likewise.
41617 * partmap/pc.c: Likewise.
41618 * loader/efi/chainloader.c: Likewise.
41619 * loader/multiboot_loader.c: Likewise.
41620 * loader/i386/pc/multiboot2.c: Likewise.
41621 * term/efi/console.c: Likewise.
41622 * term/i386/pc/serial.c: Likewise.
41623 * util/lvm.c: Likewise.
41624 * util/console.c: Likewise.
41625 * util/i386/efi/grub-mkimage.c: Likewise.
41626 * util/raid.c: Likewise.
41627
7f02114b 416282009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41629
41630 * commands/videotest.c: Removed include to grub/machine/memory.h.
41631
41632 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41633 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41634 (video_mod_SOURCES): Removed.
41635 (video_mod_CFLAGS): Likewise.
41636 (video_mod_LDFLAGS): Likewise.
41637 (gfxterm_mod_SOURCES): Likewise.
41638 (gfxterm_mod_CFLAGS): Likewise.
41639 (gfxterm_mod_LDFLAGS): Likewise.
41640 (videotest_mod_SOURCES): Likewise.
41641 (videotest_mod_CFLAGS): Likewise.
41642 (videotest_mod_LDFLAGS): Likewise.
41643 (bitmap_mod_SOURCES): Likewise.
41644 (bitmap_mod_CFLAGS): Likewise.
41645 (bitmap_mod_LDFLAGS): Likewise.
41646 (tga_mod_SOURCES): Likewise.
41647 (tga_mod_CFLAGS): Likewise.
41648 (tga_mod_LDFLAGS): Likewise.
41649 (jpeg_mod_SOURCES): Likewise.
41650 (jpeg_mod_CFLAGS): Likewise.
41651 (jpeg_mod_LDFLAGS): Likewise.
41652 (png_mod_SOURCES): Likewise.
41653 (png_mod_CFLAGS): Likewise.
41654 (png_mod_LDFLAGS): Likewise.
41655
41656 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41657 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41658 (video_mod_SOURCES): Added.
41659 (video_mod_CFLAGS): Likewise.
41660 (video_mod_LDFLAGS): Likewise.
41661 (videotest_mod_SOURCES): Likewise.
41662 (videotest_mod_CFLAGS): Likewise.
41663 (videotest_mod_LDFLAGS): Likewise.
41664 (bitmap_mod_SOURCES): Likewise.
41665 (bitmap_mod_CFLAGS): Likewise.
41666 (bitmap_mod_LDFLAGS): Likewise.
41667 (tga_mod_SOURCES): Likewise.
41668 (tga_mod_CFLAGS): Likewise.
41669 (tga_mod_LDFLAGS): Likewise.
41670 (jpeg_mod_SOURCES): Likewise.
41671 (jpeg_mod_CFLAGS): Likewise.
41672 (jpeg_mod_LDFLAGS): Likewise.
41673 (png_mod_SOURCES): Likewise.
41674 (png_mod_CFLAGS): Likewise.
41675 (png_mod_LDFLAGS): Likewise.
41676 (gfxterm_mod_SOURCES): Likewise.
41677 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 41678 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 41679
41680 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41681 grub/machine/console.h.
41682
644fff97 416832009-01-04 Jerone Young <jerone@gmail.com>
41684
41685 Make on screen instructions clearer
41686
41687 Based on patch created by Jidanni <jidanni@jidanni.org>
41688
41689 * normal/menu.c: print clearer instructions on the screen
41690
1e901a75 416912009-01-02 Colin D Bennett <colin@gibibit.com>
41692
41693 New font engine.
34c44600 41694
1e901a75 41695 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41696 build system and fixed gfxterm.c to work with different sized fonts.
41697
41698 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 41699
1e901a75 41700 * configure: Re-generated.
34c44600 41701
1e901a75 41702 * DISTLIST: Removed font/manager.c.
41703 Added font/font.c.
41704 Added font/font_cmd.c.
34c44600 41705
1e901a75 41706 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41707 compilation.
34c44600 41708
1e901a75 41709 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 41710
41711 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 41712
41713 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 41714
1e901a75 41715 * normal/menu.c: Likewise.
34c44600 41716
1e901a75 41717 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41718 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 41719
1e901a75 41720 * include/grub/font.h: Replaced with new file.
34c44600 41721
1e901a75 41722 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41723 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41724 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41725 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41726 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 41727 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 41728 fg_red, fg_green, fg_blue, fg_alpha.
41729 (grub_video_adapter): Removed blit_glyph.
34c44600 41730 (grub_video_blit_glyph): Removed.
41731
1e901a75 41732 * font/manager.c: Removed file.
34c44600 41733
41734 * font/font.c: New file.
41735
1e901a75 41736 * font/font_cmd.c: Likewise.
34c44600 41737
1e901a75 41738 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 41739
1e901a75 41740 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41741 (grub_video_vbe_map_rgba): Likewise.
41742 (grub_video_vbe_unmap_color_int): Likewise.
41743 (grub_video_vbe_blit_glyph): Removed.
41744 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 41745
1e901a75 41746 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41747 (get_pixel): Likewise.
34c44600 41748 (set_pixel): Likewise.
41749
1e901a75 41750 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 41751
1e901a75 41752 * term/gfxterm.c: Adapted to new font engine.
34c44600 41753
1e901a75 41754 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 41755
1e901a75 41756 * term/i386/pc/vga.c: Likewise.
34c44600 41757
1e901a75 41758 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 41759
1e901a75 41760 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 41761
1e901a75 41762 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41763
1e901a75 41764 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 41765
1e901a75 41766 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 41767
1e901a75 41768 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 41769
1e901a75 41770 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 41771
1e901a75 41772 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 41773
1e901a75 41774 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41775
41776 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 41777
1e901a75 41778 * util/grub-mkconfig_lib.in: Changed font extension.
41779
278922e8 417802008-12-28 Felix Zielcke <fzielcke@z-51.de>
41781
41782 * util/getroot.c (grub_util_get_grub_dev): Add support for
41783 /dev/md/dNNpNN style partitionable mdraid devices.
41784
3ced05cf 417852008-12-12 Alex Smith <alex@alex-smith.me.uk>
41786
41787 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41788 at a time limit of the PXE TFTP API correctly.
41789 (grub_pxefs_close): Likewise.
41790
7fd0ee30 417912008-11-29 Robert Millan <rmh@aybabtu.com>
41792
34c44600 41793 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 41794 grub_ata_device_initialize() calls.
41795
34c44600 417962008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 41797
41798 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41799 iteration failed.
41800 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41801
89313780 418022008-11-28 Robert Millan <rmh@aybabtu.com>
41803
41804 Fix build on powerpc-ieee1275. Based on patch created by
41805 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41806 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41807 `kern/ieee1275/mmap.c'.
41808 * include/grub/powerpc/ieee1275/memory.h: New file.
41809
15257703 41810 Provide grub-install on coreboot.
41811 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41812 (grub_install_SOURCES): New variable.
41813 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41814 usable on coreboot.
41815
9fc5388a 418162008-11-25 Felix Zielcke <fzielcke@z-51.de>
41817
41818 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41819 to `grub_term_input_t'.
41820 (grub_term_get_current_output): Change return type to
41821 `grub_term_output_t'.
41822
bc3a2f31 418232008-11-22 Robert Millan <rmh@aybabtu.com>
41824
34c44600 41825 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 41826 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41827 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41828 grub_vga_text_cls().
41829
80fc88f2 41830 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 41831 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 41832
cbf36fd3 41833 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41834 to 0x200000 (avoids trouble with some OFW implementations, and matches
41835 with the one in Yaboot).
41836 Reported by Manoel Abranches
41837
73e8e268 418382008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 41839
41840 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41841 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41842
73e8e268 41843 * util/grub-mkconfig_lib.in (grub_warn): New function.
41844 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41845 warnings, to obtain consistent formatting.
41846 * util/grub.d/00_header.in: Likewise.
41847 * util/update-grub_lib.in: Likewise.
41848
e94045a1 41849 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 41850 Move comment text to `#error' stanza.
e94045a1 41851
79d29fd7 41852 Harmonize ieee1275's grub_available_iterate() with the generic
41853 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41854 build problem on i386-ieee1275):
41855 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41856 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41857 parameter `type'. Update all users of this function.
41858 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41859 `kern/ieee1275/mmap.c'.
41860 * kern/ieee1275/init.c
41861 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41862 with ...
41863 (grub_machine_mmap_iterate): ... this.
41864 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41865 return type to `grub_err_t'. Update all implementations of this
41866 function prototype.
41867 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41868 Likewise.
41869
60d6b16e 41870 Add `lsmmap' command (lists firmware-provided memory map):
41871 * commands/lsmmap.c: New file.
41872 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41873 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41874 variables.
41875 * conf/powerpc-ieee1275.rmk: Likewise.
41876 * conf/i386-coreboot.rmk: Likewise.
41877 * conf/i386-ieee1275.rmk: Likewise.
41878
ebaaf49b 418792008-11-19 Robert Millan <rmh@aybabtu.com>
41880
41881 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 41882 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41883 constraints to initrd allocation (based on code from
41884 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41885 for Linux to find it.
ebaaf49b 41886
dfab719f 418872008-11-14 Robert Millan <rmh@aybabtu.com>
41888
41889 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41890 order to cope with duplicate slashes.
41891
10fc3eb9 418922008-11-14 Robert Millan <rmh@aybabtu.com>
41893
41894 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41895 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41896 don't want to mess with lower memory, because it is used in the Linux
41897 loader.
41898
41899 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 41900 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 41901 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41902 is in our heap (probably as a result of it being corrupted during
2f2a3442 41903 decompression). Add #error instance with comment to explain why this
41904 loader isn't currently usable on PC/BIOS.
10fc3eb9 41905
e2e07847 419062008-11-14 Robert Millan <rmh@aybabtu.com>
41907
41908 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 41909 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 41910
fe8e8d69 419112008-11-12 Robert Millan <rmh@aybabtu.com>
41912
41913 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41914
41915 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41916 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41917 from here ...
41918 * include/grub/i386/pc/memory.h: ... to here.
41919
976b07d0 419202008-11-12 Robert Millan <rmh@aybabtu.com>
41921
41922 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41923 split).
41924
41925 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41926 (grub_console_cur_color, grub_console_real_putchar)
41927 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41928 (grub_console_setcolorstate, grub_console_setcolor)
41929 (grub_console_getcolor): Move from here ...
41930 * include/grub/i386/vga_common.h: ... to here (new file).
41931
41932 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41933 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41934 `<grub/i386/io.h>'.
41935 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41936 `<grub/i386/vga_common.h>'.
41937
76679cd3 419382008-11-12 Robert Millan <rmh@aybabtu.com>
41939
41940 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41941 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41942 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41943 variables.
41944 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41945 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41946
41947 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41948 grub_console_init() with call to grub_vga_text_init().
41949 (grub_machine_fini): Replace call to
41950 grub_console_fini() with call to grub_vga_text_fini() and
41951 grub_at_keyboard_fini().
41952
41953 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41954 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41955 (grub_console_setcolorstate, grub_console_setcolor)
41956 (grub_console_getcolor): New function prototypes.
41957
41958 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41959 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41960 (grub_vga_text_setcursor): Static-ize.
41961 (grub_vga_text_term): New structure.
41962 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41963
41964 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41965 (grub_console_cur_color, grub_console_standard_color)
41966 (grub_console_normal_color, grub_console_highlight_color)
41967 (map_char, grub_console_putchar, grub_console_getcharwidth)
41968 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41969 (grub_console_getcolor): Move from here ...
41970 * term/i386/vga_common.c: ... to here (same function names).
41971
95b841d3 419722008-11-12 Robert Millan <rmh@aybabtu.com>
41973
41974 Use newly-added Multiboot support in coreboot.
41975
41976 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41977 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41978
41979 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41980 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41981 (codestart): Store the MBI in `startup_multiboot_info' when we're
41982 being loaded using Multiboot.
41983
41984 * kern/i386/coreboot/init.c (grub_machine_init): Move
41985 grub_at_keyboard_init() call to beginning of function (useful for
41986 debugging). Call grub_machine_mmap_init() before attempting to use
41987 grub_machine_mmap_iterate().
41988 (grub_lower_mem, grub_upper_mem): Move from here ...
41989 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41990 here (new file).
41991
41992 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41993 function prototype.
41994
761ca975 419952008-11-12 Robert Millan <rmh@aybabtu.com>
41996
41997 Fix a regression introduced by the at_keyboard.mod split. Because
41998 some terminals are default on some platforms and non-default on
41999 others, the first terminal being registered determines which is
42000 going to be default.
42001
42002 * kern/term.c (grub_term_register_input): If this is the first
42003 terminal being registered, set it as the current one.
42004 (grub_term_register_output): Likewise.
42005
42006 * term/efi/console.c (grub_console_init): Do not call
42007 grub_term_set_current_output() or grub_term_set_current_input().
42008 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42009 * term/i386/pc/console.c (grub_console_init): Likewise.
42010 (grub_console_fini): Do not call grub_term_set_current_input()
42011 (but leave grub_term_set_current_output() to restore text mode).
42012
6c529df7 420132008-11-10 Robert Millan <rmh@aybabtu.com>
42014
42015 * util/grub.d/00_header.in: Add backward compatibility check for
42016 versions of terminal.mod that don't understand `terminal_input' or
42017 `terminal_output'.
42018
132e4113 420192008-11-09 Robert Millan <rmh@aybabtu.com>
42020
42021 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42022 `terminal_input' / `terminal_output', not `terminal'.
42023
ac293d50 420242008-11-08 Robert Millan <rmh@aybabtu.com>
42025
42026 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 42027 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 42028
0025933a 420292008-11-08 Robert Millan <rmh@aybabtu.com>
42030
42031 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 42032 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 42033 members. Update all users.
42034 * util/console.c (grub_ncurses_term): Split in ...
42035 (grub_ncurses_term_input): ... this, and ...
42036 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 42037 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 42038
37c86336 420392008-11-08 Robert Millan <rmh@aybabtu.com>
42040
42041 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42042 (PKGDATA): Add $(pkgdata_SRCDIR).
42043 (pkglib_BUILDDIR): New variable.
42044 (pkgdata_SRCDIR): New variable.
42045 (build_env.mk): New target.
42046 (include_DATA): New variable.
42047 (install-local): Install $(include_DATA) files in $(includedir).
42048
b6c15a2d 420492008-11-07 Pavel Roskin <proski@gnu.org>
42050
d99d46f1 42051 * gendistlist.sh: Use C locale for sorting to ensure consistent
42052 output on all systems.
42053
b6c15a2d 42054 * util/grub.d/00_header.in: Remove incorrect space before
42055 "serial".
42056
c32ee8c9 420572008-11-07 Robert Millan <rmh@aybabtu.com>
42058
42059 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42060 per specification.
42061 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42062 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42063 (based on find_multi_boot1_header).
42064 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42065 using find_multi_boot2_header(), and abort if neither Multiboot or
42066 Multiboot headers were found.
42067
651c29b7 420682008-11-07 Robert Millan <rmh@aybabtu.com>
42069
42070 Modularize at_keyboard.mod:
42071
42072 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42073 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42074 (at_keyboard_mod_LDFLAGS): New variables.
42075
42076 Actual terminal split:
42077
42078 * include/grub/term.h (struct grub_term): Split in ...
42079 (struct grub_term_input): ... this, and ...
42080 (struct grub_term_output): ... this. Update all users.
42081 (grub_term_set_current): Split in ...
42082 (grub_term_set_current_input): ... this, and ...
42083 (grub_term_set_current_output): ... this.
42084 (grub_term_get_current): Split in ...
42085 (grub_term_get_current_input): ... this, and ...
42086 (grub_term_get_current_output): ... this.
42087 (grub_term_register): Split in ...
42088 (grub_term_register_input): ... this, and ...
42089 (grub_term_register_output): ... this.
42090 (grub_term_unregister): Split in ...
42091 (grub_term_unregister_input): ... this, and ...
42092 (grub_term_unregister_output): ... this.
42093 (grub_term_iterate): Split in ...
42094 (grub_term_iterate_input): ... this, and ...
42095 (grub_term_iterate_output): ... this.
42096
42097 * kern/term.c (grub_term_list): Split in ...
42098 (grub_term_list_input): ... this, and ...
42099 (grub_term_list_output): ... this. Update all users.
42100 (grub_cur_term): Split in ...
42101 (grub_cur_term_input): ... this, and ...
42102 (grub_cur_term_output): ... this. Update all users.
42103 (grub_term_set_current): Split in ...
42104 (grub_term_set_current_input): ... this, and ...
42105 (grub_term_set_current_output): ... this.
42106 (grub_term_get_current): Split in ...
42107 (grub_term_get_current_input): ... this, and ...
42108 (grub_term_get_current_output): ... this.
42109 (grub_term_register): Split in ...
42110 (grub_term_register_input): ... this, and ...
42111 (grub_term_register_output): ... this.
42112 (grub_term_unregister): Split in ...
42113 (grub_term_unregister_input): ... this, and ...
42114 (grub_term_unregister_output): ... this.
42115 (grub_term_iterate): Split in ...
42116 (grub_term_iterate_input): ... this, and ...
42117 (grub_term_iterate_output): ... this.
42118
42119 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42120 a check for input and one for output (and only attempt to get keys
42121 from user when input works).
42122
42123 * util/grub-probe.c (grub_term_get_current): Split in ...
42124 (grub_term_get_current_input): ... this, and ...
42125 (grub_term_get_current_output): ... this.
42126 * util/grub-fstest.c: Likewise.
42127 * util/i386/pc/grub-setup.c: Likewise.
42128 * util/grub-editenv.c: Likewise.
42129
42130 Portability adjustments:
42131
42132 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42133 `term/i386/pc/at_keyboard.c'.
42134 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42135 grub_keyboard_controller_init() (now handled by terminal .init).
42136 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42137 grub_at_keyboard_init().
42138 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42139 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42140 at_keyboard.mod via input terminal interface).
42141 * include/grub/i386/coreboot/console.h: Convert into a stub for
42142 `<grub/i386/pc/console.h>'.
42143
42144 Migrate full terminals to new API:
42145
42146 * term/efi/console.c (grub_console_term): Split into ...
42147 (grub_console_term_input): ... this, and ...
42148 (grub_console_term_output): ... this. Update all users.
42149 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42150 (grub_ofconsole_init): Split into ...
42151 (grub_ofconsole_init_input): ... this, and ...
42152 (grub_ofconsole_init_output): ... this.
42153 (grub_ofconsole_term): Split into ...
42154 (grub_ofconsole_term_input): ... this, and ...
42155 (grub_ofconsole_term_output): ... this. Update all users.
42156 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42157 (grub_serial_term_input): ... this, and ...
42158 (grub_serial_term_output): ... this. Update all users.
42159 * term/i386/pc/console.c (grub_console_term): Split into ...
42160 (grub_console_term_input): ... this, and ...
42161 (grub_console_term_output): ... this. Update all users.
42162 (grub_console_term_input): Only enable it on PC/BIOS platform.
42163 (grub_console_init): Remove grub_keyboard_controller_init() call.
42164
42165 Migrate input terminals to new API:
42166
42167 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42168 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42169 i386-specific anyway).
42170 (grub_console_checkkey): Rename to ...
42171 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42172 users.
42173 (grub_keyboard_controller_orig): New variable.
42174 (grub_console_getkey): Rename to ...
42175 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42176 users.
42177 (grub_keyboard_controller_init): Static-ize. Save original
42178 controller value so that it can be restored ...
42179 (grub_keyboard_controller_fini): ... here (new function).
42180 (grub_at_keyboard_term): New structure.
42181 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42182 functions.
42183
42184 Migrate output terminals to new API:
42185
42186 * term/i386/pc/vga.c (grub_vga_term): Change type to
42187 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42188 members. Update all users.
42189 * term/gfxterm.c (grub_video_term): Change type to
42190 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42191 members. Update all users.
42192 * include/grub/i386/pc/console.h (grub_console_checkkey)
42193 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42194 etc).
42195
42196 Migrate `terminal' command and userland tools to new API:
42197
42198 * commands/terminal.c (grub_cmd_terminal): Split into ...
42199 (grub_cmd_terminal_input): ... this, and ...
42200 (grub_cmd_terminal_output): ... this.
42201 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42202 `terminal_input' and `terminal_output'.
42203 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42204 `terminal_input' / `terminal_output' API.
42205 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42206 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42207 provided ${GRUB_TERMINAL}, convert it).
42208
96e5d876 422092008-11-04 Robert Millan <rmh@aybabtu.com>
42210
42211 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42212 for FreeBSD.
42213 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42214
556f3775 422152008-11-03 Bean <bean123ch@gmail.com>
42216
42217 * kern/elf.c (grub_elf32_load): Revert to previous code.
42218 (grub_elf64_load): Likewise.
42219
42220 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42221
926b9823 422222008-11-01 Robert Millan <rmh@aybabtu.com>
42223
42224 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42225 (TARGET_CPPFLAGS): Likewise.
42226 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42227
1432e958 422282008-11-01 Carles Pina i Estany <carles@pina.cat>
42229
42230 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42231
dba3f844 422322008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 42233
42234 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42235 addition of objects until the code is not going to be able to fail.
42236
dba3f844 422372008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 42238
42239 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42240 (add a missing NULL check, and correct them by moving the pointer
42241 operations after the actual check).
42242
7ab28c21 422432008-10-29 Robert Millan <rmh@aybabtu.com>
42244
42245 * util/i386/pc/grub-install.in: Handle empty string as output from
42246 make_system_path_relative_to_its_root().
42247
1b7748eb 422482008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42249
42250 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42251 circular metadata worst case scenario. If the metadata is circular
42252 then copy the wrap in place.
42253 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42254 project lib/format_text/layout.h
42255 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42256
c9618ab2 422572008-10-03 Felix Zielcke <fzielcke@z-51.de>
42258
7a36edca 42259 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 42260
bf981c62 422612008-10-03 Felix Zielcke <fzielcke@z-51.de>
42262
42263 * util/update-grub_lib.in: Mention filename in warning message.
42264
6d994591 422652008-09-29 Felix Zielcke <fzielcke@z-51.de>
42266
42267 * NEWS: Update for rename of update-grub to grub-mkconfig.
42268
18ade780 422692008-09-29 Felix Zielcke <fzielcke@z-51.de>
42270
42271 * util/update-grub_lib.in: Copy to ...
42272 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 42273 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 42274 * util/update-grub.in: Rename to ...
42275 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42276 option. Add `--output' option to allow users to specify the generated
42277 configuration file. Default to stdout.
42278 (update_grub_dir): Rename to ...
42279 (grub_mkconfig_dir): ... this.
42280 (grub_cfg): Default to an empty string.
42281 * conf/common.rmk (update-grub): Rename to ...
42282 (grub-mkconfig): ... this.
42283 (update-grub_lib): Copy to ...
42284 (grub-mkconfig_lib): ... this.
42285 (update-grub_SCRIPTS): Copy to ...
42286 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42287 (update-grub_DATA): Rename to ...
42288 (grub-mkconfig_DATA): ... this.
42289
556ce6ac 422902008-09-28 Robert Millan <rmh@aybabtu.com>
42291
42292 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42293 to `modified'. Add the real `created' field.
42294 (grub_iso9660_uuid): Use `modified' rather than `created' for
42295 constructing the UUID.
42296
422972008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 42298
42299 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42300 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42301
92274e85 423022008-09-28 Bean <bean123ch@gmail.com>
42303
42304 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42305 Thanks to Christian Franke for finding this bug.
42306
add6f17a 423072008-09-25 Robert Millan <rmh@aybabtu.com>
42308
42309 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42310 instances of grub_util_get_disk_name() (see previous commit).
42311
d2a367b8 423122008-09-25 Robert Millan <rmh@aybabtu.com>
42313
42314 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42315 `util/i386/get_disk_name.c'.
42316 * conf/i386-efi.rmk: Likewise.
42317 * conf/x86_64-efi.rmk: Likewise.
42318 * conf/i386-coreboot.rmk: Likewise.
42319 * conf/i386-ieee1275.rmk: Likewise.
42320 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42321 `util/ieee1275/get_disk_name.c'.
42322 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42323 * util/ieee1275/get_disk_name.c: Remove file.
42324 * util/i386/get_disk_name.c: Remove file.
42325 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42326 "hd%d" for device.map entries, rather than using
42327 grub_util_get_disk_name().
42328
81a06771 423292008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 42330
42331 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42332 warning.
42333 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42334
5a004279 423352008-09-24 Carles Pina i Estany <carles@pina.cat>
42336
42337 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42338 Changed to 0x5100.
42339 (GRUB_TERM_PPAGE): Changed to 0x4900.
42340
397093d3 423412008-09-24 Robert Millan <rmh@aybabtu.com>
42342
42343 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42344 macros (they were i386-pc specific).
42345 * include/grub/sparc64/ieee1275/console.h: Likewise.
42346 * include/grub/efi/console.h: Likewise.
42347
a91b6c7c 423482008-09-22 Bean <bean123ch@gmail.com>
42349
42350 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42351 resident and in attribute list.
42352
42353 * include/grub/ntfs.h (BMP_LEN): Removed.
42354
c40fd116 423552008-09-22 Bean <bean123ch@gmail.com>
42356
81a06771 42357 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 42358 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42359
42360 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42361 error occurs, as grub_disk_open will call grub_disk_close, which will
42362 call p->close (scsi).
42363
81a06771 423642008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 42365
42366 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42367 (AC_PREREQ): Bumped to 2.59.
42368 (AC_TRY_COMPILE): Replace obsolete macro with ...
42369 (AC_COMPILE_IFELSE): ... this.
42370 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42371 (AC_LINK_IFELSE): ... this.
42372
5dc43410 423732008-09-21 Felix Zielcke <fzielcke@z-51.de>
42374
42375 * autogen.sh: Add a call to `gendistlist.sh'.
42376
9035dce4 423772008-09-19 Christian Franke <franke@computer.org>
42378
42379 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42380 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42381 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42382 Export __enable_execute_stack() to modules.
42383 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42384 New function.
42385
7fd75377 423862008-09-09 Felix Zielcke <fzielcke@z-51.de>
42387
040030b3 42388 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42389 Sort the list.
42390
423912008-09-09 Felix Zielcke <fzielcke@z-51.de>
42392
42393 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 42394 #include <grub/util/hostdisk.h>.
42395
89d5ffcf 423962008-09-08 Robert Millan <rmh@aybabtu.com>
42397
42398 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42399 segments when their filesz is zero (grub_file_read() interprets
81a06771 42400 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 42401 Use `lowest_segment' rather than 0 for calculating the current
42402 segment load address.
42403
40da438f 424042008-09-08 Robert Millan <rmh@aybabtu.com>
42405
42406 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42407 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42408 clobbered useful information.
42409
ddbf5556 424102008-09-08 Robert Millan <rmh@aybabtu.com>
42411
42412 * include/grub/util/biosdisk.h: Move to ...
42413 * include/grub/util/hostdisk.h: ... here. Update all users.
42414 * util/biosdisk.c: Move to ...
42415 * util/hostdisk.c: ... here. Update all users.
42416
783d0f48 424172008-09-07 Robert Millan <rmh@aybabtu.com>
42418
42419 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42420 variables.
42421 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42422 and length can be stored directly in the `mbi->mmap_addr' and
42423 `mbi->mmap_length' struct fields.
42424
548e2ea5 424252008-09-07 Robert Millan <rmh@aybabtu.com>
42426
42427 * conf/i386.rmk: New file. Provides declaration for building
42428 `cpuid.mod'.
42429 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42430 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42431 variables.
42432 Include `conf/i386.mk'.
42433 * conf/i386-efi.rmk: Likewise.
42434 * conf/x86_64-efi.rmk: Likewise.
42435 * conf/i386-coreboot.rmk: Likewise.
42436 * conf/i386-ieee1275.rmk: Likewise.
42437
0ea85a37 424382008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42439
42440 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42441 Adds optimization support for BGR based modes.
42442
42443 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42444 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42445 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42446 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42447 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42448 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42449 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42450 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42451 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42452 (grub_video_i386_vbeblit_index_index): Likewise.
42453 (grub_video_i386_vbeblit_replace_directN): Added.
42454 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42455 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42456 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42457 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42458 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42459 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 42460 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 42461 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42462 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42463 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42464 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42465 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42466 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42467
42468 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42469 (grub_video_i386_vbefill_R8G8B8): Likewise.
42470 (grub_video_i386_vbefill_index): Likewise.
42471 (grub_video_i386_vbefill_direct32): Added.
42472 (grub_video_i386_vbefill_direct24): Likewise.
42473 (grub_video_i386_vbefill_direct16): Likewise.
42474 (grub_video_i386_vbefill_direct8): Likewise.
42475
81a06771 42476 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 42477 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42478 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42479 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42480 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42481 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 42482
0ea85a37 42483 * video/video.c (grub_video_get_blit_format): Updated to use new
42484 blit formats. Added handling for 16 bit color modes.
81a06771 42485
42486 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 42487 fillers.
42488 (common_blitter): Updated to use new blitters.
42489
42490 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42491 Removed.
42492 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42493 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42494 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42495 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42496 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42497 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42498 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42499 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42500 (grub_video_i386_vbeblit_index_index): Likewise.
42501 (grub_video_i386_vbeblit_replace_directN): Added.
42502 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42503 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42504 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42505 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42506 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42507 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42508 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42509 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42510 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42511 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42512 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42513 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42514 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 42515
0ea85a37 42516 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42517 (grub_video_i386_vbefill_R8G8B8): Likewise.
42518 (grub_video_i386_vbefill_index): Likewise.
42519 (grub_video_i386_vbefill_direct32): Added.
42520 (grub_video_i386_vbefill_direct24): Likewise.
42521 (grub_video_i386_vbefill_direct16): Likewise.
42522 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 42523
0ea85a37 42524 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42525 types.
81a06771 42526
0ea85a37 42527 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42528 types.
81a06771 42529
0ea85a37 42530 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42531 blitter types.
81a06771 42532
0ea85a37 42533 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42534 types.
42535
e8a83df6 425362008-09-06 Felix Zielcke <fzielcke@z-51.de>
42537
42538 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42539 RAID level 1.
42540
6bcd8ee5 425412008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 42542
6bcd8ee5 42543 * fs/iso9660.c (grub_iso9660_date): New structure.
42544 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42545 (grub_iso9660_uuid): New function.
c375ae58 42546
59261157 425472008-09-05 Bean <bean123ch@gmail.com>
42548
42549 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42550
42551 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42552 insensitive bit for names in Win32 and Win32 & DOS namespace.
42553
42554 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42555
42556 * include/grub/types.h (LONG_MAX): Likewise.
42557
58b6645a 425582008-09-04 Felix Zielcke <fzielcke@z-51.de>
42559
4ee55921 42560 * util/getroot.c: Include <config.h>.
42561 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42562 add support for /dev/md/N devices and handle LVM double dash escaping.
42563
425642008-09-04 Felix Zielcke <fzielcke@z-51.de>
42565
42566 * config.guess: Update to latest version from config git.
42567 * config.sub: Likewise.
58b6645a 42568
9124f65d 425692008-09-03 Robert Millan <rmh@aybabtu.com>
42570
42571 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42572 `disk->total_sectors'.
42573
81a06771 425742008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 42575
42576 * include/grub/normal.h: Fixed incorrect comment for
42577 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42578
81a06771 425792008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 42580
42581 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42582 values with defines.
42583
42584 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42585 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42586 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42587 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42588 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42589 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42590 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42591 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42592 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42593 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42594 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42595 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42596 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42597 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42598 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42599 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42600 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42601 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42602 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42603
93d5cbf8 426042008-08-31 Robert Millan <rmh@aybabtu.com>
42605
42606 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42607 declaration.
42608 (grub_multiboot): Fix a few warnings.
42609
21751d50 426102008-08-31 Robert Millan <rmh@aybabtu.com>
42611
42612 * loader/i386/pc/multiboot.c: Update comment not to say that
42613 boot_device support is unimplemented.
42614
e27a75c5 426152008-08-31 Robert Millan <rmh@aybabtu.com>
42616
42617 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42618 or memory map support are unimplemented.
42619
81a06771 426202008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 42621
42622 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42623
81a06771 426242008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 42625
42626 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42627 total video memory in 'vbeinfo' output; show color format details for
42628 each video mode.
42629
7c5d8d95 426302008-08-30 Pavel Roskin <proski@gnu.org>
42631
42632 * util/genmoddep.c: Remove for real this time.
42633 * DISTLIST: Remove util/genmoddep.c.
42634
4cebd25a 426352008-08-30 Robert Millan <rmh@aybabtu.com>
42636
42637 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42638 as required by Multiboot spec (it was already 4-byte aligned, but
42639 only by chance).
42640
b497a269 426412008-08-29 Pavel Roskin <proski@gnu.org>
42642
e3925185 42643 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42644 * kern/powerpc/ieee1275/startup.S: ... this.
42645 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42646 * DISTLIST: Likewise.
42647
b497a269 42648 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42649 grub/cpu/kernel.h. Add start label for consistency with other
42650 platforms. Add grub_prefix immediately after start. Add jump
42651 to the code after grub_prefix.
42652 * include/grub/powerpc/kernel.h: Provide valid values for
42653 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42654
6e5a42fe 426552008-08-29 Bean <bean123ch@gmail.com>
42656
42657 * configure.ac: Change host_os to cygwin for mingw.
42658 (asprintf): New check for function.
42659
42660 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42661 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42662
42663 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 42664 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 42665 sync, sleep and grub_util_get_disk_size for mingw.
42666
42667 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42668 to get size in mingw.
42669 (open_device): Use flag O_BINARY if it's defined.
42670 (find_root_device): Add dummy code for mingw.
42671
42672 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42673 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42674 (get_scsi_disk_name): Return 0 for mingw.
42675
42676 * util/hostfs.c: #include <grub/util/misc.h>.
42677 (grub_hostfs_open): Use "rb" flag to open file, use
42678 grub_util_get_disk_size to get disk size for mingw.
42679
42680 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42681 (asprintf): New function if HAVE_ASPRINTF is not set.
42682 (sync): New function for mingw.
42683 (sleep): Likewise.
42684 (grub_util_get_disk_size): Likewise.
42685
ab3f2673 426862008-08-28 Pavel Roskin <proski@gnu.org>
42687
42688 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42689 kern/time.c.
42690
1c282483 426912008-08-28 Robert Millan <rmh@aybabtu.com>
42692
42693 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42694
678e849c 426952008-08-28 Robert Millan <rmh@aybabtu.com>
42696
42697 Change find_grub_drive() syntax so it doesn't prevent it from
42698 detecting NULL names as errors.
42699
42700 * util/biosdisk.c (find_grub_drive): Move free slot search code
42701 from here ...
42702 (find_free_slot): ... to here.
42703 (read_device_map): Use find_free_slot() to search for free slots.
42704
965c75ca 427052008-08-27 Marco Gerards <marco@gnu.org>
42706
42707 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42708 (scsi_mod_SOURCES): New variable.
42709 (scsi_mod_CFLAGS): Likewise
42710 (scsi_mod_LDFLAGS): Likewise.
42711
42712 * disk/scsi.c: New file.
42713
42714 * include/grub/scsi.h: Likewise.
42715
42716 * include/grub/scsicmd.h: Likewise.
42717
42718 * disk/ata.c: Include <grub/scsi.h>.
42719 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42720 instead.
42721 (grub_ata_iterate): Skip ATAPI devices.
42722 (grub_ata_open): Only handle ATAPI devices.
42723 (struct grub_atapi_read): Removed.
42724 (grub_atapi_readsector): Likewise.
42725 (grub_ata_read): No longer handle ATAPI devices.
42726 (grub_ata_write): Likewise.
42727 (grub_atapi_iterate): New function.
42728 (grub_atapi_read): Likewise.
42729 (grub_atapi_write): Likewise.
42730 (grub_atapi_open): Likewise.
42731 (grub_atapi_close): Likewise.
42732 (grub_atapi_dev): New variable.
42733 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42734 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42735
42736 * include/grub/disk.h (enum grub_disk_dev_id): Add
42737 `GRUB_DISK_DEVICE_SCSI_ID'.
42738
c07ae501 427392008-08-26 Robert Millan <rmh@aybabtu.com>
42740
42741 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42742 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42743 descriptive.
42744
5ed20adc 427452008-08-23 Bean <bean123ch@gmail.com>
42746
42747 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42748 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42749 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42750 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42751 dm_nv.mod.
42752 (raid5rec_mod_SOURCES): New macro.
42753 (raid5rec_mod_CFLAGS): Likewise.
42754 (raid5rec_mod_LDFLAGS): Likewise.
42755 (raid6rec_mod_SOURCES): Likewise.
42756 (raid6rec_mod_CFLAGS): Likewise.
42757 (raid6rec_mod_LDFLAGS): Likewise.
42758 (mdraid_mod_SOURCES): Likewise.
42759 (mdraid_mod_CFLAGS): Likewise.
42760 (mdraid_mod_LDFLAGS): Likewise.
42761 (dm_nv_mod_SOURCES): Likewise.
42762 (dm_nv_mod_CFLAGS): Likewise.
42763 (dm_nv_mod_LDFLAGS): Likewise.
42764
42765 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42766 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42767 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42768
42769 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42770 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42771
42772 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42773
42774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42775
42776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42777
42778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42779
42780 * disk/raid5_recover.c: New file.
42781
42782 * disk/raid6_recover.c: Likewise.
42783
42784 * disk/mdraid_linux.c: Likewise.
42785
42786 * disk/dmraid_nvidia.c: Likewise.
42787
42788 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42789 ULONG_MAX.
42790
42791 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42792 calculate the size of raid device.
42793 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42794 different layout of raid5.
42795 (grub_raid_scan_device): Remove code specific to mdraid.
42796 (grub_raid_list): New variable.
42797 (free_array): New function.
42798 (grub_raid_register): Likewise.
42799 (grub_raid_unregister): Likewise.
42800 (grub_raid_rescan): Likewise.
42801 (GRUB_MOD_INIT): Don't iterate device here.
42802 (GRUB_MOD_FINI): Use free_array to release resource.
42803
42804 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42805 (grub_raid5_recover_func_t): New function variable type.
42806 (grub_raid6_recover_func_t): Likewise.
42807 (grub_raid5_recover_func): New variable.
42808 (grub_raid6_recover_func): Likewise.
42809 (grub_raid_register): New function.
42810 (grub_raid_unregister): Likewise.
42811 (grub_raid_rescan): Likewise.
42812 (grub_raid_block_xor): Likewise.
42813
42814 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42815 (CMD_CRC): New macro.
42816 (part): Removed.
42817 (read_file): Handle device as well as file.
42818 (cmd_crc): New function.
42819 (fstest): Handle multiple disks.
42820 (options): Remove part, raw and long, add root and diskcount.
42821 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 42822 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 42823 add handling for the new options, support multiple disks.
42824
42825 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42826
29c18915 428272008-08-23 Bean <bean123ch@gmail.com>
42828
42829 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42830
42831 * genfslist.sh: Ignore kernel.mod.
42832
42833 * genpartmaplist.sh: Likewise.
42834
8415f261 428352008-08-23 Robert Millan <rmh@aybabtu.com>
42836
42837 * util/getroot.c (find_root_device): Skip anything that starts with
42838 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42839
d5a7dc5b 428402008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 42841
d5a7dc5b 42842 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42843 * util/grub.d/00_header.in: Allow the administrator to change default
42844 gfxmode via ${GRUB_GFXMODE}.
42845
380cfbb4 428462008-08-21 Felix Zielcke <fzielcke@z-51.de>
42847
42848 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42849
c9baafe7 428502008-08-21 Robert Millan <rmh@aybabtu.com>
42851
42852 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42853 loader.
42854 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42855 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42856
e290bef2 428572008-08-20 Carles Pina i Estany <carles@pina.cat>
42858
42859 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42860 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42861
f9dbfc96 428622008-08-19 Robert Millan <rmh@aybabtu.com>
42863
42864 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42865 (struct grub_virtual_screen): Remove `cursor_color'.
42866 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42867 initialization.
42868 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42869
dd6bd6ab 428702008-08-18 Robert Millan <rmh@aybabtu.com>
42871
42872 Unify (identical) linux_normal.c files.
42873 * loader/i386/efi/linux_normal.c: Move from here ...
42874 * loader/linux_normal.c: ... to here. Update all users.
42875 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42876 * loader/i386/ieee1275/linux_normal.c: Likewise.
42877
7f42f83e 428782008-08-18 Robert Millan <rmh@aybabtu.com>
42879
42880 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42881 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42882 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42883 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42884 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42885 New macros.
42886 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42887 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42888 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42889 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42890 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42891 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42892 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42893 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42894 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42895 portably using grub_getxy().
42896 Replace `-EFI' with `-bzImage' in boot message.
42897
38487ddb 428982008-08-17 Robert Millan <rmh@aybabtu.com>
42899
42900 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42901
deceb3ec 429022008-08-17 Robert Millan <rmh@aybabtu.com>
42903
42904 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42905
42906 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42907 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42908 (grub_machine_mmap_iterate): New function declaration.
42909 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42910 structure.
42911 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42912 macros.
42913
42914 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42915 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42916 Move e820 parsing from here ...
42917 * kern/i386/pc/mmap.c: New file.
42918 (grub_machine_mmap_iterate): ... to here.
42919
42920 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42921 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42922 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42923 (grub_available_iterate): Redeclare to return `void', and redeclare
42924 its hook to use grub_uint64_t as addr and size parameters, and rename
42925 to ...
42926 (grub_machine_mmap_iterate): ... this. Update all users.
42927
42928 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42929 to make it more readable. Rename to ...
42930 (grub_machine_mmap_iterate): ... this.
42931
42932 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42933 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42934 (grub_multiboot): Allocate an extra region after the payload, and fill
42935 it with a Multiboot memory map. Adjust a.out loader to calculate size
42936 with the extra space.
42937 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42938 with the extra space.
42939
f8aa0f43 429402008-08-17 Carles Pina i Estany <carles@pina.cat>
42941
9807deb9 42942 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 42943
605f5bb6 429442008-08-17 Felix Zielcke <fzielcke@z-51.de>
42945
42946 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42947 mdate-sh to the list `find' searches for.
42948 * DISTLIST: Regenerated.
42949
210db6c6 429502008-08-16 Felix Zielcke <fzielcke@z-51.de>
42951
42952 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42953 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 42954 genmoddep.awk, gensymlist.sh.in.
42955 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 42956 * DISTLIST: Regenerated.
48cdbfd4 42957 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 42958
1082b929 429592008-08-16 Robert Millan <rmh@aybabtu.com>
42960
42961 * disk/raid.c (grub_raid_init): Handle/report errors set by
42962 grub_device_iterate().
42963 * disk/lvm.c (grub_lvm_init): Likewise.
42964
42ce5170 429652008-08-15 Bean <bean123ch@gmail.com>
42966
42967 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42968 and datehook.mod.
42969 (datetime_mod_SOURCES): New macro.
42970 (datetime_mod_CFLAGS): Likewise.
42971 (datetime_mod_LDFLAGS): Likewise.
42972 (date_mod_SOURCES): Likewise.
42973 (date_mod_CFLAGS): Likewise.
42974 (date_mod_LDFLAGS): Likewise.
42975 (datehook_mod_SOURCES): Likewise.
42976 (datehook_mod_CFLAGS): Likewise.
42977 (datehook_mod_LDFLAGS): Likewise.
42978
42979 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42980 and datehook.mod.
42981 (datetime_mod_SOURCES): New macro.
42982 (datetime_mod_CFLAGS): Likewise.
42983 (datetime_mod_LDFLAGS): Likewise.
42984 (date_mod_SOURCES): Likewise.
42985 (date_mod_CFLAGS): Likewise.
42986 (date_mod_LDFLAGS): Likewise.
42987 (datehook_mod_SOURCES): Likewise.
42988 (datehook_mod_CFLAGS): Likewise.
42989 (datehook_mod_LDFLAGS): Likewise.
42990
42991 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42992 and datehook.mod.
42993 (datetime_mod_SOURCES): New macro.
42994 (datetime_mod_CFLAGS): Likewise.
42995 (datetime_mod_LDFLAGS): Likewise.
42996 (date_mod_SOURCES): Likewise.
42997 (date_mod_CFLAGS): Likewise.
42998 (date_mod_LDFLAGS): Likewise.
42999 (datehook_mod_SOURCES): Likewise.
43000 (datehook_mod_CFLAGS): Likewise.
43001 (datehook_mod_LDFLAGS): Likewise.
43002
43003 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43004 and datehook.mod.
43005 (datetime_mod_SOURCES): New macro.
43006 (datetime_mod_CFLAGS): Likewise.
43007 (datetime_mod_LDFLAGS): Likewise.
43008 (date_mod_SOURCES): Likewise.
43009 (date_mod_CFLAGS): Likewise.
43010 (date_mod_LDFLAGS): Likewise.
43011 (datehook_mod_SOURCES): Likewise.
43012 (datehook_mod_CFLAGS): Likewise.
43013 (datehook_mod_LDFLAGS): Likewise.
43014
43015 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43016 and datehook.mod.
43017 (datetime_mod_SOURCES): New macro.
43018 (datetime_mod_CFLAGS): Likewise.
43019 (datetime_mod_LDFLAGS): Likewise.
43020 (date_mod_SOURCES): Likewise.
43021 (date_mod_CFLAGS): Likewise.
43022 (date_mod_LDFLAGS): Likewise.
43023 (datehook_mod_SOURCES): Likewise.
43024 (datehook_mod_CFLAGS): Likewise.
43025 (datehook_mod_LDFLAGS): Likewise.
43026
43027 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43028
43029 * commands/date.c: New file.
43030
43031 * hook/datehook.c: Likewise.
43032
43033 * include/grub/lib/datetime.h: Likewise.
43034
43035 * include/grub/i386/cmos.h: Likewise.
43036
43037 * lib/datetime.c: Likewise.
43038
43039 * lib/i386/datetime.c: Likewise.
43040
43041 * lib/efi/datetime.c: Likewise.
43042
0e9242da 430432008-08-14 Robert Millan <rmh@aybabtu.com>
43044
43045 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43046 (grub_mkelfimage_SOURCES): New variable.
43047 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43048
43049 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43050 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43051 * conf/powerpc-ieee1275.rmk: Likewise.
43052 * conf/i386-ieee1275.rmk: Likewise.
43053
43054 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43055 * kern/i386/coreboot/init.c: Likewise.
43056
43057 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43058 with `<grub/cpu/kernel.h>'.
43059 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43060 to ...
43061 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43062 * kern/i386/coreboot/startup.S: Likewise.
43063
43064 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43065 (GRUB_MOD_GAP): Remove.
43066 * include/grub/powerpc/kernel.h: New file.
43067 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43068 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43069 * include/grub/i386/kernel.h: New file.
43070 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43071 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43072 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43073
43074 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43075 `grub-mkelfimage'.
43076 Use --directory when invoking grub_mkimage.
43077
43078 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43079 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43080 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43081 and GRUB_KERNEL_CPU_PREFIX.
43082
b86408f8 430832008-08-14 Felix Zielcke <fzielcke@z-51.de>
43084
d5e619ca 43085 * include/grub/err.h (grub_err_printf): New function prototype.
43086 * util/misc.c (grub_err_printf): New function.
43087 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43088 grub_printf.
43089 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 43090
7161f0e0 430912008-08-13 Robert Millan <rmh@aybabtu.com>
43092
43093 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43094
a1967522 430952008-08-13 Robert Millan <rmh@aybabtu.com>
43096
43097 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43098 boot entry.
43099
371458b5 431002008-08-12 Robert Millan <rmh@aybabtu.com>
43101
43102 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43103 of the relocation code from here ...
43104 (grub_multiboot): ... to here.
43105 (forward_relocator, backward_relocator): Move from here ...
43106 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43107 (grub_multiboot_backward_relocator): ... to here.
43108 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43109 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43110 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43111 (grub_multiboot_forward_relocator_end)
43112 (grub_multiboot_backward_relocator)
43113 (grub_multiboot_backward_relocator_end): New variables.
43114
05f9452b 431152008-08-12 Bean <bean123ch@gmail.com>
43116
43117 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43118
20024ab0 431192008-08-11 Robert Millan <rmh@aybabtu.com>
43120
43121 * kern/i386/linuxbios/startup.S: Move from here ...
43122 * kern/i386/coreboot/startup.S: ... to here.
43123
43124 * kern/i386/linuxbios/init.c: Move from here ...
43125 * kern/i386/coreboot/init.c: ... to here.
43126
43127 * kern/i386/linuxbios/table.c: Move from here ...
43128 * kern/i386/coreboot/mmap.c: ... to here.
43129
43130 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43131
e352e9cd 431322008-08-11 Robert Millan <rmh@aybabtu.com>
43133
43134 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43135 errors. Leave it to the upper layer to handle them.
43136
2d05bc6a 431372008-08-09 Christian Franke <franke@computer.org>
43138
43139 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43140 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43141 Install `grub.d/10_windows' only on Cygwin.
43142 * configure.ac: Add subst of `target_os'.
43143 Check `target_os' also before setting TARGET_OBJ2ELF.
43144 Add `--enable-grub-pe2elf'.
43145
042bd419 431462008-08-08 Robert Millan <rmh@aybabtu.com>
43147
43148 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43149 (grub_last_time): Change type to grub_uint64_t.
43150 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43151 (grub_disk_close): Likewise.
43152
43153 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43154 (run_menu): Migrate code from to using grub_get_time_ms().
43155
43156 * util/misc.c (grub_get_time_ms): New function.
43157
7f280db5 431582008-08-08 Marco Gerards <marco@gnu.org>
43159
43160 * disk/ata.c (grub_ata_regget): Change return type to
43161 `grub_uint8_t'.
43162 (grub_ata_regget2): Likewise.
43163 (grub_ata_wait_status): New function.
43164 (grub_ata_wait_busy): Removed function, updated all users to use
43165 `grub_ata_wait_status'.
43166 (grub_ata_wait_drq): Likewise.
43167 (grub_ata_cmd): New function.
43168 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43169 error handling.
43170 (grub_ata_pio_write): Add error handling.
43171 (grub_atapi_identify): Likewise.
43172 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43173 handling.
43174 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43175 handling. Actually use the detected registers. Reorder the
43176 detection logic such that it is easier to read.
43177 (grub_ata_pciinit): Do not assign the same ID to each controller.
43178 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43179 handling.
43180 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43181
43182 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43183
1fbc5e66 431842008-08-08 Marco Gerards <marco@gnu.org>
43185
43186 * NEWS: Update.
43187
819ce6c0 431882008-08-07 Bean <bean123ch@gmail.com>
43189
43190 * include/grub/x86_64/pci.h: New file.
43191
5c41d44d 431922008-08-07 Christian Franke <franke@computer.org>
43193
43194 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43195 (TIMER2_GATE): Likewise.
43196 (grub_pit_wait): Add enable/disable of the timer2 gate
43197 bit of port 0x61. This fixes a possible infinite loop.
43198
5ebc275d 431992008-08-07 Bean <bean123ch@gmail.com>
43200
43201 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43202 kern/i386/tsc.c and kern/i386/pit.c.
43203
43204 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43205 x86_64 platform.
43206
43207 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43208 <grub/i386/tsc.h>.
43209
43210 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43211
e383b3d0 432122008-08-07 Bean <bean123ch@gmail.com>
43213
43214 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43215
43216 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43217
43218 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43219 multiple inclusion. Add #include <grub/types.h>.
43220
1cbb58ac 432212008-08-06 Christian Franke <franke@computer.org>
43222
43223 * conf/common.rmk: Build and install `10_windows'.
43224 * util/grub.d/10_windows.in: New script.
43225
337f5a1e 432262008-08-06 Pavel Roskin <proski@gnu.org>
43227
43228 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43229
057bc4ac 432302008-08-06 Robert Millan <rmh@aybabtu.com>
43231
43232 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43233 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43234
2b99f123 432352008-08-06 Bean <bean123ch@gmail.com>
43236
43237 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43238 (grub_pxefs_fs_int): Remove dummy definition.
43239 (grub_pxefs_open): Use data->block_size to store the current block
43240 size setting.
43241 (grub_pxefs_read): Use block size stored in data->block_size. As the
43242 value of grub_pxe_blksize can be changed after the file is opened.
43243
9f0234cb 432442008-08-06 Bean <bean123ch@gmail.com>
43245
43246 * fs/i386/pc/pxe.c (curr_file): new variable.
43247 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43248 require the dummy internal file system anymore.
43249 (grub_pxefs_read): Removed.
43250 (grub_pxefs_close): Likewise.
43251 (grub_pxefs_fs_int): Likewise.
43252 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43253 connection when we switch file.
43254 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43255
a55d42e0 432562008-08-06 Robert Millan <rmh@aybabtu.com>
43257
43258 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43259 `halt.mod'.
43260 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43261 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43262
43263 * kern/i386/halt.c: New file.
43264 * kern/i386/reboot.c: Likewise.
43265 * include/grub/i386/reboot.h: Likewise.
43266 * include/grub/i386/halt.h: Likewise.
43267
43268 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43269 Include `<grub/cpu/halt.h>'.
43270 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43271 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43272
43273 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43274 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43275 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43276 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43277 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43278 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43279 from here ...
43280 * include/grub/i386/at_keyboard.h: ... to here.
43281
24371d26 432822008-08-05 Robert Millan <rmh@aybabtu.com>
43283
43284 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43285 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43286 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43287 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43288 `kern/generic/millisleep.c'.
43289
43290 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43291 instead of grub_get_rtc().
43292 (grub_tsc_init): Initialize `tsc_boot_time'.
43293
43294 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43295 (grub_machine_init): Use grub_tsc_init() rather than
43296 installing an RTC-based handler via grub_install_get_time_ms().
43297
43298 * kern/i386/pit.c: New file.
43299 * include/grub/i386/pit.h: Likewise.
43300
9e7007b3 433012008-08-05 Bean <bean123ch@gmail.com>
43302
43303 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43304
43305 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43306 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43307 (pxe_mod_SOURCES): New macro.
43308 (pxe_mod_CFLAGS): Likewise.
43309 (pxe_mod_LDFLAGS): Likewise.
43310 (pxecmd_mod_SOURCES): Likewise.
43311 (pxecmd_mod_CFLAGS): Likewise.
43312 (pxecmd_mod_LDFLAGS): Likewise.
43313
43314 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43315 (grub_pxe_call): Likewise.
43316
43317 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43318
43319 * commands/i386/pc/pxecmd.c: New file.
43320
9f0234cb 43321 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 43322
43323 * include/grub/i386/pc/pxe.h: Likewise.
43324
6977d49f 433252008-08-05 Bean <bean123ch@gmail.com>
43326
43327 * util/console.c (grub_console_cur_color): New variable.
43328 (grub_console_standard_color): Likewise.
43329 (grub_console_normal_color): Likewise.
43330 (grub_console_highlight_color): Likewise.
43331 (color_map): Likewise.
43332 (use_color): Likewise.
43333 (NUM_COLORS): New macro.
43334 (grub_ncurses_setcolorstate): Handle color properly.
43335 (grub_ncurses_setcolor): Don't change color here, just remember the
43336 settings, color will be set in grub_ncurses_setcolorstate.
43337 (grub_ncurses_getcolor): New function.
43338 (grub_ncurses_init): Initialize color pairs.
43339 (grub_ncurses_term): New member grub_ncurses_getcolor.
43340
9c2ff3ee 433412008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 43342
9c2ff3ee 43343 High resolution timer support. Implemented for x86 CPUs using TSC.
43344 Extracted generic grub_millisleep() so it's linked in only as needed.
43345 This requires a Pentium compatible CPU; if the RDTSC instruction is
43346 not supported, then it falls back on the generic grub_get_time_ms()
43347 implementation that uses the machine's RTC.
43348
43349 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43350 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43351 `kern/generic/millisleep.c'.
43352
43353 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43354 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43355
43356 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43357 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43358
43359 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43360
43361 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43362 `kern/generic/millisleep.c'.
43363
43364 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43365
43366 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43367
43368 * kern/generic/rtc_get_time_ms.c: New file.
43369
43370 * kern/generic/millisleep.c: New file.
337f5a1e 43371
9c2ff3ee 43372 * kern/misc.c: Don't include
43373 <kern/time.h> anymore.
43374 (grub_millisleep_generic): Removed.
43375
43376 * commands/sleep.c (grub_interruptible_millisleep): Uses
43377 grub_get_time_ms() instead of grub_get_rtc().
43378
43379 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43380 function.
43381 (grub_cpu_is_cpuid_supported): New inline function.
43382 (grub_cpu_is_tsc_supported): New inline function.
43383 (grub_tsc_init): New function prototype.
43384 (grub_tsc_get_time_ms): New function prototype.
43385
43386 * kern/i386/tsc.c (grub_get_time_ms): New file.
43387
43388 * include/grub/time.h: Include <grub/types.h.
43389 (grub_millisleep_generic): Removed.
43390 (grub_get_time_ms): New prototype.
43391 (grub_install_get_time_ms): New prototype.
43392 (grub_rtc_get_time_ms): New prototype.
43393
43394 * kern/time.c (grub_get_time_ms): New function.
43395 (grub_install_get_time_ms): New function.
43396
43397 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43398 <grub/time.h> anymore.
43399 (grub_millisleep): Removed.
43400 (grub_machine_init): Call grub_tsc_init.
43401
43402 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43403 get_time_ms() implementation.
43404
43405 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43406 (ieee1275_get_time_ms): New function.
43407 (grub_machine_init): Install get_time_ms() implementation.
43408
43409 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43410 (grub_machine_init): Call grub_tsc_init().
43411 (grub_millisleep): Removed.
bf06a93f 43412
9c2ff3ee 43413 * kern/ieee1275/init.c (grub_millisleep): Removed.
43414 (grub_machine_init): Install ieee1275_get_time_ms()
43415 implementation.
43416 (ieee1275_get_time_ms): New function.
43417 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43418 real work.
43419
9ec92aaf 434202008-08-05 Marco Gerards <marco@gnu.org>
43421
43422 * disk/ata.c: Include <grub/pci.h>.
43423 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43424 (grub_ata_initialize): Rewritten.
43425 (grub_ata_device_initialize): New function.
43426
8d23f507 434272008-08-04 Pavel Roskin <proski@gnu.org>
43428
43429 * kern/main.c: Include grub/mm.h.
43430
5e15ee3d 434312008-08-04 Robert Millan <rmh@aybabtu.com>
43432
43433 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43434 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43435 corruption problem).
43436
a9053f8f 434372008-08-04 Robert Millan <rmh@aybabtu.com>
43438
43439 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43440 warnings introduced in my last commit.
43441
dd19c7d7 434422008-08-03 Robert Millan <rmh@aybabtu.com>
43443
43444 Make PCI available on all i386 architectures.
43445
43446 * include/grub/i386/pc/pci.h: Move from here ...
43447 * include/grub/i386/pci.h: ... to here.
43448
43449 * include/grub/i386/pc/pci.h: Remove.
43450 * include/grub/i386/efi/pci.h: Remove.
43451 * include/grub/x86_64/efi/pci.h: Remove.
43452
43453 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43454 `<grub/cpu/pci.h>'.
43455
43456 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43457 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43458 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43459
43460 * conf/i386-ieee1275.rmk: Likewise.
43461
e14a6184 434622008-08-03 Robert Millan <rmh@aybabtu.com>
43463
43464 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43465 (grub_console_setcursor): Make it possible to set cursor off.
43466
52768e37 434672008-08-03 Robert Millan <rmh@aybabtu.com>
43468
43469 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43470 of modules instead of assuming which platform provides what.
43471 * util/update-grub.in: Likewise.
43472
2d52f57f 434732008-08-03 Robert Millan <rmh@aybabtu.com>
43474
43475 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43476 instead of `grub_install_dos_part' to determine whether a drive needs
43477 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 43478 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 43479
2a5cd121 434802008-08-02 Robert Millan <rmh@aybabtu.com>
43481
43482 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43483
93808428 434842008-08-02 Robert Millan <rmh@aybabtu.com>
43485
43486 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43487 of informational grub_dprintf() calls.
43488
3bd0a12a 434892008-08-02 Robert Millan <rmh@aybabtu.com>
43490
43491 * disk/memdisk.c (memdisk_size): Don't initialize.
43492 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43493
43494 * include/grub/i386/pc/kernel.h
43495 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43496 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43497 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43498 (grub_arch_memdisk_size): Remove.
43499
43500 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43501 field (was only used to transfer a constant). Add `type' field to
43502 support multiple module types.
43503 (grub_module_iterate): New function.
43504
43505 * kern/device.c (grub_device_open): Do not hide error messages
43506 when grub_disk_open() fails. Use grub_print_error() instead.
43507
43508 * kern/i386/pc/init.c (grub_arch_modules_addr)
43509 (grub_arch_memdisk_size): Remove functions.
43510 (grub_arch_modules_addr): Return the module address in high memory
43511 (now that it isn't copied anymore).
43512
43513 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43514 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43515 decompression routine (grub_total_module_size already includes that
43516 now). Don't copy modules back to low memory.
43517
43518 * kern/main.c: Include `<grub/mm.h>'.
43519 (grub_load_modules): Split out (and use) ...
43520 (grub_module_iterate): ... this function, which iterates through
43521 module objects and runs a hook.
43522 Comment out grub_mm_init_region() call, as it would cause non-ELF
43523 modules to be overwritten.
43524
43525 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43526 the memdisk image in its own region, make it part of the module list.
43527 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43528 (main): Parse --memdisk|-m option, and pass user-provided path as
43529 parameter to generate_image().
43530 (add_segments): Pass `memdisk_path' down to load_modules().
43531 (load_modules): Embed memdisk image in module section when requested.
43532 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43533 `header.type' instead of `header.offset'.
43534
43535 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43536 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43537 (memdisk_mod_LDFLAGS): New variables.
43538 * conf/i386-coreboot.rmk: Likewise.
43539 * conf/i386-ieee1275.rmk: Likewise.
43540
a927cc73 435412008-08-02 Robert Millan <rmh@aybabtu.com>
43542
43543 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43544 (backward_relocator): New variables. Used to allocate and relocate
43545 the payload, respectively.
43546 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 43547 address, install the appropriate relocator code in each bound of
a927cc73 43548 the payload, and set the entry point such that
43549 grub_multiboot_real_boot() will jump to one of them.
43550
43551 * kern/i386/loader.S (grub_multiboot_payload_size)
43552 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43553 (grub_multiboot_payload_entry_offset): New variables.
43554 (grub_multiboot_real_boot): Set cpu context to what the relocator
43555 expects, and jump to the relocator instead of the payload.
43556
43557 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43558 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43559 (grub_multiboot_payload_entry_offset): Export.
43560
b15d8a0c 435612008-08-01 Bean <bean123ch@gmail.com>
43562
43563 * normal/menu_entry.c (editor_getline): Don't return the original
43564 string as result, as it will be released by lexer once it has done
43565 using it.
43566
cdfb3d22 435672008-08-01 Robert Millan <rmh@aybabtu.com>
43568
43569 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43570 within menuentries, not before them.
43571 util/grub.d/10_hurd.in: Likewise.
43572
9175e93d 435732008-08-01 Bean <bean123ch@gmail.com>
43574
43575 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43576 (bufio_mod_SOURCES): New macro.
43577 (bufio_mod_CFLAGS): Likewise.
43578 (bufio_mod_LDFLAGS): Likewise.
43579
43580 * include/grub/bufio.h: New file.
43581
43582 * io/bufio.c: Likewise.
43583
43584 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43585 (grub_video_reader_png): Use grub_buffile_open to open file.
43586
43587 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43588 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43589
43590 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43591 (grub_video_reader_tga): Use grub_buffile_open to open file.
43592
43593 * font/manager.c: Include <grub/bufio.h>.
43594 (add_font): Use grub_buffile_open to open file.
43595
3d8383e7 435962008-07-31 Robert Millan <rmh@aybabtu.com>
43597
43598 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43599 ELF segments, use a macro for arbitrarily accessing any of them instead
43600 of preparing a pointer that allows access to one at a time.
43601 (grub_multiboot_load_elf64): Likewise.
43602
16e641b6 436032008-07-31 Bean <bean123ch@gmail.com>
43604
43605 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43606 GRUB_KERNEL_MACHINE_DATA_END.
43607
59198b72 436082008-07-30 Robert Millan <rmh@aybabtu.com>
43609
43610 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43611 Increase from 0x50 to 0x60.
43612 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43613 use UUIDs to identify the root drive for them. If that's not
43614 possible, abort.
43615 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43616 check, for cross-disk installs.
43617
ae88bca3 436182008-07-30 Robert Millan <rmh@aybabtu.com>
43619
43620 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43621 is non-empty, use it to set the `prefix' environment variable instead
43622 of the usual approach.
43623 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43624 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43625 environment variable instead of dummy make_install_device().
43626
43627 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43628 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 43629 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 43630
43631 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43632 New variable reference.
43633 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43634 New macro. Defines offset of `grub_prefix' within startup.S (relative
43635 to `start').
43636 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43637 section within startup.S (relative to `start').
43638 * include/grub/i386/coreboot/kernel.h: Likewise.
43639
43640 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43641 Overwrite grub_prefix with its contents, at the beginning of the
43642 first segment.
43643 (main): Understand -p|--prefix.
43644
14f41dd1 436452008-07-30 Robert Millan <rmh@aybabtu.com>
43646
43647 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43648
4ca049a3 436492008-07-30 Robert Millan <rmh@aybabtu.com>
43650
43651 * term/i386/pc/vga_text.c (grub_console_cls): Use
43652 grub_console_gotoxy() to go back to beginning of the screen.
43653 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43654
2921d337 436552008-07-29 Christian Franke <franke@computer.org>
43656
43657 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43658 Add conversion of emulated mount points on Cygwin.
43659
b609876d 436602008-07-29 Christian Franke <franke@computer.org>
43661
43662 * util/update-grub.in: Add a check for admin
43663 group on Cygwin.
43664 Remove old `grub.cfg.new' before creation.
43665 Add `-f' to `mv' to handle the different filesystem
43666 semantics of Windows.
43667
e93e4679 436682008-07-29 Bean <bean123ch@gmail.com>
43669
43670 * normal/main.c (get_line): Fix buffer overflow bug.
43671
41694fd0 436722008-07-28 Robert Millan <rmh@aybabtu.com>
43673
43674 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43675 (struct grub_apple_header): New struct. Describes the layout of
43676 the partmap header.
43677 (apple_partition_map_iterate): Check the header magic as well as the
43678 partition magic (which was already being checked).
43679
cfd0b4e6 436802008-07-28 Pavel Roskin <proski@gnu.org>
43681
43682 * genmk.rb: Add a warning to the beginning of the output that
43683 it's a generated file and should not be edited.
43684
93cce016 436852008-07-28 Robert Millan <rmh@aybabtu.com>
43686
43687 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43688 with the same number are found, just use issue a warning with
43689 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 43690
cd1df915 436912008-07-27 Robert Millan <rmh@aybabtu.com>
43692
43693 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43694 information.
43695
b70a8427 436962008-07-27 Bean <bean123ch@gmail.com>
43697
43698 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43699 (grub_fat_find_dir): Ignore case when comparing filename.
43700
8f5e379f 437012008-07-27 Bean <bean123ch@gmail.com>
43702
43703 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43704 smallino, as it's more descriptive, and i8count can be confused with
43705 the other field count.
43706 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43707 inode type.
43708
a85cd5a0 437092008-07-27 Bean <bean123ch@gmail.com>
43710
43711 * commands/crc.c: New file.
43712
43713 * lib/crc.c: Likewise.
43714
43715 * include/grub/lib/crc.h: Likewise.
43716
43717 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43718
43719 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43720 (hexdump): Move this function to ...
43721
43722 * lib/hexdump.c: ... here.
43723
43724 * include/grub/hexdump.h: Renamed to ...
43725
43726 * include/grub/lib/hexdump.h: ... this.
43727
43728 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43729
43730 * util/grub-editenv.c: Likewise.
43731
43732 * include/envblk.h: Renamed to ...
43733
43734 * include/lib/envblk.h: ... this.
43735
43736 * util/envblk.c: Renamed to ...
43737
43738 * lib/envblk.c: ... this.
43739
43740 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43741 lib/hexdump.c.
43742 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43743 (pkglib_MODULES): Add crc.mod.
43744 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43745 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43746 (crc_mod_SOURCES): New macro.
43747 (crc_mod_CFLAGS): Likewise.
43748 (crc_mod_LDFLAGS): Likewise.
43749
43750 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43751
43752 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43753
43754 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43755
43756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43757
43758 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43759
c298def0 437602008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 43761
43762 * commands/help.c: Include <grub/term.h>.
43763 (TERM_WIDTH): Removed. Updated all users.
43764
cc349fb3 437652008-07-27 Pavel Roskin <proski@gnu.org>
43766
43767 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43768 spurious warnings about a comment within a comment.
43769
9051607e 437702008-07-25 Robert Millan <rmh@aybabtu.com>
43771
43772 * util/getroot.c (find_root_device): Skip devices that match
43773 /dev/dm-[0-9]. This lets the real device be found for any type of
43774 abstraction (LVM, EVMS, RAID..).
43775 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43776 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43777 device is found first, find_root_device() will now skip it.
43778
01453bfc 437792008-07-24 Pavel Roskin <proski@gnu.org>
43780
43781 * include/grub/types.h: Use __builtin_bswap32() and
43782 __builtin_bswap64() with gcc 4.3 and newer.
43783
6af9849f 437842008-07-24 Christian Franke <franke@computer.org>
43785
3a0fa256 43786 * util/i386/pc/grub-install.in: If `--debug' is specified,
43787 pass `--verbose' to grub-setup.
43788 Abort script if make_system_path_relative_to_its_root() fails.
43789
7810e747 437902008-07-24 Bean <bean123ch@gmail.com>
43791
43792 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43793 variable `target_platform' should be `platform'.
43794
42290e17 437952008-07-24 Bean <bean123ch@gmail.com>
43796
51cc5193 43797 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 43798 (grub_png_init_fixed_block): New function.
43799 (grub_png_decode_image_data): Handle fixed huffman code compression.
43800
2a8a80e4 438012008-07-24 Bean <bean123ch@gmail.com>
43802
43803 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43804 (grub_pe2elf_SOURCES): New macro.
43805 (CLEANFILES): Add grub-pe2elf.
43806
43807 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43808 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43809 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43810 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43811 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43812 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43813 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43814 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43815 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43816 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43817 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43818 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43819 (GRUB_PE32_DT_FUNCTION): Likewise.
43820 (GRUB_PE32_REL_I386_DIR32): Likewise.
43821 (GRUB_PE32_REL_I386_REL32): Likewise.
43822 (grub_pe32_symbol): New structure.
43823 (grub_pe32_reloc): Likewise.
43824
43825 * util/grub-pe2elf.c: New file.
43826
43827 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43828 start symbol in non pc platform.
43829
43830 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43831
43832 The following patches are from Christian Franke.
43833
43834 * include/grub/dl.h: Remove .previous, gas supports this only
43835 for ELF format.
43836
43837 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43838 Remove .type, gas supports this only for ELF format.
43839
43840 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43841 nullbytes in symbol table. This fixes an infinite loop if table is
43842 zero filled.
43843
43844 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43845 TARGET_IMG_LDFLAGS and EXEEXT.
43846
43847 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43848 TARGET_IMG_LDFLAGS_AC.
43849 (grub_CHECK_STACK_ARG_PROBE): New function.
43850
43851 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43852
43853 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43854
43855 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43856 to set TARGET_IMG_LD* accordingly.
43857 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43858 Add call to grub_CHECK_STACK_ARG_PROBE.
43859 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43860
43861 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43862
43863 * genmk.rb: Add EXEEXT to CLEANFILES.
43864
12ccdb75 438652008-07-23 Robert Millan <rmh@aybabtu.com>
43866
43867 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43868 define the codes for arrows and lines used for the menu).
43869 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43870 as well.
43871
43872 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43873 fonts, because the latter are too slow.
43874
18eeaf04 438752008-07-21 Bean <bean123ch@gmail.com>
43876
43877 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43878 a20. Run keyboard test last, as it will cause macbook to halt.
43879
b095e2ad 438802008-07-18 Pavel Roskin <proski@gnu.org>
43881
43882 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43883 load foreign architecture modules correctly anyway. Keep
43884 support for loading host architecture modules, whether we
43885 compile them or not.
43886
737feb35 438872008-07-17 Pavel Roskin <proski@gnu.org>
43888
3f4ce737 43889 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43890 change target_cpu. The compiler default can mismatch target_cpu
43891 in any case.
43892
4ad2d049 43893 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43894 * kern/efi/efi.c: Likewise.
43895
f6130a12 43896 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43897 target compiler is functional.
43898 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43899 are set up.
43900
58393a2d 43901 * configure.ac: Default to efi platform for x86_64-apple. Allow
43902 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43903 adjustments from the rest, only do them if target is not
43904 explicitly given. Merge other adjustments with the final sanity
43905 check. Remove an extraneous check for supported CPU. Be
43906 specific which CPU and which platform is not supported.
43907
737feb35 43908 * configure.ac: Default to pc platform for x86_64.
43909
546f966a 439102008-07-17 Robert Millan <rmh@aybabtu.com>
43911
43912 Partial LinuxBIOS -> Coreboot rename.
43913
43914 * conf/i386-linuxbios.rmk: Renamed to ...
43915 * conf/i386-coreboot.rmk: ... this.
43916 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43917 * configure.ac: Accept "coreboot" as input platform (but maintain
43918 compatibility with "linuxbios").
43919 * include/grub/i386/linuxbios: Renamed to ...
43920 * include/grub/i386/coreboot: ... this.
43921
20011694 439222008-07-17 Bean <bean123ch@gmail.com>
43923
43924 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 43925 (appleldr_mod_SOURCE): New variable.
20011694 43926 (appleldr_mod_CFLAGS): Likewise.
43927 (appleldr_mod_LDFLAGS): Likewise.
43928 (pci_mod_SOURCES): Likewise.
43929 (pci_mod_CFLAGS): Likewise.
43930 (pci_mod_LDFLAGS): Likewise.
43931 (lspci_mod_SOURCES): Likewise.
43932 (lspci_mod_CFLAGS): Likewise.
43933 (lspci_mod_LDFLAGS): Likewise.
43934
43935 * conf/x86_64-efi.rmk: New file.
43936
43937 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43938 macro.
43939 (grub_efidisk_write): Likewise.
43940
43941 * include/efi/api.h (efi_call_0): New macro.
43942 (efi_call_1): Likewise.
43943 (efi_call_2): Likewise.
43944 (efi_call_3): Likewise.
43945 (efi_call_4): Likewise.
43946 (efi_call_5): Likewise.
43947 (efi_call_6): Likewise.
43948
43949 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43950 grub_rescue_cmd_chainloader.
43951
43952 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43953 (grub_pe32_optional_header): Change some fields based on i386 or
43954 x86_64 platform.
43955 (GRUB_PE32_PE32_MAGIC): Likewise.
43956
43957 * include/grub/efi/uga_draw.h: New file.
43958
43959 * include/grub/elf.h (STN_ABS): New constant.
43960 (R_X86_64_NONE): Relocation constant for x86_64.
43961 (R_X86_64_64): Likewise.
43962 (R_X86_64_PC32): Likewise.
43963 (R_X86_64_GOT32): Likewise.
43964 (R_X86_64_PLT32): Likewise.
43965 (R_X86_64_COPY): Likewise.
43966 (R_X86_64_GLOB_DAT): Likewise.
43967 (R_X86_64_JUMP_SLOT): Likewise.
43968 (R_X86_64_RELATIVE): Likewise.
43969 (R_X86_64_GOTPCREL): Likewise.
43970 (R_X86_64_32): Likewise.
43971 (R_X86_64_32S): Likewise.
43972 (R_X86_64_16): Likewise.
43973 (R_X86_64_PC16): Likewise.
43974 (R_X86_64_8): Likewise.
43975 (R_X86_64_PC8): Likewise.
43976
43977 * include/grub/i386/efi/pci.h: New file.
43978
43979 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43980 Change it value based on platform.
43981 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43982 (GRUB_E820_RAM): Likewise.
43983 (GRUB_E820_RESERVED): Likewise.
43984 (GRUB_E820_ACPI): Likewise.
43985 (GRUB_E820_NVS): Likewise.
43986 (GRUB_E820_EXEC_CODE): Likewise.
43987 (GRUB_E820_MAX_ENTRY): Likewise.
43988 (grub_e820_mmap): New structure.
43989 (linux_kernel_header): Change the efi field according to different
43990 kernel version, also field from linux_kernel_header.
43991
43992 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43993
43994 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43995 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43996 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43997 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43998 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43999 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
44000 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
44001 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
44002 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
44003 (GRUB_PCI_ADDR_IO_MASK): Likewise.
44004
44005 * include/grub/x86_64/efi/kernel.h: New file.
44006
44007 * include/grub/x86_64/efi/loader.h: Likewise.
44008
44009 * include/grub/x86_64/efi/machine.h: Likewise.
44010
44011 * include/grub/x86_64/efi/pci.h: Likewise.
44012
44013 * include/grub/x86_64/efi/time.h: Likewise.
44014
44015 * include/grub/x86_64/linux.h: Likewise.
44016
44017 * include/grub/x86_64/setjmp.h: Likewise.
44018
44019 * include/grub/x86_64/time.h: Likewise.
44020
44021 * include/grub/x86_64/types.h: Likewise.
44022
44023 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44024 GRUB_TARGET_SIZEOF_VOID_P.
44025
44026 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44027 (grub_efi_locate_handle): Likewise.
44028 (grub_efi_open_protocol): Likewise.
44029 (grub_efi_set_text_mode): Likewise.
44030 (grub_efi_stall): Likewise.
44031 (grub_exit): Likewise.
44032 (grub_reboot): Likewise.
44033 (grub_halt): Likewise.
44034 (grub_efi_exit_boot_services): Likewise.
44035 (grub_get_rtc): Likewise.
44036
44037 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44038 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44039 (grub_efi_allocate_pages): Wrap efi calls.
44040 (grub_efi_free_pages): Wrap efi calls.
44041 (grub_efi_get_memory_map): Wrap efi calls.
44042
44043 * kern/x86_64/dl.c: New file.
44044
44045 * kern/x86_64/efi/callwrap.S: Likewise.
44046
44047 * kern/x86_64/efi/startup.S: Likewise.
44048
44049 * loader/efi/appleloader.c: Likewise.
44050
44051 * loader/efi/chainloader.c (cmdline): New variable.
44052 (grub_chainloader_unload): Wrap efi calls.
44053 (grub_chainloader_boot): Likewise.
44054 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44055 command line.
44056
44057 * loader/efi/chainloader_normal.c (chainloader_command):
44058 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44059 command line.
44060
44061 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44062 method.
44063 (grub_e820_add_region): New function.
44064 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44065 booting.
44066 (grub_find_video_card): New function.
44067 (grub_linux_setup_video): New function.
44068 (grub_rescue_cmd_linux): Probe for video information.
44069
44070 * normal/x86_64/setjmp.S: New file.
44071
44072 * term/efi/console.c (map_char): New function.
44073 (grub_console_putchar): Map unicode char.
44074 (grub_console_checkkey): Wrap efi calls.
44075 (grub_console_getkey): Likewise.
44076 (grub_console_getwh): Likewise.
44077 (grub_console_gotoxy): Likewise.
44078 (grub_console_cls): Likewise.
44079 (grub_console_setcolorstate): Likewise.
44080 (grub_console_setcursor): Likewise.
44081
44082 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44083
59652a20 440842008-07-16 Pavel Roskin <proski@gnu.org>
44085
ef294055 44086 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44087 format strings.
44088
59652a20 44089 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44090 pointer, not an integer. This fixes a warning and prevents
44091 precision loss on 64-bit systems.
44092 (relocate_addresses): Remove unneeded cast.
44093
afc3b5d7 440942008-07-15 Pavel Roskin <proski@gnu.org>
44095
506b2b3e 44096 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44097
62ead89c 44098 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44099
c4cd51d7 44100 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44101 Fix comparison between signed and unsigned.
44102
0d3d8f28 44103 * include/grub/i386/ieee1275/console.h: Declare
44104 grub_console_init() and grub_console_fini().
44105
8804b286 44106 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44107 It's empty and unused.
44108
ee01cf35 44109 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44110 beginning to avoid warnings with some compilers.
44111
afc3b5d7 44112 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44113 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44114
e4e8eaa5 441152008-07-14 Pavel Roskin <proski@gnu.org>
44116
407aceb4 44117 * kern/env.c (grub_register_variable_hook): Don't copy empty
44118 string, it leaks memory. Pass "" to grub_env_set(), it should
44119 handle constant strings.
44120
e4e8eaa5 44121 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44122 * commands/cmp.c (grub_cmd_cmp): Likewise.
44123 * kern/dl.c (grub_dl_flush_cache): Likewise.
44124 (grub_dl_load_core): Likewise.
44125 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44126 (grub_elf64_load_phdrs): Likewise.
44127
d4e2dad3 441282008-07-13 Pavel Roskin <proski@gnu.org>
44129
44130 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44131 between signed and unsigned.
44132 (LzmaEnc_Finish): Fix warning about an unused parameter.
44133
aa24b516 441342008-07-13 Bean <bean123ch@gmail.com>
44135
44136 * Makefile.in (enable_lzo): New rule.
44137
44138 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44139
44140 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44141
44142 * boot/i386/pc/lnxboot.S: #include <config.h>.
44143
44144 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 44145 its value according to the compression algorithm used, lzo or lzma.
aa24b516 44146
44147 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44148 compression algorithm according to configure macro.
44149
44150 * kern/i386/pc/startup.S (codestart): Likewise.
44151
44152 * kern/i386/pc/lzma_decode.S: New file.
44153
44154 * include/grub/lib/LzFind.h: Likewise.
44155
44156 * include/grub/lib/LzHash.h: Likewise.
44157
44158 * include/grub/lib/LzmaDec.h: Likewise.
44159
44160 * include/grub/lib/LzmaEnc.h: Likewise.
44161
44162 * include/grub/lib/LzmaTypes.h: Likewise.
44163
44164 * lib/LzFind.c: Likewise.
44165
44166 * lib/LzmaDec.c: Likewise.
44167
44168 * lib/LzmaEnc.c: Likewise.
44169
4ae821ac 441702008-07-13 Bean <bean123ch@gmail.com>
44171
44172 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44173 (grub_ext4_extent_header): New structure.
44174 (grub_ext4_extent): Likewise.
44175 (grub_ext4_extent_idx): Likewise.
44176 (grub_ext4_find_leaf): New function.
44177 (grub_ext2_read_block): Handle extents.
44178
9a745147 441792008-07-12 Robert Millan <rmh@aybabtu.com>
44180
44181 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44182
d49a4cf6 441832008-07-11 Robert Millan <rmh@aybabtu.com>
44184
44185 * util/grub.d/40_custom.in: New file. Example on how to add custom
44186 entries to /etc/grub.d.
44187 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44188 40_custom (implicitly, by merging all the grub.d rules).
44189
947414b4 441902008-07-11 Pavel Roskin <proski@gnu.org>
44191
0059cf6f 44192 * commands/read.c (grub_getline): Fix invalid memory access.
44193 Don't add newline to the variable value.
44194
947414b4 44195 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44196 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44197 (serial_hw_get_port): Check validity of the port number.
44198 (grub_cmd_serial): Check return value of serial_hw_get_port().
44199
62a02d00 442002008-07-07 Pavel Roskin <proski@gnu.org>
44201
44202 * boot/i386/pc/diskboot.S (notification_string): Replace
44203 "Loading kernel" with just "loading". This is shorter, less
44204 confusing and saves a few bytes for possible future changes.
44205
3e5581b0 442062008-07-05 Pavel Roskin <proski@gnu.org>
44207
ea387a48 44208 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44209 size for ATAPI devices, they are undefined. Output sector
44210 number in decimal form.
44211
3e5581b0 44212 * disk/ata.c: Use named constants for status bits.
44213
fdecb8fd 442142008-07-04 Pavel Roskin <proski@gnu.org>
44215
bcd35b90 44216 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44217 grub_addr_t before casting it to the void pointer to fix a
44218 warning. Non-addressable regions are discarded earlier.
44219 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44220 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44221 (check_signature): Don't shadow table_header.
44222 (grub_linuxbios_table_iterate): Cast numeric constants to
44223 grub_linuxbios_table_header_t.
44224 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44225 grub_stop().
44226
af58ab3d 44227 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44228 prevent warnings.
44229
1759aa57 44230 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44231 pointer, which can cause warnings. Support 64-bit addresses.
44232
fdecb8fd 44233 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44234 of sizeof(long). This fixes PowerPC image generation on x86_64.
44235
8516d2a8 442362008-07-04 Robert Millan <rmh@aybabtu.com>
44237
44238 This fixes a performance issue when pc & gpt partmap iterators
44239 didn't abort iteration even after our hook found what it was
fe987087 44240 looking for (often causing expensive probes of non-existent drives).
8516d2a8 44241
44242 Some callers relied on previous buggy behaviour, since they would
34c44600 44243 raise an error when their own hooks caused early abortion of its
8516d2a8 44244 iteration.
44245
44246 * kern/device.c (grub_device_open): Improve error message.
44247 * disk/lvm.c (grub_lvm_open): Likewise.
44248 * disk/raid.c (grub_raid_open): Likewise.
44249
44250 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44251 when hook requests it, independently of grub_errno.
44252 (pc_partition_map_probe): Do not fail when find_func() caused
44253 early abortion of pc_partition_map_iterate().
44254
44255 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44256 when hook requests it, independently of grub_errno.
44257 (gpt_partition_map_probe): Do not fail when find_func() caused
44258 early abortion of gpt_partition_map_iterate().
44259
44260 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44261 when hook requests it, independently of grub_errno. Do not fail when
44262 part_map_iterate_hook() caused early abortion of p->iterate().
44263
44264 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44265 when grub_partition_iterate() returned with non-zero.
44266
277d0de9 442672008-07-03 Pavel Roskin <proski@gnu.org>
44268
44269 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44270 like we do in grub_ata_pio_read().
44271 (grub_ata_readwrite): Always write individual sectors. Fix the
44272 sector count for the remainder.
44273 (grub_ata_write): Enable writing to ATA devices. Correctly
44274 report error for ATAPI devices.
44275
d4c9b428 442762008-07-02 Pavel Roskin <proski@gnu.org>
44277
e43fc690 44278 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44279 warning.
44280
f707af42 44281 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44282 for every read sector, we already increment it for the whole
44283 batch. This fixes reading more than 256 sectors at once.
44284
11e16b15 44285 * util/grub-editenv.c (cmd_info): Cast argument to long
44286 explicitly. ptrdiff_t reduces to int on i386.
44287
cbabfdd4 44288 * util/grub-editenv.c (main): Be specific which parameter is
44289 missing.
44290
b8fbce0a 44291 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44292 (memdisk): Make memdisk_orig_addr a pointer.
44293
c9c8e606 44294 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44295 for file offsets, use grub_off_t instead. Fix printf format
44296 warnings.
44297
ca62e598 44298 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44299 there. Real unexpected warnings should not drown in the noise
44300 about known problems.
44301
ce8d1766 44302 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44303 grub_disk_addr_t for memory addresses.
44304
00c7a56a 44305 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44306 explicitly to fix a warning.
44307
08d3ef09 44308 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44309
cb71ba20 44310 * Makefile.in (MODULE_LDFLAGS): New variable.
44311 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44312 the linker accepts --build-id=none.
44313 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44314 MODULE_LDFLAGS.
44315 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44316
d4c9b428 44317 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44318 those in Linux XFS code. Provide a way to access 64-bit parent
44319 inode.
44320 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44321 the end of struct grub_xfs_dir_header.
44322
d4156eee 443232008-07-02 Bean <bean123ch@gmail.com>
44324
44325 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44326 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44327 and GRUB_IEEE1275_FLAG_NO_ANSI.
44328
44329 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44330 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44331 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44332
44333 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44334 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44335
44336 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44337 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44338
44339 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44340 esc sequence on non ANSI terminal.
44341 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44342
44343 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44344 beginning of file.
44345
2270f77b 443462008-07-02 Bean <bean123ch@gmail.com>
44347
44348 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44349 (grub_editenv_SOURCES): New variable.
44350 (pkglib_MODULES): Add loadenv.mod.
44351 (loadenv_mod_SOURCES): New variable.
44352 (loadenv_mod_CFLAGS): Likewise.
44353 (loadenv_mod_LDFLAGS): Likewise.
44354
44355 * include/grub/envblk.h: New file.
44356
44357 * util/envblk.c: New file.
44358
44359 * util/grub-editenv.c: New file.
44360
44361 * commands/loadenv.c: New file.
44362
0e9e51ec 443632008-07-01 Pavel Roskin <proski@gnu.org>
44364
d89b7634 44365 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44366 not unsigned char. This fixes warnings and is consistent with
44367 other tags.
44368
bf1835b1 44369 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44370
8222a04b 44371 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44372
6a42d99d 44373 * term/tparm.c (analyze): Always set *popcount.
44374
10b159d1 44375 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44376 cast to fix a warning.
44377
b8789f6c 44378 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44379 cast to suppress a warning.
44380
29d7e38a 44381 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44382 grub_fshelp_read_file() expects.
44383
f341f669 44384 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44385 write uuid as a 32-bit value in CPU byte order, so declare and
44386 use it as such.
44387
0e9e51ec 44388 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44389 long if the format specifier expects it.
44390 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44391 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44392 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44393 long to fix a warning.
44394 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44395 grub_dprintf() arguments to fix warnings.
44396
3aefa857 443972008-06-30 Pavel Roskin <proski@gnu.org>
44398
56c7668b 44399 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44400 install_bsd_part immediately before core.img is embedded or
44401 modified on disk. This fixes core.img verification if core.img
44402 cannot be embedded.
44403
3aefa857 44404 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44405 core_path to calculate the blocklist.
44406 Patch from Javier Martín <lordhabbit@gmail.com>
44407
5444088d 444082008-06-29 Robert Millan <rmh@aybabtu.com>
44409
44410 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44411 block to disk block.
44412 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44413 Patch from Niels Böhm <bitbucket@arcor.de>
44414
674835c8 444152008-06-29 Robert Millan <rmh@aybabtu.com>
44416
44417 * util/update-grub_lib.in (font_path): Search for fonts in
44418 /boot/grub first, which is more likely to be readable (we aren't
44419 deciding where fonts live, just looking for them).
44420
f527dbc8 444212008-06-26 Pavel Roskin <proski@gnu.org>
44422
6c2d8df6 44423 * util/biosdisk.c (read_device_map): Don't leave dead map
44424 entries for devices failing stat() check.
44425
f527dbc8 44426 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44427 core_path_dev for the core.img path on the target device.
44428
aebe3d13 444292008-06-26 Robert Millan <rmh@aybabtu.com>
44430
44431 * disk/fs_uuid.c: New file.
44432 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44433 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44434 (fs_uuid_mod_LDFLAGS): New variables.
44435 * include/grub/disk.h (grub_disk_dev_id): Add
44436 `GRUB_DISK_DEVICE_UUID_ID'.
44437 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44438 implement iterate().
44439
37aaf354 444402008-06-26 Robert Millan <rmh@aybabtu.com>
44441
44442 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44443 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44444 Linux image includes no initrd.
44445
25ff262a 444462008-06-21 Javier Martín <lordhabbit@gmail.com>
44447
44448 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44449 call to resolve the core image location that effectively appended the
44450 name twice.
44451
76a2bd44 444522008-06-21 Robert Millan <rmh@aybabtu.com>
44453
44454 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44455 call from here ...
44456
44457 * util/grub.d/10_hurd.in: ... to here ...
44458 * util/grub.d/10_linux.in: ... and here.
44459
650e1c79 444602008-06-19 Robert Millan <rmh@aybabtu.com>
44461
fe987087 44462 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 44463 after it has been set by grub_machine_set_prefix().
44464
6ce63911 444652008-06-19 Robert Millan <rmh@aybabtu.com>
44466
44467 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44468 search result when not saving to variable, not the other way around.
44469 When saving to variable, abort iteration as soon as a match is found.
44470
73940cec 444712008-06-19 Robert Millan <rmh@aybabtu.com>
44472
44473 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44474 check for partition that provides /boot/grub. Its logic is flawed,
44475 as it prevents prepare_grub_to_access_device() from being called
44476 multiple times.
44477
3c62a39d 444782008-06-19 Robert Millan <rmh@aybabtu.com>
44479
44480 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44481 "insmod" command directly when abstraction modules are needed,
fe987087 44482 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 44483 since it had already been processed).
44484
47395a42 444852008-06-19 Pavel Roskin <proski@gnu.org>
44486
44487 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44488 changed. This is needed in case GRUB_LIBDIR changes.
44489 * conf/i386-ieee1275.rmk: Likewise.
44490 * conf/i386-linuxbios.rmk: Likewise.
44491 * conf/i386-pc.rmk: Likewise.
44492 * conf/powerpc-ieee1275.rmk: Likewise.
44493
a145ac2d 444942008-06-18 Pavel Roskin <proski@gnu.org>
44495
44496 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44497 kernel_elf_symlist.c to symlist.c for consistency with other
44498 architectures. Update all users.
44499 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44500
7847c51e 445012008-06-18 Robert Millan <rmh@aybabtu.com>
44502
44503 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44504 it in prefix.
44505
44506 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44507 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44508 a RAID device, run setup() for all members independently on whether
44509 LVM abstraction is being used.
44510 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44511 If grub-mkimage has set `*install_dos_part == -2', don't override this
44512 value.
44513 Perform *install_dos_part adjustments independently on whether
44514 we're embedding or not.
44515 Clarify error message when image is too big for embedding.
44516 Remove duplicate *install_dos_part stanza.
44517
b23e5644 445182008-06-17 Robert Millan <rmh@aybabtu.com>
44519
44520 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44521 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44522 variables.
44523 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44524 values in grub_ofconsole_normal_color and
44525 grub_ofconsole_highlight_color (they're not directly related to
44526 background and foreground).
44527 (grub_ofconsole_setcolorstate): Extract background and foreground
44528 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44529
0aac2f79 445302008-06-17 Robert Millan <rmh@aybabtu.com>
44531
44532 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44533 /boot/grub for the check in last commit, not /boot (they could be
44534 different partitions).
44535
3cca7ef3 445362008-06-16 Robert Millan <rmh@aybabtu.com>
44537
44538 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44539 asked to setup access for the same partition that provides /boot,
44540 don't bother using UUIDs since our root already has the value we
44541 want.
44542
347396d8 445432008-06-16 Robert Millan <rmh@aybabtu.com>
44544
44545 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44546 I2O devices.
44547 Patch from Sven Mueller <sven@debian.org>.
44548
991477f8 445492008-06-16 Robert Millan <rmh@aybabtu.com>
44550
44551 * util/update-grub.in: Check for $EUID instead of $UID.
44552 Reported by Vincent Zweije.
44553
d31a32a1 445542008-06-16 Bean <bean123ch@gmail.com>
44555
fe987087 44556 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 44557 (grub_ext2_read_block): Likewise.
44558 (grub_ext2_read_inode): Likewise.
44559 (grub_ext2_mount): Likewise.
44560 (grub_ext2_close): Likewise.
44561 (grub_ext3_get_journal): Removed.
44562
fe987087 44563 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 44564 (grub_reiserfs_read_symlink): Likewise.
44565 (grub_reiserfs_mount): Likewise.
44566 (grub_reiserfs_open): Likewise.
44567 (grub_reiserfs_read): Likewise.
44568 (grub_reiserfs_close): Likewise.
44569 (grub_reiserfs_get_journal): Removed.
44570
44571 * fs/fshelp.c (grub_fshelp_read): Removed.
44572 (grub_fshelp_map_block): Likewise.
44573
44574 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44575 (grub_fshelp_journal): Likewise.
44576 (grub_fshelp_read): Likewise.
44577 (grub_fshelp_map_block): Likewise.
44578
3540a760 445792008-06-16 Pavel Roskin <proski@gnu.org>
44580
44581 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44582 floating point anymore.
44583 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44584
95614c84 445852008-06-15 Pavel Roskin <proski@gnu.org>
44586
44587 * commands/ls.c (grub_ls_list_files): Use integer calculations
44588 for human readable format, avoid floating point use.
44589 * kern/misc.c (grub_ftoa): Remove.
44590 (grub_vsprintf): Remove floating point support.
44591
50465dd6 445922008-06-15 Robert Millan <rmh@aybabtu.com>
44593
fe6b695a 44594 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 44595 devices.
44596 Reported by Max Vozeler.
44597
a9207284 445982008-06-15 Robert Millan <rmh@aybabtu.com>
44599
44600 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44601 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44602 skipped later.
44603 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44604 the beginning of the prefix.
44605
44606 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44607 It is assumed that if we have a memdisk, grub-mkimage has set
44608 grub_prefix to include the "(memdisk)" drive in it.
44609
a7cbd45a 446102008-06-15 Robert Millan <rmh@aybabtu.com>
44611
44612 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44613 Initialize keyboard controller after registering the terminal, so that
44614 grub_printf() can be called from grub_keyboard_controller_init().
44615
21cf716a 446162008-06-15 Robert Millan <rmh@aybabtu.com>
44617
44618 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44619 extent-btree which is written as big endian on disk.
44620 Reported by Alain Greppin <al@chilibi.org>.
44621
23a64d8e 446222008-06-14 Robert Millan <rmh@aybabtu.com>
44623
44624 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44625 * util/i386/pc/grub-install.in (modules): Likewise.
44626
d687651c 446272008-06-13 Pavel Roskin <proski@gnu.org>
44628
44629 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44630
dfe9ddd4 446312008-06-13 Bean <bean123ch@gmail.com>
44632
44633 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44634
44635 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44636
44637 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44638 to indicate sparse block.
44639
16ae7781 446402008-06-12 Pavel Roskin <proski@gnu.org>
44641
e6d1a308 44642 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44643 number, grub_fshelp_read() does it for us.
44644
16ae7781 44645 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44646 linear disk read with journal translation.
44647 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44648 * include/grub/fshelp.h: Declare grub_fshelp_read().
44649
40fd3a2b 446502008-06-09 Pavel Roskin <proski@gnu.org>
44651
44652 * fs/minix.c (grub_minix_mount): Handle error reading
44653 superblock.
44654
f5679726 446552008-06-08 Robert Millan <rmh@aybabtu.com>
44656
44657 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44658 don't append the RAID prefix afterwards.
44659 Reported by Clint Adams.
44660
ce525529 446612008-06-08 Robert Millan <rmh@aybabtu.com>
44662
44663 Based on description from Pavel:
44664 * kern/disk.c (grub_disk_check_range): Rename to ...
44665 (grub_disk_adjust_range): ... this. Add a comment explaining the
44666 tasks performed by this function.
44667
ad4936a0 446682008-06-08 Robert Millan <rmh@aybabtu.com>
44669
44670 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44671 `num_serial' (for consistency with other variables).
44672 (struct grub_ntfs_data): Add `uuid' member.
44673 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44674 (grub_ntfs_uuid): New function.
44675 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44676
dc20b0f9 446772008-06-07 Pavel Roskin <proski@gnu.org>
44678
44679 * util/biosdisk.c (open_device): Revert last change to the
44680 function, it broke installation. The sector needs to be
44681 different dependent on which device is opened.
44682
c5e3cfba 446832008-06-06 Robert Millan <rmh@aybabtu.com>
44684
44685 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44686 rest of GRUB, and breakage doesn't happen if its value were modified.
44687
44688 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44689 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44690 a constant (same value).
44691 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44692 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44693
26a1f8c4 446942008-06-06 Robert Millan <rmh@aybabtu.com>
44695
44696 * util/biosdisk.c (open_device): Do not modify sector offset when
44697 accessing a partition. kern/disk.c already handles this for us.
44698
25d6b327 446992008-06-06 Robert Millan <rmh@aybabtu.com>
44700
44701 * util/grub-emu.c (grub_machine_init): Move code in this function from
44702 here ...
44703 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44704 segfault in case grub_printf() is called).
44705
44706 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44707 grub_probe. Update all users not to explicitly add it again.
44708 (grub_device): New variable; contains corresponding device for grubdir.
44709 (fs_module, partmap_module, devabstraction_module): Pass
44710 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44711 every time.
44712
9ece62fb 447132008-06-05 Robert Millan <rmh@aybabtu.com>
44714
44715 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44716 is found, print it (same layout as with labels).
44717
1ad36d37 447182008-06-04 Robert Millan <rmh@aybabtu.com>
44719
44720 * util/biosdisk.c (get_drive): Rename to ...
44721 (find_grub_drive): ... this. Update all users.
44722
44723 (get_os_disk): Rename to ...
44724 (convert_system_partition_to_system_disk): ... this. Update all users.
44725
44726 (find_drive): Rename to ...
44727 (find_system_device): ... this. Update all users.
44728
e6a30859 447292008-06-04 Robert Millan <rmh@aybabtu.com>
44730
44731 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44732 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44733 (make_device_map): Likewise.
44734
00c108a4 447352008-06-01 Robert Millan <rmh@aybabtu.com>
44736
44737 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44738 before dereferencing it.
44739
44740 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44741 union with fat12/fat16-specific ones. Add some new fields, including
44742 `num_serial' for both versions.
44743 (struct grub_fat_data): Add `uuid' member.
44744 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44745 names. Initialize `data->uuid' using `num_serial'.
44746 (grub_fat_uuid): New function.
44747 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44748
44749 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44750 (grub_reiserfs_uuid): New function.
44751 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44752 member.
44753
44754 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44755 (grub_xfs_uuid): New function.
44756 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44757
1385c5bb 447582008-06-01 Robert Millan <rmh@aybabtu.com>
44759
44760 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44761 code that is backward compatible with pre-uuid search command.
44762
c682dfd7 447632008-05-31 Robert Millan <rmh@aybabtu.com>
44764
44765 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44766 floppies after everything else, to ensure floppy drive isn't accessed
44767 unnecessarily (patch from Bean).
44768
b7db5d47 447692008-05-31 Robert Millan <rmh@aybabtu.com>
44770
44771 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44772 not print device names when we were asked to set a variable.
44773
6e037aa9 447742008-05-31 Robert Millan <rmh@aybabtu.com>
44775
44776 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44777 using "cursor-on" and "cursor-off" commands (understood at least by
44778 the Open Firmware flavour on OLPC).
44779
41305bc8 447802008-05-31 Michael Gorven <michael@gorven.za.net>
44781
44782 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44783 on and off sequences.
44784
69ba137e 447852008-05-31 Robert Millan <rmh@aybabtu.com>
44786
44787 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44788 * util/update-grub.in: Likewise.
44789
520ae21b 447902008-05-30 Pavel Roskin <proski@gnu.org>
44791
44792 * util/biosdisk.c (linux_find_partition): Simplify logic and
44793 make the code more universal. Keep special processing for
44794 devfs, but use a simple rule for all other devices. If the
44795 device ends with a number, append 'p' and the partition number.
44796 Otherwise, append only the partition number.
44797
5786569b 447982008-05-30 Robert Millan <rmh@aybabtu.com>
44799
44800 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44801 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44802 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44803 the `root' parameter to Linux.
44804
51500452 448052008-05-30 Robert Millan <rmh@aybabtu.com>
44806
44807 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44808 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44809 --fs_uuid with --fs-uuid.
44810 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44811 all filesystems support them).
44812
811d3878 448132008-05-30 Robert Millan <rmh@aybabtu.com>
44814
44815 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 44816 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 44817
cab63c95 448182008-05-30 Robert Millan <rmh@aybabtu.com>
44819
44820 * util/grub.d/00_header.in: Remove obsolete comment referencing
44821 convert_system_path_to_grub_path().
44822 * util/update-grub.in: Likewise.
44823 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44824 (convert_system_path_to_grub_path): Add a warning message explaining
44825 that this function is deprecated. Rely on is_path_readable_by_grub()
44826 for the readability checks.
44827 (font_path): Use is_path_readable_by_grub() for the readability
44828 check rather than convert_system_path_to_grub_path().
44829
972e2f7a 448302008-05-30 Robert Millan <rmh@aybabtu.com>
44831
44832 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44833 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44834 converting it first.
44835 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44836 grub.cfg for access to font file, and afterwards call it again to set
44837 the root device.
44838
62191274 448392008-05-30 Robert Millan <rmh@aybabtu.com>
44840
44841 * commands/search.c (options): Add --fs_uuid option.
44842 (search_fs_uuid): New function.
44843 (grub_cmd_search): Fix --set argument passing.
44844 Use search_fs_uuid() when requested via --fs_uuid.
44845 (grub_search_init): Update help message.
44846 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44847 and redeclare it as an array of 16-bit words.
44848 (grub_ext2_uuid): New function.
44849 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44850 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44851 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44852 (GRUB_DEVICE_BOOT_UUID): New variables.
44853 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44854 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44855 whenever possible.
44856 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44857 just assume `root' variable has the right value.
44858 * util/grub.d/10_linux.in: Likewise.
44859 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44860 via PRINT_FS_UUID.
44861 (main): Recognise `-t fs_uuid' argument.
44862
01b73ec8 448632008-05-30 Robert Millan <rmh@aybabtu.com>
44864
44865 * util/biosdisk.c (map): Redefine structure to hold information
44866 about GRUB drive name.
fe6b695a 44867 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 44868 drive names.
44869 (call_hook): Remove.
44870 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44871 member. Assume drive has partitions.
44872 (grub_util_biosdisk_open): Access device names via `.device' struct
44873 member.
44874 (open_device): Likewise.
44875 (find_drive): Likewise.
44876 (read_device_map): Adjust map[] usage to match the new struct
44877 definition. Don't check for duplicates (still possible, but not cheap
44878 anymore).
44879 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44880 (make_device_name): Remove assumption of BIOS-like drive names.
44881
22f16596 448822008-05-30 Pavel Roskin <proski@gnu.org>
44883
44884 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44885 compiling execute.c doesn't need grub_script.tab.h anymore.
44886 (normal/command.c_DEPENDENCIES): Likewise.
44887 (normal/function.c_DEPENDENCIES): Likewise.
44888 * conf/i386-ieee1275.rmk: Likewise.
44889 * conf/i386-linuxbios.rmk: Likewise.
44890 * conf/i386-pc.rmk: Likewise.
44891 * conf/powerpc-ieee1275.rmk: Likewise.
44892 * conf/sparc64-ieee1275.rmk: Likewise.
44893
528ad8f2 448942008-05-29 Pavel Roskin <proski@gnu.org>
44895
d1dff95d 44896 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44897 when scanning metadata for volume group name.
44898
528ad8f2 44899 * include/grub/script.h: Don't include grub_script.tab.h. It's
44900 a generated file, which may only be included from the files with
44901 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44902 use union YYSTYPE, as the later allows forward declaration.
44903 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44904
47248e08 449052008-05-29 Robert Millan <rmh@aybabtu.com>
44906
44907 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44908 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44909 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44910 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44911 scan codes.
44912
ee632529 449132008-05-29 Robert Millan <rmh@aybabtu.com>
44914
44915 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44916 control key combinations.
44917
eee96e08 449182008-05-29 Robert Millan <rmh@aybabtu.com>
44919
44920 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44921 * util/ieee1275/grub-install.in: ... to here.
44922 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44923 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44924 (grub_install_SOURCES): Likewise.
44925
da9a6a94 449262008-05-29 Robert Millan <rmh@aybabtu.com>
44927
44928 * fs/affs.c: Update copyright year.
44929 * fs/ext2.c: Likewise.
44930 * fs/fshelp.c: Likewise.
44931 * fs/hfsplus.c: Likewise.
44932 * fs/ntfs.c: Likewise.
44933 * fs/xfs.c: Likewise.
44934 * include/grub/fshelp.h: Likewise.
44935 * util/grub-mkdevicemap.c: Likewise.
44936
12e65f3a 449372008-05-28 Robert Millan <rmh@aybabtu.com>
44938
44939 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44940 might need to be fatfs to support some firmware implementations
44941 (e.g. OFW or EFI).
44942
23023641 449432008-05-28 Robert Millan <rmh@aybabtu.com>
44944
44945 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44946 devices.
44947 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44948 (make_device_map): Likewise.
44949
887d2619 449502008-05-20 Bean <bean123ch@gmail.com>
44951
44952 * fs/fshelp.c (grub_fshelp_map_block): New function.
44953 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44954 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44955
44956 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44957 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44958 (grub_fshelp_journal): New structure.
44959 (grub_fshelp_map_block): New function prototype.
44960 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44961 (grub_fshelp_map_block): Likewise.
44962
44963 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44964 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44965 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44966 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44967 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44968 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44969 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44970 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44971 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44972 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44973 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44974 (grub_ext2_sblock): New members for journal support.
44975 (grub_ext3_journal_header): New structure.
44976 (grub_ext3_journal_revoke_header): Likewise.
44977 (grub_ext3_journal_block_tag): Likewise.
44978 (grub_ext3_journal_sblock): Likewise.
44979 (grub_fshelp_node): New members logfile and journal.
44980 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44981 grub_fshelp_map_block to get real block number.
44982 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44983 number.
44984 (grub_ext2_read_inode): Likewise.
44985 (grub_ext3_get_journal): New function.
44986 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44987 (grub_ext2_close): Release memory used by journal.
44988
44989 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44990 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44991 (grub_reiserfs_transaction_header): Renamed to
44992 grub_reiserfs_description_block, replace field data with real_blocks.
44993 (grub_reiserfs_commit_block): New structure.
44994 (grub_reiserfs_data): New member journal.
44995 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44996 number.
44997 (grub_reiserfs_read_symlink): Likewise.
44998 (grub_reiserfs_iterate_dir): Likewise.
44999 (grub_reiserfs_open): Likewise.
45000 (grub_reiserfs_read): Likewise.
45001 (grub_reiserfs_get_journal): New function.
45002 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
45003 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45004 using grub_reiserfs_get_journal.
45005 (grub_reiserfs_close): Release memory used by journal.
45006
45007 * fs/affs.c (grub_affs_read_block): Change block type to
45008 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45009
45010 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45011
45012 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45013
45014 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45015
45016 * fs/udf.c (grub_udf_read_block): Change block type to
45017 grub_disk_addr_t. Use type cast to avoid warning.
45018
45019 * fs/xfs.c (grub_xfs_read_block): Likewise.
45020
b7c6bed5 450212008-05-16 Christian Franke <franke@computer.org>
45022
45023 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45024 to ensure that break with ESC will always work.
45025 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45026 Remove ESC from keyboard queue.
45027
eedf167f 450282008-05-16 Christian Franke <franke@computer.org>
45029
45030 * util/biosdisk.c: [__CYGWIN__] Add includes.
45031 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45032 (get_os_disk): Move variable declarations to OS specific
45033 parts to avoid warning.
45034 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45035 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45036 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45037 Cygwin.
45038 * util/getroot.c: [__CYGWIN__] Add includes.
45039 (strip_extra_slashes): Fix "/" case.
45040 [__CYGWIN__] (get_win32_path): New function.
45041 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45042 [__CYGWIN__] (find_root_device): Disable.
45043 [__CYGWIN__] (get_bootsec_serial): New function.
45044 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45045 [__linux__] (grub_guess_root_device): Add early returns to simplify
45046 structure.
45047 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45048 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45049 check for Linux only.
45050
a079699e 450512008-05-15 Bean <bean123ch@gmail.com>
45052
45053 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45054 keyboard hang problem in apple's intel mac.
45055
1cf4059a 450562008-05-09 Robert Millan <rmh@aybabtu.com>
45057
45058 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45059 devices.
45060 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45061 (make_device_map): Likewise.
45062 Reported by Aurelien Jarno <aurel32@debian.org>
45063
ed759390 450642008-05-07 Ian Campbell <ijc@hellion.org.uk>
45065
45066 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45067 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45068 (make_device_map): Output entries for xvd type disks.
45069
b56c4eaa 450702008-05-07 Robert Millan <rmh@aybabtu.com>
45071
45072 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45073 devices.
45074 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45075 (make_device_map): Likewise.
45076 Reported by Roland Dreier <rdreier@cisco.com>
45077
7f8866ed 450782008-05-07 Robert Millan <rmh@aybabtu.com>
45079
45080 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45081 grub_strstr() call. Correct a few mistakes in failure path handling.
45082
b0346e0f 450832008-05-06 Robert Millan <rmh@aybabtu.com>
45084
45085 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45086 Do not print a trailing slash (therefore, the root directory is an
45087 empty string).
45088 (convert_system_path_to_grub_path): Do not remove trailing slash
45089 from make_system_path_relative_to_its_root() output.
45090
45091 * util/i386/pc/grub-install.in: Add trailing slash to output from
45092 make_system_path_relative_to_its_root().
45093
6cf12cbd 450942008-05-06 Robert Millan <rmh@aybabtu.com>
45095
45096 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45097 ensures that output lines aren't intermangled with those sent to
45098 stderr (via grub_util_info()).
45099 * util/grub-probe.c (grub_refresh): Likewise.
45100 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45101
0fbb3117 451022008-05-05 Christian Franke <franke@computer.org>
45103
45104 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45105 Add Cygwin device names.
45106 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45107 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45108 (check_device): Return error instead of success on empty name.
45109 (make_device_map): Move label inside linux specific code to
45110 prevent compiler warning.
45111
8124cdb7 451122008-04-30 Robert Millan <rmh@aybabtu.com>
45113
45114 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45115 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45116 first boot option.
45117 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45118
094c01d0 451192008-04-29 Robert Millan <rmh@aybabtu.com>
45120
45121 * docs/grub.cfg: New file (example GRUB configuration).
45122
f4b1fc02 451232008-04-26 Robert Millan <rmh@aybabtu.com>
45124
329ce2a5 45125 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45126 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45127 and `disk/ieee1275/nand.c'.
f4b1fc02 45128
25f16ec1 451292008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 45130
25f16ec1 45131 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45132 i386-linuxbios.
45133
45134 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45135 change the buffer size to 4096 for cdrom device.
45136
45137 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45138 and nand.mod.
45139 (_linux_mod_SOURCES): New variable.
45140 (_linux_mod_CFLAGS): Likewise.
45141 (_linux_mod_LDFLAGS): Likewise.
45142 (linux_mod_SOURCES): Likewise.
45143 (linux_mod_CFLAGS): Likewise.
45144 (linux_mod_LDFLAGS): Likewise.
45145 (nand_mod_SOURCES): Likewise.
45146 (nand_mod_CFLAGS): Likewise.
45147 (nand_mod_LDFLAGS): Likewise.
45148
45149 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45150 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45151 type property. (nand device in olpc don't have this property)
45152
45153 * include/grub/disk.h (grub_disk_dev_id): New macro
45154 GRUB_DISK_DEVICE_NAND_ID.
45155
45156 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45157 function prototype.
45158 (grub_rescue_cmd_initrd): Likewise.
45159
45160 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45161 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45162 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 45163
25f16ec1 45164 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45165 GRUB_MACHINE_IEEE1275 is defined.
45166
45167 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45168 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45169
45170 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45171 on nested function heap_init.
45172 (grub_upper_mem): New variable for i386-ieee1275.
45173 (grub_get_extended_memory): New function for i386-ieee1275.
45174 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45175
45176 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45177 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45178 property.
f19dbdb7 45179
25f16ec1 45180 * loader/i386/ieee1275/linux.c: New file.
45181
45182 * loader/i386/ieee1275/linux_normal.c: New file.
45183
45184 * disk/ieee1275/nand.c: New file.
45185
e89d61e9 451862008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45187
45188 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45189 value.
45190 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45191
602566f6 451922008-04-18 Robert Millan <rmh@aybabtu.com>
45193
45194 Restructures early code path on ieee1275 to unify grub_main() as
45195 the first C function that is executed in every platform.
45196
45197 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45198 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45199 cmain().
45200 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45201 * kern/ieee1275/cmain.c (cmain): Rename to ...
45202 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45203 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45204 at the beginning.
45205
57490c2b 452062008-04-18 Robert Millan <rmh@aybabtu.com>
45207
45208 * util/update-grub.in: Fix syntax error when setting
45209 `GRUB_PRELOAD_MODULES'.
45210 Reported by Stephane Chazelas <stephane@artesyncp.com>
45211
1977517d 452122008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45213
45214 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45215 section into account, newer toolchains generate unique build ids
45216 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 45217 we want build ids to be preserved
1977517d 45218 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45219 far from other sections don't cause the raw binary images grow
45220 size
45221
bfb1f1a2 452222008-04-15 Robert Millan <rmh@aybabtu.com>
45223
45224 * disk/lvm.c: Update copyright year.
45225 * kern/misc.c: Likewise.
45226
01979850 452272008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45228
45229 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 45230 there is no memory left for physical volume name.
01979850 45231
0a1150e2 452322008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45233
45234 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45235 volume name mapping to support bigger than 9 character names properly.
45236
82ead3fe 452372008-04-13 Robert Millan <rmh@aybabtu.com>
45238
45239 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45240 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45241
e54a72f5 452422008-04-13 Christian Franke <franke@computer.org>
45243
45244 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45245 to create a floppy emulation boot CD when non emulation mode
45246 does not work.
45247 Enable Joliet CD filesystem extension.
45248
9fe86034 452492008-04-13 Robert Millan <rmh@aybabtu.com>
45250
45251 * kern/misc.c (grub_strncat): Fix off-by-one error.
45252 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45253
45254 * kern/env.c (grub_env_context_close): Clear current context, not
45255 previous one.
45256 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45257
45258 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45259
7ceeee39 452602008-04-13 Robert Millan <rmh@aybabtu.com>
45261
45262 Improve robustness when handling LVM.
45263
45264 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 45265 (and leave `*p' unmodified).
7ceeee39 45266 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45267 through it.
45268 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45269 iterating through it.
45270 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45271 through it.
fe6b695a 45272 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 45273 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45274 Don't assume `vg->pvs != NULL' when iterating through it.
45275
58cd3d85 452762008-04-13 Robert Millan <rmh@aybabtu.com>
45277
45278 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45279 * genmk.rb (partmap): New variable.
45280 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45281 (#{partmap}): New target rule.
45282 * genpartmaplist.sh: New file.
45283 * Makefile.in (pkglib_DATA): Add partmap.lst.
45284 (partmap.lst): New target rule.
45285 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45286 modules (including all partition maps), instead of preloading them.
45287
78b51059 452882007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45289
45290 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45291 `linux-boot-prober' (if installed) to detect other operating
45292 systems which are installed on the computer and add them to
45293 the boot menu.
45294 * conf/common.rmk: Build and install 30_os-prober.
45295
a91627b4 452962008-04-12 Robert Millan <rmh@aybabtu.com>
45297
45298 * kern/powerpc/ieee1275/init.c: Move from here ...
45299 * kern/ieee1275/init.c: ... to here. Update all users.
45300
45301 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45302 * kern/ieee1275/cmain.c: ... to here. Update all users.
45303
45304 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45305 * kern/ieee1275/openfw.c: ... to here. Update all users.
45306
45307 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45308 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45309
322562ea 453102008-04-10 Pavel Roskin <proski@gnu.org>
45311
45312 * configure.ac: Always use "_cv_" in cache variables for
45313 compatibility with Autoconf 2.62.
45314
a02a73c5 453152008-04-07 Robert Millan <rmh@aybabtu.com>
45316
45317 Revert grub/machine/init.h addition by Pavel (since it breaks on
45318 i386-ieee1275 and others):
45319 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45320 * util/powerpc/ieee1275/misc.c: Likewise.
45321
25c024b1 453222008-04-07 Robert Millan <rmh@aybabtu.com>
45323
45324 * util/grub-probe.c (probe): Improve error message.
45325
3cbd2f98 453262008-04-07 Robert Millan <rmh@aybabtu.com>
45327
45328 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45329 (this prevents the presence of a bogus entry from ruining the whole
45330 thing).
45331
87a297bf 453322008-04-06 Pavel Roskin <proski@gnu.org>
45333
36747a62 45334 * util/biosdisk.c: Include grub/util/biosdisk.h.
45335 * util/grub-fstest.c (execute_command): Make static.
45336 * util/grub-mkdevicemap.c (check_device): Likewise.
45337 * util/i386/pc/misc.c: Include grub/machine/init.h.
45338 * util/powerpc/ieee1275/misc.c: Likewise.
45339 * util/lvm.c: Include grub/util/lvm.h.
45340 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45341 grub/cache.h.
45342 * util/raid.c: Include grub/util/raid.h.
45343 (grub_util_getdiskname): Make static.
45344
87a297bf 45345 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45346 grub_hostfs_fini(), as they are called from grub_init_all() and
45347 grub_fini_all() respectively. This fixes an infinite loop in
45348 grub-fstest due to double registration of hostfs.
45349 Reported by Christian Franke <Christian.Franke@t-online.de>
45350
f6ce7629 453512008-04-05 Pavel Roskin <proski@gnu.org>
45352
45353 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45354 all 8 functions. Otherwise, probe function 0 only.
45355
070e49e4 453562008-04-04 Pavel Roskin <proski@gnu.org>
45357
8b088a4c 45358 * commands/lspci.c (grub_lspci_iter): Print the bus number
45359 correctly.
45360
4f657021 45361 * commands/lspci.c (grub_pci_classes): Fix typos.
45362 (grub_lspci_iter): Don't print func twice. Print vendor ID
45363 before device ID, as it's normally done.
45364
070e49e4 45365 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45366 Fix signedness warnings.
45367 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45368 Likewise.
45369 * util/ieee1275/get_disk_name.c: Include config.h so that
45370 _GNU_SOURCE is defined and getline() is declared. Mark an
45371 unused argument as such. Fix a signedness warning.
45372
ba7328dc 453732008-04-02 Pavel Roskin <proski@gnu.org>
45374
26887f22 45375 * genkernsyms.sh.in: Use more robust assignments for CC and
45376 srcdir. Quote srcdir.
45377 * gensymlist.sh.in: Likewise. Assert at the compile time that
45378 the symbol table is not empty.
45379
ba7328dc 45380 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45381 * fs/cpio.c (grub_cpio_read): Likewise.
45382
0f582c6b 453832008-04-01 Pavel Roskin <proski@gnu.org>
45384
4b6e1995 45385 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45386 * disk/host.c (grub_host_open): Likewise.
45387 * disk/loopback.c (grub_loopback_open): Likewise.
45388 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45389 disk->id as in disk/host.c, not a multi-character constant.
45390
828a2768 45391 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45392 later is obsolete, potentially dangerous and sets a bad example.
45393 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45394 * util/misc.c (grub_util_get_image_size): Likewise.
45395
2bb4fb47 45396 * disk/loopback.c (options): Improve help for "--partitions".
45397
0f582c6b 45398 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45399 options to align them with the short options, e.g. "echo -e".
45400
a33224e0 454012008-03-31 Bean <bean123ch@gmail.com>
45402
45403 * video/reader/png.c (grub_png_data): New member is_16bit and
45404 image_data.
45405 (grub_png_decode_image_header): Detect 16 bit png image.
45406 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45407 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45408 (grub_video_reader_png): Release memory occupied by image_data.
45409
45410 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45411 4096 bytes.
45412 (grub_nfs_mount): Skip the test for sector per cluster.
45413
45414 * include/grub/ntfs.h (MAX_SPC): Removed.
45415
86cb4f54 454162008-03-31 Bean <bean123ch@gmail.com>
45417
45418 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45419 (grub_probe_SOURCES): Add fs/afs.c.
45420 (grub_fstest_SOURCES): Likewise.
45421 (afs_mod_SOURCES): New variable.
45422 (afs_mod_CFLAGS): Likewise.
45423 (afs_mod_LDFLAGS): Likewise.
45424
45425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45426 (grub_emu_SOURCES): Likewise.
45427
45428 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45429
45430 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45431
45432 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45433
45434 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45435
45436 * fs/afs.c: New file.
45437
17c74c21 454382008-03-30 Pavel Roskin <proski@gnu.org>
45439
4cb68e89 45440 * disk/host.c: Include grub/misc.h to fix a warning.
45441 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45442 warnings about implicit declarations.
45443
8790bb04 45444 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45445 variable.
45446 * include/grub/i386/loader.h: Change declaration of
45447 grub_linux_boot() to match what grub_loader_set() expects.
45448 * util/getroot.c (grub_guess_root_device): Return const char* to
45449 fix a warning.
45450 * util/grub-probe.c (probe): Fix a warning about uninitialized
45451 abstraction_name variable.
45452 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45453 second argument as unused to fix a warning.
45454
9a3f3296 45455 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45456 missing grub_error() call.
45457
0ecef90d 45458 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45459 2.60 and newer uses it to define datadir.
45460
0bf6d401 45461 * commands/sleep.c: Fix warning about implicit declaration.
45462 * disk/memdisk.c: Likewise.
45463 * loader/aout.c: Likewise.
45464 * loader/i386/bsd_normal.c: Likewise.
45465 * util/grub-probe.c: Likewise.
45466
7cdacf97 45467 * commands/i386/cpuid.c (has_longmode): Make static.
45468 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45469 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45470
17c74c21 45471 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45472 GDT. This is more robust, as %ds can change.
45473 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45474 calling real_to_prot().
45475 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45476
80a3e68b 454772008-03-28 Pavel Roskin <proski@gnu.org>
45478
45479 * kern/i386/pc/startup.S: Assert that uncompressed functions
45480 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45481 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45482 code, as they push parts of the code (error handlers) beyond
45483 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45484 code as correctness and size.
45485
77bcd272 454862008-03-28 Pavel Roskin <proski@gnu.org>
45487
45488 * kern/i386/pc/startup.S
45489 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45490 data block address to the real mode, keep offset minimal. This
45491 works around a bug in AWARD BIOS on old Athlon systems, which
45492 makes CD detection hang.
45493
c5dfd43b 454942008-03-26 Pavel Roskin <proski@gnu.org>
45495
45496 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45497 const.
45498 * include/grub/normal.h: Add grub_parse_color_name_pair()
45499 declaration.
45500
bf962df2 455012008-03-24 Bean <bean123ch@gmail.com>
45502
45503 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45504 (cd_count): Removed.
45505 (cd_drive): New variable.
45506 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45507 (grub_biosdisk_call_hook): Likewise.
45508 (grub_biosdisk_iterate): Change cdrom detection method.
45509 (grub_biosdisk_open): Replace cd_start with cd_drive.
45510 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45511 detect cdrom device.
45512
45513 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45514 Removed.
45515 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45516 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45517 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45518 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45519 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45520 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45521 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45522 (grub_biosdisk_cdrp): New structure.
45523 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45524
45525 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45526
45527 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45528 device.
45529
45530 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45531 New function.
45532
68e7fc7a 455332008-03-20 Robert Millan <rmh@aybabtu.com>
45534
45535 Remove 2 TiB limit in ata.mod.
45536 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45537 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45538 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45539 grub_uint64_t instead of grub_uint32_t.
45540
38ad2cf5 455412008-03-05 Bean <bean123ch@gmail.com>
45542
45543 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45544 (grub_multiboot): Set boot device.
45545
45546 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45547
2b89344e 455482008-03-02 Bean <bean123ch@gmail.com>
45549
45550 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45551 symlink_buffer.
45552
87a95d1f 455532008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45554
45555 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45556 texinfo.tex.
45557
45558 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45559 modified.
45560
45561 * docs/fdl.texi: New file.
f19dbdb7 45562
87a95d1f 45563 * docs/mdate-sh: New file. Copied from gnulib.
45564 * docs/texinfo.tex: Likewise.
45565
45566 * config.guess: Updated from gnulib.
45567 * install-sh: Likewise.
45568
7dc15d8e 455692008-02-28 Robert Millan <rmh@aybabtu.com>
45570
45571 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45572 (aout_mod_SOURCES): New variable.
45573 (aout_mod_CFLAGS): Likewise.
45574 (aout_mod_LDFLAGS): Likewise.
45575
45576 * conf/i386-ieee1275.rmk: Likewise.
45577
b00ab696 455782008-02-28 Robert Millan <rmh@aybabtu.com>
45579
45580 * util/update-grub.in: Reorganise terminal validity check. Accept
45581 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45582 Based on suggestion by Franklin PIAT.
45583
79ca2d78 455842008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45585
45586 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45587 function.
45588 * util/getroot.c (grub_util_check_block_device): New function that
45589 returns the given argument if it is a block device and returns NULL else.
45590 * util/grub-probe.c (argument_is_device): New variable.
45591 (probe): Promote device_name from a variable to an argument. Receive
45592 device_name from grub_util_check_block_device() if path is NULL and from
45593 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 45594 (options): Introduce new parameter '-d, --device'.
79ca2d78 45595 (main): Add description of the new parameter to the help screen.
45596 Rename path variable to argument. Set argument_is_device if the '-d'
45597 option is given. Pass argument to probe() depending on
45598 argument_is_device.
45599
0d16e571 456002008-02-24 Bean <bean123ch@gmail.com>
45601
45602 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45603 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45604 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45605 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45606 (GRUB_ISO9660_VOLDESC_END): Likewise.
45607 (grub_iso9660_primary_voldesc): New member escape.
45608 (grub_iso9660_data): New member joliet.
45609 (grub_iso9660_convert_string): New function.
45610 (grub_iso9660_mount): Detect joliet extension.
45611 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45612 (grub_iso9660_iso9660_label): Likewise.
45613
45614 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45615 (grub_setup_SOURCES): Add fs/udf.c.
45616 (grub_fstest_SOURCES): Likewise.
45617 (udf_mod_SOURCES): New variable.
45618 (udf_mod_CFLAGS): Likewise.
45619 (udf_mod_LDFLAGS): Likewise.
45620
45621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45622 (grub_emu_SOURCES): Likewise.
45623
45624 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45625
45626 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45627
45628 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45629
45630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45631
45632 * fs/udf.c: New file.
45633
8a594a17 456342008-02-24 Robert Millan <rmh@aybabtu.com>
45635
45636 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45637 (normal/lexer.c_DEPENDENCIES): New variables.
45638 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45639 (normal/lexer.c_DEPENDENCIES): Likewise.
45640 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45641 (normal/lexer.c_DEPENDENCIES): Likewise.
45642 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45643 (normal/lexer.c_DEPENDENCIES): Likewise.
45644 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45645 (normal/lexer.c_DEPENDENCIES): Likewise.
45646 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45647 (normal/lexer.c_DEPENDENCIES): Likewise.
45648
2dc33c03 456492008-02-23 Robert Millan <rmh@aybabtu.com>
45650
45651 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45652 since they were intended to be in hex. This didn't break previously
45653 because of a bug in gpt_partition_map_iterate() (see below).
45654
45655 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45656 when checking the validity of GPT header.
45657 Remove `partno', since it always provides the same information as `i'.
45658
f6f4cfb0 456592008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45660
45661 * include/grub/efi/time.h: Fix a wrong comment.
45662
79ff665f 456632008-02-19 Pavel Roskin <proski@gnu.org>
45664
45665 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45666 message.
45667
d38e24c2 456682008-02-19 Bean <bean123ch@gmail.com>
45669
45670 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45671 (aout_mod_SOURCES): New variable.
45672 (aout_mod_CFLAGS): Likewise.
45673 (aout_mod_LDFLAGS): Likewise.
45674 (_bsd_mod_SOURCES): New variable.
45675 (_bsd_mod_CFLAGS): Likewise.
45676 (_bsd_mod_LDFLAGS): Likewise.
45677 (bsd_mod_SOURCES): New variable.
45678 (bsd_mod_CFLAGS): Likewise.
45679 (bsd_mod_LDFLAGS): Likewise.
45680
45681 * include/grub/aout.h: New file.
45682
45683 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45684
45685 * include/grub/i386/bsd.h: New file.
45686
45687 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45688 to make it public.
45689
45690 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45691 function is called, so that it's possible to change it inside the hook.
45692 (grub_elf64_load): Likewise.
45693 (grub_elf_file): Don't close the file if elf header is not found.
45694 (grub_elf_close): Close the file if grub_elf_file fails (The new
45695 grub_elf_file won't close it).
45696 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45697 (grub_elf64_size): Likewise.
45698
45699 * kern/i386/loader.S (grub_unix_real_boot): New function.
45700
45701 * loader/aout.c: New file.
45702
45703 * loader/i386/bsd.c: New file.
45704
45705 * loader/i386/bsd_normal.c: New file.
45706
45707 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45708
45709 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 45710 can test other formats.
d38e24c2 45711
b93bdb0f 457122008-02-19 Robert Millan <rmh@aybabtu.com>
45713
45714 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45715 (grub_gpt_partition_type_empty): Redefine with macro from
45716 `<grub/gpt_partition.h>'.
45717 (gpt_partition_map_iterate): Adjust partition type comparison.
45718
45719 Export `entry' as partmap-specific `part.data' struct.
45720 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45721
45722 * include/grub/gpt_partition.h (grub_gpt_header)
45723 (grub_gpt_partentry): ... to here (new file).
45724
45725 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45726
45727 (grub_gpt_partition_type_bios_boot): New const variable, defined
45728 with macro from `<grub/gpt_partition.h>'.
45729
45730 (setup): Replace `first_start' with `embed_region', which keeps
45731 track of the embed region (and is partmap-agnostic).
45732
45733 Replace find_first_partition_start() with find_usable_region(),
45734 which finds a usable region for embedding using partmap-specific
45735 knowledge (supports PC/MSDOS and GPT).
45736
45737 Fix all assumptions that the embed region start at sector 1, using
45738 `embed_region.start' from now on. Similarly, use `embed_region.end'
45739 rather than `first_start' to calculate available size.
45740
45741 In grub_util_info() message, replace "into after the MBR" with an
45742 indication of the specific sector our embed region starts at.
45743
66cb40f6 457442008-02-19 Robert Millan <rmh@aybabtu.com>
45745
45746 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45747 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45748 `commands/reboot.c'.
45749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45750 (halt_mod_SOURCES): Likewise.
45751 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45752 (halt_mod_SOURCES): Likewise.
45753
b7202015 457542008-02-17 Christian Franke <franke@computer.org>
45755
45756 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45757
32b0fc49 457582008-02-17 Robert Millan <rmh@aybabtu.com>
45759
45760 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45761 set `first_start' to 0 for non-PC/MSDOS partition maps.
45762
aca63502 457632008-02-16 Robert Millan <rmh@aybabtu.com>
45764
45765 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45766 do not assume partition map is PC/MSDOS before performing checks that
45767 are specific to that layout.
45768
0de8be86 457692008-02-13 Robert Millan <rmh@aybabtu.com>
45770
45771 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45772 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45773 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45774
c3db8364 457752008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45776
45777 * configure.ac: Only a cosmetic change on the handling of
45778 -fno-stack-protector.
45779
f714229e 457802008-02-12 Alexandre Boeglin <alex@boeglin.org>
45781
c3db8364 45782 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45783 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45784 reboot.c.
f714229e 45785 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45786 (halt_mod_SOURCES): New variable.
45787 (halt_mod_CFLAGS): Likewise.
45788 (halt_mod_LDFLAGS): Likewise.
45789 (reboot_mod_SOURCES): Likewise.
45790 (reboot_mod_CFLAGS): Likewise.
45791 (reboot_mod_LDFLAGS): Likewise.
45792
c3db8364 45793 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45794 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45795 reboot.c.
f714229e 45796 (halt_mod_SOURCES): Likewise.
45797 (reboot_mod_SOURCES): Likewise.
45798
c3db8364 45799 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45800 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 45801 (reboot_mod_SOURCES): Likewise.
45802
45803 * commands/i386/pc/reboot.c: merge this file ...
45804
45805 * commands/ieee1275/reboot.c: ... and this file ...
45806
45807 * commands/reboot.c: ... to this file.
c3db8364 45808 Add some precompiler directive to include the correct header for
45809 each machine.
f714229e 45810
45811 * commands/ieee1275/halt.c: move this file ...
45812
45813 * commands/halt.c: ... to here.
c3db8364 45814 Add some precompiler directive to include the correct header for
45815 each machine.
f714229e 45816
45817 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45818 (grub_halt): Likewise.
45819
45820 * kern/efi/efi.c (grub_reboot): New function.
45821 (grub_halt): Likewise.
45822
c74493e0 458232008-02-12 Robert Millan <rmh@aybabtu.com>
45824
45825 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45826 /dev (like it is done for /dev/mapper). This doesn't provide support
45827 for EVMS, but at least it is now easy to identify the problem when it
45828 arises.
45829
d0db4b04 458302008-02-11 Robert Millan <rmh@aybabtu.com>
45831
45832 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45833 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45834 comparing it with -1, not 0.
45835
bf748642 458362008-02-10 Robert Millan <rmh@aybabtu.com>
45837
45838 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45839 `disk/lvm.c'.
45840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45841 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45842
45843 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45844 `disk/lvm.c' to the end of the list.
45845 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45846 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45847
b5db202a 458482008-02-10 Robert Millan <rmh@aybabtu.com>
45849
45850 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45851 grub_print_error() instead. This will let user know why we're entering
45852 rescue mode.
45853 Based on suggestions from Sam Morris.
45854
83abee31 458552008-02-10 Alexandre Boeglin <alex@boeglin.org>
45856
45857 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45858 on remaining N args, instead of "--" arg N times.
45859
78d5a08b 458602008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45861
45862 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45863 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45864 pattern for unknown glyphs.
45865
68807e5f 458662008-02-09 Robert Millan <rmh@aybabtu.com>
45867
45868 * configure.ac: Probe for `help2man'.
45869 * Makefile.in (builddir): New variable.
45870 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45871 or otherwise add a few flags/options to it.
45872 (install-local): For every executable utility or script that is
45873 installed, invoke $(HELP2MAN) to install a manpage based on --help
45874 output.
45875
45876 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45877 that it doesn't prevent --help from working in build tree.
45878
45879 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45880 with `bug-grub@gnu.org'.
45881 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45882 * util/update-grub.in (usage): New function.
45883 Implement proper argument check, with support for --help and --version
45884 (as well as existing -y).
45885
458862008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 45887
45888 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45889 avoid overwriting previous output.
45890 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45891
c1962162 458922008-02-09 Robert Millan <rmh@aybabtu.com>
45893
45894 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45895 drawing the menu.
45896
3dac2e3f 458972008-02-09 Robert Millan <rmh@aybabtu.com>
45898
45899 * commands/sleep.c: New file.
45900 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45901 (sleep_mod_SOURCES): New variable.
45902 (sleep_mod_CFLAGS): Likewise.
45903 (sleep_mod_LDFLAGS): Likewise.
45904
7a634e08 459052008-02-09 Robert Millan <rmh@aybabtu.com>
45906
45907 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45908 situations in which we can deduce the RAID size and the superblock
45909 doesn't match it.
45910
b92f0c18 459112008-02-09 Robert Millan <rmh@aybabtu.com>
45912
45913 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45914 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45915 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45916
45917 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45918 and return a grub_diskmemberlist_t composed of physical array members.
45919 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45920
45921 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45922 prototype.
45923 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45924 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45925 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45926
45927 * util/grub-probe.c (probe): Move partmap probing code from here ...
45928 (probe_partmap): ... to here.
45929 (probe): Use probe_partmap() once for the disk we're probing, and
45930 additionally, when such disk contains a memberlist() struct member,
45931 once for each disk that is contained in the structure returned by
45932 memberlist().
45933
91a4bf68 459342008-02-09 Robert Millan <rmh@aybabtu.com>
45935
45936 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45937 environment variable to 'all' in order to obtain debug output from
45938 non-util/ code.
45939 * util/i386/pc/grub-setup.c (main): Likewise.
45940
a96f9caa 459412008-02-08 Robert Millan <rmh@aybabtu.com>
45942
45943 * disk/raid.c (grub_raid_scan_device): Check for
45944 `array->device[sb.this_disk.number]' rather than for
45945 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 45946 guaranteed to be accessible.
a96f9caa 45947
b37a9222 459482008-02-08 Robert Millan <rmh@aybabtu.com>
45949
45950 * disk/raid.c: Update copyright.
45951 * fs/cpio.c: Likewise.
45952 * include/grub/raid.h: Likewise.
45953 * loader/i386/pc/multiboot.c: Likewise.
45954 * util/hostfs.c: Likewise.
45955
5626aee1 459562008-02-08 Robert Millan <rmh@aybabtu.com>
45957
45958 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45959 to a grub_disk_t array.
45960 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45961 `device[x]'.
45962 (grub_raid_scan_device): Replace `device[x].name' accesses with
45963 `device[x]->name'. Simplify initialization of `array->device[x]'.
45964
554f0187 459652008-02-08 Robert Millan <rmh@aybabtu.com>
45966
45967 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45968 grub_dprintf() calls.
45969 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45970 error message.
45971
1ec8425d 459722008-02-07 Christian Franke <franke@computer.org>
45973
45974 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45975 instead of fseek and ftell to support large files.
45976 (grub_hostfs_read): Likewise.
45977
f2156fda 459782008-02-07 Robert Millan <rmh@aybabtu.com>
45979
45980 Patch from Jeroen Dekkers.
45981 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 45982 failure, since successfully reading all array members might not be
f2156fda 45983 required.
45984
9216e0e7 459852008-02-06 Robert Millan <rmh@aybabtu.com>
45986
45987 * util/grub-probe.c (probe): Simplify partmap probing (with the
45988 assumption that the first word up to the underscore equals to
45989 the module name).
45990
b0dfd29a 459912008-02-06 Christian Franke <franke@computer.org>
45992
45993 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45994 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45995 last block of a cpio or tar stream.
45996 Check for "TRAILER!!!" instead of any empty data
45997 block to detect last block of a cpio stream.
45998 (grub_cpio_dir): Fix constness of variable np.
45999 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
46000 cpio or tar trailer is detected. This fixes a crash
46001 on open of a non existing file.
46002
c32865bf 460032008-02-05 Bean <bean123ch@gmail.com>
46004
46005 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46006 address of entry.
46007 (grub_multiboot_load_elf64): Likewise.
46008 (grub_multiboot): Initialize mbi structure.
46009
46010 * util/grub-fstest.c: Don't include unused header file script.h.
46011
fe6b695a 46012 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 46013 of file.
46014 (grub_fstest_SOURCES): Likewise.
46015
409480b7 460162008-02-05 Robert Millan <rmh@aybabtu.com>
46017
46018 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46019 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46020 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46021 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46022
46023 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46024 (translation_table): Replace hardcoded values with macros
46025 provided by `<grub/term.h>'.
46026
46027 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46028 (keyboard_map): Correct/add a few values, with macros provided
46029 by `<grub/term.h>'.
46030 (keyboard_map_shift): Zero values that don't differ from their
46031 `keyboard_map' equivalents.
46032 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46033 Discard the second scan code that is always sent by Caps lock.
46034 Only use `keyboard_map_shift' when it provides a non-zero value,
46035 otherwise fallback to `keyboard_map'.
46036
99fadbaa 460372008-02-04 Bean <bean123ch@gmail.com>
46038
46039 * Makefile.in (enable_grub_fstest): New variable.
46040
46041 * conf/common.rmk (grub_fstest_init.lst): New rule.
46042 (grub_fstest_init.h): Likewise.
46043 (grub_fstest_init.c): Likewise.
46044 (util/grub-fstest.c_DEPENDENCIES): New variable.
46045 (grub_fstest_SOURCES): Likewise.
46046
46047 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46048
46049 * util/grub-fstest.c: New file.
46050
bf567c50 460512008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46052
46053 Make grub-setup handle a separate root device.
f19dbdb7 46054
bf567c50 46055 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46056 so that the root device can be compared with the destination
46057 device.
46058 When embedding the core image, if the root and destination devices
46059 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46060 0xFF.
46061 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 46062
9be6b98b 460632008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46064
46065 Add support for having a grub directory in a different drive. This
46066 is still only the data handling part.
f19dbdb7 46067
9be6b98b 46068 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46069 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46070 (grub_root_drive): New variable.
46071
46072 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46073 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46074 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46075 as it was.
46076
46077 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46078
46079 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46080 macro.
46081 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46082
46083 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46084 is bogus, because PXE booting does not specify any drive
46085 correctly.
46086
46087 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46088 am not sure if this is really correct.
46089
46090 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46091 is always identical to the boot drive when booting from a CD.
46092
46093 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46094 longer.
46095 (root_drive): New variable.
46096 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46097 (setup_sectors): Push %dx right after popping it, because %dh will
46098 be modified later.
46099 (copy_buffer): Restore %dx.
46100
e0ca0677 461012008-02-03 Robert Millan <rmh@aybabtu.com>
46102
46103 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46104 use `cdboot.img' for cdrom images.
46105
3b3f6629 461062008-02-03 Robert Millan <rmh@aybabtu.com>
46107
46108 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46109 only setup gfxterm when `font' command has succeeded.
46110
d42b3672 461112008-02-03 Robert Millan <rmh@aybabtu.com>
46112
46113 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46114 (grub_rescue_cmd_multiboot_loader)
46115 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46116
fa370ea6 461172008-02-03 Pavel Roskin <proski@gnu.org>
46118
e0c5dacb 46119 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 46120 %edx and %esi from stack only after grub_gate_a20() is called.
46121 grub_gate_a20() clobbers %edx.
46122
f2a76e1d 461232008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46124
46125 * configure.ac (AC_INIT): Bumped to 1.96.
46126
46127 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46128 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46129 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46130 video/readers/png.c.
46131
90fd32d1 461322008-02-03 Bean <bean123ch@gmail.com>
9be665dd 46133
46134 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46135 (cdboot_img_SOURCES): New variable.
46136 (cdboot_img_ASFLAGS): New variable.
46137 (cdboot_img_LDFLAGS): New variable.
46138
46139 * boot/i386/pc/cdboot.S: New file.
46140
46141 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46142 (cd_count): Likewise.
46143 (grub_biosdisk_get_drive): Add support for cd device.
46144 (grub_biosdisk_call_hook): Likewise.
46145 (grub_biosdisk_iterate): Likewise.
46146 (grub_biosdisk_open): Likewise.
46147 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46148 (grub_biosdisk_rw): Support reading from cd device.
46149 (GRUB_MOD_INIT): Iterate cd devices.
46150
46151 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46152 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46153 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46154
46155 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46156
4020aa53 461572008-02-02 Robert Millan <rmh@aybabtu.com>
46158
46159 * commands/read.c: New file.
46160 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46161 (read_mod_SOURCES): New variable.
46162 (read_mod_CFLAGS): Likewise.
46163 (read_mod_LDFLAGS): Likewise.
46164
e03a1132 461652008-02-02 Robert Millan <rmh@aybabtu.com>
46166
46167 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46168 determining whether menu has to be displayed.
46169
58c69220 461702008-02-02 Marco Gerards <marco@gnu.org>
46171
46172 * bus/pci.c: New file.
46173
46174 * include/grub/pci.h: Likewise.
46175
46176 * include/grub/i386/pc/pci.h: Likewise.
46177
46178 * commands/lspci.c: Likewise.
46179
46180 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46181 `lspci.mod'.
46182 (pci_mod_SOURCES): New variable.
46183 (pci_mod_CFLAGS): Likewise.
46184 (pci_mod_LDFLAGS): Likewise.
46185 (lspci_mod_SOURCES): Likewise.
46186 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 46187 (lspci_mod_LDFLAGS): Likewise.
58c69220 46188
c004e1b4 461892008-02-02 Bean <bean123ch@gmail.com>
46190
46191 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46192 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46193
46194 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46195 (grub_xfs_btree_node): New structure.
46196 (grub_xfs_btree_root): New structure.
46197 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46198 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46199 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46200 (GRUB_XFS_EXTENT_SIZE): Likewise.
46201 (grub_xfs_read_block): Support btree format type.
46202 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46203 Use directory block as basic unit.
46204
46205 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46206
46207 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46208 __attribute__ ((__regparm__ (1))).
46209
f95562bf 462102008-02-01 Robert Millan <rmh@aybabtu.com>
46211
46212 Correct a mistake in previous commit.
46213
46214 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46215 top.
46216 (normal/command.c_DEPENDENCIES): New variable.
46217
7d31f41f 462182008-02-01 Robert Millan <rmh@aybabtu.com>
46219
46220 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46221 top.
46222 (normal/command.c_DEPENDENCIES): New variable.
46223 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46224 * conf/i386-ieee1275.rmk: Likewise.
46225 * conf/i386-linuxbios.rmk: Likewise.
46226 * conf/i386-pc.rmk: Likewise.
46227 * conf/sparc64-ieee1275.rmk: Likewise.
46228 * conf/powerpc-ieee1275.rmk: Likewise.
46229 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46230
46231 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46232
60b6be74 462332008-02-01 Robert Millan <rmh@aybabtu.com>
46234
46235 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46236 call at beginning of function.
46237
078522ab 462382008-01-31 Pavel Roskin <proski@gnu.org>
46239
46240 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 46241 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46242 (grub_mkrescue_SOURCES): Likewise.
078522ab 46243 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46244
ccaa8a5f 462452008-01-30 Robert Millan <rmh@aybabtu.com>
46246
46247 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46248 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46249 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46250 (grub_probe_SOURCES): ... to here.
46251
46252 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46253 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46254 * conf/i386-ieee1275.rmk: Likewise.
46255 * conf/i386-linuxbios.rmk: Likewise.
46256 * conf/powerpc-ieee1275.rmk: Likewise.
46257
ae5a9cd7 462582008-01-30 Tristan Gingold <gingold@free.fr>
46259
46260 * kern/rescue.c: Silently accept empty lines.
46261
70bc2ef2 462622008-01-29 Bean <bean123ch@gmail.com>
46263
46264 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46265 (real_code_2): Code cleanup and change comment style.
46266 (move_memory): Avoid using 32-bit address mode.
46267
6a4d50ea 462682008-01-29 Bean <bean123ch@gmail.com>
46269
46270 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46271 (png_mod_SOURCES): New variable.
46272 (png_mod_CFLAGS): Likewise.
46273 (png_mod_LDFLAGS): Likewise.
46274
46275 * video/readers/png.c: New file.
46276
11cc30ac 462772008-01-28 Robert Millan <rmh@aybabtu.com>
46278
46279 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46280 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46281 `ifndef GRUB_MOD_GAP' hack.
46282 * util/elf/grub-mkimage.c (add_segments): Likewise.
46283
3abc589f 462842008-01-27 Robert Millan <rmh@aybabtu.com>
46285
46286 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46287 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 46288 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 46289
e1907778 462902008-01-27 Robert Millan <rmh@aybabtu.com>
46291
46292 Get grub-emu to build again (including parallel builds).
46293
46294 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46295 Split into ...
46296 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46297 (normal/execute.c_DEPENDENCIES): ... this, ...
46298 (grub-emu_DEPENDENCIES): ... and this.
46299
46300 * conf/i386-efi.rmk: Likewise.
46301 * conf/i386-linuxbios.rmk: Likewise.
46302 * conf/i386-ieee1275.rmk: Likewise.
46303 * conf/powerpc-ieee1275.rmk: Likewise.
46304 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46305
2216b101 463062008-01-27 Robert Millan <rmh@aybabtu.com>
46307
46308 * NEWS: Add a few items.
46309
f75172d9 463102008-01-27 Robert Millan <rmh@aybabtu.com>
46311
46312 Fix parallel builds with grub-emu. Based on earlier commit for
46313 grub-probe and grub-setup.
46314
46315 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46316 (util/grub-emu.c_DEPENDENCIES): ... this.
46317 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46318 (util/grub-emu.c_DEPENDENCIES): ... this.
46319 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46320 (util/grub-emu.c_DEPENDENCIES): ... this.
46321 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46322 (util/grub-emu.c_DEPENDENCIES): ... this.
46323 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46324 (util/grub-emu.c_DEPENDENCIES): ... this.
46325
3f51de77 463262008-01-27 Pavel Roskin <proski@gnu.org>
46327
46328 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46329 to create a gap between _end and the modules added to the image
46330 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46331 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46332 * util/elf/grub-mkimage.c (add_segments): Likewise.
46333
2033f53e 463342008-01-26 Pavel Roskin <proski@gnu.org>
46335
46336 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46337 just return an error.
46338
22da1f6f 463392008-01-26 Bean <bean123ch@gmail.com>
46340
46341 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46342 (grub_reiserfs_get_item): Save offset of the next item.
46343 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46344
2a9525e6 463452008-01-25 Robert Millan <rmh@aybabtu.com>
46346
46347 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46348 make all filesystem sources appear together (possibly fixing omissions
46349 while at it).
46350 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46351 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46352 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46354
46355 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46356 add `kern/file.c'.
46357 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46358 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46359 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46360 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46361
46362 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46363 (probe): Add a sanity check to make sure of our ability to read
46364 requested files when probing for filesystem type.
46365
46366 * genmk.rb: Update copyright year (2007).
46367
46368 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46369 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46370 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46371 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46372 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46373 : Remove function prototypes.
46374
b95f71b5 463752008-01-25 Robert Millan <rmh@aybabtu.com>
46376
46377 Revert my previous commits (based on wrong assumption of how grub_errno
46378 works).
46379
fe6b695a 46380 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 46381 * kern/file.c (grub_file_open): Likewise.
46382
d08bbb49 463832008-01-24 Pavel Roskin <proski@gnu.org>
46384
46385 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46386 that hang if GRUB tries to setup colors.
46387 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46388 colors for firmwares that don't support it.
46389 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46390 Recognize Open Hack'Ware, set flags to work around its
46391 limitations.
46392
605e36ed 463932008-01-24 Robert Millan <rmh@aybabtu.com>
46394
46395 * kern/file.c (grub_file_open): Do not account previous failures of
46396 unrelated functions when grub_errno is checked for.
46397 Reported by Oleg Strikov.
46398
bac332a1 463992008-01-24 Bean <bean123ch@gmail.com>
46400
46401 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46402 (grub_ufs_sblock): New member volume name.
46403 (grub_ufs_find_file): Fix string copy bug.
46404 (grub_ufs_label): Implement this function properly.
46405
46406 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46407 (grub_hfs_iterate_records): Use the correct file number for extents
46408 and catalog file. Fix problem in next index calculation.
46409 (grub_hfs_find_node): Replace recursive function call with loop.
46410 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46411
15c80c09 464122008-01-23 Robert Millan <rmh@aybabtu.com>
46413
46414 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46415 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46416 (grub_multiboot2_real_boot): New function prototype.
46417
46418 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46419 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46420
46421 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46422 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46423
305338fd 464242008-01-23 Robert Millan <rmh@aybabtu.com>
46425
46426 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46427 #ifdef'ed out grub_printf().
46428
3ea52685 464292008-01-23 Robert Millan <rmh@aybabtu.com>
46430
46431 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46432 grub_dprintf calls, since they make "debug=all" mode unusable.
46433 (grub_console_checkkey): Likewise.
46434
5882ae4b 464352008-01-23 Robert Millan <rmh@aybabtu.com>
46436
46437 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46438 `term/i386/pc/at_keyboard.c'.
46439 (pkglib_MODULES): Add `serial.mod'.
46440 (serial_mod_SOURCES): New variable.
46441 (serial_mod_CFLAGS): Likewise.
46442 (serial_mod_LDFLAGS): Likewise.
46443
46444 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46445 `<grub/powerpc/ieee1275/console.h>'.
46446 (grub_keyboard_controller_init): New function prototype.
46447 (grub_console_checkkey): Likewise.
46448 (grub_console_getkey): Likewise.
46449
46450 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46451 keyboard on i386.
46452
46453 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46454 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46455
06ab5303 464562008-01-23 Robert Millan <rmh@aybabtu.com>
46457
46458 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46459 present, "(memdisk)/boot/grub" becomes the default prefix.
46460
46461 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46462 a memdisk tarball with all the modules. Add --overlay=DIR option that
46463 allows users to overlay additional files into the image.
46464
dbb475a4 464652008-01-23 Robert Millan <rmh@aybabtu.com>
46466
46467 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46468 and `machine/memory.h'.
46469 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46470 (_multiboot_mod_SOURCES): New variable.
46471 (_multiboot_mod_CFLAGS): Likewise.
46472 (_multiboot_mod_LDFLAGS): Likewise.
46473 (multiboot_mod_SOURCES): Likewise.
46474 (multiboot_mod_CFLAGS): Likewise.
46475 (multiboot_mod_LDFLAGS): Likewise.
46476
46477 * include/grub/i386/ieee1275/loader.h: New file.
46478
46479 * include/grub/i386/ieee1275/machine.h: Likewise.
46480
46481 * include/grub/i386/ieee1275/memory.h: Likewise.
46482
46483 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46484 variable declaration.
46485 (grub_os_area_size): Likewise.
46486
46487 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46488 (grub_lower_mem, grub_upper_mem): New variables.
46489 (grub_stop_floppy): New function (just to make
46490 grub_multiboot2_real_boot() happy).
46491
46492 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46493 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46494 (grub_stop): New function.
46495 Include `"../realmode.S"' and `"../loader.S"'.
46496
46497 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46498 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46499
46500 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46501 rely on grub_multiboot2_real_boot() for final boot.
46502
25638629 465032008-01-22 Robert Millan <rmh@aybabtu.com>
46504
46505 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46506 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46507 device that doesn't look like an SD card.
46508 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46509 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46510 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46511 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46512 found.
46513
9dad816d 465142008-01-22 Robert Millan <rmh@aybabtu.com>
46515
46516 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46517 avoid claiming over our own code.
46518
34842f2d 465192008-01-22 Bean <bean123ch@gmail.com>
46520
46521 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46522 (jpeg_mod_SOURCES): New variable.
46523 (jpeg_mod_CFLAGS): Likewise.
46524 (jpeg_mod_LDFLAGS): Likewise.
46525
46526 * video/readers/jpeg.c : New file.
46527
44023a28 465282008-01-22 Bean <bean123ch@gmail.com>
46529
46530 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46531 there are no more items.
46532
bc2d8ac6 465332008-01-21 Robert Millan <rmh@aybabtu.com>
46534
46535 * kern/mm.c (grub_mm_init_region): Improve debug message.
46536
261bd4bc 465372008-01-21 Robert Millan <rmh@aybabtu.com>
46538
46539 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46540 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46541 address.
46542 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46543 a C macro.
46544 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46545 Indicates start of upper memory.
46546 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46547 (generate_image): Abort when image size is big enough to corrupt
46548 upper memory.
46549
46550 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46551 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46552 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46553 instead of hardcoding 0xA0000.
46554 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46555 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46556 instead of hardcoding 0xA0000.
46557
f970b55e 465582008-01-21 Robert Millan <rmh@aybabtu.com>
46559
46560 * disk/memdisk.c (memdisk_size): New variable.
46561 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46562 `memdisk_size'.
46563 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46564 image to dynamic memory.
46565 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46566 `memdisk_size'. Free memdisk block.
46567
1a8b0526 465682008-01-21 Robert Millan <rmh@aybabtu.com>
46569
46570 Fix detection of very small filesystems (like tar).
46571
46572 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46573 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46574 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46575 a problem with this disk).
46576
6e9b4aab 465772008-01-21 Robert Millan <rmh@aybabtu.com>
46578
46579 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46580 on grub_biosdisk_rw_standard() error.
46581
0d8837b2 465822008-01-21 Robert Millan <rmh@aybabtu.com>
46583
46584 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46585 recent changes.
46586 * kern/elf.c: Likewise.
46587 * kern/ieee1275/ieee1275.c: Likewise.
46588 * kern/powerpc/ieee1275/openfw.c: Likewise.
46589 * term/ieee1275/ofconsole.c: Likewise.
46590
ffd36e34 465912008-01-21 Robert Millan <rmh@aybabtu.com>
46592
46593 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46594
3f0093d0 46595 * include/grub/kernel.h (grub_arch_memdisk_addr)
46596 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 46597
3f0093d0 46598 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46599 (grub_arch_memdisk_size): ... to here.
ffd36e34 46600
6c391b21 466012008-01-21 Robert Millan <rmh@aybabtu.com>
46602
46603 Mostly based on bugfix from Bean.
46604
46605 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46606 attribute with hook() parameter.
46607 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46608 declaration.
46609 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46610 attribute with hook() parameter.
46611 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46612 declaration.
46613
55a581dc 466142008-01-21 Robert Millan <rmh@aybabtu.com>
46615
46616 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46617 (pkglib_MODULES): Add `memdisk.mod'.
46618 (memdisk_mod_SOURCES): New variable.
46619 (memdisk_mod_CFLAGS): Likewise.
46620 (memdisk_mod_LDFLAGS): Likewise.
46621
46622 * disk/memdisk.c: New file.
46623
46624 * include/grub/disk.h (grub_disk_dev_id): Add
46625 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46626
46627 * include/grub/i386/pc/kernel.h
46628 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46629 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46630 (grub_kernel_image_size): New variable declaration.
46631 (grub_total_module_size): Likewise.
46632 (grub_memdisk_image_size): Likewise.
46633
46634 * include/grub/i386/pc/memory.h
46635 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46636
46637 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46638 (grub_arch_memdisk_addr): New variable declaration.
46639 (grub_arch_memdisk_size): Likewise.
46640
46641 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46642 (grub_arch_memdisk_size): Likewise.
46643
46644 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46645 (codestart): Replace hardcoded `0x100000' with
46646 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46647
46648 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46649 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46650 not NULL, append the contents of the file it refers to, at the end of
46651 the compressed kernel image. Initialize `grub_memdisk_image_size'
46652 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46653 (options): Add "memdisk"|'m' option.
46654 (main): Parse --memdisk|-m option, and pass user-provided path as
46655 parameter to generate_image().
46656
3d7f54c9 466572008-01-20 Robert Millan <rmh@aybabtu.com>
46658
46659 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46660 grub_dprintf() calls from here ...
46661 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46662
0bf74728 466632008-01-20 Robert Millan <rmh@aybabtu.com>
46664
46665 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46666
46667 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46668 declaration.
46669 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46670 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46671 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 46672 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 46673 property).
46674 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46675 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46676
33bf70a7 466772008-01-19 Robert Millan <rmh@aybabtu.com>
46678
fe6b695a 46679 Get rid of confusing function (superseded by
33bf70a7 46680 `grub_ieee1275_get_integer_property')
46681 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46682 prototype.
46683 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46684 function.
46685 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46686 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 46687 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 46688
e2da7d26 466892008-01-19 Robert Millan <rmh@aybabtu.com>
46690
46691 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46692 command after "shut-down", since implementations differ on which
46693 the command for halt is.
46694
59f1fd8d 466952008-01-19 Robert Millan <rmh@aybabtu.com>
46696
46697 * include/grub/i386/linuxbios/console.h: Add header protection.
46698 (grub_keyboard_controller_init): New function prototype.
46699 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46700 (KEYBOARD_COMMAND_READ): Likewise.
46701 (KEYBOARD_COMMAND_WRITE): Likewise.
46702 (KEYBOARD_SCANCODE_SET1): Likewise.
46703 (grub_keyboard_controller_write): New function.
46704 (grub_keyboard_controller_read): Likewise.
46705 (grub_keyboard_controller_init): Likewise.
46706
46707 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46708 (grub_console_init): On coreboot/LinuxBIOS, call
46709 grub_keyboard_controller_init().
46710
5f5a7c15 467112008-01-19 Robert Millan <rmh@aybabtu.com>
46712
46713 PowerPC changes provided by Pavel Roskin.
46714
46715 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46716 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46717 don't rely on cmain() doing it.
46718 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46719 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46720
1210e168 467212008-01-16 Robert Millan <rmh@aybabtu.com>
46722
46723 * include/grub/i386/linuxbios/memory.h
46724 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46725 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46726 receive `table_header' as argument. Instead, probe for it in the
46727 known memory ranges where it can be present.
46728 (grub_available_iterate): Do not pass a fixed `table_header' address
46729 to grub_linuxbios_table_iterate().
46730
3d04eab8 467312008-01-15 Robert Millan <rmh@aybabtu.com>
46732
46733 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46734 * conf/i386-ieee1275.rmk: New file.
46735 * include/grub/i386/ieee1275/console.h: Likewise.
46736 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46737 * include/grub/i386/ieee1275/kernel.h: Likewise.
46738 * include/grub/i386/ieee1275/time.h: Likewise.
46739 * kern/i386/ieee1275/init.c: Likewise.
46740 * kern/i386/ieee1275/startup.S: Likewise.
46741
d1bc1b73 467422008-01-15 Robert Millan <rmh@aybabtu.com>
46743
46744 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46745 when pointers are 32-bit (but still do set it to one when they are
46746 64-bit).
46747
66a65807 467482008-01-15 Robert Millan <rmh@aybabtu.com>
46749
46750 * include/grub/ieee1275/ieee1275.h
46751 (grub_ieee1275_get_integer_property): New function prototype.
46752
46753 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46754 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 46755 grub_ieee1275_get_property() to handle endianness.
66a65807 46756
46757 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46758 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 46759 where appropriate.
66a65807 46760 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46761 (grub_map): Likewise.
46762 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46763
a83ccafd 467642008-01-15 Bean <bean123ch@gmail.com>
46765
46766 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46767 (grub_script_execute_cmdline): Reset grub_errno.
46768
46769 * normal/main.c (read_config_file): Reset grub_errno.
46770
46771 * normal/parse.y (script_init): New.
46772 (script): Move function and menuentry here.
46773 (delimiter): New.
46774 (command): Add delimiter at the end of command.
46775 (commands): Adjust to match the new command.
46776 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 46777 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 46778 (if): Use the new commands.
46779
46780 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46781
df6ecfc6 467822008-01-15 Robert Millan <rmh@aybabtu.com>
46783
46784 * normal/menu.c (run_menu): Move timeout message from here ...
46785 (print_timeout): ... to here.
46786 (run_menu): Use print_timeout() once during initial draw to print
46787 the whole message, and again in every clock tick to update only
46788 the number of seconds.
46789
87ae25eb 467902008-01-15 Robert Millan <rmh@aybabtu.com>
46791
46792 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46793 actual size of `available' from grub_ieee1275_get_property(), and
46794 restrict parsing to that bound.
46795
47bf09a4 467962008-01-15 Christian Franke <franke@computer.org>
46797
46798 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46799 (argp_program_version): Remove variable.
46800 (argp_program_bug_address): Likewise.
46801 (options): Convert from struct argp_option to struct option.
46802 (struct arguments): Remove.
46803 (parse_opt): Remove.
46804 (usage): New function.
46805 (main): Replace struct args members by simple variables.
46806 Replace argp_parse() by getopt_long().
46807 Add switch to evaluate options.
46808 Add missing "(...)" around root_dev in prefix string.
46809
c86f1469 468102008-01-14 Robert Millan <rmh@aybabtu.com>
46811
46812 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46813 for grub_ieee1275_exit(), in order to improve portability.
46814
e622c559 468152008-01-14 Robert Millan <rmh@aybabtu.com>
46816
46817 * util/grub.d/10_linux.in (prefix): Define.
46818 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46819
44cb1ec8 468202008-01-13 Pavel Roskin <proski@gnu.org>
46821
46822 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46823 grub_errno if no errors have been detected.
46824
1eb8c802 468252008-01-12 Robert Millan <rmh@aybabtu.com>
46826
46827 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46828 (grub_util_get_dev_abstraction): New function prototype.
46829
46830 * util/getroot.c: Include `<grub/util/getroot.h>'
46831 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46832 (grub_util_get_dev_abstraction): ... here (new function).
46833
46834 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46835 `PRINT_ABSTRACTION'.
46836 (probe): Probe for abstraction type when requested.
46837 (main): Understand `--target=abstraction'.
46838
46839 * util/i386/efi/grub-install.in: Add abstraction module to core
46840 image when it is found to be necessary.
46841 * util/i386/pc/grub-install.in: Likewise.
46842 * util/powerpc/ieee1275/grub-install.in: Likewise.
46843
46844 * util/update-grub_lib.in (font_path): Return system path without
46845 converting to GRUB path.
46846 * util/update-grub.in: Convert system path returned by font_path()
46847 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46848 abstraction module is needed for loading fonts (if any). Export
46849 that as `GRUB_PRELOAD_MODULES'.
46850 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46851 insmod commands).
46852
52bd3de9 468532008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46854
46855 Remove some unused code from reiserfs.
f19dbdb7 46856
52bd3de9 46857 * fs/reiserfs.c (struct grub_reiserfs_key)
46858 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46859 (struct grub_reiserfs_node_body): Removed.
46860 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46861 Likewise.
46862 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46863 Likewise.
46864 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46865 Likewise.
46866 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46867 Likewise.
46868 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46869 Likewise.
46870 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46871 Likewise.
46872 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46873 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46874 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46875
2f80039d 468762008-01-10 Robert Millan <rmh@aybabtu.com>
46877
46878 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46879 Determines if a file is garbage left by packaging systems, etc.
46880 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46881 for processing /etc/grub.d scripts.
46882 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46883 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46884 as a condition for processing Linux images.
46885
87888032 468862008-01-10 Pavel Roskin <proski@gnu.org>
46887
46888 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46889 to compile reiserfs.c on PowerPC.
46890
7e54fced 468912008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 46892
46893 * kern/device.c (grub_device_iterate): Do not abort device iteration
46894 when one of the devices cannot be opened.
46895 * kern/disk.c (grub_disk_open): Do not account previous failures of
46896 unrelated functions when grub_errno is checked for.
46897
5aa541e6 468982008-01-08 Robert Millan <rmh@aybabtu.com>
46899
46900 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46901 `! grub_linux_is_bzimage', change order of address comparison to make
46902 it more intuitive, and improve "too big zImage" error message.
46903
7076340d 469042008-01-08 Robert Millan <rmh@aybabtu.com>
46905
46906 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46907 `$(update-grub_DATA)'.
46908 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46909 targets.
46910
9ca70333 469112008-01-07 Robert Millan <rmh@aybabtu.com>
46912
46913 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46914 which instruction is modified by grub-setup during installation
46915 (since it wasn't obvious by only looking at this file).
46916
38ccf575 469172008-01-07 Robert Millan <rmh@aybabtu.com>
46918
46919 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46920 listing actual TODO items.
46921
f5db4291 469222008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46923
868967cf 46924 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46925 correctly.
46926 (grub_reiserfs_get_key_offset): Likewise.
46927 (grub_reiserfs_set_key_offset): Likewise.
46928 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 46929 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 46930
46931 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46932 better to remove the bitfield version completely.
f19dbdb7 46933
868967cf 469342008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 46935
f5db4291 46936 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46937 allocated from the heap, due to the fshelp implementation.
46938 (grub_reiserfs_dir): Free NODE, due to the same reason.
46939
492e6d9d 469402008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46941
46942 Mostly from Vincent Pelletier:
f19dbdb7 46943
492e6d9d 46944 * fs/reiserfs.c: New file.
f19dbdb7 46945
492e6d9d 46946 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46947 (reiserfs_mod_SOURCES): New variable.
46948 (reiserfs_mod_CFLAGS): Likewise.
46949 (reiserfs_mod_LDFLAGS): Likewise.
46950
46951 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46952 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46953 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46954 normal/color.c.
46955
9ce3e7c1 469562008-01-06 Robert Millan <rmh@aybabtu.com>
46957
46958 * normal/color.c: Remove `<grub/env.h>'.
46959
f3b58148 469602008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46961
46962 * include/grub/normal.h: Include <grub/env.h>.
46963
7ac3bcfa 469642008-01-05 Robert Millan <rmh@aybabtu.com>
46965
46966 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46967 usage example with `(hd0,1)'.
fb358190 46968 Reported by Samuel Thibault.
7ac3bcfa 46969
c8ee99d7 469702008-01-05 Robert Millan <rmh@aybabtu.com>
46971
46972 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46973 (grub_linux_boot_zimage): Rename to ...
46974 (grub_linux_boot): ... this.
46975 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46976 (grub_linux_boot_zimage): Conditionalize zImage copy.
46977
46978 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46979 (grub_linux_boot_bzimage): Remove prototype.
46980 (grub_linux_boot_zimage): Rename to ...
46981 (grub_linux_boot): ... this.
46982
46983 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46984 (grub_linux_boot): Remove function.
46985
0ece25b1 469862008-01-05 Robert Millan <rmh@aybabtu.com>
46987
46988 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46989 (grub_env_write_color_highlight): Likewise.
46990 (grub_wait_after_message): Likewise.
46991
46992 * normal/color.c: New file.
46993
46994 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46995 (normal_mod_DEPENDENCIES): Likewise.
46996
46997 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46998 (normal_mod_DEPENDENCIES): Likewise.
46999
47000 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47001 (normal_mod_DEPENDENCIES): Likewise.
47002
47003 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47004 (normal_mod_DEPENDENCIES): Likewise.
47005
47006 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47007 for waiting after a message is printed.
47008 * normal/main.c (read_config_file): Likewise.
47009 (grub_normal_init): Register grub_env_write_color_normal() and
47010 grub_env_write_color_highlight() hooks. Mark `color_normal' and
47011 `color_highlight' variables as global.
47012
47013 * normal/menu.c (grub_wait_after_message): New function.
47014 (grub_color_menu_normal): New variable. Replaces ...
47015 (GRUB_COLOR_MENU_NORMAL): ... this macro.
47016 (grub_color_menu_highlight): New variable. Replaces ...
47017 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47018 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47019 `GRUB_TERM_COLOR_STANDARD'.
47020 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47021 `normal_code' and `highlight_code' to `old_color_normal' and
47022 `old_color_highlight', respectively.
47023 (grub_menu_init_page): Update colors when drawing the menu, based on
47024 `menu_color_normal' and `menu_color_highlight' variables.
47025 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47026 a message is printed.
47027
182dd4e5 470282008-01-05 Robert Millan <rmh@aybabtu.com>
47029
47030 * kern/env.c (grub_env_context_open): Propagate hooks for global
47031 variables to new context.
47032
47033 * kern/main.c (grub_set_root_dev): Export `root' variable.
47034
ddf8f6ad 470352008-01-05 Robert Millan <rmh@aybabtu.com>
47036
47037 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 47038 discs unconditionally, since udev and others have options to provide
ddf8f6ad 47039 them.
47040
d8b43d9b 470412008-01-05 Robert Millan <rmh@aybabtu.com>
47042
47043 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47044
2bff2de3 470452008-01-04 Christian Franke <franke@computer.org>
47046
47047 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47048 of eisa_mmap.
47049
97eab917 470502008-01-03 Pavel Roskin <proski@gnu.org>
47051
47052 * kern/i386/linuxbios/init.c: Put "void" to all function
47053 declarations with no arguments.
47054 * kern/powerpc/ieee1275/init.c: Likewise.
47055 * term/i386/pc/at_keyboard.c: Likewise.
47056 * term/i386/pc/vga_text.c: Likewise.
47057 * util/grub-mkdevicemap.c: Likewise.
47058
b9416d00 470592008-01-02 Robert Millan <rmh@aybabtu.com>
47060
47061 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47062 message when loaded image is out of bounds.
47063 (grub_multiboot_load_elf64): Likewise.
47064
92695df9 470652008-01-02 Pavel Roskin <proski@gnu.org>
47066
47067 * util/grub.d/10_linux.in: Try version without ".old" when
47068 looking for initrd. It's better to use initrd from the newer
47069 kernel of the same version than no initrd at all.
47070
d98d9cad 470712008-01-01 Robert Millan <rmh@aybabtu.com>
47072
47073 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47074
dbfdce36 470752008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47076
f19dbdb7 47077 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 47078 grub_video_get_active_render_target.
47079 (grub_video_adapter): Added unmap_color and get_active_render_target.
47080
f19dbdb7 47081 * video/video.c: Added grub_video_unmap_color and
dbfdce36 47082 grub_video_get_active_render_target.
47083 (grub_video_get_info): Changed method to accept NULL pointer as an
47084 argument to allow detection of active video adapter.
47085
47086 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47087 grub_video_vbe_unmap_color_int.
47088 Added grub_video_vbe_unmap_color and
47089 grub_video_vbe_get_active_render_target.
47090 (grub_video_vbe_adapter): Added unmap_color and
47091 get_active_render_target.
47092
f19dbdb7 47093 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 47094 with grub_video_vbe_unmap_color_int.
47095
47096 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47097 (DEFAULT_NORMAL_COLOR): Likewise.
47098 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47099 (DEFAULT_FG_COLOR): Removed.
47100 (DEFAULT_BG_COLOR): Likewise.
47101 (DEFAULT_CURSOR_COLOR): Changed value.
47102 (grub_virtual_screen): Added standard_color_setting,
47103 normal_color_setting, highlight_color_setting and term_color.
47104 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47105 (bitmap_width): Added.
47106 (bitmap_height): Likewise.
47107 (bitmap): Likewise.
47108 (set_term_color): Likewise.
47109 (grub_virtual_screen_setup): Changed to use new terminal coloring
47110 settings.
47111 (grub_gfxterm_init): Added init for bitmap.
47112 (grub_gfxterm_fini): Added destroy for bitmap.
47113 (redraw_screen_rect): Updated to use background bitmap and new
47114 terminal coloring.
47115 (scroll_up): Added optimization for case when there is no bitmap.
47116 (grub_gfxterm_cls): Fixed to use correct background color.
47117 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47118 coloring.
47119 (grub_virtual_screen_setcolor): Likewise.
47120 (grub_virtual_screen_getcolor): Added.
47121 (grub_gfxterm_background_image_cmd): Likewise.
47122 (grub_video_term): Added setcolor and getcolor.
47123 (MOD_INIT): Added registration of background_image command.
47124 (MOD_TERM): Added unregistration for background_image command.
47125
c3c20931 471262007-12-30 Pavel Roskin <proski@gnu.org>
47127
47128 * loader/multiboot_loader.c: Fix multiboot command
47129 unregistration. Fix all typos in the word "multiboot".
47130
df266716 471312007-12-29 Pavel Roskin <proski@gnu.org>
94239199 47132
47133 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47134 support for initrd names used in Fedora.
47135
fc6e896c 471362007-12-26 Bean <bean123ch@gmail.com>
47137
47138 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47139 (cpio_mod_SOURCES): New variable.
47140 (cpio_mod_CFLAGS): Likewise.
47141 (cpio_mod_LDFLAGS): Likewise.
47142
47143 * fs/cpio.c: New file.
47144
47145 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47146
47147 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47148
47149 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47150
47151 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47152
533110ad 471532007-12-25 Robert Millan <rmh@aybabtu.com>
47154
47155 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47156 (grub_getcolor): New function.
47157
47158 * kern/term.c (grub_getcolor): New function.
47159 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47160 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47161 (print_entry): Set normal and highlight colors to
47162 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47163 respectively, before printing and restore them to old
47164 values afterwards.
47165 (grub_menu_init_page): Likewise. Fill an additional colored space
47166 that would otherwise be left blank.
47167
47168 * term/efi/console.c (grub_console_getcolor): New function.
47169 (struct grub_console_term.getcolor): New variable.
47170 * term/i386/pc/console.c (grub_console_getcolor): New function.
47171 (struct grub_console_term.getcolor): New variable.
47172 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47173 (struct grub_console_term.getcolor): New variable.
47174
47175 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47176 (struct grub_console_term.setcolor): Remove variable.
47177 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47178 (struct grub_console_term.setcolor): Remove variable.
47179 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47180 (struct grub_console_term.setcolor): Remove variable.
47181 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47182 (struct grub_console_term.setcolor): Remove variable.
47183
4931827f 471842007-12-25 Robert Millan <rmh@aybabtu.com>
47185
47186 * configure.ac: Search for possible unifont.hex locations, and
47187 define UNIFONT_HEX if found.
47188
47189 * Makefile.in (UNIFONT_HEX): Define variable.
47190 (DATA): Rename to ...
47191 (PKGLIB): ... this. Update all users.
47192 (PKGDATA): New variable.
47193 (pkgdata_IMAGES): Rename to ...
47194 (pkglib_IMAGES): ... this. Update all users.
47195 (pkgdata_MODULES): Rename to ...
47196 (pkglib_MODULES): ... this. Update all users.
47197 (pkgdata_PROGRAMS): Rename to ...
47198 (pkglib_PROGRAMS): ... this. Update all users.
47199 (pkgdata_DATA): Rename to ...
47200 (pkglib_DATA): ... this. Update all users.
47201 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47202 (unicode.pff, ascii.pff): New rules.
47203 (all-local): Add `$(PKGDATA)' dependency.
47204 (install-local): Process `$(PKGDATA)'.
47205
47206 * util/update-grub_lib.in (font_path): Search for *.pff files in
47207 a few more locations, including `${pkgdata}'.
47208
57e57e31 472092007-12-23 Robert Millan <rmh@aybabtu.com>
47210
47211 Patch from Bean <bean123ch@gmail.com>:
47212 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47213 `size'.
47214
4bc72aa9 472152007-12-21 Bean <bean123ch@gmail.com>
47216
47217 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47218 (ntfscomp_mod_SOURCES): New variable.
47219 (ntfscomp_mod_CFLAGS): Likewise.
47220 (ntfscomp_mod_LDFLAGS): Likewise.
47221
47222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47223 (grub_probe_SOURCES): Likewise.
47224 (grub_emu_SOURCES): Likewise.
47225
47226 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47227 (grub_emu_SOURCES): Likewise.
47228
47229 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47230 (grub_emu_SOURCES): Likewise.
47231
47232 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47233 (grub_emu_SOURCES): Likewise.
47234
47235 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47236 (read_run_list): Renamed to grub_ntfs_read_run_list.
47237 (decomp_nextvcn): Moved to ntfscomp.c.
47238 (decomp_getch): Likewise.
47239 (decomp_get16): Likewise.
47240 (decomp_block): Likewise.
47241 (read_block): Likewise.
47242 (read_data): Partially moved to ntfscomp.c.
47243 (fixup): Change unsigned to grub_uint16_t.
47244 (read_mft): Change unsigned long to grub_uint32_t.
47245 (read_attr): Likewise.
47246 (read_data): Likewise.
47247 (read_run_data): Likewise.
47248 (read_run_list): Likewise.
47249 (read_mft): Likewise.
47250
47251 * fs/ntfscomp.c: New file.
47252
47253 * include/grub/ntfs.h: New file.
47254
af680a87 472552007-12-16 Robert Millan <rmh@aybabtu.com>
47256
47257 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47258 IDE disk check, since Linux is known to support 20 IDE disks.
47259 Reported by Colin Watson.
47260
84be7599 472612007-12-15 Bean <bean123ch@gmail.com>
47262
47263 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47264 (lnxboot_img_SOURCES): New variable.
47265 (lnxboot_img_ASFLAGS): Likewise.
47266 (lnxboot_img_LDFLAGS): Likewise.
47267
47268 * boot/i386/pc/lnxboot.S: New file.
47269
6af9db01 472702007-11-24 Pavel Roskin <proski@gnu.org>
47271
47272 * configure.ac: Test if '--build-id=none' is supported by the
47273 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47274 objcopy to generate incorrect binary files (binutils
47275 2.17.50.0.18-1 as shipped by Fedora 8).
47276 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47277 linking, so that build ID doesn't break the test.
47278
7361cfe6 472792007-11-24 Pavel Roskin <proski@gnu.org>
47280
47281 * include/grub/i386/time.h: use "void" in the argument list
47282 of grub_cpu_idle().
47283 * include/grub/powerpc/time.h: Likewise.
47284 * include/grub/sparc64/time.h: Likewise.
47285
1593e10c 472862007-11-18 Christian Franke <franke@computer.org>
47287
47288 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47289 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47290 This fixes the problem that function keys did not work in grub-emu.
47291
3b8db1a8 472922007-11-18 Christian Franke <franke@computer.org>
47293
47294 * disk/host.c (grub_host_open): Remove attribute unused from
47295 name parameter. Add check for "host". This fixes the problem
47296 that grub-emu does not find partitions.
47297
2e29408d 472982007-11-18 Christian Franke <franke@computer.org>
47299
47300 * util/hostfs.c (is_dir): New function.
47301 (grub_hostfs_dir): Handle missing dirent.d_type case.
47302 (grub_hostfs_read): Add missing fseek().
47303 (grub_hostfs_label): Clear label pointer. This fixes a crash
47304 of grub-emu on "ls (host)".
47305
398cd047 473062007-11-18 Christian Franke <franke@computer.org>
47307
47308 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47309 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47310 to 64 bit boundary by default.
47311
c405c391 473122007-11-18 Bean <bean123ch@gmail.com>
47313
47314 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47315 (hexdump_mod_SOURCES): New variable.
47316 (hexdump_mod_CFLAGS): Likewise.
47317 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 47318
c405c391 47319 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47320
47321 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47322
47323 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47324
47325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47326
47327 * include/grub/hexdump.h: New file.
47328
47329 * commands/hexdump.c: New file.
47330
5cced7fd 473312007-11-10 Robert Millan <rmh@aybabtu.com>
47332
47333 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47334 in grub_outb() calls.
47335 (beep_on): Likewise.
47336
8b714eb0 473372007-11-10 Christian Franke <franke@computer.org>
47338
47339 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47340 (grub_menu_run): Likewise.
47341
ce0f1839 473422007-11-10 Robert Millan <rmh@aybabtu.com>
47343
47344 * include/grub/i386/efi/machine.h: New file.
47345 * include/grub/i386/linuxbios/machine.h: Likewise.
47346 * include/grub/i386/pc/machine.h: Likewise.
47347 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47348 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47349
47350 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47351 (serial_hw_io_addr): New variable.
47352 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47353 instead of `(unsigned short *) 0x400'.
47354
270c237d 473552007-11-10 Bean <bean123ch@gmail.com>
47356
47357 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47358
a87783bf 473592007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47360
47361 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47362 (vga_mod_SOURCES): Added.
47363 (vga_mod_CFLAGS): Likewise.
47364 (vga_mod_LDFLAGS): Likewise.
47365
47366 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47367 grub_outb() calls.
47368 (set_map_mask): Likewise.
47369 (set_read_map): Likewise.
47370 (set_read_address): Likewise.
47371 (vga_font): Removed variable.
47372 (get_vga_glyph): Removed function.
47373 (invalidate_char): Likewise.
47374 (write_char): Changed to use grub_font_get_glyph() for font
47375 information.
47376 (grub_vga_putchar): Likewise.
47377 (grub_vga_getcharwidth): Likewise.
47378
6433b448 473792007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47380
47381 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47382 flags.
47383 (pxeboot_img_LDFLAGS): Likewise.
47384 (diskboot_img_LDFLAGS): Likewise.
47385 (kernel_img_LDFLAGS): Likewise.
47386
49178511 473872007-11-06 Robert Millan <rmh@aybabtu.com>
47388
47389 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47390 in grub_outb() calls.
47391 (serial_hw_init): Likewise.
47392
53b052de 473932007-11-05 Robert Millan <rmh@aybabtu.com>
47394
47395 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47396 spaces. Skip non-regular files.
47397
5ab33bba 473982007-11-05 Robert Millan <rmh@aybabtu.com>
47399
47400 * kern/disk.c (grub_disk_firmware_fini)
47401 (grub_disk_firmware_is_tainted): New variables.
47402
47403 * include/grub/disk.h (grub_disk_firmware_fini)
47404 (grub_disk_firmware_is_tainted): Likewise.
47405
47406 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47407 (grub_disk_biosdisk_fini): ... to here.
47408 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47409 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47410 is set. Register grub_disk_biosdisk_fini() in
47411 `grub_disk_firmware_fini'.
47412
47413 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47414 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47415 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47416 to finish existing firmware disk interface.
47417
47418 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47419 (ata_mod_SOURCES): New variable.
47420 (ata_mod_CFLAGS): Likewise.
47421 (ata_mod_LDFLAGS): Likewise.
47422
0149ab7c 474232007-11-05 Robert Millan <rmh@aybabtu.com>
47424
47425 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47426 (grub_ata_wait): Reimplement using grub_millisleep().
47427
47428 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47429 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47430
be7ac41e 474312007-11-03 Marco Gerards <marco@gnu.org>
47432
47433 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47434 (CRTC_ADDR_PORT): New macro.
47435 (CRTC_DATA_PORT): Likewise.
47436 (CRTC_CURSOR): Likewise.
47437 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47438 (CRTC_CURSOR_ADDR_LOW): Likewise.
47439 (update_cursor): New function.
47440 (grub_console_real_putchar): Call `update_cursor'.
47441 (grub_console_gotoxy): Likewise.
47442 (grub_console_cls): Set the default color when clearing the
47443 screen.
47444 (grub_console_setcursor): Implemented.
47445
bb06ab2e 474462007-11-03 Marco Gerards <marco@gnu.org>
47447
47448 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47449 become activate.
47450 (grub_ata_pio_write): Likewise.
47451
47452 (grub_atapi_identify): Wait after issuing an ATA command.
47453 (grub_atapi_packet): Likewise.
47454 (grub_ata_identify): Likewise.
47455 (grub_ata_readwrite): Likewise.
47456
cf8f780b 474572007-11-03 Marco Gerards <marco@gnu.org>
47458
47459 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47460 (grub_ata_pio_write): Likewise.
47461 (grub_ata_readwrite): Use `grub_error', instead of
47462 returning `grub_errno'.
47463
ed649e54 474642007-11-03 Marco Gerards <marco@gnu.org>
47465
47466 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47467 grub_ata_pio_write once for every single sector, instead of for
47468 multiple sectors.
47469
ca25d8f0 474702007-10-31 Robert Millan <rmh@aybabtu.com>
47471
47472 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47473
47474 * conf/i386-linuxbios.rmk: New file.
47475
47476 * kern/i386/pc/hardware.c: Likewise.
47477 * term/i386/pc/at_keyboard.c: Likewise.
47478 * term/i386/pc/vga_text.c: Likewise.
47479
47480 * include/grub/i386/linuxbios/boot.h: Likewise.
47481 * include/grub/i386/linuxbios/console.h: Likewise.
47482 * include/grub/i386/linuxbios/init.h: Likewise.
47483 * include/grub/i386/linuxbios/kernel.h: Likewise.
47484 * include/grub/i386/linuxbios/loader.h: Likewise.
47485 * include/grub/i386/linuxbios/memory.h: Likewise.
47486 * include/grub/i386/linuxbios/serial.h: Likewise.
47487 * include/grub/i386/linuxbios/time.h: Likewise.
47488
47489 * kern/i386/linuxbios/init.c: Likewise.
47490 * kern/i386/linuxbios/startup.S: Likewise.
47491 * kern/i386/linuxbios/table.c: Likewise.
47492
e911ecc1 474932007-10-31 Marco Gerards <marco@gnu.org>
47494
47495 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47496 (ata_mod_SOURCES): New variable.
47497 (ata_mod_CFLAGS): Likewise.
47498 (ata_mod_LDFLAGS): Likewise.
47499
47500 * disk/ata.c: New file.
47501
47502 * include/grub/disk.h (grub_disk_dev_id): Add
47503 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 47504
7f66d0e0 475052007-10-31 Robert Millan <rmh@aybabtu.com>
47506
47507 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47508 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47509
47510 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47511 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47512
47513 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47514 `<grub/types.h>'.
47515
47516 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47517
5cd7dd46 475182007-10-27 Robert Millan <rmh@aybabtu.com>
47519
3236ca65 47520 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 47521
2ebfc90f 475222007-10-22 Robert Millan <rmh@aybabtu.com>
47523
47524 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47525 `"../realmode.S"'.
47526 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47527
73fcb0f3 475282007-10-22 Robert Millan <rmh@aybabtu.com>
47529
47530 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47531 (pkgdata_MODULES): Add `biosdisk.mod'.
47532 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47533 variables.
47534
47535 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47536 (grub_biosdisk_init): Replace with ...
47537 (GRUB_MOD_INIT(biosdisk)): ... this.
47538 (grub_biosdisk_fini): Replace with ...
47539 (GRUB_MOD_FINI(biosdisk)): ... this.
47540
47541 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47542 (grub_machine_init): Remove call to grub_biosdisk_init().
47543 (grub_machine_fini): Remove call to grub_machine_fini().
47544
47545 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47546
3381d274 475472007-10-22 Robert Millan <rmh@aybabtu.com>
47548
47549 * include/grub/time.h: New file.
47550 * include/grub/i386/time.h: Likewise.
47551 * include/grub/powerpc/time.h: Likewise.
47552 * include/grub/sparc64/time.h: Likewise.
47553
47554 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47555 instances to ...
47556 (KERNEL_MACHINE_TIME_HEADER): ... this.
47557 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47558 instances to ...
47559 (KERNEL_MACHINE_TIME_HEADER): ... this.
47560 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47561 instances to ...
47562 (KERNEL_MACHINE_TIME_HEADER): ... this.
47563
47564 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47565 (grub_millisleep): New function.
47566 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47567 (grub_millisleep): New function.
47568 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47569 Remove `grub/machine/time.h' include.
47570 (grub_millisleep): New function.
47571 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47572 Remove `grub/machine/time.h' include.
47573 (grub_millisleep): New function.
47574
47575 * include/grub/misc.h (grub_div_roundup): New function.
47576
47577 * kern/misc.c: Include `<grub/time.h>'.
47578 (grub_millisleep_generic): New function.
47579
47580 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47581 Add `time.h'.
47582 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47583 Add `time.h'.
47584 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47585 `machine/time.h'. Add `time.h'.
47586 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47587
a39a0312 475882007-10-21 Robert Millan <rmh@aybabtu.com>
47589
47590 * include/grub/misc.h (grub_max): New function.
47591
2aad70e2 475922007-10-21 Robert Millan <rmh@aybabtu.com>
47593
47594 * util/misc.c (grub_util_info): Call fflush() before returning.
47595
54b71c4b 475962007-10-20 Robert Millan <rmh@aybabtu.com>
47597
47598 * genmk.rb (Image): Copy `extra_flags' from here ...
47599 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47600
47601 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47602 to `argc' and `args' arguments.
47603
a979f513 476042007-10-17 Robert Millan <rmh@aybabtu.com>
47605
47606 * kern/i386/loader.S: New file.
47607
47608 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47609 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47610 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47611 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47612 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47613 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47614 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47615 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47616 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47617 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47618 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47619 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47620 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47621 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47622
47623 * kern/i386/realmode.S: New file.
47624
47625 * kern/i386/pc/startup.S (protstack): Moved from here ...
47626 * kern/i386/realmode.S (protstack)... to here.
47627 * kern/i386/pc/startup.S (gdt): Moved from here ...
47628 * kern/i386/realmode.S (gdt)... to here.
47629 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47630 * kern/i386/realmode.S (prot_to_real)... to here.
47631
47632 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47633 `kern/i386/realmode.S'.
47634
825fc8fd 476352007-10-17 Robert Millan <rmh@aybabtu.com>
47636
47637 * include/grub/i386/loader.h: New file.
47638
47639 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47640 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47641 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47642 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47643 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47644 * include/grub/i386/loader.h (grub_linux_prot_size)
47645 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47646 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47647 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47648 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47649
47650 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47651
e179b2f4 476522007-10-15 Robert Millan <rmh@aybabtu.com>
47653
47654 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47655 filesystem when dev->disk is unset.
47656 Do probe for filesystem even when dev->disk->has_partitions is set.
47657 In case a filesystem is found, always report it.
47658 In case it isn't, if dev->disk->has_partitions is set, report that
47659 a partition table was found instead of reporting that no filesystem
47660 could be identified.
47661
5db82af6 476622007-10-12 Robert Millan <rmh@aybabtu.com>
47663
47664 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47665 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47666
68f6ac74 47667 * include/grub/types.h (grub_host_to_target16): New macro.
47668 (grub_host_to_target32): Likewise.
47669 (grub_host_to_target64): Likewise.
47670 (grub_target_to_host16): Likewise.
47671 (grub_target_to_host32): Likewise.
47672 (grub_target_to_host64): Likewise.
5db82af6 47673
47674 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47675 Renamed from to ...
47676 (GRUB_MOD_ALIGN): ...this. Update all users.
47677
68f6ac74 47678 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47679 grub_host_to_target32.
47680 Replace grub_be_to_cpu32 with grub_target_to_host32.
47681 (load_modules): Likewise.
47682 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47683 Replace grub_be_to_cpu32 with grub_target_to_host32.
47684 Replace grub_cpu_to_be16 with grub_host_to_target16.
47685 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 47686
3cf497cc 476872007-10-12 Robert Millan <rmh@aybabtu.com>
47688
47689 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47690 * util/elf/grub-mkimage.c: ... here.
47691
47692 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47693 `util/powerpc/ieee1275/grub-mkimage.c'.
47694
c8cc3692 476952007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 47696
c8cc3692 47697 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47698 and make it easier to figure out.
47699 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47700 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47701 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47702 leave us with less than HEAP_MIN_SIZE total heap.
47703 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 47704
5c58b791 477052007-10-03 Robert Millan <rmh@aybabtu.com>
47706
47707 * include/grub/i386/io.h: New file.
47708 * commands/i386/pc/play.c (inb): Removed.
47709 (outb): Removed.
47710 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47711 with grub_outb().
afcd2ef8 47712 * term/i386/pc/serial.c (inb): Removed.
47713 (outb): Removed.
47714 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47715 with grub_outb().
47716 * term/i386/pc/vga.c (inb): Removed.
47717 (outb): Removed.
47718 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47719 with grub_outb().
5c58b791 47720
1a477ed6 477212007-10-02 Robert Millan <rmh@aybabtu.com>
47722
47723 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47725 Reported by Marcin Kurek.
47726
6b5d80fa 477272007-09-07 Robert Millan <rmh@aybabtu.com>
47728
47729 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47730 SmartFirmware version updates (as released by Sven Luther), and avoid
47731 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47732 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47733 known broken.
47734
5618afbf 477352007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47736
47737 From Hitoshi Ozeki:
47738 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47739 when merging two regions.
47740
6139dcd9 477412007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47742
508e39ee 47743 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47744 * normal/completion.c (grub_normal_do_completion): Likewise.
47745 Reported by Hitoshi Ozeki.
47746
477472007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47748
6139dcd9 47749 Do not use devices at boot in chainloading.
f19dbdb7 47750
6139dcd9 47751 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47752 (boot_part_addr): Likewise.
47753 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47754 with BOOT_DRIVE and BOOT_PART_ADDR.
47755 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47756 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47757
38da6516 477582007-08-29 Robert Millan <rmh@aybabtu.com>
47759
47760 Patch from Simon Peter <dn.tlp@gmx.net>:
47761 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47762 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47763 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47764 util/i386/pc/grub-setup.c_DEPENDENCIES.
47765 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47766 util/grub-probe.c_DEPENDENCIES.
47767 * conf/powerpc-ieee1275.rmk: Likewise.
47768
29d0928c 477692007-08-28 Robert Millan <rmh@aybabtu.com>
47770
47771 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47772 to tell grub-mkdevicemap how to name devices.
47773 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47774 feature).
47775
47776 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47777 util/i386/get_disk_name.c.
47778 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47779 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47780 util/ieee1275/get_disk_name.c.
47781
47782 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47783
47784 * DISTLIST: Add util/i386/get_disk_name.c and
47785 util/ieee1275/get_disk_name.c.
47786
47787 * util/grub-mkdevicemap.c: Replace device naming logic with
47788 grub_util_get_disk_name() calls.
47789
5a0d3cca 477902007-08-20 Robert Millan <rmh@aybabtu.com>
47791
47792 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47793 (so that it works for both plural and singular quantities).
47794
8b72db2f 477952007-08-05 Robert Millan <rmh@aybabtu.com>
47796
47797 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47798 so that [xz] isn't taken into account when determining order.
47799
352466bf 478002007-08-02 Marco Gerards <marco@gnu.org>
47801
47802 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47803 `include/multiboot2.h', `include/grub/elfload.h',
47804 `include/multiboot.h', `include/grub/multiboot.h',
47805 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47806 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47807 `kern/elf.c', `loader/multiboot_loader.c',
47808 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47809 `loader/i386/pc/multiboot2.c',
47810 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47811 `util/i386/pc/grub-mkrescue.in'. Remove
47812 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47813 `include/grub/i386/pc/util/biosdisk.h' and
47814 `include/grub/powerpc/ieee1275/multiboot.h'.
47815
8f096014 478162007-08-02 Bean <bean123ch@gmail.com>
47817
47818 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47819 (ntfs_mod_SOURCES): New variable.
47820 (ntfs_mod_CFLAGS): Likewise.
47821 (ntfs_mod_LDFLAGS): Likewise.
47822
47823 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47824 (grub_probe_SOURCES): Likewise.
47825 (grub_emu_SOURCES): Likewise.
47826
47827 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47828 (grub_emu_SOURCES): Likewise.
47829
47830 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47831 (grub_emu_SOURCES): Likewise.
f19dbdb7 47832
8f096014 47833 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47834
47835 * fs/ntfs.c: New file.
47836
9959f7db 478372007-08-02 Bean <bean123ch@gmail.com>
47838
47839 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47840
47841 * file.h (grub_file): Likewise.
47842
47843 * fshelp.h (grub_fshelp_read_file): Likewise.
47844
47845 * util/i386/pc/grub-setup.c (setup): Likewise.
47846 (save_first_sector): Likewise.
47847 (save_blocklists): Likewise.
f19dbdb7 47848
9959f7db 47849 * fs/affs.c (grub_affs_read_file): Likewise.
47850
47851 * fs/ext2.c (grub_ext2_read_file): Likewise.
47852
47853 * fs/fat.c (grub_fat_read_data): Likewise.
47854
47855 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47856
47857 * fs/hfs.c (grub_hfs_read_file): Likewise.
47858
47859 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47860
47861 * fs/jfs.c (grub_jfs_read_file): Likewise.
47862
47863 * fs/minix.c (grub_minix_read_file): Likewise.
47864
47865 * fs/sfs.c (grub_sfs_read_file): Likewise.
47866
47867 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 47868
9959f7db 47869 * fs/xfs.c (grub_xfs_read_file): Likewise.
47870
47871 * command/blocklist.c (read_blocklist): Likewise.
47872 (print_blocklist): Likewise.
47873
0a203f83 478742007-08-02 Marco Gerards <marco@gnu.org>
47875
47876 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47877 `util/hostfs.c'.
47878
47879 * disk/host.c: New file.
47880
47881 * util/hostfs.c: Likewise.
47882
47883 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47884 return `GRUB_ERR_BAD_FS'.
47885 * fs/sfs.c (grub_sfs_mount): Likewise.
47886 * fs/xfs.c (grub_xfs_mount): Likewise.
47887
47888 * include/grub/disk.h (enum grub_disk_dev_id): Add
47889 `GRUB_DISK_DEVICE_HOST_ID'.
47890
47891 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47892
e5dfe777 478932007-07-24 Jerone Young <jerone@gmail.com>
47894
f19dbdb7 47895 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 47896 modules for compilation.
47897 * conf/powerpc-ieee1275.rmk: Likewise.
47898
47899 * include/multiboot.h: Move multiboot definitions to one file. Rename
47900 many definitions to not get grub specific.
47901 * include/multiboot2.h: Create header with multiboot 2 definitions.
47902 * include/grub/multiboot.h: Header for grub specific function
47903 prototypes and definitions.
47904 * include/grub/multiboot2.h: Likewise.
47905 * include/grub/multiboot_loader.h: Likewise.
47906 * include/grub/i386/pc/multiboot.h: Removed.
47907 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47908
47909 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47910 and 2 to allow for one multiboot and module commands.
47911 * loader/multiboot2.c: Add multiboot2 functionality.
47912 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47913 and definition names.
47914 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47915 2 functions.
47916 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47917 ieee1275 specific multiboot2 code.
47918
47919 * kern/i386/pc/startup.S: Change headers and definition names for
47920 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47921
daf0f0ba 479222007-07-22 Robert Millan <rmh@aybabtu.com>
47923
47924 * geninitheader.sh: Process file specified in first parameter rather
47925 than hardcoding grub_modules_init.lst.
fe6b695a 47926 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 47927 than hardcoding grub_modules_init.h.
47928
47929 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47930 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47931 grub_probe_init.[ch] and grub_setup_init.[ch].
47932
47933 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47934 grub_modules_init.h with grub_emu_init.h.
47935 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47936 grub_probe_init.[ch] files.
47937 * conf/i386-efi.rmk: Likewise.
47938 * conf/i386-pc.rmk: Likewise.
47939 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47940 grub_setup_init.[ch] files.
47941
47942 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47943 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47944 to initialize modules rather than a list of hardcoded functions.
47945 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47946 grub_init_all() to initialize modules rather than a list of hardcoded
47947 functions.
47948
54cdc1cc 479492007-07-22 Robert Millan <rmh@aybabtu.com>
47950
47951 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47952 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47953
ad0686cc 479542007-07-22 Robert Millan <rmh@aybabtu.com>
47955
47956 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47957 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47958 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47959 flag when running on SmartFirmware.
47960 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47961 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47962 was set.
47963
47964 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47965 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47966 rather than decreasing it.
47967
47968 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47969 there's not enough space to do it, fail in the same way as when it
47970 can't be done because there are no partitions.
47971
47972 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47973 when nvsetenv failed.
47974
969c02ec 479752007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47976
47977 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47978 because this rule is automatically generated.
47979 (grub-mkrescue): Removed for the same reason as above.
47980
5a79f472 479812007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47982
47983 Migrate to GNU General Public License Version 3.
f19dbdb7 47984
5a79f472 47985 * COPYING: Replaced with the plain text version of GPLv3.
47986
47987 * config.guess: Updated from gnulib.
47988 * config.sub: Likewise.
47989
47990 * geninit.sh: Output a GPLv3 copyright notice.
47991 * geninitheader.sh: Likewise.
47992 * genmodsrc.sh: Likewise.
47993 * gensymlist.sh.in: Likewise.
47994
47995 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47996 * boot/i386/pc/diskboot.S: Likewise.
47997 * boot/i386/pc/pxeboot.S: Likewise.
47998 * commands/blocklist.c: Likewise.
47999 * commands/boot.c: Likewise.
48000 * commands/cat.c: Likewise.
48001 * commands/cmp.c: Likewise.
48002 * commands/configfile.c: Likewise.
48003 * commands/echo.c: Likewise.
48004 * commands/help.c: Likewise.
48005 * commands/ls.c: Likewise.
48006 * commands/search.c: Likewise.
48007 * commands/terminal.c: Likewise.
48008 * commands/test.c: Likewise.
48009 * commands/videotest.c: Likewise.
48010 * commands/i386/cpuid.c: Likewise.
48011 * commands/i386/pc/halt.c: Likewise.
48012 * commands/i386/pc/play.c: Likewise.
48013 * commands/i386/pc/reboot.c: Likewise.
48014 * commands/i386/pc/vbeinfo.c: Likewise.
48015 * commands/i386/pc/vbetest.c: Likewise.
48016 * commands/ieee1275/halt.c: Likewise.
48017 * commands/ieee1275/reboot.c: Likewise.
48018 * commands/ieee1275/suspend.c: Likewise.
48019 * disk/loopback.c: Likewise.
48020 * disk/lvm.c: Likewise.
48021 * disk/raid.c: Likewise.
48022 * disk/efi/efidisk.c: Likewise.
48023 * disk/i386/pc/biosdisk.c: Likewise.
48024 * disk/ieee1275/ofdisk.c: Likewise.
48025 * font/manager.c: Likewise.
48026 * fs/affs.c: Likewise.
48027 * fs/ext2.c: Likewise.
48028 * fs/fat.c: Likewise.
48029 * fs/fshelp.c: Likewise.
48030 * fs/hfs.c: Likewise.
48031 * fs/hfsplus.c: Likewise.
48032 * fs/iso9660.c: Likewise.
48033 * fs/jfs.c: Likewise.
48034 * fs/minix.c: Likewise.
48035 * fs/sfs.c: Likewise.
48036 * fs/ufs.c: Likewise.
48037 * fs/xfs.c: Likewise.
48038 * hello/hello.c: Likewise.
48039 * include/grub/acorn_filecore.h: Likewise.
48040 * include/grub/arg.h: Likewise.
48041 * include/grub/bitmap.h: Likewise.
48042 * include/grub/boot.h: Likewise.
48043 * include/grub/cache.h: Likewise.
48044 * include/grub/device.h: Likewise.
48045 * include/grub/disk.h: Likewise.
48046 * include/grub/dl.h: Likewise.
48047 * include/grub/elfload.h: Likewise.
48048 * include/grub/env.h: Likewise.
48049 * include/grub/err.h: Likewise.
48050 * include/grub/file.h: Likewise.
48051 * include/grub/font.h: Likewise.
48052 * include/grub/fs.h: Likewise.
48053 * include/grub/fshelp.h: Likewise.
48054 * include/grub/gzio.h: Likewise.
48055 * include/grub/hfs.h: Likewise.
48056 * include/grub/kernel.h: Likewise.
48057 * include/grub/loader.h: Likewise.
48058 * include/grub/lvm.h: Likewise.
48059 * include/grub/misc.h: Likewise.
48060 * include/grub/mm.h: Likewise.
48061 * include/grub/net.h: Likewise.
48062 * include/grub/normal.h: Likewise.
48063 * include/grub/parser.h: Likewise.
48064 * include/grub/partition.h: Likewise.
48065 * include/grub/pc_partition.h: Likewise.
48066 * include/grub/raid.h: Likewise.
48067 * include/grub/rescue.h: Likewise.
48068 * include/grub/script.h: Likewise.
48069 * include/grub/setjmp.h: Likewise.
48070 * include/grub/symbol.h: Likewise.
48071 * include/grub/term.h: Likewise.
48072 * include/grub/terminfo.h: Likewise.
48073 * include/grub/tparm.h: Likewise.
48074 * include/grub/types.h: Likewise.
48075 * include/grub/video.h: Likewise.
48076 * include/grub/efi/api.h: Likewise.
48077 * include/grub/efi/chainloader.h: Likewise.
48078 * include/grub/efi/console.h: Likewise.
48079 * include/grub/efi/console_control.h: Likewise.
48080 * include/grub/efi/disk.h: Likewise.
48081 * include/grub/efi/efi.h: Likewise.
48082 * include/grub/efi/pe32.h: Likewise.
48083 * include/grub/efi/time.h: Likewise.
48084 * include/grub/i386/linux.h: Likewise.
48085 * include/grub/i386/setjmp.h: Likewise.
48086 * include/grub/i386/types.h: Likewise.
48087 * include/grub/i386/efi/kernel.h: Likewise.
48088 * include/grub/i386/efi/loader.h: Likewise.
48089 * include/grub/i386/efi/time.h: Likewise.
48090 * include/grub/i386/pc/biosdisk.h: Likewise.
48091 * include/grub/i386/pc/boot.h: Likewise.
48092 * include/grub/i386/pc/chainloader.h: Likewise.
48093 * include/grub/i386/pc/console.h: Likewise.
48094 * include/grub/i386/pc/init.h: Likewise.
48095 * include/grub/i386/pc/kernel.h: Likewise.
48096 * include/grub/i386/pc/loader.h: Likewise.
48097 * include/grub/i386/pc/memory.h: Likewise.
48098 * include/grub/i386/pc/multiboot.h: Likewise.
48099 * include/grub/i386/pc/serial.h: Likewise.
48100 * include/grub/i386/pc/time.h: Likewise.
48101 * include/grub/i386/pc/vbe.h: Likewise.
48102 * include/grub/i386/pc/vbeblit.h: Likewise.
48103 * include/grub/i386/pc/vbefill.h: Likewise.
48104 * include/grub/i386/pc/vbeutil.h: Likewise.
48105 * include/grub/i386/pc/vga.h: Likewise.
48106 * include/grub/ieee1275/ieee1275.h: Likewise.
48107 * include/grub/ieee1275/ofdisk.h: Likewise.
48108 * include/grub/powerpc/libgcc.h: Likewise.
48109 * include/grub/powerpc/setjmp.h: Likewise.
48110 * include/grub/powerpc/types.h: Likewise.
48111 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48112 * include/grub/powerpc/ieee1275/console.h: Likewise.
48113 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48114 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48115 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48116 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48117 * include/grub/powerpc/ieee1275/time.h: Likewise.
48118 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48119 * include/grub/sparc64/libgcc.h: Likewise.
48120 * include/grub/sparc64/setjmp.h: Likewise.
48121 * include/grub/sparc64/types.h: Likewise.
48122 * include/grub/sparc64/ieee1275/console.h: Likewise.
48123 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48124 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48125 * include/grub/sparc64/ieee1275/time.h: Likewise.
48126 * include/grub/util/biosdisk.h: Likewise.
48127 * include/grub/util/getroot.h: Likewise.
48128 * include/grub/util/lvm.h: Likewise.
48129 * include/grub/util/misc.h: Likewise.
48130 * include/grub/util/raid.h: Likewise.
48131 * include/grub/util/resolve.h: Likewise.
48132 * io/gzio.c: Likewise.
48133 * kern/device.c: Likewise.
48134 * kern/disk.c: Likewise.
48135 * kern/dl.c: Likewise.
48136 * kern/elf.c: Likewise.
48137 * kern/env.c: Likewise.
48138 * kern/err.c: Likewise.
48139 * kern/file.c: Likewise.
48140 * kern/fs.c: Likewise.
48141 * kern/loader.c: Likewise.
48142 * kern/main.c: Likewise.
48143 * kern/misc.c: Likewise.
48144 * kern/mm.c: Likewise.
48145 * kern/parser.c: Likewise.
48146 * kern/partition.c: Likewise.
48147 * kern/rescue.c: Likewise.
48148 * kern/term.c: Likewise.
48149 * kern/efi/efi.c: Likewise.
48150 * kern/efi/init.c: Likewise.
48151 * kern/efi/mm.c: Likewise.
48152 * kern/i386/dl.c: Likewise.
48153 * kern/i386/efi/init.c: Likewise.
48154 * kern/i386/efi/startup.S: Likewise.
48155 * kern/i386/pc/init.c: Likewise.
48156 * kern/i386/pc/lzo1x.S: Likewise.
48157 * kern/i386/pc/startup.S: Likewise.
48158 * kern/ieee1275/ieee1275.c: Likewise.
48159 * kern/powerpc/cache.S: Likewise.
48160 * kern/powerpc/dl.c: Likewise.
48161 * kern/powerpc/ieee1275/cmain.c: Likewise.
48162 * kern/powerpc/ieee1275/crt0.S: Likewise.
48163 * kern/powerpc/ieee1275/init.c: Likewise.
48164 * kern/powerpc/ieee1275/openfw.c: Likewise.
48165 * kern/sparc64/cache.S: Likewise.
48166 * kern/sparc64/dl.c: Likewise.
48167 * kern/sparc64/ieee1275/init.c: Likewise.
48168 * kern/sparc64/ieee1275/openfw.c: Likewise.
48169 * loader/efi/chainloader.c: Likewise.
48170 * loader/efi/chainloader_normal.c: Likewise.
48171 * loader/i386/efi/linux.c: Likewise.
48172 * loader/i386/efi/linux_normal.c: Likewise.
48173 * loader/i386/pc/chainloader.c: Likewise.
48174 * loader/i386/pc/chainloader_normal.c: Likewise.
48175 * loader/i386/pc/linux.c: Likewise.
48176 * loader/i386/pc/linux_normal.c: Likewise.
48177 * loader/i386/pc/multiboot.c: Likewise.
48178 * loader/i386/pc/multiboot_normal.c: Likewise.
48179 * loader/powerpc/ieee1275/linux.c: Likewise.
48180 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48181 * normal/arg.c: Likewise.
48182 * normal/cmdline.c: Likewise.
48183 * normal/command.c: Likewise.
48184 * normal/completion.c: Likewise.
48185 * normal/execute.c: Likewise.
48186 * normal/function.c: Likewise.
48187 * normal/lexer.c: Likewise.
48188 * normal/main.c: Likewise.
48189 * normal/menu.c: Likewise.
48190 * normal/menu_entry.c: Likewise.
48191 * normal/misc.c: Likewise.
48192 * normal/parser.y: Likewise.
48193 * normal/script.c: Likewise.
48194 * normal/i386/setjmp.S: Likewise.
48195 * normal/powerpc/setjmp.S: Likewise.
48196 * normal/sparc64/setjmp.S: Likewise.
48197 * partmap/acorn.c: Likewise.
48198 * partmap/amiga.c: Likewise.
48199 * partmap/apple.c: Likewise.
48200 * partmap/gpt.c: Likewise.
48201 * partmap/pc.c: Likewise.
48202 * partmap/sun.c: Likewise.
48203 * term/gfxterm.c: Likewise.
48204 * term/terminfo.c: Likewise.
48205 * term/efi/console.c: Likewise.
48206 * term/i386/pc/console.c: Likewise.
48207 * term/i386/pc/serial.c: Likewise.
48208 * term/i386/pc/vesafb.c: Likewise.
48209 * term/i386/pc/vga.c: Likewise.
48210 * term/ieee1275/ofconsole.c: Likewise.
48211 * util/biosdisk.c: Likewise.
48212 * util/console.c: Likewise.
48213 * util/genmoddep.c: Likewise.
48214 * util/getroot.c: Likewise.
48215 * util/grub-emu.c: Likewise.
48216 * util/grub-mkdevicemap.c: Likewise.
48217 * util/grub-probe.c: Likewise.
48218 * util/lvm.c: Likewise.
48219 * util/misc.c: Likewise.
48220 * util/raid.c: Likewise.
48221 * util/resolve.c: Likewise.
48222 * util/update-grub.in: Likewise.
48223 * util/update-grub_lib.in: Likewise.
48224 * util/grub.d/00_header.in: Likewise.
48225 * util/grub.d/10_hurd.in: Likewise.
48226 * util/grub.d/10_linux.in: Likewise.
48227 * util/i386/efi/grub-install.in: Likewise.
48228 * util/i386/efi/grub-mkimage.c: Likewise.
48229 * util/i386/pc/grub-install.in: Likewise.
48230 * util/i386/pc/grub-mkimage.c: Likewise.
48231 * util/i386/pc/grub-mkrescue.in: Likewise.
48232 * util/i386/pc/grub-setup.c: Likewise.
48233 * util/i386/pc/misc.c: Likewise.
48234 * util/powerpc/ieee1275/grub-install.in: Likewise.
48235 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48236 * util/powerpc/ieee1275/misc.c: Likewise.
48237 * video/bitmap.c: Likewise.
48238 * video/video.c: Likewise.
48239 * video/i386/pc/vbe.c: Likewise.
48240 * video/i386/pc/vbeblit.c: Likewise.
48241 * video/i386/pc/vbefill.c: Likewise.
48242 * video/i386/pc/vbeutil.c: Likewise.
48243 * video/readers/tga.c: Likewise.
48244
3572d015 482452007-07-02 Robert Millan <rmh@aybabtu.com>
48246
48247 * conf/i386-efi.rmk: Replace obsolete reference to
48248 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48249 with util/getroot.c.
48250 * conf/powerpc-ieee1275.rmk: Likewise.
48251 * conf/sparc64-ieee1275.rmk: Likewise.
48252
48253 * util/grub-emu.c (main): Fix unchecked pointer handling.
48254
2c2a681b 482552007-07-02 Robert Millan <rmh@aybabtu.com>
48256
48257 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48258 invocation to fail, in order to support partition-less media.
48259
48260 * util/i386/pc/grub-install.in: Likewise.
48261
48262 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48263 which fs or partmap modules are needed (akin to its sister scripts).
48264
48265 Also use grub-probe to get rid of unportable /proc/mounts check.
48266
48267 Print the same informational message that the other scripts do, before
fe6b695a 48268 exiting.
2c2a681b 48269
6193defe 482702007-06-23 Robert Millan <rmh@aybabtu.com>
48271
fe6b695a 48272 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 48273 a font file can be found and, if so, echo the GRUB path to it.
48274
48275 * util/update-grub.in: Handle multiple terminals depending on user
48276 input, platform availability and font file presence. Propagate
48277 variables of our findings to /etc/grub.d/ children.
48278
48279 * util/grub.d/00_header.in: Handle multiple terminals, based on
48280 environment setup by update-grub.
48281
eface1dc 482822007-06-23 Robert Millan <rmh@aybabtu.com>
48283
ba50d28f 48284 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 48285
bf697e28 482862007-06-21 Robert Millan <rmh@aybabtu.com>
48287
48288 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48289 indicate end of data section in kernel image.
48290 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48291 GRUB_KERNEL_MACHINE_DATA_END.
48292
48293 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48294 space for it.
48295 * kern/i386/efi/startup.S: Likewise.
48296
48297 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48298 during image generation. Implement --prefix option to override this
48299 patch.
48300 * util/i386/efi/grub-mkimage.c: Likewise.
48301
48302 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48303 code to make path relative to its root into a separate function.
48304
48305 * util/i386/pc/grub-install.in: Use newly provided
48306 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48307 pass the result to grub-install --prefix.
48308
baa574b4 483092007-06-13 Robert Millan <rmh@aybabtu.com>
48310
48311 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48312 DEFAULT_DEVICE_MAP.
48313 * util/grub-emu.c: Use above definitions from misc.h instead of
48314 defining them.
48315 * util/grub-mkdevicemap.c: Likewise.
48316 * util/i386/pc/grub-setup.c: Likewise.
48317 * util/grub-probe.c: Likewise.
48318 (probe): Abort with grub_util_error() when either
48319 grub_guess_root_device or grub_util_get_grub_dev fails.
48320
0215dcbf 483212007-06-12 Robert Millan <rmh@aybabtu.com>
48322
48323 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48324 "pager" assignment.
48325 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48326 "pcdata".
48327 * util/grub-probe.c (probe): Likewise for "drive_name".
48328
8af2ab7b 483292007-06-11 Robert Millan <rmh@aybabtu.com>
48330
48331 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48332 not just the cdrom one.
48333
59d31694 483342007-06-11 Robert Millan <rmh@aybabtu.com>
48335
48336 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48337 Add --pkglibdir=DIR option to override pkglibdir.
48338 Mention --image-type=TYPE in help output.
48339 Fix --grub-mkimage (it was a no-op).
fe6b695a 48340 Abort gracefully when no parameter is given.
59d31694 48341
7ee367e4 483422007-06-11 Robert Millan <rmh@aybabtu.com>
48343
48344 * util/i386/pc/grub-mkrescue.in: New file.
48345 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48346 * Makefile.in: Handle bin_SCRIPTS.
48347
29b0ed46 483482007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48349
48350 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48351 list of video modes.
48352
c0f90770 483532007-06-06 Robert Millan <rmh@aybabtu.com>
48354
48355 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48356 file doesn't exist, or if it is in a filesystem grub can't read.
48357
48358 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48359 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48360 header comment to fit in 80 columns when the variables are resolved.
48361
48362 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48363 could be identified by update-grub. Remove redundant check for
fe6b695a 48364 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 48365 handles that).
48366
fb36dc26 483672007-06-04 Robert Millan <rmh@aybabtu.com>
48368
48369 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48370
48371 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48372
48373 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48374
0c68c93e 483752007-06-04 Robert Millan <rmh@aybabtu.com>
48376
48377 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48378
48379 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48380 grub_apple_partition_map_fini.
48381
48382 * util/biosdisk.c
48383 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48384 to access >2 TiB disks).
48385
48386 Print disk->total_sectors with %llu instead of %lu, since this
48387 variable is always 64-bit (prevents wrong disk size from being displayed
48388 on either >2 TiB disk or big-endian CPU).
48389
48390 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48391 into a generic case that supports all (sane) partition maps.
48392
48393 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48394 breaks big-endian.
48395
48396 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48397 and grub_apple_partition_map_fini() after that.
48398
0f23eb74 483992007-06-01 Robert Millan <rmh@aybabtu.com>
48400
48401 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48402
48403 * util/grub.d/00_header.in: Only enable gfxterm when
48404 convert_system_path_to_grub_path() succeeds.
48405
42c71976 484062007-05-20 Robert Millan <rmh@aybabtu.com>
48407
48408 * util/update-grub_lib.in: New file.
48409 * DISTLIST: Add update-grub_lib.in.
48410 * conf/common.rmk: Generate update-grub_lib and install it in
48411 $(lib_DATA).
48412 * Makefile.in: Add install routine for $(lib_DATA).
48413
48414 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48415 function provided by update-grub_lib to support arbitrary paths of
48416 unifont.pff.
48417 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48418 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48419
5beb2291 484202007-05-19 Robert Millan <rmh@aybabtu.com>
48421
48422 * commands/i386/cpuid.c: New module.
48423 * DISTLIST: Add it.
48424 * conf/i386-efi.rmk: Enable cpuid.mod.
48425 * conf/i386-pc.rmk: Likewise.
48426
7262eca1 484272007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48428
48429 * kern/disk.c (grub_disk_read): Check return value of
48430 grub_realloc().
48431
260ba823 484322007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48433
48434 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48435 arrays.
48436 * disk/raid.c (grub_raid_open): Likewise.
48437
1ecb6cf2 484382007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48439
48440 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48441 stack instead of on the heap.
48442
48443 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48444 before doing a read on it.
48445
48446 * configure.ac: Only use -fno-stack-protector for the target
48447 environment.
f19dbdb7 48448
21c8cbb1 484492007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48450
48451 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48452 __attribute_ ((unused)) to mode_type argument.
48453
48454 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 48455
21c8cbb1 48456 * kern/misc.c (memcmp): Fix prototype.
48457
48458 * include/grub/partition.h [GRUB_UTIL]
48459 (grub_gpt_partition_map_init): Add prototype.
48460 (grub_gpt_partition_map_fini): Likewise.
48461
48462 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48463 at the right place.
48464
48465 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48466 (grub_fat_read_data): Likewise.
48467 (grub_fat_find_dir): Likewise.
48468
48469 * font/manager.c (find_glyph): Make table a const.
48470 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 48471
849d55d3 484722007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48473
48474 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48475 code, first search for device in /dev/mapper, then in /dev.
48476 (grub_util_get_grub_dev): New function.
48477 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48478 prototype.
48479 * util/grub-probe.c (probe): Remove check for RAID, call
48480 grub_util_get_grub_dev() instead of
48481 grub_util_biosdisk_get_grub_dev().
48482 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48483 grub_util_biosdisk_get_grub_dev().
48484 * util/i386/pc/grub-setup.c (main): Likewise.
48485
8fff7c2f 484862007-05-16 Robert Millan <rmh@aybabtu.com>
48487
48488 * DISTLIST: Update for the latest changes.
48489 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48490 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48491 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48492 grub/util/biosdisk.h.
48493 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48494 grub/util/biosdisk.h.
48495
48e12b52 484962007-05-16 Robert Millan <rmh@aybabtu.com>
48497
48498 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48499
46b9d128 485002007-05-16 Robert Millan <rmh@aybabtu.com>
48501
48502 * util/i386/efi/grub-install.in: New.
48503 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48504 newly added grub-install.
48505 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48506 include.
48507 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48508 grub/util/biosdisk.h.
48509 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48510 grub/util/biosdisk.h.
48511
2d1a40a9 485122007-05-16 Robert Millan <rmh@aybabtu.com>
48513
48514 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48515 * include/grub/util/biosdisk.h: ... here.
48516 * util/i386/pc/biosdisk.c: Moved to ...
48517 * util/biosdisk.c: ... here.
48518 * util/i386/pc/getroot.c: Moved to ...
48519 * util/getroot.c: ... here.
48520 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48521 * util/grub-mkdevicemap.c: ... here.
48522 * util/i386/pc/grub-probe.c: Moved to ...
48523 * util/grub-probe.c: ... here.
48524
9e26e3bc 485252007-05-15 Robert Millan <rmh@aybabtu.com>
48526
48527 * util/update-grub.in: Remove duplicated line in grub.cfg header
48528 message.
48529
57f96397 485302007-05-13 Robert Millan <rmh@aybabtu.com>
48531
48532 * util/update-grub.in: Fix a few assumptions about the devices holding
48533 /, /boot and /boot/grub being the same.
48534 * util/grub.d/00_header.in: Likewise.
48535 * util/grub.d/10_hurd.in: Likewise.
48536 * util/grub.d/10_linux.in: Likewise.
48537
48538 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48539 patterns. Use that to define the `.old' suffix as older than `'.
48540
48541 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48542
48543 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48544 the grub.cfg header message.
48545
2e610d62 485462007-05-11 Robert Millan <rmh@aybabtu.com>
48547
48548 * util/update-grub.in: Create device.map if it doesn't already exist,
48549 before attempting to run grub-probe.
48550 Check for grub-probe and grub-mkdevicemap with the same code
48551 grub-install is using.
48552 Remove test mode.
48553
3f6a10ef 485542007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48555
48556 * Makefile.in: Add the datarootdir autoconf variable.
48557
02e7b75e 485582007-05-09 Robert Millan <rmh@aybabtu.com>
48559
48560 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 48561 fail gracefully if dev->disk->partition == NULL.
02e7b75e 48562
75f396cc 485632007-05-07 Robert Millan <rmh@aybabtu.com>
48564
48565 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48566 determine partition map module.
48567 * util/i386/pc/grub-install.in: Use this feature to decide which
48568 partition module to load, instead of hardcoding pc and gpt.
48569
da65cb36 485702007-05-07 Robert Millan <rmh@aybabtu.com>
48571
48572 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48573 source directory differs from build directory.
48574
b57d6a91 485752007-05-05 Robert Millan <rmh@aybabtu.com>
48576
48577 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48578 initialisation.
48579
509d00f1 485802007-05-05 Robert Millan <rmh@aybabtu.com>
48581
48582 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48583
c48f23ef 485842007-05-05 Robert Millan <rmh@aybabtu.com>
48585
48586 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48587 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48588
20b97658 485892007-05-05 Robert Millan <rmh@aybabtu.com>
48590
48591 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48592 (grub_probe_SOURCES): Likewise.
48593 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48594 GPT and initialize dos_part and bsd_part accordingly.
48595 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48596 install_bsd_part.
48597 (main): Activate gpt module for use during partition identification,
48598 and deactivate it afterwards.
48599 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48600 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48601 partition identification, and deactivate it afterwards.
48602
99123174 486032007-05-05 Robert Millan <rmh@aybabtu.com>
48604
48605 * term/i386/pc/console.c (grub_console_fini): Call
48606 grub_term_set_current() before grub_term_unregister().
48607
ebd97f6e 486082007-05-04 Robert Millan <rmh@aybabtu.com>
48609
48610 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48611 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48612 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48613 and update-grub_DATA.
48614 * conf/common.rmk: Build and install update-grub components.
48615 * conf/common.mk: Regenerate.
48616 * util/update-grub.in: New. Core of update-grub.
48617 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48618 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48619 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48620 * util/grub.d/README: New. Document grub.d directory layout.
48621
b06a264d 486222007-05-01 Robert Millan <rmh@aybabtu.com>
48623
48624 * util/grub-emu.c: Move initialization functions
48625 grub_util_biosdisk_init() and grub_init_all() before
48626 grub_util_biosdisk_get_grub_dev(), which relies on them.
48627
41f0050e 486282007-04-19 Robert Millan <rmh@aybabtu.com>
48629
48630 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48631 it is used later.
48632
04582bb3 486332007-04-18 Jerone Young <jerone@gmail.com>
48634
f19dbdb7 48635 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 48636 stanza.
48637
08db4632 486382007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 48639
08db4632 48640 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48641 continue on and look for device node with real device name.
48642
801b76be 486432007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 48644
fe6b695a 48645 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 48646 ability.
48647 * Makefile.in: Add autoconf package transformation code.
48648 * util/i386/pc/grub-install.in: Likewise.
48649 * util/powerpc/ieee1275/grub-install.in: Likewise.
48650
6795c4e1 486512007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48652
48653 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48654 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48655 (EXT2_REVISION): Likewise.
48656 (EXT2_INODE_SIZE): Likewise.
48657 (struct grub_ext2_block_group): Added a missing member
48658 "used_dirs".
48659 (grub_ext2_read_inode): Divide by the inode size in a superblock
48660 instead of 128 to obtain INODES_PER_BLOCK.
48661 Use the macro EXT2_INODE_SIZE instead of directly using
48662 SBLOCK->INODE_SIZE.
48663
d70af616 486642007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48665
48666 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48667 superblock instead of the structure size to compute an
48668 offset. This fixes the problem that GRUB could not read a
48669 filesystem when inode size is different from 128-byte.
48670
3b801603 486712007-03-05 Marco Gerards <marco@gnu.org>
48672
48673 * normal/main.c (read_config_file): When "menu" is not set, create
48674 an initial context.
48675
4785bfe4 486762007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48677
48678 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48679 (HEAP_LIMIT): New macro.
48680 (grub_claim_heap): Claim memory up to `heaplimit'.
48681
a0cbb023 486822007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48683
48684 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48685 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48686 (_start): Likewise.
48687 (grub_arch_modules_addr): Return address after `_end'.
48688 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48689 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48690 (add_segments): Calculate `_end' from phdr size and location.
48691 (ALIGN_UP): Moved to ...
48692 * include/grub/misc.h: here.
48693 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48694 New macro.
48695 (GRUB_IEEE1275_MODULE_BASE): Removed.
48696
fd7d8eba 486972007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48698
48699 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48700 loop boundary.
48701
9b09e6fc 487022007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48703
48704 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48705 All users updated.
48706 (grub_elf64_load_hook_t): Likewise.
48707 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48708 debug output.
48709
3ce27299 487102007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48711
48712 * kern/mm.c: Update copyright.
48713 (grub_mm_debug): Correct syntax error.
48714 (grub_mm_dump_free): New function.
48715 (grub_debug_free): Call `grub_free'.
48716 * include/grub/mm.h: Update copyright.
48717 (grub_mm_dump_free): Add declaration.
48718
077d5fee 487192007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48720
48721 * include/grub/ieee1275/ieee1275.h: Update copyright.
48722 * kern/powerpc/ieee1275/init.c: Likewise.
48723 * kern/powerpc/ieee1275/openfw.c: Likewise.
48724
48725 * loader/powerpc/ieee1275/linux.c: Likewise.
48726 * include/grub/elfload.h: Likewise.
48727 * kern/elf.c: Likewise.
48728 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48729 callers.
48730 (grub_elf64_load): Likewise.
48731 (grub_elf32_load_segment): Move to a nested function.
48732 (grub_elf64_load_segment): Likewise.
48733
dc946850 487342007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48735
48736 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48737 prototype.
48738 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48739 (grub_heap_len): Likewise.
48740 (HEAP_SIZE): New macro.
48741 (grub_claim_heap): New function.
48742 (grub_machine_init): Don't claim heap directly. Call
48743 `grub_claim_heap'.
48744 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48745 (grub_available_iterate): New function.
48746
baa2a121 487472007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48748
48749 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48750 * configure.ac: Use it for testing the HOST and TARGET compilers.
48751
4fe9862e 487522006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48753
48754 * Makefile.in (enable_grub_emu): New variable.
48755 * configure.ac (--enable-grub-emu): New option.
48756 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48757 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48758 * conf/i386-pc.rmk: Likewise.
48759 * conf/powerpc-ieee1275.rmk: Likewise.
48760 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48761
a8aa5762 487622006-12-12 Marco Gerards <marco@gnu.org>
48763
48764 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48765
48766 * kern/env.c (grub_env_unset): Don't free the member `value' when
48767 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48768 pointer.
48769
48770 * normal/main.c (current_menu): Removed.
48771 (free_menu): Unset the `menu' environment variable.
48772 (grub_normal_menu_addentry): Make use of the environment variable
48773 `menu', instead of using the global `current_menu'. Allocate
48774 memory for the sourcecode of this entry.
48775 (read_config_file): New argument `nested', changed all callers.
48776 Only in the case of a new context, initialize a new menu. Set the
48777 `menu' environment variable.
48778 (grub_normal_execute): Don't set and unset the environment
48779 variable `menu' here anymore. Only free the menu when leaving the
48780 context.
48781
48782 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48783 leak.
48784
957b3a3e 487852006-12-11 Marco Gerards <marco@gnu.org>
48786
48787 * normal/menu_entry.c (run): Fix off by one bug so the last line
48788 is executed. Move the loader check to outside the loop.
48789
ef875714 487902006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48791
48792 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48793
4e739985 487942006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48795
48796 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48797 the number of sectors. Reported by Andrey Shuvikov
48798 <mr_hyro@yahoo.com>.
f19dbdb7 48799
790707f2 488002006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48801
48802 * kern/disk.c (grub_disk_read): When there is a read error, always
48803 try to read only the necessary data.
f19dbdb7 48804
790707f2 48805 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48806 disk/raid.c.
48807 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48808 prototype.
48809 [GRUB_UTIL] (grub_raid_fini): Likewise.
48810 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 48811 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 48812 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48813 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48814 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48815 and grub_raid_fini().
f19dbdb7 48816
03e58196 488172006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48818
48819 * include/grub/types.h (__unused): Rename to UNUSED.
48820 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48821 (grub_elf64_size): Likewise.
f19dbdb7 48822
ae4f23bf 488232006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48824
48825 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48826 grub_error_push and grub_error_pop in the error-handling path.
48827 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48828 length.
48829
2166cc83 488302006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48831
48832 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48833 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48835 (kernel_elf_SOURCES): Likewise.
48836 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48837 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48838 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48839 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48840 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48841 (elf_mod_SOURCES): New variable.
48842 (elf_mod_CFLAGS): Likewise.
48843 (elf_mod_LDFLAGS): Likewise.
48844 * include/grub/types.h (__unused): New macro.
48845 * include/grub/elfload.h: New file.
48846 * kern/elf.c: Likewise.
48847 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48848 (ELF32_LOADMASK): New macro.
48849 (ELF64_LOADMASK): Likewise.
48850 (vmlinux): Removed.
48851 (grub_linux_load32): New function.
48852 (grub_linux_load64): Likewise.
48853 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48854 Use grub_elf_t instead of grub_file_t.
48855
a09d5aa5 488562006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48857
48858 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48859 `catch_result' to struct set_color_args.
48860
d976fc51 488612006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48862
48863 * normal/menu.c: Include grub/script.h.
48864 * normal/menu_entry.c: Likewise.
48865 * include/grub/normal.h: Do not include grub/script.h.
48866
67507549 488672006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48868
48869 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48870
69203a99 488712006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48872
48873 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48874 disk.
48875 (grub_disk_close): Print debug messages when closing a disk.
48876 (grub_disk_read): Print debug messages when disk read fails.
48877 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48878 filesystem type.
48879 * kern/partition.c: Include misc.h.
48880 (grub_partition_iterate): Print debug messages when detecting
48881 partition type.
48882
e2b8278c 488832006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48884
48885 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48886 is negative.
48887 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48888
97b2f2ff 488892006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48890
48891 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48892 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48893
6555d655 488942006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48895
48896 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48897 instead of sizeof(lv). Patch by Michael Guntsche.
48898
4d42b77f 488992006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48900
48901 * disk/lvm.c: Rename VGS to VG_LIST.
48902 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48903 (grub_lvm_open): Likewise.
48904 Thanks to Michael Guntsche for finding this bug.
48905
5d74d927 489062006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48907
48908 * configure.ac (AC_INIT): Bumped to 1.95.
48909
a1bb27e4 489102006-10-14 Robert Millan <rmh@aybabtu.com>
48911
48912 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48913 with "/dev/.static/dev/md".
48914
e0994b8b 489152006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48916
48917 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48918 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48919 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48920 DRIVE_NAME are always freed.
48921
48922 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48923 DOS_PART, as a DOS partition is counted from one instead of zero
48924 now. Reported by Robert Millan.
48925
ddd5cee9 489262006-10-14 Robert Millan <rmh@aybabtu.com>
48927
48928 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48929 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48930 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48931 string returned by grub_guess_root_device.
48932 * util/i386/pc/grub-setup.c: Likewise.
48933 * util/i386/pc/grub-probefs.c: Likewise.
48934
48935 * util/i386/pc/grub-probefs.c: Rename to ...
48936 * util/i386/pc/grub-probe.c: ... this.
48937 * DISTLIST: Remove grub-probefs, add grub-probe.
48938 * conf/i386-efi.rmk: Likewise.
48939 * conf/i386-pc.rmk: Likewise.
48940 * util/i386/pc/grub-install.in: Likewise.
48941
48942 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48943 choose which information we want to print.
48944
2b002173 489452006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48946
48947 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48948 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48949 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48950 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48951 video/readers/tga.c and video/i386/pc/vbeutil.c.
48952
489532006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48954
48955 Added support for RAID and LVM.
f19dbdb7 48956
2b002173 48957 * disk/lvm.c: New file.
48958 * disk/raid.c: Likewise.
48959 * include/grub/lvm.h: Likewise.
f19dbdb7 48960 * include/grub/raid.h: Likewise.
2b002173 48961 * include/grub/util/lvm.h: Likewise.
48962 * include/grub/util/raid.h: Likewise.
48963 * util/lvm.c: Likewise.
48964 * util/raid.c: Likewise.
48965
48966 * include/grub/disk.h (grub_disk_dev_id): Add
48967 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48968 (grub_disk_get_size): New prototype.
48969 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48970 returns a partition.
48971 (grub_disk_get_size): New function.
f19dbdb7 48972
2b002173 48973 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48974 verbatim if grub_install_dos_part is -2.
48975
48976 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48977 and LVM devices.
48978
48979 * util/i386/pc/grub-setup.c (setup): New argument
48980 MUST_EMBED. Force embedding of GRUB when the argument is
48981 true. Close FILE before returning.
48982 (main): Add support for RAID and LVM.
f19dbdb7 48983
2b002173 48984 * conf/common.rmk: Add RAID and LVM modules.
48985 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48986 util/lvm.c.
48987 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48988
48989 * kern/misc.c (grub_strstr): New function.
48990 * include/grub/misc.h (grub_strstr): New prototype.
48991
050548d0 489922006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48993
48994 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48995
da849d2d 489962006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48997
48998 * kern/misc.c (grub_strtoull): Guess the base only if not
48999 specified.
49000
97b2f2ff 490012006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 49002
49003 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49004 PowerMac support.
49005
97b2f2ff 490062006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 49007
49008 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49009
49010 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49011 Remove `flags' argument. All callers changed.
49012 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49013 (IEEE1275_IHANDLE_INVALID): New variable.
49014 (IEEE1275_CELL_INVALID): New variable.
49015 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49016 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49017 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49018 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49019 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49020 codes from Open Firmware. All callers updated.
49021 (grub_ieee1275_next_property): Directly return Open Firmware return
49022 code.
49023 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49024 Standardize error checking from `grub_ieee1275_get_property'.
49025 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49026 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49027
97b2f2ff 490282006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 49029
49030 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49031 `instance_to_package_args' to `instance_to_path_args'.
49032
49033 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49034 `grub_ieee1275_chosen'.
49035
49036 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49037 `grub_ieee1275_interpret'.
49038
97b2f2ff 490392006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 49040
49041 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49042
97b2f2ff 490432006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 49044
49045 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49046 (__cmpdi): Likewise.
49047
49048 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49049 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49050 `grub_ssize_t'.
49051
02bb8acc 49052 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 49053
49054 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49055 to type `grub_ssize_t'.
49056 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49057
7f9a8531 490582006-09-22 Marco Gerards <marco@gnu.org>
49059
49060 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49061 newlines.
49062
b5ef1102 490632006-09-22 Marco Gerards <marco@gnu.org>
49064
49065 * commands/echo.c: New file.
49066
49067 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49068
49069 * conf/common.rmk (echo_mod_SOURCES): New variable.
49070 (echo_mod_CFLAGS): Likewise.
49071 (echo_mod_LDFLAGS): Likewise.
49072
2cff3677 490732006-09-22 Marco Gerards <marco@gnu.org>
49074
49075 * normal/main.c (get_line): Malloc memory instead of using
49076 preallocated memory. Removed the arguments `cmdline' and
49077 `max_len'. Updated all callers.
49078
6ba4688b 490792006-09-22 Marco Gerards <marco@gnu.org>
49080
49081 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49082 (normal_mod_DEPENDENCIES): Likewise.
49083
49084 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49085 (normal_mod_DEPENDENCIES): Likewise.
49086
49087 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49088
e02ac02c 490892006-09-22 Johan Rydberg <jrydberg@gnu.org>
49090
49091 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49092 programs.
49093 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49094 (normal_mod_DEPENDENCIES): Likewise.
49095 * conf/i386-pc.mk: Regenerate.
49096 * conf/i386-efi.mk: Likewise
49097 * conf/common.mk: Likewise.
49098 * conf/powerpc-ieee1275.mk: Likewise.
49099 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 49100
8d252e44 491012006-09-22 Robert Millan <rmh@aybabtu.com>
49102
49103 Sync with i386 version.
49104 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49105 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49106
209bf7ac 491072006-09-21 Robert Millan <rmh@aybabtu.com>
49108
49109 Import from GRUB Legacy (lib/device.c):
49110 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49111 (init_device_map) [__linux__]: Add support for I2O devices.
49112
6b146090 491132006-09-14 Marco Gerards <marco@gnu.org>
49114
49115 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49116 `-melf_i386'.
49117
e38600a8 491182006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 49119
49120 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49121 /boot/grub/*.lst.
78fa1790 49122
2952da5d 49123 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 49124
2952da5d 49125 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49126 before adding it to device.map.
49127
01b82a64 491282006-08-15 Johan Rydberg <jrydberg@gnu.org>
49129
fe6b695a 49130 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 49131 compiles a file; using the -MD option.
49132 * conf/common.mk: Regenerate.
49133 * conf/i386-pc.mk: Likewise.
49134 * conf/i386-efi.mk: Likewise.
49135 * conf/powerpc-ieee1275.mk: Likewise.
49136 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 49137
1064790d 491382006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49139
49140 Move the prototypes of grub_setjmp and grub_longjmp to
49141 cpu/setjmp.h, so that each architecture may specify different
49142 attributes.
f19dbdb7 49143
1064790d 49144 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49145 (grub_longjmp): Likewise.
49146 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49147 (grub_longjmp): Likewise.
49148 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49149 (grub_longjmp): Likewise.
49150
49151 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49152 [!GRUB_UTIL] (grub_longjmp): Removed.
49153
29dda3ed 491542006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49155
49156 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49157 "color!" method does not return any value.
49158
ad2a06ed 491592006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49160
49161 * include/grub/bitmap.h: New file.
49162
49163 * include/grub/i386/pc/vbeutil.h: Likewise.
49164
49165 * video/bitmap.c: Likewise.
49166
49167 * video/readers/tga.c: Likewise.
49168
49169 * video/i386/pc/vbeutil.c: Likewise.
49170
49171 * commands/videotest.c: Code cleanup and updated to reflect to new
49172 video API.
49173
49174 * term/gfxterm.c: Likewise.
49175
49176 * video/video.c: Likewise.
49177
49178 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49179 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49180 (bitmap_mod_SOURCES): New entry.
49181 (bitmap_mod_CFLAGS): Likewise.
49182 (bitmap_mod_LDFLAGS): Likewise.
49183 (tga_mod_SOURCES): Likewise.
49184 (tga_mod_CFLAGS): Likewise.
49185 (tga_mod_LDFLAGS): Likewise.
49186
49187 * include/grub/video.h (grub_video_blit_operators): New enum type.
49188 (grub_video_render_target): Changed as forward declaration and moved
49189 actual definition to be video driver specific.
49190 (grub_video_adapter.blit_bitmap): Added blitting operator.
49191 (grub_video_adapter.blit_render_target): Likewise.
49192 (grub_video_blit_bitmap): Likewise.
49193 (grub_video_blit_render_target): Likewise.
49194
49195 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49196 driver specific render target definition.
49197 (grub_video_vbe_map_rgba): Added driver internal helper.
49198 (grub_video_vbe_unmap_color): Updated to use
49199 grub_video_i386_vbeblit_info.
49200 (grub_video_vbe_get_video_ptr): Likewise.
49201
49202 * include/grub/i386/pc/vbeblit.h
49203 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49204 grub_video_i386_vbeblit_info.
49205 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49206 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49207 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49208 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49209 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49210 (grub_video_i386_vbeblit_index_index): Likewise.
49211 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49212 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49213 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49214 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49215 operator.
49216 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49217 operator.
49218
49219 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49220 include/grub/i386/pc/vbeblit.h.
49221
49222 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49223 Updated to use grub_video_i386_vbeblit_info.
49224 (grub_video_i386_vbefill_R8G8B8): Likewise.
49225 (grub_video_i386_vbefill_index): Likewise.
49226 (grub_video_i386_vbefill): Added generic filler.
49227
49228 * video/i386/pc/vbefill.c: Updated to reflect changes on
49229 include/grub/i386/pc/vbefill.h.
49230
49231 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49232 grub_video_i386_vbeblit_info.
49233 (grub_video_vbe_unmap_color): Likewise.
49234 (grub_video_vbe_blit_glyph): Likewise.
49235 (grub_video_vbe_scroll): Likewise.
49236 (grub_video_vbe_draw_pixel): Removed function.
49237 (grub_video_vbe_get_pixel): Likewise.
49238 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49239 updated code to use it.
49240 (common_blitter): Added common blitter for render target and bitmap.
49241 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49242 (grub_video_vbe_blit_render_target): Likewise.
49243
bc8c036d 492442006-07-30 Johan Rydberg <jrydberg@gnu.org>
49245
49246 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49247 is in text mode if there is no console control protocol instance
49248 available.
49249
684a8eff 492502006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49251
49252 * include/grub/video.h: Code cleanup.
49253
49254 * include/grub/i386/pc/vbe.h: Likewise.
49255
49256 * video/i386/pc/vbe.c: Likewise.
49257
49258 * video/i386/pc/vbeblit.c: Likewise.
49259
49260 * video/i386/pc/vbefill.c: Likewise.
49261
49262 * video/video.c: Likewise. Also added more comments.
49263
5915059b 492642006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49265
49266 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49267 (struct grub_biosdisk_dap): Likewise.
49268
49269 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49270 linkage settings for all functions.
49271
90ce5d56 492722006-07-12 Marco Gerards <marco@gnu.org>
49273
49274 * configure.ac (--enable-mm-debug): Fix typo.
49275
49276 * genkernsyms.sh.in: Use proper quoting for `CC'.
49277
43e7f879 492782006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49279
49280 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49281 (normal_mod_ASFLAGS): Remove "-m32".
49282
4889bdec 492832006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49284
49285 * util/misc.c: Include config.h.
49286 [!HAVE_MEMALIGN]: Do not include malloc.h.
49287 (grub_memalign): Use posix_memalign, if present. Then, use
49288 memalign, if present. Otherwise, emit an error.
49289
49290 * util/grub-emu.c: Do not include malloc.h.
49291
49292 * include/grub/util/misc.h: Include unistd.h. This is required for
49293 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49294 D. Eades III <hde@foobar-qux.org>.
49295
49296 * configure.ac (AC_GNU_SOURCE): Added.
49297 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49298 type.
49299
fd39d4da 493002006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49301
49302 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49303 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49304
b786f3b5 493052006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49306
49307 * include/grub/types.h (grub_host_addr_t): Rename to
49308 grub_target_addr_t.
49309 (grub_host_off_t): Rename to grub_target_off_t.
49310 (grub_host_size_t): Rename to grub_target_size_t.
49311 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49312 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49313
49314 * include/grub/kernel.h (struct grub_module_header): Change type
49315 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49316 (grub_module_info): Likewise.
f19dbdb7 49317
051988bb 493182006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49319
49320 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49321 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49322 Velazquez <jesus.velazquez@gmail.com>.
49323
deae281b 493242006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49325
49326 Count partitions from 1 instead of 0 in the string representation
49327 of partitions. Still use 0-based internally.
f19dbdb7 49328
deae281b 49329 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49330 (sun_partition_map_iterate): Use grub_partition_t instead of
49331 struct grub_partition *. Cast DESC->START_CYLINDER to
49332 grub_uint64_t after converting the endian.
49333 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49334 (sun_partition_map_get_name): Add 1 to P->INDEX.
49335
49336 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49337 PCDATA->DOS_PART.
49338 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49339
49340 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49341 zero instead of one.
49342 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49343 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49344
49345 * partmap/apple.c (apple_partition_map_iterate): Change the type
49346 of POS to unsigned.
49347 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49348 (apple_partition_map_get_name): Add 1 into P->INDEX.
49349
49350 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49351 of POS to unsigned.
49352 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49353 calculate the offset of a partition.
49354 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49355 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49356
49357 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49358 SECTOR to grub_disk_addr_t.
49359 (acorn_partition_map_iterate): Likewise.
49360 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49361 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49362 top.
49363 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49364
49365 * kern/i386/pc/init.c (make_install_device): Add 1 into
49366 GRUB_INSTALL_DOS_PART.
49367
49368 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49369 conditional.
49370
524a1e6a 493712006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49372
49373 Clean up the code to support 64-bit addressing in disks and
49374 files. This change is not enough for filesystems yet.
f19dbdb7 49375
524a1e6a 49376 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49377 type of "start" to grub_uint64_t.
49378 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49379 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49380 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49381 convert addresses.
49382
49383 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49384 to grub_disk_addr_t.
49385
49386 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49387 string.
49388
49389 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49390
49391 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49392 to char *.
49393
49394 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49395
49396 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49397
49398 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49399
49400 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49401 to grub_off_t, to detect an error from grub_file_seek.
49402 (grub_multiboot_load_elf32): Likewise.
49403
49404 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49405 maximum unsigned long value when an overflow is detected.
49406 (grub_strtoull): New function.
49407 (grub_divmod64): Likewise.
49408 (grub_lltoa): use grub_divmod64.
49409
49410 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49411 grub_disk_addr_t.
49412 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49413 the pointer to next character. Use grub_strtoull instead of
49414 grub_strtoul.
49415 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49416 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49417 respectively.
49418
fe6b695a 49419 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 49420 return value is signed.
49421 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49422 test if OFFSET is less than zero, as OFFSET is unsigned now.
49423
49424 * kern/disk.c (struct grub_disk_cache): Change the type of
49425 "sector" to grub_disk_addr_t.
49426 (grub_disk_cache_get_index): Change the type of SECTOR to
49427 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49428 unsigned after shifting.
49429 (grub_disk_cache_invalidate): Change the type of SECTOR to
49430 grub_disk_addr_t.
49431 (grub_disk_cache_unlock): Likewise.
49432 (grub_disk_cache_store): Likewise.
49433 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49434 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49435 grub_disk_addr_t and grub_uint64_t, respectively.
49436 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49437 body, as the value of OFFSET is tweaked by
49438 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49439 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49440 respectively.
49441 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49442 body, as the value of OFFSET is tweaked by
49443 grub_disk_check_range. Change the types of LEN and N to
49444 grub_size_t.
49445
49446 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49447 and "saved_offset" to grub_off_t.
49448 (test_header): Cast BUF to char *.
49449 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49450 to char *.
49451 (grub_gzio_read): Change the types of OFFSET and SIZE to
49452 grub_off_t and grub_size_t, respectively.
49453
49454 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49455 Removed.
49456 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49457 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49458 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49459 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49460 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49461
49462 * include/grub/types.h (grub_off_t): Unconditionally set to
49463 grub_uint64_t.
49464 (grub_disk_addr_t): Changed to grub_uint64_t.
49465
49466 * include/grub/partition.h (struct grub_partition): Change the
49467 types of "start", "len" and "offset" to grub_disk_addr_t,
49468 grub_uint64_t and grub_disk_addr_t, respectively.
49469 (grub_partition_get_start): Return grub_disk_addr_t.
49470 (grub_partition_get_len): Return grub_uint64_t.
49471
49472 * include/grub/misc.h (grub_strtoull): New prototype.
49473 (grub_divmod64): Likewise.
49474
49475 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49476 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49477 grub_off_t, respectively.
49478 All callers and references changed.
49479
49480 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49481 grub_size_t in "read".
49482 All callers and references changed.
49483
49484 * include/grub/file.h (struct grub_file): Change the types of
49485 "offset" and "size" to grub_off_t and grub_off_t,
49486 respectively. Change the type of SECTOR to grub_disk_addr_t in
49487 "read_hook".
49488 (grub_file_read): Change the type of LEN to grub_size_t.
49489 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49490 grub_off_t.
49491 (grub_file_size): Return grub_off_t.
49492 (grub_file_tell): Likewise.
49493 All callers and references changed.
49494
49495 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49496 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49497 "write".
49498 (struct grub_disk): Change the type of "total_sectors" to
49499 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 49500 "read_hook".
524a1e6a 49501 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49502 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49503 (grub_disk_write): Likewise.
49504 All callers and references changed.
49505
49506 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49507 char * for grub_strncmp to silence gcc.
49508 (grub_iso9660_mount): Likewise.
49509 (grub_iso9660_mount): Likewise.
49510 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49511 return statement.
49512 (grub_iso9660_iterate_dir): Likewise.
49513 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49514
49515 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49516 LEN to grub_disk_addr_t and grub_size_t, respectively.
49517
49518 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49519
49520 * fs/jfs.c (grub_jfs_read_file): Likewise.
49521
49522 * fs/minix.c (grub_jfs_read_file): Likewise.
49523
49524 * fs/sfs.c (grub_jfs_read_file): Likewise.
49525
49526 * fs/ufs.c (grub_jfs_read_file): Likewise.
49527
49528 * fs/xfs.c (grub_jfs_read_file): Likewise.
49529
49530 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49531 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49532 respectively.
49533
49534 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49535 BLKNR to -1 instead of returning GRUB_ERRNO.
49536 (grub_ext2_read_file): Change the types of SECTOR and
49537 LEN to grub_disk_addr_t and grub_size_t, respectively.
49538
49539 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49540 LEN to grub_disk_addr_t and grub_size_t, respectively.
49541
49542 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49543 grub_file_read.
49544
49545 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49546 string. Do not cast SECTOR explicitly.
49547
49548 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49549 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49550 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49551 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49552 over 2TB and LBA mode is not supported, raise an error.
49553 (get_safe_sectors): New function.
49554 (grub_biosdisk_read): Use get_safe_sectors.
49555 (grub_biosdisk_write): Likewise.
49556
49557 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49558 (grub_efidisk_write): Likewise.
49559
49560 * disk/loopback.c (delete_loopback): Cosmetic changes.
49561 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49562 correctly.
49563 (grub_loopback_open): Likewise.
49564 (grub_loopback_read): Likewise. Also, change the type of POS to
49565 grub_off_t, and fix the usage of grub_memset.
49566
49567 * commands/i386/pc/play.c: Include grub/machine/time.h.
49568
49569 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49570 print FILE->SIZE.
49571
49572 * commands/configfile.c: Include grub/env.h.
49573
49574 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49575 GRUB_ERRNO directly instead. Change the type of POS to
49576 grub_off_t. Follow the coding standard.
49577
49578 * commands/blocklist.c: Include grub/partition.h.
49579 (grub_cmd_blocklist): Return an error if the underlying device is
49580 not a disk. Take the starting sector of a partition into account,
49581 if a partition is used.
49582
49583 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49584 a length field.
49585 (lba_mode): Support 64-bit addresses.
49586 (chs_mode): Likewise.
49587 (copy_buffer): Adapted to the new offsets of a length field and a
49588 segment field.
49589 (blocklist_default_start): Allocate 64-bit space.
49590
49591 * boot/i386/pc/boot.S (force_lba): Removed.
49592 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 49593 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 49594 space.
49595 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49596 is useless.
49597 (lba_mode): Refactored to support a 64-bit address. More size
49598 optimization.
49599 (setup_sectors): Likewise.
49600
53af98ad 496012006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49602
49603 * DISTLIST: Added include/grub/i386/linux.h. Removed
49604 include/grub/i386/pc/linux.h
49605
49606 * configure.ac (AC_INIT): Bumped to 1.94.
49607
49608 * config.guess: Updated from gnulib.
49609 * config.sub: Likewise.
49610 * install-sh: Likewise.
49611 * mkinstalldirs: Likewise.
49612
b4c1940a 496132006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49614
49615 * conf/common.rmk (grub_modules_init.lst): Depended on
49616 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49617 MODSRCFILES.
49618
49619 * genmk.rb (PModule::rule): Reverted the previous change.
49620
cfca1cfd 496212006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49622
49623 * conf/common.rmk (grub_modules_init.lst): Depends on
49624 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49625 that the target does not exist before producing.
49626 (grub_modules_init.h): Remove the target before generating.
49627 (grub_emu_init.c): Likewise.
49628
49629 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49630
aa6d7826 496312006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49632
49633 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49634 for the target-specific tests. Make sure that we also have the
49635 up-to-date target variables for those tests.
49636
26c607b9 496372006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49638
49639 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49640 (PModule::rule): Likewise.
49641
0162321a 496422006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49643
49644 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49645 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49646 target-specific flags should be prefixed.
49647 (PModule::rule): Likewise.
49648
6c826348 496492006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49650
49651 * configure.ac (CMP): Check if cmp is available explicitly.
49652
b977bf01 496532006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49654
49655 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49656 (target_cpu): New variable.
49657 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 49658
b977bf01 49659 * util/i386/pc/grub-install.in (host_cpu): Removed.
49660 (target_cpu): New variable.
49661 (pkglibdir): Use target_cpu instead of host_cpu.
49662
49663 * util/genmoddep.c: Removed.
f19dbdb7 49664
b977bf01 49665 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49666 instead of GRUB_HOST_SIZEOF_VOID_P.
49667 * kern/dl.c: Likewise.
49668
49669 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49670 ...
49671 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49672 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49673 (GRUB_TARGET_SIZEOF_LONG): ... this.
49674 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49675 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49676 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49677 to ...
49678 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49679 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49680 (GRUB_TARGET_SIZEOF_LONG): ... this.
49681 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49682 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49683 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49684 to ...
49685 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49686 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49687 (GRUB_TARGET_SIZEOF_LONG): ... this.
49688 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49689 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49690
49691 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49692 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49693 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49694 instead of GRUB_HOST_SIZEOF_LONG.
49695 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49696 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49697 GRUB_CPU_WORDS_BIGENDIAN.
49698 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49699 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49700 grub_host_ssize_t.
49701
49702 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49703 (genmoddep_SOURCES): Likewise.
49704 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49705 (genmoddep_SOURCES): Likewise.
49706 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49707 (genmoddep_SOURCES): Likewise.
49708 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49709 Likewise.
49710 (genmoddep_SOURCES): Likewise.
49711
49712 * genmoddep.awk: New file.
49713
49714 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49715 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49716 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49717 (PModule::rule): Likewise.
49718 (Program::rule): Likewise.
49719 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49720 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49721 respectively.
49722
49723 * configure.ac: Rewritten intensively to use host and target
49724 instead of build and host, respectively.
49725
49726 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49727 (host_cpu): Removed.
49728 (target_cpu): New variable.
49729 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49730 (BUILD_CC): Removed.
49731 (BUILD_CFLAGS): Likewise.
49732 (BUILD_CPPFLAGS): Likewise.
49733 (TARGET_CC): New variable.
49734 (TARGET_CFLAGS): Likewise.
49735 (TARGET_CPPFLAGS): Likewise.
49736 (TARGET_LDFLAGS): Likewise.
49737 (AWK): Likewise.
49738 (include): Use target_cpu instead of host_cpu.
49739 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 49740
b977bf01 49741 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49742
f09771a1 497432006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49744
49745 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49746 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49747 field 'false' to 'exec_on_false'.
49748 (grub_script_create_cmdif): Renamed argument names to reflect above
49749 changes.
49750
49751 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49752
49753 * normal/script.c (grub_script_create_cmdif): Likewise.
49754
118f4fb3 497552006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49756
49757 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49758 top.
49759 (grub_hfsplus_btree_recptr): Likewise.
49760 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49761 FILEBLOCK both to pass a block number and store next block
49762 number.
49763 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49764 overflow file correctly. Specify errors appropriately, because
49765 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49766 grub_hfsplus_btree_recptr to get the pointer to a found key.
49767 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49768 is found.
49769
49770 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49771 linux.mod.
49772 (_linux_mod_SOURCES): New variable.
49773 (_linux_mod_CFLAGS): Likewise.
49774 (_linux_mod_LDFLAGS): Likewise.
49775 (linux_mod_SOURCES): Likewise.
49776 (linux_mod_CFLAGS): Likewise.
49777 (linux_mod_LDFLAGS): Likewise.
49778
49779 * DISTLIST: Added loader/i386/efi/linux.c,
49780 loader/i386/efi/linux_normal.c and
49781 include/grub/i386/efi/loader.h.
49782
49783 * loader/i386/efi/linux.c: New file.
49784 * loader/i386/efi/linux_normal.c: Likewise.
49785 * include/grub/i386/efi/loader.h: Likewise.
49786
89a7d726 497872006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49788
49789 * commands/blocklist.c: New file.
49790
49791 * DISTLIST: Added commands/blocklist.c.
49792
49793 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 49794 color for the background, and a darker color for the foreground.
89a7d726 49795 (grub_console_checkkey): Return READ_KEY.
49796 (grub_console_cls): Set the background to
49797 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49798
49799 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49800
49801 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49802 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49803
49804 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49805 prototype.
49806
49807 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49808 BG. The spec is wrong again.
49809
49810 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49811 prototype.
49812 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49813
49814 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49815 commands/blocklist.c.
49816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 49817
89a7d726 49818 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49819 (blocklist_mod_SOURCES): New variable.
49820 (blocklist_mod_CFLAGS): Likewise.
49821 (blocklist_mod_LDFLAGS): Likewise.
49822
75c8f258 498232006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49824
49825 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49826 duplication.
49827 (lba_mode): Use %eax more intensively to reduce the code size.
49828
da2eb181 498292006-05-20 Marco Gerards <marco@gnu.org>
49830
49831 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49832
49833 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49834 for `menuentry'.
49835 (script): Accept leading newlines.
49836 (newlines): New rule to describe 0 or more newlines.
49837 (commands): Accept `command' with trailing newline. Fixed the
49838 order in which arguments were passed to `grub_script_add_cmd'.
49839 Accept commands separated by newlines.
49840 (function): Changed to accept newlines.
49841 (menuentry) Rewritten.
49842
49843 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49844 front of the list, instead of to the end.
49845
577b4050 498462006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49847
49848 * util/i386/pc/grub-install.in (bindir): New variable.
49849 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49850 Shaver <lbgwjl@gmail.com>.
49851
0d6e1189 498522006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49853
49854 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49855 grub/machine/linux.h
49856 * loader/i386/pc/linux.c: Likewise.
49857
49858 * include/grub/i386/pc/linux.h: Moved to ...
49859 * include/grub/i386/linux.h: ... here.
49860
49861 * include/grub/i386/linux.h (struct linux_kernel_params): New
49862 struct.
f19dbdb7 49863
31b86e9f 498642006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49865
49866 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49867 checking.
49868 (grub_video_vbe_blit_glyph): Likewise.
49869 (grub_video_vbe_blit_bitmap): Likewise.
49870 (grub_video_vbe_blit_render_target): Likewise.
49871
83b984de 498722006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49873
49874 * configure.ac (--with-platform): Properly quote the square
49875 brackets.
49876
5f0413bd 498772006-05-08 Marco Gerards <marco@gnu.org>
49878
49879 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49880 this...
49881 (kernel_elf_HEADERS): ...to this. Updated all users.
49882 (grubof_symlist.c): Renamed from this...
49883 (kernel_elf_symlist.c): ...to this. Updated all users.
49884 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49885 (grubof_SOURCES): Renamed from this...
49886 (kernel_elf_SOURCES): ...to this.
49887 (grubof_HEADERS): Renamed from this...
49888 (kernel_elf_HEADERS): ...to this.
49889 (grubof_CFLAGS): Renamed from this...
49890 (kernel_elf_CFLAGS): ...to this.
49891 (grubof_ASFLAGS): Renamed from this...
49892 (kernel_elf_ASFLAGS): ...to this.
49893 (grubof_LDFLAGS): Renamed from this...
49894 (kernel_elf_LDFLAGS): ...to this.
49895
49896 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49897 this...
49898 (kernel_elf_HEADERS): ...to this. Updated all users.
49899 (grubof_symlist.c): Renamed from this...
49900 (kernel_elf_symlist.c): ...to this. Updated all users.
49901 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49902 (grubof_SOURCES): Renamed from this...
49903 (kernel_elf_SOURCES): ...to this.
49904 (grubof_HEADERS): Renamed from this...
49905 (kernel_elf_HEADERS): ...to this.
49906 (grubof_CFLAGS): Renamed from this...
49907 (kernel_elf_CFLAGS): ...to this.
49908 (grubof_ASFLAGS): Renamed from this...
49909 (kernel_elf_ASFLAGS): ...to this.
49910 (grubof_LDFLAGS): Renamed from this...
49911 (kernel_elf_LDFLAGS): ...to this.
49912
49913 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49914 `kernel.elf' instead of `grubof'.
49915
05568c2e 499162006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49917
49918 Add --with-platform to configure. Use pkglibdir instead of
49919 pkgdatadir. This is reported by Roger Leigh.
49920
49921 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49922 (host_vendor): Likewise.
49923 (host_os): Likewise.
49924 (pkgdatadir): Likewise.
49925 (platform): New variable.
49926 (pkglibdir): Likewise.
49927 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 49928
05568c2e 49929 * util/i386/pc/grub-install.in (datadir): Removed.
49930 (host_vendor): Likewise.
49931 (host_os): Likewise.
49932 (pkgdatadir): Likewise.
49933 (platform): New variable.
49934 (pkglibdir): Likewise.
49935 Use PKGLIBDIR instead of PKGDATADIR.
49936
49937 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49938 instead of GRUB_DATADIR.
49939 (main): Likewise.
49940 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49941 (main): Likewise.
49942 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49943 (main): Likewise.
49944
49945 * configure.ac (--with-platform): New option.
49946 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49947
49948 * Makefile.in: Include a makefile based on PLATFORM instead of
49949 HOST_VENDOR.
49950 (pkgdatadir): Not appended by the machine type.
49951 (pkglibdir): Appended by the machine type.
49952 (host_vendor): Removed.
49953 (platform): New variable.
49954 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49955 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49956 (uninstall): Likewise.
49957
4e93851c 499582006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49959
49960 Use the environment context in the menu. Remove the commands
49961 "default" and "timeout", and use variables instead.
f19dbdb7 49962
4e93851c 49963 * normal/menu.c: Include grub/env.h.
49964 (print_entry): Cast TITLE to silence gcc.
49965 (get_timeout): New function.
49966 (set_timeout): Likewise.
49967 (get_entry_number): Likewise.
49968 (run_menu): Use a default entry, a fallback entry and a timeout
49969 in the environment variables "default", "fallback" and
49970 "timeout". Also, tweak the default entry if it is not within the
49971 current menu entries.
49972 (grub_menu_run): Use a fallback entry in the environment variable
49973 "fallback".
49974
49975 * normal/main.c (read_config_file): Do not initialize
49976 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49977 NEWMENU->TIMEOUT.
49978 (grub_normal_execute): Use a data slot to store the menu.
49979
49980 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49981 fallback_entry and timeout.
49982 (struct grub_menu_list): Removed.
49983 (grub_menu_list_t): Likewise.
49984 (struct grub_context): Likewise.
49985 (grub_context_t): Likewise.
49986 (grub_context_get): Likewise.
49987 (grub_context_get_current_menu): Likewise.
49988 (grub_context_push_menu): Likewise.
49989 (grub_context_pop_menu): Likewise.
49990 (grub_default_init): Likewise.
49991 (grub_default_fini): Likewise.
49992 (grub_timeout_init): Likewise.
49993 (grub_timeout_fini): Likewise.
49994
49995 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49996 and timeout.mod.
49997 (normal_mod_SOURCES): Removed normal/context.c.
49998
49999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
50000 commands/default.c, commands/timeout.c and normal/context.c.
50001 (normal_mod_SOURCES): Removed normal/context.c.
50002
50003 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50004 commands/timeout.c and normal/context.c.
50005 (normal_mod_SOURCES): Removed normal/context.c.
50006
50007 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50008 commands/default.c, commands/timeout.c and normal/context.c.
50009 (normal_mod_SOURCES): Removed normal/context.c.
50010
50011 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50012 timeout.mod.
50013 (default_mod_SOURCES): Removed.
50014 (default_mod_CFLAGS): Likewise.
50015 (default_mod_LDFLAGS): Likewise.
50016 (timeout_mod_SOURCES): Removed.
50017 (timeout_mod_CFLAGS): Likewise.
50018 (timeout_mod_LDFLAGS): Likewise.
50019
50020 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50021 normal/context.c.
50022
50023 * commands/default.c: Removed.
50024 * commands/timeout.c: Likewise.
50025 * normal/context.c: Likewise.
50026
1eb9cc1d 500272006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50028
50029 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50030
385bd9c1 500312006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50032
50033 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50034 "next" to "prev" for readability.
50035 (struct grub_env_sorted_var): New struct.
50036 (grub_env_context): Renamed to ...
50037 (initial_context): ... this.
50038 (grub_env_var_context): Renamed to ...
50039 (current_context): ... this.
50040 (grub_env_find): Look only at CURRENT_CONTEXT.
50041 (grub_env_context_open): Rewritten to copy exported variables from
50042 previous context.
50043 (grub_env_context_close): Rewritten according to the new
50044 scheme. Also, add an assertion to prevent the initial context from
50045 removed.
50046 (grub_env_insert): Removed the code for the sorted list.
50047 (grub_env_remove): Likewise.
50048 (grub_env_export): Simply mark the variable with
50049 GRUB_ENV_VAR_GLOBAL.
50050 (grub_env_set): A cosmetic change for naming consistency.
50051 (grub_env_get): Likewise.
50052 (grub_env_unset): Likewise.
50053 (grub_env_iterate): Rewritten to sort variables within this
50054 function.
50055 (grub_register_variable_hook): Fixed for naming consistency. Call
50056 grub_env_find again, only if NAME is not found at the first time.
50057 (mangle_data_slot_name): New function.
50058 (grub_env_set_data_slot): Likewise.
50059 (grub_env_get_data_slot): Likewise.
50060 (grub_env_unset_data_slot): Likewise.
50061
50062 * include/grub/env.h (grub_env_var_type): New enum.
50063 (GRUB_ENV_VAR_LOCAL): New constant.
50064 (GRUB_ENV_VAR_GLOBAL): Likewise.
50065 (GRUB_ENV_VAR_DATA): Likewise.
50066 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50067 "type".
50068 (grub_env_set): Replace VAR with NAME for consistency.
50069 (grub_register_variable_hook): Likewise.
50070 (grub_env_export): Specify the name of the argument.
50071 (grub_env_set_data_slot): New prototype.
50072 (grub_env_get_data_slot): Likewise.
50073 (grub_env_unset_data_slot): Likewise.
50074
7f362539 500752006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50076
50077 Extend the loader so that GRUB can accept a loader which comes
50078 back to GRUB when a loaded image exits. Also, this change adds
50079 support for a chainloader on EFI.
f19dbdb7 50080
7f362539 50081 * term/efi/console.c: Include grub/misc.h.
50082 (grub_console_checkkey): Display a scan code on the top for
50083 debugging. This will be removed once the EFI port gets stable.
50084 Correct the scan code mapping.
50085
50086 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50087 allocate memory from larger regions, in order to reduce the number
50088 of allocated regions. Otherwise, the MacOSX loader panics.
50089 (filter_memory_map): Avoid less than 1MB for compatibility with
50090 other loaders.
50091 (add_memory_regions): Allocate from the tail of a region, if
50092 possible, to avoid allocating a region near to 1MB, for the MacOSX
50093 loader.
50094
50095 * kern/efi/init.c (grub_efi_set_prefix): Specify
50096 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50097
50098 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50099 argument IMAGE_HANDLE and specify it to get a loaded image.
50100 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50101 grub_efi_get_loaded_image.
fe6b695a 50102 (grub_efi_get_filename): Divide the length by the size of
7f362539 50103 grub_efi_char16_t.
50104 (grub_efi_get_device_path): New function.
50105 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50106 the length by the size of grub_efi_char16_t for a file path device
50107 path node.
50108
50109 * kern/loader.c (grub_loader_noreturn): New variable.
50110 (grub_loader_set): Accept a new argument NORETURN. Set
50111 GRUB_LOADER_NORETURN to NORETURN.
50112 All callers changed.
50113 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50114 grub_machine_fini.
50115
50116 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50117 prototype.
50118 (grub_efi_get_loaded_image): Take an argument to specify an image
50119 handle.
50120
50121 * include/grub/loader.h (grub_loader_set): Added one more argument
50122 NORETURN.
50123
50124 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50125 instead of grub_efi_open_protocol.
50126 (grub_efidisk_get_device_name): Likewise.
50127 (grub_efidisk_close): Print a newline.
50128 (grub_efidisk_get_device_handle): Fixed to use
50129 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50130 GRUB_EFI_DEVICE_PATH_TYPE.
50131
50132 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50133 * kern/efi/efi.c (device_path_guid): ... here.
50134
50135 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50136 chain.mod.
50137 (kernel_mod_HEADERS): Added efi/disk.h.
50138 (_chain_mod_SOURCES): New variable.
50139 (_chain_mod_CFLAGS): Likewise.
50140 (_chain_mod_LDFLAGS): Likewise.
50141 (chain_mod_SOURCES): Likewise.
50142 (chain_mod_CFLAGS): Likewise.
50143 (chain_mod_LDFLAGS): Likewise.
50144
50145 * DISTLIST: Added include/grub/efi/chainloader.h,
50146 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50147
50148 * include/grub/efi/chainloader.h: New file.
50149 * loader/efi/chainloader.c: Likewise.
50150 * loader/efi/chainloader_normal.c: Likewise.
50151
c0111d6e 501522006-04-30 Marco Gerards <marco@gnu.org>
50153
50154 * commands/configfile.c (grub_cmd_source): New function.
50155 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50156 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50157
df5341da 501582006-04-30 Marco Gerards <marco@gnu.org>
50159
50160 * normal/execute.c (grub_script_execute_cmd): Change the return
50161 type to `grub_err_t'. Correctly return the error.
50162 (grub_script_execute_cmdline): In case a command line is not a
50163 command or a function, try to interpret it as an assignment.
50164
f85934bd 501652006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50166
50167 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50168 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50169 skip a node whose name is obviously invalid as UTF-16,
50170 i.e. contains a NUL character. Stop the iteration when the last
50171 directory entry is found. Instead of using the return value of
50172 grub_hfsplus_btree_iterate_node, store the value in RET and use
50173 it, because the iterator can be stopped by the last directory
50174 entry.
50175
8f8a2cf8 501762006-04-30 Marco Gerards <marco@gnu.org>
50177
50178 * include/grub/env.h (grub_env_export): New prototype. Reported
50179 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50180
a27e84ce 501812006-04-30 Marco Gerards <marco@gnu.org>
50182
50183 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50184 size of the extents in a catalog file record.
50185
eaef0553 501862006-04-29 Marco Gerards <marco@gnu.org>
50187
50188 * commands/configfile.c (grub_cmd_configfile): Execute the
50189 configfile within its own context.
50190
50191 * include/grub/env.h (grub_env_context_open): New prototype.
50192 (grub_env_context_close): Likewise.
50193
50194 * kern/env.c (grub_env): Removed.
50195 (grub_env_sorted): Likewise.
50196 (grub_env_context): New variable.
50197 (grub_env_var_context): Likewise.
50198 (grub_env_find): Search both the active context and the global
50199 context.
50200 (grub_env_context_open): New function.
50201 (grub_env_context_close): Likewise.
50202 (grub_env_insert): Likewise.
50203 (grub_env_remove): Likewise.
50204 (grub_env_export): Likewise.
50205 (grub_env_set): Changed to use helper functions to avoid code
50206 duplication.
50207 (grub_env_iterate): Rewritten so both the current context and the
50208 global context are being used.
50209
50210 * normal/command.c (export_command): New function.
50211 (grub_command_init): Register the `export' function.
50212
7b455f4d 502132006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50214
50215 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50216 explicitly to suppress gcc's warnings.
50217 * fs/fat.c (grub_fat_find_dir): Likewise.
50218 (grub_fat_label): Likewise.
50219 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50220 (grub_xfs_mount): Likewise.
50221 (grub_xfs_label): Likewise.
50222 * fs/affs.c (grub_affs_mount): Likewise.
50223 (grub_affs_label): Likewise.
50224 (grub_affs_iterate_dir): Likewise.
50225 * fs/sfs.c (grub_sfs_mount): Likewise.
50226 (grub_sfs_iterate_dir): Likewise.
50227 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50228 * fs/hfs.c (grub_hfs_mount): Likewise.
50229 (grub_hfs_cmp_catkeys): Likewise.
50230 (grub_hfs_find_dir): Likewise.
50231 (grub_hfs_dir): Likewise.
50232 (grub_hfs_label): Likewise.
50233 * fs/jfs.c (grub_jfs_mount): Likewise.
50234 (grub_jfs_opendir): Likewise.
50235 (grub_jfs_getent): Likewise.
50236 (grub_jfs_lookup_symlink): Likewise.
50237 (grub_jfs_label): Likewise.
50238 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50239 (grub_hfsplus_iterate_dir): Likewise.
50240 (grub_hfsplus_btree_iterate_node): Made static.
50241
50242 * util/grub-emu.c (prefix): New variable.
50243 (grub_machine_set_prefix): New function.
50244 (main): Do not set the environment variable "prefix" here. Only
50245 set PREFIX, which is used later by grub_machine_set_prefix.
50246
50247 * include/grub/video.h: Do not include grub/symbol.h.
50248 (grub_video_register): Not exported. This symbol is not defined in
50249 the kernel.
50250 (grub_video_unregister): Likewise.
50251 (grub_video_iterate): Likewise.
50252 (grub_video_setup): Likewise.
50253 (grub_video_restore): Likewise.
50254 (grub_video_get_info): Likewise.
50255 (grub_video_get_blit_format): Likewise.
50256 (grub_video_set_palette): Likewise.
50257 (grub_video_get_palette): Likewise.
50258 (grub_video_set_viewport): Likewise.
50259 (grub_video_get_viewport): Likewise.
50260 (grub_video_map_color): Likewise.
50261 (grub_video_map_rgb): Likewise.
50262 (grub_video_map_rgba): Likewise.
50263 (grub_video_fill_rect): Likewise.
50264 (grub_video_blit_glyph): Likewise.
50265 (grub_video_blit_bitmap): Likewise.
50266 (grub_video_blit_render_target): Likewise.
50267 (grub_video_scroll): Likewise.
50268 (grub_video_swap_buffers): Likewise.
50269 (grub_video_create_render_target): Likewise.
50270 (grub_video_delete_render_target): Likewise.
50271 (grub_video_set_active_render_target): Likewise.
50272
50273 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50274 Undefined.
50275 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50276
50277 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50278 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50279 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50280 instead of $(srcdir)/genkernsyms.sh.
50281
50282 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50283 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50284 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50285 instead of $(srcdir)/genkernsyms.sh.
50286
50287 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50288 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50289 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50290 instead of $(srcdir)/genkernsyms.sh.
50291
50292 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50293 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50294 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50295 instead of $(srcdir)/genkernsyms.sh.
50296
50297 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50298 genkernsyms.sh.
50299
50300 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50301 genkernsyms.sh.
50302 (gensymlist.sh): New target.
50303 (genkernsyms.sh): Likewise.
50304
50305 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50306 genkernsyms.sh.in and gensymlist.sh.in.
50307
50308 * genkernsyms.sh: Removed.
50309 * gensymlist.sh: Likewise.
f19dbdb7 50310
7b455f4d 50311 * genkernsyms.sh.in: New file.
50312 * gensymlist.sh.in: Likewise.
50313
1885bb27 503142006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50315
50316 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50317 clobber "prefix", since we may have already set it manually.
50318
71538dff 503192006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50320
50321 * kern/misc.c (abort): New alias for grub_abort.
50322
2965c7cc 503232006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50324
50325 A new machine-specific function "grub_machine_set_prefix" is
50326 defined. This is called after loading modules, so that a prefix
50327 initialization can use modules. Also, this change adds an
50328 intensive debugging feature for the memory manager via the
50329 configure option "--enable-mm-debug".
f19dbdb7 50330
2965c7cc 50331 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50332 PART.LEN.
50333
50334 * kern/sparc64/ieee1275/init.c (abort): Removed.
50335 (grub_stop): Likewise.
50336 (grub_exit): New function.
50337 (grub_set_prefix): Renamed to ...
50338 (grub_machine_set_prefix): ... this.
50339 (grub_machine_init): Do not call grub_set_prefix.
50340
50341 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50342 (grub_machine_set_prefix): ... this.
50343 (grub_machine_init): Do not call grub_set_prefix.
50344
50345 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50346 (grub_machine_init): Do not set the prefix here.
50347
50348 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50349
50350 * kern/efi/init.c: Include grub/mm.h.
50351 (grub_efi_set_prefix): New function.
50352
50353 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50354 (grub_efi_get_filename): New function.
50355 (grub_print_device_path): Renamed to ...
50356 (grub_efi_print_device_path): ... this.
50357
50358 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50359 [MM_DEBUG] (grub_realloc): Likewise.
50360 [MM_DEBUG] (grub_free): Likewise.
50361 [MM_DEBUG] (grub_memalign): Likewise.
50362 [MM_DEBUG] (grub_mm_debug): New variable.
50363 [MM_DEBUG] (grub_debug_malloc): New function.
50364 [MM_DEBUG] (grub_debug_free): New function.
50365 [MM_DEBUG] (grub_debug_realloc): New function.
50366 [MM_DEBUG] (grub_debug_memalign): New function.
50367
50368 * kern/misc.c (grub_abort): Print a newline to distinguish
50369 the message.
50370
50371 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50372 grub_set_root_dev after loading modules. This is necessary when
50373 setting a prefix depends on modules.
50374
50375 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50376 (grub_efi_print_device_path): ... this.
50377 (grub_efi_get_filename): New prototype.
50378 (grub_efi_set_prefix): Likewise.
50379
50380 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50381 and grub/disk.h.
50382 (grub_efidisk_get_device_handle): New prototype.
50383 (grub_efidisk_get_device_name): Likewise.
50384
50385 * include/grub/mm.h: Include config.h.
50386 (MM_DEBUG): Removed.
50387 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50388 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50389 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50390 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50391 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50392 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50393 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50394 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50395 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50396
50397 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50398
50399 * disk/efi/efidisk.c: Include grub/partition.h.
50400 (iterate_child_devices): New function.
50401 (add_device): First, compare only last device path nodes, so that
50402 devices are sorted by the types.
50403 (grub_efidisk_get_device_handle): New function.
50404 (grub_efidisk_get_device_name): Likewise.
50405
50406 * configure.ac (--enable-mm-debug): New option to enable the
50407 memory manager debugging feature. This makes the binary much
50408 bigger, so is disabled by default.
50409
9cacaa17 504102006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50411
50412 Use grub_abort instead of grub_stop, and grub_exit must be
50413 define in each architecture now. Also, this change adds support
50414 for EFI disks.
f19dbdb7 50415
9cacaa17 50416 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50417 (grub_getkey): New function.
50418 (grub_term_get_current): Likewise.
50419
50420 * util/i386/pc/grub-setup.c: Include grub/term.h.
50421 (grub_getkey): New function.
50422 (grub_term_get_current): Likewise.
50423
50424 * util/misc.c (grub_stop): Renamed to ...
50425 (grub_exit): ... this.
50426
50427 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50428 (grub_exit): ... this.
50429 (grub_machine_init): Use grub_abort instead of abort.
50430 (grub_stop): Removed.
50431
50432 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50433 abort.
50434
50435 * kern/i386/pc/startup.S (grub_exit): New function.
50436 (cold_reboot): New label.
50437
50438 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50439 (grub_efi_init): Call grub_efidisk_init.
50440 (grub_efi_fini): Call grub_efidisk_fini.
50441
50442 * kern/efi/efi.c: Include grub/mm.h.
50443 (grub_efi_console_control_guid): Renamed to ...
50444 (console_control_guid): ... this.
50445 (grub_efi_loaded_image_guid): Renamed to ...
50446 (loaded_image_guid): ... this.
50447 (grub_efi_locate_handle): New function.
50448 (grub_efi_open_protocol): Likewise.
50449 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50450 GRUB_EFI_CONSOLE_CONTROL_GUID.
50451 (grub_efi_exit): Removed.
50452 (grub_stop): Likewise.
50453 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50454 (grub_exit): New function.
50455 (grub_print_device_path): Likewise.
50456
50457 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50458 (grub_enter_rescue_mode): Register "exit".
50459
50460 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50461 (grub_abort): New function.
50462
50463 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50464
50465 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50466
50467 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50468
50469 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50470 (grub_print_device_path): New prototype.
50471 (grub_efi_locate_handle): Likewise.
50472 (grub_efi_open_protocol): Likewise.
50473
50474 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50475 * disk/efi/efidisk.c: Likewise.
50476
50477 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50478
50479 * include/grub/efi/console_control.h
50480 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50481
50482 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50483 last 8 bytes as an array.
50484 (GRUB_EFI_DISK_IO_GUID): New macro.
50485 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50486 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50487 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50488 grub_uint8_t.
50489 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50490 (struct grub_efi_device_path): Rename the member "sub_type" to
50491 "subtype".
50492 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50493 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50494 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50495 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50496 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50497 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50498 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50499 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50500 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50501 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50502 (struct grub_efi_pci_device_path): New structure.
50503 (grub_efi_pci_device_path_t): New type.
50504 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50505 (struct grub_efi_pccard_device_path): New structure.
50506 (grub_efi_pccard_device_path_t): New type.
50507 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50508 (struct grub_efi_memory_mapped_device_path): New structure.
50509 (grub_efi_memory_mapped_device_path_t): New type.
50510 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50511 (struct grub_efi_vendor_device_path): New structure.
50512 (grub_efi_vendor_device_path_t): New type.
50513 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50514 (struct grub_efi_controller_device_path): New structure.
50515 (grub_efi_controller_device_path_t): New type.
50516 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50517 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50518 (struct grub_efi_acpi_device_path): New structure.
50519 (grub_efi_acpi_device_path_t): New type.
50520 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50521 (struct grub_efi_expanded_acpi_device_path): New structure.
50522 (grub_efi_expanded_acpi_device_path_t): New type.
50523 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50524 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50525 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50526 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50527 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50528 (struct grub_efi_atapi_device_path): New structure.
50529 (grub_efi_atapi_device_path_t): New type.
50530 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50531 (struct grub_efi_fibre_channel_device_path): New structure.
50532 (grub_efi_fibre_channel_device_path_t): New type.
50533 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50534 (struct grub_efi_1394_device_path): New structure.
50535 (grub_efi_1394_device_path_t): New type.
50536 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50537 (struct grub_efi_usb_device_path): New structure.
50538 (grub_efi_usb_device_path_t): New type.
50539 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50540 (struct grub_efi_usb_class_device_path): New structure.
50541 (grub_efi_usb_class_device_path_t): New type.
50542 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50543 (struct grub_efi_i2o_device_path): New structure.
50544 (grub_efi_i2o_device_path_t): New type.
50545 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50546 (struct grub_efi_mac_address_device_path): New structure.
50547 (grub_efi_mac_address_device_path_t): New type.
50548 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50549 (struct grub_efi_ipv4_device_path): New structure.
50550 (grub_efi_ipv4_device_path_t): New type.
50551 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50552 (struct grub_efi_ipv6_device_path): New structure.
50553 (grub_efi_ipv6_device_path_t): New type.
50554 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50555 (struct grub_efi_infiniband_device_path): New structure.
50556 (grub_efi_infiniband_device_path_t): New type.
50557 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50558 (struct grub_efi_uart_device_path): New structure.
50559 (grub_efi_uart_device_path_t): New type.
50560 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50561 (struct grub_efi_vendor_messaging_device_path): New structure.
50562 (grub_efi_vendor_messaging_device_path_t): New type.
50563 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50564 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50565 (struct grub_efi_hard_drive_device_path): New structure.
50566 (grub_efi_hard_drive_device_path_t): New type.
50567 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50568 (struct grub_efi_cdrom_device_path): New structure.
50569 (grub_efi_cdrom_device_path_t): New type.
50570 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50571 (struct grub_efi_vendor_media_device_path): New structure.
50572 (grub_efi_vendor_media_device_path_t): New type.
50573 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50574 (struct grub_efi_file_path_device_path): New structure.
50575 (grub_efi_file_path_device_path_t): New type.
50576 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50577 (struct grub_efi_protocol_device_path): New structure.
50578 (grub_efi_protocol_device_path_t): New type.
50579 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50580 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50581 (struct grub_efi_bios_device_path): New structure.
50582 (grub_efi_bios_device_path_t): New type.
50583 (struct grub_efi_disk_io): New structure.
50584 (grub_efi_disk_io_t): New type.
50585 (struct grub_efi_block_io_media): New structure.
50586 (grub_efi_block_io_media_t): New type.
50587 (struct grub_efi_block_io): New structure.
50588 (grub_efi_block_io_t): New type.
50589
50590 * include/grub/misc.h (grub_stop): Removed.
50591 (grub_exit): New prototype.
50592 (grub_abort): Likewise.
50593
50594 * include/grub/disk.h (enum grub_disk_dev_id): Added
50595 GRUB_DISK_DEVICE_EFIDISK_ID.
50596
50597 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50598 disk/efi/efidisk.c.
50599 (kernel_syms.lst): Remove the target if an error occurs.
50600
49986a9f 506012006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50602
50603 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50604 as it was simply too buggy.
50605
970d3b8a 506062006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50607
50608 * kern/misc.c (grub_lltoa): New function.
50609 (grub_vsprintf): Added support for the long long suffix,
50610 i.e. "ll".
50611
ff04ec24 506122006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50613
50614 * Makefile.in (LDFLAGS): Add variable.
50615 (LD): Remove variable.
50616 * configure.ac: Add -m32 to LDFLAGS.
50617 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50618 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50619 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50620 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50621 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50622 variables.
50623 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50624 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50625 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50626
37e5e1a4 506272006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50628
50629 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50630 length for unknown glyph.
50631
c352d8dd 506322006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50633
2eab1c0d 50634 Add support for pre-loaded modules into the EFI port.
f19dbdb7 50635
2eab1c0d 50636 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50637 completely. Accept one more argument DIR. The caller has changed.
50638
50639 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50640
50641 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50642 (grub_efi_loaded_image_guid): New variable.
50643 (grub_efi_get_loaded_image): New function.
50644 (grub_arch_modules_addr): Likewise.
50645
50646 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50647 prototype.
50648
50649 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50650 (struct grub_efi_loaded_image): New structure.
50651 (grub_efi_loaded_image_t): New type.
50652
506532006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 50654
c352d8dd 50655 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50656 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50657 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50658
6d01d6b4 506592006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50660
50661 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50662
976a4ea0 506632006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50664
50665 * DISTLIST: Added include/grub/efi/console.h,
50666 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50667 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50668
50669 * include/grub/efi/console.h: New file.
50670 * include/grub/efi/time.h: Likewise.
50671 * include/grub/i386/efi/kernel.h: Likewise.
50672 * kern/efi/init.c: Likewise.
50673 * kern/efi/mm.c: Likewise.
50674 * term/efi/console.c: Likewise.
f19dbdb7 50675
976a4ea0 50676 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50677 (grub_stop): Removed.
50678 (grub_get_rtc): Likewise.
50679 (grub_machine_init): Simply call grub_efi_init.
50680 (grub_machine_fini): Call grub_efi_fini.
50681
50682 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50683 (grub_efi_output_string): Removed.
50684 (grub_efi_stall): New function.
50685 (grub_stop): Likewise.
50686 (grub_get_rtc): Likewise.
50687
50688 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50689 (grub_efi_stall): New prototype.
50690 (grub_efi_allocate_pages): Likewise.
50691 (grub_efi_free_pages): Likewise.
50692 (grub_efi_get_memory_map): Likewise.
50693 (grub_efi_mm_init): Likewise.
50694 (grub_efi_mm_fini): Likewise.
50695 (grub_efi_init): Likewise.
50696 (grub_efi_fini): Likewise.
50697
50698 * include/grub/i386/efi/time.h: Do not include
50699 grub/symbol.h. Include grub/efi/time.h.
50700 (GRUB_TICKS_PER_SECOND): Removed.
50701 (grub_get_rtc): Likewise.
50702
50703 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50704 Added padding. The EFI spec is buggy.
50705 (GRUB_EFI_BLACK): New macro.
50706 (GRUB_EFI_BLUE): Likewise.
50707 (GRUB_EFI_GREEN): Likewise.
50708 (GRUB_EFI_CYAN): Likewise.
50709 (GRUB_EFI_RED): Likewise.
50710 (GRUB_EFI_MAGENTA): Likewise.
50711 (GRUB_EFI_BROWN): Likewise.
50712 (GRUB_EFI_LIGHTGRAY): Likewise.
50713 (GRUB_EFI_BRIGHT): Likewise.
50714 (GRUB_EFI_DARKGRAY): Likewise.
50715 (GRUB_EFI_LIGHTBLUE): Likewise.
50716 (GRUB_EFI_LIGHTGREEN): Likewise.
50717 (GRUB_EFI_LIGHTCYAN): Likewise.
50718 (GRUB_EFI_LIGHTRED): Likewise.
50719 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50720 (GRUB_EFI_YELLOW): Likewise.
50721 (GRUB_EFI_WHITE): Likewise.
50722 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50723 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50724 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50725 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50726 (GRUB_EFI_BACKGROUND_RED): Likewise.
50727 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50728 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50729 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50730 (GRUB_EFI_TEXT_ATTR): Likewise.
50731
50732 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50733 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50734 (kernel_mod_HEADERS): Added efi/time.h.
50735
83709125 507362006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50737
50738 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50739 include/grub/efi/api.h, include/grub/efi/console_control.h,
50740 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50741 include/grub/i386/efi/time.h, kern/efi/efi.c,
50742 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50743 and util/i386/efi/grub-mkimage.c.
50744
50745 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50746
50747 * genmk.rb (PModule#rule): Do not export symbols if
50748 #{prefix}_EXPORTS is set to "no".
50749
50750 * conf/i386-efi.mk: New file.
50751 * conf/i386-efi.rmk: Likewise.
50752 * include/grub/efi/api.h: Likewise.
50753 * include/grub/efi/console_control.h: Likewise.
50754 * include/grub/efi/efi.h: Likewise.
50755 * include/grub/efi/pe32.h: Likewise.
50756 * include/grub/i386/efi/time.h: Likewise.
50757 * kern/efi/efi.c: Likewise.
50758 * kern/i386/efi/init.c: Likewise.
50759 * kern/i386/efi/startup.S: Likewise.
50760 * util/i386/efi/grub-mkimage.c: Likewise.
50761
507622006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 50763
50764 * include/grub/script.h: Include <grub/parser.h> and
50765 "grub_script.tab.h".
50766 (struct grub_lexer_param): New struct.
50767 (struct grub_parser_param): Likewise.
50768 (grub_script_create_arglist): Pass the state in an argument.
50769 (grub_script_add_arglist): Likewise.
50770 (grub_script_create_cmdline): Likewise.
50771 (grub_script_create_cmdblock): Likewise.
50772 (grub_script_create_cmdif): Likewise.
50773 (grub_script_create_cmdmenu): Likewise.
50774 (grub_script_add_cmd): Likewise.
50775 (grub_script_arg_add): Likewise.
50776 (grub_script_lexer_ref): Likewise.
50777 (grub_script_lexer_deref): Likewise.
50778 (grub_script_lexer_record_start): Likewise.
50779 (grub_script_lexer_record_stop): Likewise.
50780 (grub_script_mem_record): Likewise.
50781 (grub_script_mem_record_stop): Likewise.
50782 (grub_script_malloc): Likewise.
50783 (grub_script_yylex): Likewise.
50784 (grub_script_yyparse): Likewise.
50785 (grub_script_yyerror): Likewise.
50786 (grub_script_yylex): Likewise.
50787 (grub_script_lexer_init): Return the state.
50788
50789 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50790 (grub_script_lexer_done): Likewise.
50791 (grub_script_lexer_getline): Likewise.
50792 (grub_script_lexer_refs): Likewise.
50793 (script): Likewise.
50794 (newscript): Likewise.
50795 (record): Likewise.
50796 (recording): Likewise.
50797 (recordpos): Likewise.
50798 (recordlen): Likewise.
50799 (grub_script_lexer_init): Return the state instead of setting
50800 global variables.
50801 (grub_script_lexer_ref): Use the newly added argument for state
50802 instead of globals.
50803 (grub_script_lexer_deref): Likewise.
50804 (grub_script_lexer_record_start): Likewise.
50805 (grub_script_lexer_record_stop): Likewise.
50806 (recordchar): Likewise.
50807 (nextchar): Likewise.
50808 (grub_script_yylex2): Likewise.
50809 (grub_script_yylex): Likewise.
50810 (grub_script_yyerror): Likewise.
50811
50812 * normal/parser.y (func_mem): Removed variable.
50813 (menu_entry): Likewise.
50814 (err): Likewise.
50815 (%lex-param): New parser option.
50816 (%parse-param): Likewise.
50817 (script): Always return the AST.
50818 (argument): Pass the state around.
50819 (arguments): Likewise.
50820 (grubcmd): Likewise.
50821 (commands): Likewise.
50822 (function): Likewise.
50823 (menuentry): Likewise.
50824 (if_statement): Likewise.
50825 (if): Likewise.
50826
50827 * normal/script.c (grub_script_memused): Removed variable.
50828 (grub_script_parsed): Likewise.
50829 (grub_script_malloc): Added a state argument. Use that instead of
50830 global variables.
50831 (grub_script_mem_record): Likewise.
50832 (grub_script_mem_record_stop): Likewise.
50833 (grub_script_arg_add): Likewise.
50834 (grub_script_add_arglist): Likewise.
50835 (grub_script_create_cmdline): Likewise.
50836 (grub_script_create_cmdif): Likewise.
50837 (grub_script_create_cmdmenu): Likewise.
50838 (grub_script_add_cmd): Likewise.
50839 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 50840
e2a8c904 508412006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 50842
50843 * normal/command.c (grub_command_init): Remove the title command.
50844
50845 * normal/lexer.c (grub_script_yylex): Renamed from this...
50846 (grub_script_yylex2): ... to this.
50847 (grub_script_yylex): New function. Temporary
50848 introduced to filter some tokens.
50849 (grub_script_yyerror): Print a newline.
50850
50851 * normal/main.c (read_config_file): Output information about the
50852 lines that contain errors. Wait for a key after all lines have
50853 been processed. Don't return an empty menu.
50854
50855 * normal/parser.y (func_mem): Don't initialize.
50856 (menu_entry): Likewise.
50857 (err): New variable.
50858 (script): Don't return anything when an error was encountered.
50859 (ws, returns): Removed rules.
50860 (argument): Disabled concatenated variable support.
50861 (arguments): Remove explicit separators.
50862 (grubcmd): Likewise.
50863 (function): Likewise.
50864 (menuentry): Likewise.
50865 (if): Likewise.
50866 (commands): Likewise. Add error handling.
50867
50868 * normal/script.c (grub_script_create_cmdline): If
50869 `grub_script_parsed' is 0, assume the parser encountered an error.
50870
c9a86192 508712006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50872
50873 * configure.ac: Add support for EFI. Fix the typo
50874 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50875
70f3b243 508762006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50877
50878 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50879 foreign multibyte characters should be shown correctly.
50880
65f201ad 508812006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50882
50883 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50884 calculation.
50885 (read_config_file): Made it to close file before returning.
50886
b4b93674 508872006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50888
50889 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50890 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50891 video/i386/pc/vbefill.c.
50892
50893 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50894 video/i386/pc/vbefill.c.
50895
50896 * include/grub/video.h (grub_video_blit_format): New enum.
50897 (grub_video_mode_info): Added new member blit_format.
50898 (grub_video_get_blit_format): New function prototype.
50899
50900 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50901 function prototype.
50902 (grub_video_vbe_map_rgb): Likewise.
50903 (grub_video_vbe_unmap_color): Likewise.
50904
50905 * include/grub/i386/pc/vbeblit.h: New file.
50906
50907 * include/grub/i386/pc/vbefill.h: New file.
50908
50909 * video/video.c (grub_video_get_blit_format): New function.
50910 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50911 (grub_video_vbe_map_rgb): Likewise.
50912 (grub_video_vbe_unmap_color): Likewise.
50913
50914 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50915 optimized fills.
50916 (grub_video_vbe_blit_render_target): Changed to use more optimized
50917 blits.
50918 (grub_video_vbe_setup): Added detection for optimized settings.
50919 (grub_video_vbe_create_render_target): Likewise.
50920
50921 * video/i386/pc/vbeblit.c: New file.
50922
50923 * video/i386/pc/vbefill.c: New file.
50924
c2379b9c 509252006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50926
50927 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50928 here...
50929
50930 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50931 parsing to support both hex and dec ranges. If filename was missing
50932 show usage information.
50933
bd0d7896 509342006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50935
50936 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50937 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50938
50939 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50940 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50941 (video_mod_SOURCES): Added.
50942 (video_mod_CFLAGS): Likewise.
50943 (video_mod_LDFLAGS): Likewise.
50944 (gfxterm_mod_SOURCES): Likewise.
50945 (gfxterm_mod_CFLAGS): Likewise.
50946 (gfxterm_mod_LDFLAGS): Likewise.
50947 (videotest_mod_SOURCES): Likewise.
50948 (videotest_mod_CFLAGS): Likewise.
50949 (videotest_mod_LDFLAGS): Likewise.
50950 (vesafb_mod_SOURCES): Removed.
50951 (vesafb_mod_CFLAGS): Likewise.
50952 (vesafb_mod_LDFLAGS): Likewise.
50953 (vga_mod_SOURCES): Likewise.
50954 (vga_mod_CFLAGS): Likewise.
50955 (vga_mod_LDFLAGS): Likewise.
50956
50957 * commands/videotest.c: New file.
50958
50959 * font/manager.c (fill_with_default_glyph): Modified to use
50960 grub_font_glyph.
50961 (grub_font_get_glyph): Likewise.
50962 (fontmanager): Renamed from this...
50963 (font_manager): ... to this.
50964
50965 * include/grub/font.h (grub_font_glyph): Added new structure.
50966 (grub_font_get_glyph): Modified to use grub_font_glyph.
50967
50968 * include/grub/misc.h (grub_abs): Added as inline function.
50969
50970 * include/grub/video.h: New file.
50971
50972 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50973 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50974 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50975 (grub_vbe_get_controller_info): Renamed from this...
50976 (grub_vbe_bios_get_controller_info): ... to this.
50977 (grub_vbe_get_mode_info): Renamed from this...
50978 (grub_vbe_bios_get_mode_info): ... to this.
50979 (grub_vbe_set_mode): Renamed from this...
50980 (grub_vbe_bios_set_mode): ... to this.
50981 (grub_vbe_get_mode): Renamed from this...
50982 (grub_vbe_bios_get_mode): ... to this.
50983 (grub_vbe_set_memory_window): Renamed from this...
50984 (grub_vbe_bios_set_memory_window): ... to this.
50985 (grub_vbe_get_memory_window): Renamed from this...
50986 (grub_vbe_bios_get_memory_window): ... to this.
50987 (grub_vbe_set_scanline_length): Renamed from this...
50988 (grub_vbe_set_scanline_length): ... to this.
50989 (grub_vbe_get_scanline_length): Renamed from this...
50990 (grub_vbe_bios_get_scanline_length): ... to this.
50991 (grub_vbe_set_display_start): Renamed from this...
50992 (grub_vbe_bios_set_display_start): ... to this.
50993 (grub_vbe_get_display_start): Renamed from this...
50994 (grub_vbe_bios_get_display_start): ... to this.
50995 (grub_vbe_set_palette_data): Renamed from this...
50996 (grub_vbe_bios_set_palette_data): ... to this.
50997 (grub_vbe_set_pixel_rgb): Removed.
50998 (grub_vbe_set_pixel_index): Likewise.
50999
51000 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
51001 from this...
51002 (grub_vbe_bios_get_controller_info): ... to this.
51003 (grub_vbe_get_mode_info): Renamed from this...
51004 (grub_vbe_bios_get_mode_info): ... to this.
51005 (grub_vbe_set_mode): Renamed from this...
51006 (grub_vbe_bios_set_mode): ... to this.
51007 (grub_vbe_get_mode): Renamed from this...
51008 (grub_vbe_bios_get_mode): ... to this.
51009 (grub_vbe_set_memory_window): Renamed from this...
51010 (grub_vbe_bios_set_memory_window): ... to this.
51011 (grub_vbe_get_memory_window): Renamed from this...
51012 (grub_vbe_bios_get_memory_window): ... to this.
51013 (grub_vbe_set_scanline_length): Renamed from this...
51014 (grub_vbe_set_scanline_length): ... to this.
51015 (grub_vbe_get_scanline_length): Renamed from this...
51016 (grub_vbe_bios_get_scanline_length): ... to this.
51017 (grub_vbe_set_display_start): Renamed from this...
51018 (grub_vbe_bios_set_display_start): ... to this.
51019 (grub_vbe_get_display_start): Renamed from this...
51020 (grub_vbe_bios_get_display_start): ... to this.
51021 (grub_vbe_set_palette_data): Renamed from this...
51022 (grub_vbe_bios_set_palette_data): ... to this.
51023 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51024 getting corrupted after calling it. Added more pushes and pops.
51025 (grub_vbe_bios_set_mode): Likewise.
51026 (grub_vbe_bios_get_mode): Likewise.
51027 (grub_vbe_bios_get_memory_window): Likewise.
51028 (grub_vbe_bios_set_scanline_length): Likewise.
51029 (grub_vbe_bios_get_scanline_length): Likewise.
51030 (grub_vbe_bios_get_display_start): Likewise.
51031 (grub_vbe_bios_set_palette_data): Likewise.
51032
51033 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51034 (cl_insert): Likewise.
51035 (cl_delete): Likewise.
51036
51037 * term/gfxterm.c: New file.
51038
51039 * term/i386/pc/vesafb.c: Removed file.
51040
51041 * video/video.c: New file.
51042
51043 * video/i386/pc/vbe.c (real2pm): Added new function.
51044 (grub_video_vbe_draw_pixel): Likewise.
51045 (grub_video_vbe_get_video_ptr): Likewise.
51046 (grub_video_vbe_get_pixel): Likewise
51047 (grub_video_vbe_init): Likewise.
51048 (grub_video_vbe_fini): Likewise.
51049 (grub_video_vbe_setup): Likewise.
51050 (grub_video_vbe_get_info): Likewise.
51051 (grub_video_vbe_set_palette): Likewise.
51052 (grub_video_vbe_get_palette): Likewise.
51053 (grub_video_vbe_set_viewport): Likewise.
51054 (grub_video_vbe_get_viewport): Likewise.
51055 (grub_video_vbe_map_color): Likewise.
51056 (grub_video_vbe_map_rgb): Likewise.
51057 (grub_video_vbe_map_rgba): Likewise.
51058 (grub_video_vbe_unmap_color): Likewise.
51059 (grub_video_vbe_fill_rect): Likewise.
51060 (grub_video_vbe_blit_glyph): Likewise.
51061 (grub_video_vbe_blit_bitmap): Likewise.
51062 (grub_video_vbe_blit_render_target): Likewise.
51063 (grub_video_vbe_scroll): Likewise.
51064 (grub_video_vbe_swap_buffers): Likewise.
51065 (grub_video_vbe_create_render_target): Likewise.
51066 (grub_video_vbe_delete_render_target): Likewise.
51067 (grub_video_vbe_set_active_render_target): Likewise.
51068 (grub_vbe_set_pixel_rgb): Remove function.
51069 (grub_vbe_set_pixel_index): Likewise.
51070 (index_color_mode): Remove static variable.
51071 (active_mode): Likewise.
51072 (framebuffer): Likewise.
51073 (bytes_per_scan_line): Likewise.
51074 (grub_video_vbe_adapter): Added new static variable.
51075 (framebuffer): Likewise.
51076 (render_target): Likewise.
51077 (initial_mode): Likewise.
51078 (mode_in_use): Likewise.
51079 (mode_list): Likewise.
51080
5f97350b 510812006-03-10 Marco Gerards <marco@gnu.org>
51082
51083 * configure.ac (AC_INIT): Bumped to 1.93.
51084
51085 * DISTLIST: Added `include/grub/hfs.h'.
51086
a3c5c6f8 510872006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51088
51089 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51090 18H, which might help the BIOS falling back to next boot media.
51091
6de53d26 510922006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51093
51094 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51095 Poe Chen <poe.poechen@gmail.com>.
51096
77c4a393 510972006-01-17 Marco Gerards <marco@gnu.org>
51098
51099 * include/grub/normal.h: Include <grub/script.h>.
51100 (grub_command_list): Removed struct.
51101 (grub_command_list_t): Removed type.
51102 (grub_menu_entry): Remove members `num' and `command_list'. Add
51103 members `commands' and `sourcecode'.
51104 * include/grub/script.h: Add inclusion guards.
51105 (grub_script_cmd_menuentry): New struct.
51106 (grub_script_execute_menuentry): New prototype.
51107 (grub_script_lexer_record_start): Likewise.
51108 (grub_script_lexer_record_stop): Likewise.
51109 * normal/execute.c (grub_script_execute_menuentry): New function.
51110 * normal/lexer.c (record, recording, recordpos, recordlen): New
51111 variables.
51112 (grub_script_lexer_record_start): New function.
51113 (grub_script_lexer_record_stop): Likewise.
51114 (recordchar): Likewise.
51115 (nextchar): Likewise.
51116 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51117 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51118 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51119 (current_menu): New variable.
51120 (free_menu): Mainly rewritten.
51121 (grub_normal_menu_addentry): New function.
51122 (read_config_file): Rewritten.
51123 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 51124 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 51125 the menu entry.
51126 (run): Mainly rewritten.
51127 * normal/parser.y (menu_entry): New variable.
51128 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51129 (menuentry): New rule.
51130 (command): Add `menuentry'.
51131 (if_statement): Allow additional returns before `fi'.
51132 * normal/script.c (grub_script_create_cmdmenu): New function.
51133
144f1f98 511342006-01-03 Marco Gerards <marco@gnu.org>
51135
51136 * INSTALL: GNU Bison is required.
51137 * configure.ac: Rewritten the test to detect Bison.
51138 * Makefile.in (YACC): New variable. Reported by Xun Sun
51139 <xun.sun.cn@gmail.com>.
51140
af4b2d89 511412006-01-03 Marco Gerards <marco@gnu.org>
51142
51143 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51144 the HFS+ filesystem to filesystem blocks.
51145 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51146 GCC warning is silenced.
51147
15643b71 511482006-01-03 Marco Gerards <marco@gnu.org>
51149
51150 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51151 read from disk from big endian to host byte order.
51152
00905879 511532006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51154
51155 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51156 documentation.
51157 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51158 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51159 embedded HFS+ filesystem.
51160 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51161 (grub_hfs_sblock): Move from here...
51162 * include/grub/hfs.h: To here... New file.
51163 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51164 documentation.
51165 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51166 New macros.
51167 (grub_hfsplus_volheader): Change type of member `magic' to
51168 `grub_uint16_t'.
51169 (grub_hfsplus_data): Add new member `embedded_offset'.
51170 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51171 returned block.
51172 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51173 Calculate the offset.
51174
8899bc3e 511752005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51176
51177 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51178 Removed.
51179 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51180
ae8c0277 511812005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51182
51183 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51184 ENV->NAME is NULL after allocating ENV->VALUE.
51185
07084456 511862005-12-25 Marco Gerards <marco@gnu.org>
51187
51188 * kern/env.c (grub_env_set): Rewritten the error handling code.
51189
4750f5f1 511902005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51191
51192 * geninit.sh: Made more robust, and more portable.
51193
50214199 511942005-12-25 Marco Gerards <marco@gnu.org>
51195
51196 Add support for Apple HFS+ filesystems.
f19dbdb7 51197
50214199 51198 * fs/hfsplus.c: New file.
51199
51200 * DISTLIST: Added `fs/hfsplus.c'.
51201
51202 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51203 (hfsplus_mod_SOURCES): New variable.
51204 (hfsplus_mod_CFLAGS): Likewise.
51205 (hfsplus_mod_LDFLAGS): Likewise.
51206 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51207 (grub_setup_SOURCES): Likewise.
51208 (grub_mkdevicemap_SOURCES): Likewise.
51209 (grub_emu_SOURCES): Likewise.
51210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51211
51212 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51213
51214 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51215
befaed6c 512162005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51217
51218 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51219 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51220 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51221 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51222 normal/lexer.c, normal/parser.y, normal/script.c, and
51223 partmap/gpt.c.
51224 Removed kern/sparc64/cache.c.
51225
51226 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51227 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51228 grub_emu_init.c.
51229
51230 * configure.ac (AC_INIT): Bumped to 1.92.
51231
6a124103 512322005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51233
51234 * kern/err.c (grub_error_push): Added new function to support error
51235 stacks.
51236 (grub_error_pop): Likewise.
51237 (grub_error_stack_items): New local variable to support error stacks.
51238 (grub_error_stack_pos): Likewise.
51239 (grub_error_stack_assert): Likewise.
51240 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51241 stack depth.
51242 (grub_print_error): Added support to print errors from error stack.
51243
51244 * include/grub/err.h (grub_error_push): Added function prototype.
51245 (grub_error_pop): Likewise.
51246
be973c1b 512472005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51248
51249 * configure.ac: Accept `powerpc64' as host_cpu.
51250 (amd64): Rename to `biarch32'.
51251
51252 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51253 non-cacheline-aligned addresses.
51254
51255 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51256 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51257 if `size' is non-zero.
51258
b04216ab 512592005-12-03 Marco Gerards <mgerards@xs4all.nl>
51260
51261 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51262 and `cd' to make sure the filename is not prefixed with a
51263 directory name.
51264 (pkgdata_MODULES): Add `gpt.mod'.
51265 (gpt_mod_SOURCES): New variable.
51266 (gpt_mod_CFLAGS): Likewise.
51267 (gpt_mod_LDFLAGS): Likewise.
51268
51269 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51270
51271 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51272 New macro.
51273
51274 * partmap/gpt.c: New file.
51275
51276 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51277 GPT partition map is detected.
51278
41730ed9 512792005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51280
51281 * commands/i386/pc/play.c: New file.
51282 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51283 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51284 macros.
f19dbdb7 51285
95dc3643 512862005-11-27 Marco Gerards <mgerards@xs4all.nl>
51287
51288 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51289 ((unused))' to silence gcc warning.
51290
1569ec51 512912005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51292
51293 * configure.ac: Correct `AC_PROG_YACC' test.
51294
9abde152 512952005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51296
51297 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51298 check before installing files.
51299
44b83271 513002005-11-22 Mike Small <smallm@panix.com>
51301
51302 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51303 number regex so multidigit numbers are recognized correctly.
51304
513052005-11-22 Mike Small <smallm@panix.com>
51306
51307 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51308 debugging message before attempting to claim memory.
51309 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51310 multiple addresses in case of failure.
51311
9c12956b 513122005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51313
51314 * term/tparm.c (get_space): Remove empty `if' statement.
51315
51316 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51317
51318 * kern/parser.c (check_varstate): Rename `state' to 's'.
51319
aeaf81d9 513202005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51321
51322 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51323 variable definitions to the beginning of each function. Sort stack
51324 variables by size.
51325 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51326 `buf' argument to `char *'.
51327
79bbb63f 513282005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51329
51330 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51331 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51332 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 51333 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51334 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51335 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51336 configfile.mod, search.mod, gzio.mod and test.mod.
51337 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51338 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51339 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51340 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51341 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51342 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51343 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51344 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51345 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51346 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51347 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51348 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51349 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51350 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51351 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51352 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51353 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51354 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51355 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51356 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51357 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51358 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51359 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51360
51361 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51362 `grep --include'.
51363 (pkgdata_MODULES): Add test.mod.
51364
233b1628 513652005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51366
51367 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51368 appending to variables with "+=".
51369 (PModule): Use full pathname to generate *.lst filenames.
51370
51371 * Makefile.in: Fixed list rules moved from genmk.rb.
51372 (.DELETE_ON_ERROR): New special target.
51373 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51374
51375 * conf/i386-pc.rmk: Include conf/common.mk.
51376 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 51377 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 51378 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51379 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51380 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51381 configfile.mod, search.mod, gzio.mod and test.mod.
51382 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51383 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51384 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51385 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51386 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51387 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51388 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51389 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51390 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51391 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51392 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51393 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51394 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51395 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51396 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51397 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51398 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51399 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51400 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51401 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51402 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51403 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51404 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51405 here...
51406 * conf/common.rmk: ... to here. New file.
51407
51408 * conf/common.mk: New file.
51409
16f820c8 514102005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51411
51412 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51413 (grub_script.tab.c): ... here.
51414
51415 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51416 (grub_script.tab.c): ... here.
51417
51418 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51419 (grub_script.tab.c): ... here.
51420
51421 * normal/command.c (grub_command_find): Fixed a memory leak of
51422 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51423
63ba1554 514242005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51425
51426 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51427 "@" which marks the start of a comment on ARM.
51428 (VARIABLE): Likewise.
51429
7f67dc13 514302005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51431
79bbb63f 51432 Add support for Linux/ADFS partition tables.
7f67dc13 51433
51434 * partmap/acorn.c: New file.
51435
51436 * include/grub/acorn_filecore.h: Likewise.
51437
51438 * DISTLIST: Added `partmap/acorn.c' and
51439 `include/grub/acorn_filecore.h'.
f19dbdb7 51440
7f67dc13 51441 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51442 `partmap/acorn.c'.
51443 (pkgdata_MODULES): Add `acorn.mod'.
51444 (acorn_mod_SOURCES): New variable.
51445 (acorn_mod_CFLAGS): Likewise.
51446
51447 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51448 `partmap/acorn.c'.
51449 (pkgdata_MODULES): Add `acorn.mod'.
51450 (acorn_mod_SOURCES): New variable.
51451 (acorn_mod_CFLAGS): Likewise.
51452
51453 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51454 (pkgdata_MODULES): Add `acorn.mod'.
51455 (acorn_mod_SOURCES): New variable.
51456 (acorn_mod_CFLAGS): Likewise.
51457 (acorn_mod_LDFLAGS): Likewise.
51458
51459 * include/types.h (grub_disk_addr_t): New typedef.
51460
6d099807 514612005-11-13 Marco Gerards <mgerards@xs4all.nl>
51462
51463 * geninit.sh: New file.
51464
51465 * geninitheader.sh: Likewise.
51466
51467 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51468 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51469 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51470 * commands/configfile.c (grub_configfile_init)
51471 (grub_configfile_fini): Likewise.
51472 * commands/default.c (grub_default_init, grub_default_fini):
51473 Likewise.
51474 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51475 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51476 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51477 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51478 Likewise.
51479 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51480 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51481 Likewise.
51482 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 51483 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 51484 Likewise.
51485 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51486 Likewise.
fe6b695a 51487 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 51488 Likewise.
51489 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51490 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51491 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51492 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51493 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51494 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51495 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51496 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51497 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51498 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51499 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51500 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51501 * partmap/amiga.c (grub_amiga_partition_map_init)
51502 (grub_amiga_partition_map_fini): Likewise.
51503 * partmap/apple.c (grub_apple_partition_map_init)
51504 (grub_apple_partition_map_fini): Likewise.
51505 * partmap/pc.c (grub_pc_partition_map_init)
51506 (grub_pc_partition_map_fini): Likewise.
51507 * partmap/sun.c (grub_sun_partition_map_init,
51508 grub_sun_partition_map_fini): Likewise.
51509 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51510 Likewise.
51511
51512 * util/grub-emu.c: Include <grub_modules_init.h>.
51513 (main): Don't initialize and de-initialize any modules directly,
51514 use `grub_init_all' and `grub_fini_all' instead.
51515
51516 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51517 `grub_vesafb_mod_init'.
51518 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51519 all users.
51520 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51521 `grub_vga_mod_init'. Updated all users.
51522 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 51523
6d099807 51524 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51525 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51526 rules.
51527
51528 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51529 Generate a function to initialize the module in utilities.
51530 Updated all callers.
51531 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51532 initialize the module in utilities. Updated all callers.
51533
9046bcf0 515342005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51535
51536 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51537 escape sequence and a literal ^L to clear the screen.
51538
51539 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51540 when returning from Open Firmware.
51541
d13ea639 515422005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51543
51544 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51545 (grub_ofconsole_height): Likewise.
51546 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51547 manually insert a '\n'.
51548 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51549 `grub_ofconsole_height'. Return early if these are already set.
51550
a8fcf206 515512005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51552
51553 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51554 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51555 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51556 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51557 and `normal/script.c'.
51558 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51559 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51560 (test_mod_SOURCES): New variable.
51561 (test_mod_CFLAGS): Likewise.
51562 (test_mod_LDFLAGS): Likewise.
51563 (pkgdata_MODULES): Add `test.mod'.
51564 (grub_script.tab.c): New rule.
51565 (grub_script.tab.h): Likewise.
51566
b6b32745 515672005-11-07 Marco Gerards <mgerards@xs4all.nl>
51568
51569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51570 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51571 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51572 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51573 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51574 (test_mod_SOURCES): New variable.
51575 (test_mod_CFLAGS): Likewise.
51576 (pkgdata_MODULES): Add `test.mod'.
51577 (grub_script.tab.c): New rule.
51578 (grub_script.tab.h): Likewise.
51579
daac212a 515802005-11-06 Marco Gerards <mgerards@xs4all.nl>
51581
51582 Add initial scripting support.
51583
51584 * commands/test.c: New file.
51585 * include/grub/script.h: Likewise.
51586 * normal/execute.c: Likewise.
51587 * normal/function.c: Likewise.
51588 * normal/lexer.c: Likewise.
51589 * normal/parser.y: Likewise.
51590 * normal/script.c: Likewise.
51591
51592 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 51593
daac212a 51594 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51595 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51596 `normal/function.c' and `normal/script.c'.
51597 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51598 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 51599 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51600 variables.
daac212a 51601 (pkgdata_MODULES): Add `test.mod'.
51602 (grub_script.tab.c): New rule.
51603 (grub_script.tab.h): Likewise.
51604
51605 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51606
51607 * include/grub/normal.h (grub_test_init): New prototype.
51608 (grub_test_fini): Likewise.
f19dbdb7 51609
daac212a 51610 * normal/command.c: Include <grub/script.h>.
51611 (grub_command_execute): Rewritten.
f19dbdb7 51612
daac212a 51613 * util/grub-emu.c (main): Call `grub_test_init' and
51614 `grub_test_fini'.
51615
77500b2b 516162005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51617
51618 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51619 to 0.
51620 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51621 there are no pending characters.
51622
e45deb9e 516232005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51624
51625 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51626 `grub_strndup' to drop device arguments. Replace unnecessary
51627 `grub_strndup' with `grub_strdup'.
51628
4ce32619 516292005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51630
51631 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51632 `debug' environment variable has been set.
51633
516342005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 51635
4ce32619 51636 * Makefile.in (install-local): Use $(DATA).
51637 (uninstall): Likewise.
51638 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51639 (sbin_UTILITIES): ... to here.
51640 (sbin_SCRIPTS): New variable.
51641 (grub_install_SOURCES): New variable.
51642 * util/powerpc/ieee1275/grub-install.in: New file.
51643 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51644 variable.
51645 (add_segments): Call `grub_util_get_path'.
51646
25fe6f03 516472005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51648
51649 From Timothy Baldwin:
51650 * commands/ls.c (grub_ls_list_files): Close FILE with
51651 grub_file_close.
51652 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51653
04ccf3ec 516542005-10-24 Marco Gerards <mgerards@xs4all.nl>
51655
51656 * include/grub/parser.h: New file.
51657
51658 * kern/parser.c: Likewise.
51659
51660 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51661 (grub_setup_SOURCES): Likewise.
51662 (grub_probefs_SOURCES): Likewise.
51663 (grub_emu_SOURCES): Likewise.
51664 (kernel_img_HEADERS): Add `parser.h'.
51665
51666 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51667 (grub_emu_SOURCES): Add `kern/parser.c'.
51668 (grubof_SOURCES): Likewise.
51669
51670 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51671 (grubof_SOURCES): Add `kern/parser.c'.
51672
51673 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51674
51675 * kern/misc.c (grub_split_cmdline): Removed function.
51676
51677 * kern/rescue.c: Include <grub/parser.h>.
51678 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51679 of `grub_split_cmdline'.
51680
51681 * normal/command.c: Include <grub/parser.h>.
51682 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51683 of `grub_split_cmdline'.
51684
51685 * normal/completion.c: Include <grub/parser.h>.
51686 (cmdline_state): New variable.
51687 (iterate_dir): End the filename with a quote depending on the
51688 command line state.
51689 (get_state): new function.
51690 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51691 split the arguments and determine the current argument. When the
51692 argument string is not quoted, escape all spaces.
51693
6d8f4b0e 516942005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51695
51696 * normal/sparc64/setjmp.S: New file.
51697
15cf03ed 516982005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51699
51700 * include/grub/sparc64/libgcc.h: New file.
51701 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51702 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51703 normal/sparc64/setjmp.c.
51704
03e8661a 517052005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51706
51707 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51708 * kern/sparc64/cache.S: New file.
51709 * kern/sparc64/cache.c: Removed.
51710 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51711 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51712 -mtune=ultrasparc.
51713 (COMMON_LDFLAGS): Add -melf64_sparc.
51714 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51715 (grubof_SOURCES): Use cache.S instead of cache.c.
51716 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51717 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51718 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51719 commented though.
51720 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51721 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51722 (linux_mod_CFLAGS): Commented out.
51723 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51724 out because module isn't built.
51725 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51726 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51727 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51728 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51729 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51730 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51731 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51732 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51733 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51734 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51735 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51736 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51737 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51738 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51739
34eeec8a 517402005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51741
51742 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51743 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51744 longer, because HFS should not be used on PC.
51745
708367a3 517462005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51747
51748 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51749 consistently within the loop.
51750
6fa1251a 517512005-10-15 Marco Gerards <mgerards@xs4all.nl>
51752
51753 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51754 directory can not be read.
51755
4801580b 517562005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51757
51758 * configure.ac (AC_INIT): Increase the version number to 1.91.
51759
51760 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51761 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51762 term/i386/pc/serial.c.
51763
219ad426 517642005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51765
51766 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51767 file size must be permitted.
51768
51769 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51770 between %ah and %al.
51771
688e5699 517722005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51773
51774 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51775 grub_uint64_t.
51776 Call the hook with a NUL-terminated filename.
51777 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51778 grub_cpu_to_be32.
51779
51780 * kern/term.c (cursor_state): New variable.
51781 (grub_term_set_current): Reset the cursor state on a new
51782 terminal.
51783 (grub_setcursor): Rewritten to use CURSOR_STATE.
51784 (grub_getcursor): New function.
51785
51786 * include/grub/term.h (grub_getcursor): New prototype.
51787
51788 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51789 integers on ARM. Reported by Timothy Baldwin
51790 <T.E.Baldwin99@members.leeds.ac.uk>.
51791
bb34586c 517922005-10-11 Marco Gerards <mgerards@xs4all.nl>
51793
51794 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51795 allocated.
51796 (grub_sfs_dir): Likewise.
51797
9a909877 517982005-10-09 Marco Gerards <mgerards@xs4all.nl>
51799
51800 Add support for the SFS filesystem.
51801
51802 * fs/sfs.c: New file.
51803
51804 * DISTLIST: Added `fs/sfs.c'.
51805
51806 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51807 (grub_probefs_SOURCES): Likewise.
51808 (grub_emu_SOURCES): Likewise.
51809 (pkgdata_MODULES): Add `sfs.mod'.
51810 (sfs_mod_SOURCES): New variable.
51811 (sfs_mod_CFLAGS): Likewise.
51812 (sfs_mod_LDFLAGS): Likewise.
51813
51814 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51815 (pkgdata_MODULES): Add `sfs.mod'.
51816 (sfs_mod_SOURCES): New variable.
51817 (sfs_mod_CFLAGS): Likewise.
51818
51819 * util/grub-emu.c (main): Call `grub_sfs_init' and
51820 `grub_sfs_fini'.
51821
51822 * include/grub/fs.h (grub_sfs_init): New prototype.
51823 (grub_sfs_fini): Likewise.
51824
57bdbde3 518252005-10-07 Marco Gerards <mgerards@xs4all.nl>
51826
51827 Add support for the AFFS filesystem.
51828
51829 * fs/affs.c: New file.
51830
51831 * DISTLIST: Added `fs/affs.c'.
51832
51833 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51834 (grub_probefs_SOURCES): Likewise.
51835 (grub_emu_SOURCES): Likewise.
51836 (pkgdata_MODULES): Add `affs.mod'.
51837 (affs_mod_SOURCES): New variable.
51838 (affs_mod_CFLAGS): Likewise.
51839 (affs_mod_LDFLAGS): Likewise.
51840
51841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51842 (pkgdata_MODULES): Add `affs.mod'.
51843 (affs_mod_SOURCES): New variable.
51844 (affs_mod_CFLAGS): Likewise.
51845
51846 * util/grub-emu.c (main): Call `grub_affs_init' and
51847 `grub_affs_fini'.
51848
51849 * include/grub/fs.h (grub_affs_init): New prototype.
51850 (grub_affs_fini): Likewise.
51851
047b67e0 518522005-10-01 Marco Gerards <mgerards@xs4all.nl>
51853
51854 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51855
59b8208a 518562005-10-01 Marco Gerards <mgerards@xs4all.nl>
51857
51858 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51859 `-m32' to CFLAGS.
51860
51861 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51862 linking.
f19dbdb7 51863
59b8208a 51864 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51865 (COMMON_LDFLAGS): New variable.
51866 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51867 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51868 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51869 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51870 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51871 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51872 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51873 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51874 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51875 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51876 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51877 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51878 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51879 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51880 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51881 variables.
51882 (normal_mod_ASFLAGS): Add `-m32'.
51883
51884 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51885 (grub_host_size_t, grub_host_ssize_t): New types.
51886 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 51887 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 51888 `GRUB_HOST_SIZEOF_VOID_P'.
51889
51890 * include/grub/kernel.h (struct grub_module_header): Type of
51891 member offset changed to `grub_host_off_t'. Type of member size
51892 changed to `grub_host_size_t'.
51893 (struct grub_module_info): Type of member offset changed to
51894 `grub_host_off_t'. Type of member size changed to
51895 `grub_host_size_t'.
51896
b4093103 518972005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51898
51899 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 51900
b4093103 51901 * kern/i386/pc/startup.S (multiboot_header): New label.
51902 (multiboot_entry): Likewise.
51903 (multiboot_trampoline): Likewise.
51904
51905 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51906 Increased to 0x4A0.
51907
51908 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51909 put parentheses after a question mark.
51910 [!GRUB_UTIL] (my_mod): New variable.
51911
51912 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51913
b2499b29 519142005-09-28 Marco Gerards <mgerards@xs4all.nl>
51915
51916 Adds support for the XFS filesystem. Btrees are not supported
51917 yet.
51918
51919 * fs/xfs.c: New file.
51920
51921 * DISTLIST: Added `fs/xfs.c'.
51922
51923 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51924 (grub_probefs_SOURCES): Likewise.
51925 (grub_emu_SOURCES): Likewise.
51926 (pkgdata_MODULES): Add `xfs.mod'.
51927 (xfs_mod_SOURCES): New variable.
51928 (xfs_mod_CFLAGS): Likewise.
51929
51930 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51931 (pkgdata_MODULES): Add `xfs.mod'.
51932 (xfs_mod_SOURCES): New variable.
51933 (xfs_mod_CFLAGS): Likewise.
51934
51935 * util/grub-emu.c (main): Call `grub_xfs_init' and
51936 `grub_xfs_fini'.
51937
51938 * include/grub/fs.h (grub_xfs_init): New prototype.
51939 (grub_xfs_fini): Likewise.
51940
f19dbdb7 51941
83d37a62 519422005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51943
51944 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51945 color modes, allow greater than 16 colors to be configured as
51946 a default palette.
51947
47d2d65e 519482005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51949
51950 * normal/completion.c (complete_arguments): Add the qualifier
51951 const into OPTIONS.
51952
51953 From Omniflux <omniflux+lists@omniflux.com>:
51954 * include/grub/terminfo.h: New file.
51955 * include/grub/tparm.h: Likewise.
51956 * include/grub/i386/pc/serial.h: Likewise.
51957 * term/terminfo.c: Likewise.
51958 * term/tparm.c: Likewise.
51959 * term/i386/pc/serial.c: Likewise.
51960 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51961 serial.mod.
51962 (terminfo_mod_SOURCES): New variable.
51963 (terminfo_mod_CFLAGS): Likewise.
51964 (serial_mod_SOURCES): Likewise.
51965 (serial_mod_CFLAGS): Likewise.
51966
48b671ff 519672005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51968
51969 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51970 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51971 and kern/powerpc/ieee1275/cmain.c, respectively.
51972
51973 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51974 * kern/powerpc/ieee1275/crt0.S: ... here.
51975
51976 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51977 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 51978
48b671ff 51979 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51980 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51981 instead of boot/powerpc/ieee1275/crt0.S and
51982 boot/powerpc/ieee1275/cmain.c, respectively.
51983
51984 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51985 sectors. It was not used anyway.
51986
09fc77a7 519872005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51988
51989 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51990 `unused parameter' warning.
51991
003789c7 519922005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51993
51994 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51995 function.
51996 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51997 getcharwidth.
51998
67f44c86 519992005-08-28 Marco Gerards <metgerards@student.han.nl>
52000
52001 * include/grub/normal.h (enum grub_completion_type): Added
52002 `GRUB_COMPLETION_TYPE_ARGUMENT'.
52003
52004 * normal/cmdline.c (print_completion): Handle
52005 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52006 * normal/menu_entry.c (store_completion): Likewise.
52007
52008 * normal/completion.c (complete_arguments): New function.
52009 (grub_normal_do_completion): Call `complete_arguments' when the
52010 current words start with a dash.
52011
0b5abe02 520122005-08-27 Marco Gerards <metgerards@student.han.nl>
52013
52014 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52015 `gzio.mod' instead of `io.mod').
52016
d9864ee1 520172005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
52018
52019 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52020 (DISTDIRS): Added io and video.
52021 Rewrite the search routine to make an output consistently.
52022
52023 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52024 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52025 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52026 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52027 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52028 util/powerpc/ieee1275/misc.c.
f19dbdb7 52029
d9864ee1 52030 * include/grub/gzio.h: New file.
52031 * io/gzio.c: Likewise.
f19dbdb7 52032
d9864ee1 52033 * kern/file.c (grub_file_close): Call grub_device_close only if
52034 FILE->DEVICE is not NULL.
52035
52036 * include/grub/mm.h [!NULL] (NULL): New macro.
52037
52038 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52039
52040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52041 (pkgdata_MODULES): Added gzio.mod.
52042 (gzio_mod_SOURCES): New variable.
52043 (gzio_mod_CFLAGS): Likewise.
52044
52045 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52046 (pkgdata_MODULES): Added gzio.mod.
52047 (gzio_mod_SOURCES): New variable.
52048 (gzio_mod_CFLAGS): Likewise.
52049
52050 * commands/cat.c: Include grub/gzio.h.
52051 (grub_cmd_cat): Use grub_gzfile_open instead of
52052 grub_file_open.
f19dbdb7 52053
d9864ee1 52054 * commands/cmp.c: Include grub/gzio.h.
52055 (grub_cmd_cmp): Use grub_gzfile_open instead of
52056 grub_file_open.
52057
52058 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52059 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52060 grub_file_open.
52061 (grub_rescue_cmd_module): Likewise.
52062
fa46f4b5 520632005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52064
52065 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52066 kern/sparc64/ieee1275/init.c because it contains _start.
52067 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52068
e9211b5d 520692005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52070
52071 * configure.ac: Add support for sparc64 host with ieee1275
52072 firmware.
52073 * configure: Generated from configure.ac.
52074 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52075 instead of int.
52076 (grub_ofdisk_read): Likewise.
52077 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52078 pointers as (void *) to remove a warning.
52079 (grub_ofdisk_close): Likewise.
52080 (grub_ofdisk_read): Likewise.
52081 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52082 returns, so make it return void to remove a warning.
52083 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52084 Corresponding prototype change.
52085 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52086 values, and cast the pointers as (void *) to remove a warning.
52087 (grub_mm_dump): Likewise.
52088 * conf/sparc64-ieee1275.mk: New file.
52089 * conf/sparc64-ieee1275.rmk: Likewise.
52090 * include/grub/sparc64/setjmp.h: Likewise.
52091 * include/grub/sparc64/types.h: Likewise.
52092 * include/grub/sparc64/ieee1275/console.h: Likewise.
52093 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52094 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52095 * include/grub/sparc64/ieee1275/time.h: Likewise.
52096 * kern/sparc64/cache.c: Likewise.
52097 * kern/sparc64/dl.c: Likewise.
52098 * kern/sparc64/ieee1275/init.c: Likewise.
52099 * kern/sparc64/ieee1275/openfw.c: Likewise.
52100
385c6a92 521012005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52102
52103 * util/console.c (grub_ncurses_putchar): If C is greater than
52104 0x7f, set C to a question mark.
52105 (grub_ncurses_getcharwidth): New function.
52106 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52107 getcharwidth.
52108
52109 * normal/menu.c (print_entry): Made aware of Unicode. First,
52110 convert TITLE to UCS-4, and predict the cursor position by
52111 grub_getcharwidth.
52112
52113 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52114 const to SRC.
52115 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52116
16ccb8b1 521172005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52118
52119 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52120 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52121 grub_strcat.
52122
52123 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52124 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52125 grub_strcpy and grub_strlen. Take it into account that a space
52126 character is inserted as a delimiter.
52127
6a85ce79 521282005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52129
52130 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 52131 invalid magic in the error.
6a85ce79 52132
52133 * commands/search.c: New file.
f19dbdb7 52134
6a85ce79 52135 * util/grub-emu.c (main): Call grub_search_init and
52136 grub_search_fini.
52137
52138 * kern/rescue.c (grub_rescue_print_disks): Removed.
52139 (grub_rescue_print_devices): New function.
52140 (grub_rescue_cmd_ls): Use grub_device_iterate with
52141 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52142 grub_rescue_print_disks.
52143
52144 * kern/partition.c (grub_partition_iterate): Return the result of
52145 PARTMAP->ITERATE instead of GRUB_ERRNO.
52146
52147 * kern/device.c: Include grub/partition.h.
52148 (grub_device_iterate): New function.
52149
52150 * include/grub/partition.h (grub_partition_iterate): Return int
52151 instead of grub_err_t.
52152
52153 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52154 prototype.
52155 [GRUB_UTIL] (grub_search_fini): Likewise.
52156
52157 * include/grub/device.h (grub_device_iterate): New prototype.
52158
52159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52160 commands/search.c.
52161 (pkgdata_MODULES): Added search.mod.
52162 (search_mod_SOURCES): New variable.
52163 (search_mod_CFLAGS): Likewise.
52164
52165 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52166 (pkgdata_MODULES): Added search.mod.
52167 (search_mod_SOURCES): New variable.
52168 (search_mod_CFLAGS): Likewise.
52169
52170 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52171 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52172 All callers changed.
52173
52174 * DISTLIST: Added commands/search.c.
52175
ef095434 521762005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52177
52178 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52179 conversion.
52180 (grub_getcharwidth): New function.
52181
52182 * kern/misc.c (grub_utf8_to_ucs4): New function.
52183
52184 * include/grub/term.h (struct grub_term): Added a new member
52185 "getcharwidth".
52186 (grub_getcharwidth): New prototype.
52187
52188 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52189
52190 * term/i386/pc/console.c (map_char): New function. Segregated from
52191 grub_console_putchar.
52192 (grub_console_putchar): Use map_char.
52193 (grub_console_getcharwidth): New function.
52194 (grub_console_term): Specified grub_console_getcharwidth as
52195 getcharwidth.
52196
52197 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52198 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52199
52200 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52201 GRUB_ERRNO.
52202 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52203 on grub_strtoul completely.
52204 (write_char): Declare local variables in the beginning of the
52205 function.
52206 (grub_vesafb_getcharwidth): New function.
52207 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52208 getcharwidth.
52209
1f0a95e4 522102005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52211
52212 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52213 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52214 commands/i386/pc/vbetest.c.
52215
52216 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52217 call grub_vbe_get_controller_info again, because the returned
52218 information is volatile.
52219 (grub_vbe_set_video_mode): Mostly rewritten.
52220 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52221 grub_vbe_status_t correctly.
52222 (grub_vbe_get_video_mode_info): Likewise.
52223 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52224 several if statements.
52225
52226 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52227 * commands/i386/pc/vbeinfo.c: ... this.
52228
52229 * commands/i386/pc/vbe_test.c: Renamed to ...
52230 * commands/i386/pc/vbetest.c: ... this.
52231
52232 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52233 ...
52234 (grub_cmd_vbeinfo): ... this. Save video modes before
52235 iterating. Skip a video mode, if it is not available, not enough
52236 information is given or it is monochrome. Show the memory
52237 model. Leave the interpretation of MODEVAR to grub_strtoul
52238 completely.
52239 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52240 (GRUB_MOD_FINI): Likewise.
52241
52242 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52243 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52244 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52245 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52246 grub_strtoul completely.
52247 (real2pm): Removed.
52248 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52249 (GRUB_MOD_FINI): Likewise.
52250
52251 * normal/misc.c: Include grub/mm.h.
52252
52253 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52254 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52255 (vbe_list_modes_mod_SOURCES): Removed.
52256 (vbe_list_modes_mod_CFLAGS): Likewise.
52257 (vbe_test_mod_SOURCES): Likewise.
52258 (vbe_test_mod_CFLAGS): Likewise.
52259 (vbeinfo_mod_SOURCES): New variable.
52260 (vbeinfo_mod_CFLAGS): Likewise.
52261 (vbetest_mod_SOURCES): Likewise.
52262 (vbetest_mod_CFLAGS): Likewise.
52263
992ffbbe 522642005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52265
52266 * normal/misc.c: New file.
52267
52268 * DISTLIST: Added normal/misc.c.
f19dbdb7 52269
992ffbbe 52270 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52271 DISK to HOOK. Call HOOK with DISK.
52272 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52273 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52274 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52275
52276 * normal/menu_entry.c (struct screen): Added a new member
52277 "completion_shown".
52278 (completion_buffer): New global variable.
52279 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52280 (store_completion): New function.
52281 (complete): Likewise.
52282 (clear_completions): Likewise.
52283 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52284 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52285 a tab, call complete.
52286
52287 * normal/completion.c (disk_dev): Removed.
52288 (print_simple_completion): Likewise.
52289 (print_partition_completion): Likewise.
52290 (print_func): New global variable.
52291 (add_completion): Do not take the arguments WHAT or PRINT any
52292 longer. Added a new argument TYPE. Instead of printing directly,
52293 call PRINT_FUNC if not NULL.
52294 All callers changed.
52295 (complete_device): Use a local variable DEV instead of
52296 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52297 (grub_normal_do_completion): Take a new argument HOOK. Do not
52298 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52299 empty string, return NULL instead.
52300 All callers changed.
52301
52302 * normal/cmdline.c (print_completion): New function.
52303
52304 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52305 to HOOK.
52306 All callers changed.
52307
52308 * kern/disk.c (grub_print_partinfo): Removed.
52309
52310 * include/grub/partition.h (struct grub_partition_map): Add a new
52311 argument DISK into HOOK of ITERATE.
52312 (grub_partition_iterate): Add a new argument DISK to HOOK.
52313
52314 * include/grub/normal.h (enum grub_completion_type): New enum.
52315 (grub_completion_type_t): New type.
52316 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52317 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52318 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52319 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52320 (grub_normal_do_completion): Added a new argument HOOK.
52321 (grub_normal_print_device_info): New prototype.
52322
52323 * include/grub/disk.h (grub_print_partinfo): Removed.
52324
52325 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52326 (normal_mod_SOURCES): Likewise.
52327 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52328 (normal_mod_SOURCES): Likewise.
52329
52330 * commands/ls.c (grub_ls_list_disks): Use
52331 grub_normal_print_device_info instead of grub_print_partinfo. Free
52332 PNAME.
52333 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52334 duplicating the code.
52335
0bd41162 523362005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52337
52338 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 52339 follow GCS more precisely.
52340 * commands/i386/pc/vbe_test.c: Likewise.
52341 * include/grub/i386/pc/vbe.h: Likewise.
52342 * term/i386/pc/vesafb.c: Likewise.
52343 * video/i386/pc/vbe.c: Likewise.
0bd41162 52344
6323696a 523452005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52346
52347 * DISTLIST: Added term/i386/pc/vesafb.c
52348 DISTLIST: Added video/i386/pc/vbe.c
52349 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52350 DISTLIST: Added commands/i386/pc/vbe_test.c.
52351 * commands/i386/pc/vbe_list_modes.c: New file.
52352 * commands/i386/pc/vbe_test.c: Likewise.
52353 * term/i386/pc/vesafb.c: Likewise.
52354 * video/i386/pc/vbe.c: Likewise.
52355 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52356 (grub_vbe_probe) Added prototype.
52357 (grub_vbe_set_video_mode) Likewise.
52358 (grub_vbe_get_video_mode) Likewise.
52359 (grub_vbe_get_video_mode_info) Likewise.
52360 (grub_vbe_set_pixel_rgb) Likewise.
52361 (grub_vbe_set_pixel_index) Likewise.
52362 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52363 (pkgdata_MODULES): Added vesafb.mod.
52364 (pkgdata_MODULES): Added vbe_list_modes.mod.
52365 (pkgdata_MODULES): Added vbe_test.mod.
52366 (vbe_mod_SOURCES): Added.
52367 (vbe_mod_CFLAGS): Likewise.
52368 (vesafb_mod_SOURCES): Likewise.
52369 (vesafb_mod_CFLAGS): Likewise.
52370 (vbe_list_modes_mod_SOURCES): Likewise.
52371 (vbe_list_modes_mod_CFLAGS): Likewise.
52372 (vbe_test_mod_SOURCES): Likewise.
52373 (vbe_test_mod_CFLAGS): Likewise.
52374
0a74e62f 523752005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52376
0a74e62f 52377 * normal/command.c (grub_command_execute): If INTERACTIVE is
52378 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52379 CMDLINE. Disable the pager if INTERACTIVE is true.
52380 All callers are changed.
52381
52382 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52383 before reading a config file.
52384 * normal/main.c (read_config_file): Even if a command is not
52385 found, register it if it is within an entry.
52386
52387 * util/grub-emu.c: Include sys/types.h and unistd.h.
52388 (options): Added --hold.
52389 (struct arguments): Added a new member "hold".
52390 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52391 missing.
52392 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52393 cleared by a debugger, if it is not zero.
52394
52395 * include/grub/normal.h (grub_command_execute): Add an argument
52396 INTERACTIVE.
52397
e51f85ae 523982005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52399
52400 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52401
e9c6f39b 524022005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52403
52404 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52405 program with another one, because the old one didn't detect a bug
52406 in gcc-3.4. Always use regparm 2, because the new test is still
52407 not enough for gcc-4.0. Someone must investigate a simple test
52408 case which detects a bug in gcc-4.0.
52409
8de3495c 524102005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52411
52412 * DISTLIST: Added normal/completion.c.
52413
52414 * normal/completion.c: New file.
f19dbdb7 52415
8de3495c 52416 * term/i386/pc/console.c (grub_console_getwh): New function.
52417 (grub_console_term): Assign grub_console_getwh to getwh.
52418
52419 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52420 function is defined in normal/completion.c as
52421 grub_normal_do_completion.
52422 (grub_cmdline_get): Use grub_normal_do_completion instead of
52423 grub_tab_complete.
52424
52425 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52426 returns non-zero, otherwise return 0.
52427 (grub_partition_iterate): First, probe the partition map. Then,
52428 call ITERATE only for this partition map.
52429
52430 * kern/misc.c (grub_strncmp): Rewritten.
52431
52432 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52433 returns non-zero. Otherwise return 0.
52434
52435 * include/grub/partition.h (grub_partition_map_iterate): Return
52436 int instead of void.
52437
52438 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52439
52440 * include/grub/misc.h (grub_strncmp): Change the type of N to
52441 grub_size_t.
52442
52443 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52444 of void.
52445
52446 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 52447 unsigned explicitly before comparing it with I.
8de3495c 52448
52449 * kern/main.c (grub_env_write_root): Add the attribute unused into
52450 VAR.
52451
52452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52453 normal/completion.c.
52454 (normal_mod_SOURCES): Likewise.
52455 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52456 (normal_mod_SOURCES): Likewise.
52457
52458 * normal/command.c (grub_iterate_commands): If ITERATE returns
52459 non-zero, return one immediately.
52460
e85e144b 524612005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52462
52463 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52464 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52465 descriptions.
52466 (grub_vbe_get_controller_info): New function.
52467 (grub_vbe_get_mode_info): Likewise.
52468 (grub_vbe_set_mode): Likewise.
52469 (grub_vbe_get_mode): Likewise.
52470 (grub_vbe_set_memory_window): Likewise.
52471 (grub_vbe_get_memory_window): Likewise.
52472 (grub_vbe_set_scanline_length): Likewise.
52473 (grub_vbe_get_scanline_length): Likewise.
52474 (grub_vbe_set_display_start): Likewise.
52475 (grub_vbe_get_display_start): Likewise.
52476 (grub_vbe_set_palette_data): Likewise.
52477 * include/grub/i386/pc/vbe.h: New file.
52478
c46153d2 524792005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52480
52481 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52482 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52483 * DISTLIST: Likewise.
52484 * kern/ieee1275/of.c: Moved to ...
52485 * kern/ieee1275/ieee1275.c: ... here.
52486
0cb90c45 524872005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52488
52489 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52490 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52491 Pass 0 as `end' parameter to grub_strtoul().
52492
a19fb360 524932005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52494
52495 * include/grub/powerpc/ieee1275/console.h: Do not include
52496 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52497 ifdef.
52498 (grub_console_cur_color): Remove i386-specific prototype.
52499 (grub_console_real_putchar): Likewise.
52500 (grub_console_checkkey): Likewise.
52501 (grub_console_getkey): Likewise.
52502 (grub_console_getxy): Likewise.
52503 (grub_console_gotoxy): Likewise.
52504 (grub_console_cls): Likewise.
52505 (grub_console_setcursor): Likewise.
52506 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52507 Include <grub/machine/console.h>.
52508 * term/ieee1275/ofconsole.c: Likewise.
52509
4ac9bd04 525102005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52511
52512 * Makefile.in (LIBLZO): New variable.
52513
52514 * configure.ac: Check for LZO version 2.
52515
52516 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52517 lzo/lzo1x.h instead of lzo1x.h.
52518
52519 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52520 of -llzo.
52521
52522 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52523 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52524
52525 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52526 copying the data from PARTITION to P.
52527
f4917dfd 525282005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52529
52530 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52531 negative, unload the module.
52532
52533 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52534 map is "pc_partition_map" but not "pc".
52535 (usage): Fix the description. The options are --boot-image and
52536 --core-image but not --boot-file or --core-file.
52537 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52538 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52539 DEFAULT_DIRECTORY.
52540
52541 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52542 --core-file. Specify INSTALL_DEVICE as an argument.
52543
52544 * util/console.c: Include config.h.
52545 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52546 [HAVE_NCURSES_H]: Include ncurses.h.
52547 [HAVE_CURSES_H]: Include curses.h.
52548 [!A_NORMAL] (A_NORMAL): Defined as zero.
52549 [!A_STANDOUT] (A_STANDOUT): Likewise.
52550
52551 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52552 -lncurses.
52553 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52554
52555 * configure.ac: Check for curses libraries and headers.
52556
52557 * Makefile.in (LIBCURSES): New variable.
52558
52559 * genmk.rb (Script::rule): Set the executable bits.
52560
52561 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52562 name of the PC partition map is "pc_partition_map" but not "pc".
52563
0e143073 525642005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52565
52566 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52567 (modules): Likewise.
52568 (usage): Added descriptions for --modules and --grub-probefs.
52569 Handle --modules and --grub-probefs. Save the arguments in MODULES
52570 and GRUB_PROBEFS, respectively.
52571 Auto-detect a filesystem module against GRUBDIR. If the result is
52572 empty and modules are not specified explicitly, abort the
52573 installation. Add the result to MODULES.
52574
52575 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52576 disk/powerpc/ieee1275/ofdisk.c,
52577 include/grub/powerpc/ieee1275/init.h and
52578 term/powerpc/ieee1275/ofconsole.c.
52579 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52580 term/ieee1275/ofconsole.c.
52581
52582 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52583
52584 * COPYING: Upgraded to the latest version. Only the address of the
52585 FSF office has changed.
f19dbdb7 52586
efd6e6d5 525872005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52588
52589 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52590 kern/ieee1275.c with kern/ieee1275/of.c.
52591
52592 * kern/ieee1275.c: Moved to ...
52593 * kern/ieee1275/of.c: ... here.
52594
8ceafda2 525952005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52596
52597 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 52598 readability.
8ceafda2 52599
52600 * config.guess: Updated to the latest version from gnulib.
52601 * config.sub: Likewise.
52602 * install.sh: Likewise.
52603 * mkinstalldirs: Likewise.
52604
52605 * include/grub/console.h: Removed. This file is arch-specific. Do
52606 not put this in include/grub.
52607
52608 * include/grub/i386/pc/console.h: Resurrected.
52609
52610 * util/console.c: Include grub/machine/console.h instead of
52611 grub/console.h.
52612 * util/grub-emu.c: Likewise.
52613
267f6cd9 526142005-08-04 Marco Gerards <metgerards@student.han.nl>
52615
52616 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52617 hardcoded value.
f19dbdb7 52618
267f6cd9 52619 From Vincent Pelletier <subdino2004@yahoo.fr>
52620 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52621 Redefined to use grub_getwh.
52622 (grub_term): New member named getwh.
52623 (grub_getwh): New prototype.
52624 * kern/term.c (grub_getwh): New function.
52625 * term/i386/pc/console.c (grub_console_getwh): New function.
52626 (grub_console_term): New member `getwh'.
52627 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52628 (grub_vga_term): New member `getwh'.
0b5abe02 52629 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 52630 grub_ssize_t.
52631 (grub_ofconsole_getw): New function.
52632 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52633 (grub_ofconsole_term): New field named getwh and new initial
52634 value.
52635
3be7266d 526362005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52637
52638 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52639 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52640 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52641 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52642 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52643 of <grub/machine/ieee1275.h>.
52644 * commands/ieee1275/reboot.c: Likewise.
52645 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52646 * kern/ieee1275.c: ... to here. All users updated. Change all
52647 parameter structs to use new type `grub_ieee1275_cell_t'.
52648 * term/powerpc/ieee1275/ofconsole.c: Move ...
52649 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52650 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52651 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52652 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52653 to return int.
52654 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52655 Remove unused prototypes. All users updated.
52656 * include/grub/powerpc/ieee1275/console.h: Removed.
52657 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52658 `grub_ieee1275_cell_t'.
52659 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52660 Cast comparisons with -1 to the correct type.
52661 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52662 type to match `grub_ieee1275_entry_fn'.
52663
8b5f3938 526642005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52665
52666 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52667
52668 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52669 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52670 partmap/sun.c.
52671 (grub_probefs_SOURCES): New variable.
52672
52673 * util/i386/pc/grub-probefs.c: New file.
52674
52675 * util/i386/pc/grub-setup.c (main): Call
52676 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52677 grub_hfs_init and grub_jfs_init to initialize the system. Call
52678 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52679 grub_pc_partition_map_fini to finish the system.
52680
ea409713 526812005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52682
52683 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52684 function.
52685 (grub_multiboot_load_elf32): Likewise.
52686 (grub_multiboot_is_elf64): Likewise.
52687 (grub_multiboot_load_elf64): Likewise.
52688 (grub_multiboot_load_elf): Likewise.
52689 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52690 an ELF32 or ELF64 file.
52691 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52692
52693 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52694 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52695 NULL before calling FS->LABEL.
52696 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52697 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52698 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52699 before calling FS->LABEL.
52700
141a288b 527012005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52702
52703 * util/i386/pc/grub-install.in (datadir): New variable.
52704 (libdir): Removed.
52705 (pkgdatadir): New variable.
52706 (pkglibdir): Removed.
52707
0d5f8a54 527082005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52709
52710 * DISTLIST: Added util/i386/pc/grub-install.in.
52711
52712 * util/i386/pc/grub-install.in: New file.
52713
52714 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52715 (grub_install_SOURCES): Likewise.
52716
52717 * genmk.rb: Added support for scripts.
52718 (Script): New class.
52719 (scripts): New variable.
52720
52721 * Makefile.in (install-local): Install sbin_SCRIPTS by
52722 INSTALL_SCRIPT.
52723 (uninstall): Remove sbin_SCRIPTS.
52724
52725 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52726 device, try to get a GRUB device by
52727 grub_util_biosdisk_get_grub_dev.
52728 Free DEST_DEV.
52729
52730 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52731 description for --device-map.
52732
5f968e1e 527332005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52734
52735 Change the semantics of variable hooks. They now return strings
52736 instead of error values.
f19dbdb7 52737
5f968e1e 52738 * util/i386/pc/grub-setup.c: Include grub/env.h.
52739 (setup): Use grub_device_set_root instead of grub_env_set.
52740
52741 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52742 grub_env_get instead of grub_device_set_root and
52743 grub_device_get_root, respectively.
52744
52745 * kern/main.c (grub_env_write_root): New function.
52746 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52747 grub_env_set instead of grub_device_set_root.
52748
52749 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52750 many variables.
52751 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52752 rather than calling ENV->WRITE_HOOK afterwards.
52753 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52754 passing a pointer of a pointer.
52755 (grub_register_variable_hook): Change the types of "read_hook" and
52756 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52757 respectively.
52758 Allocate the default empty string on the heap, because this string
52759 may be freed later.
52760
52761 * kern/device.c: Include grub/env.h.
52762 (grub_device_set_root): Removed.
52763 (grub_device_get_root): Likewise.
52764 (grub_device_open): Use grub_env_get instead of
52765 grub_device_get_root.
52766
52767 * include/grub/env.h (grub_env_read_hook_t): New type.
52768 (grub_env_write_hook_t): Likewise.
52769 (grub_env_var): Change the types of "read_hook" and "write_hook"
52770 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52771 (grub_register_variable_hook): Likewise.
52772
52773 * include/grub/device.h (grub_device_set_root): Removed.
52774 (grub_device_set_root): Likewise.
52775
52776 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52777 make sure that DIRNAME terminates with '/', so that
52778 grub_fat_find_dir will fail if PATH is not a directory.
52779
52780 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52781 from DIRNAME.
52782 Use the qualifier auto for print_files and print_files_long.
52783 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52784 as a regular file.
52785 Put a newline only if there is no error.
52786 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52787 used.
52788
896f0afd 527892005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52790
52791 * kern/partition.c (grub_partition_probe): Initialize PART to
52792 NULL. Otherwise, when no partition map is registered, this returns
52793 a garbage.
52794
b28b81b2 527952005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52796
52797 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52798 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52799 valid.
52800
5f3607e0 528012005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52802
52803 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52804 information on each device, if it does not have partitions. Print
52805 "Device" instead of "Disk", because this function is not specific
52806 to disk devices.
52807
52808 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52809 static to ensure that it is put on the memory rather than a
52810 register.
52811
502c87e8 528122005-07-17 Yoshinori Okuji <okuji@enbug.org>
52813
52814 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52815 (grub_cat_init): Likewise.
52816 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52817 (options): Likewise.
52818 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52819 (grub_configfile_init): Likewise.
52820 * font/manager.c (GRUB_MOD_INIT): Likewise.
52821 * commands/help.c (GRUB_MOD_INIT): Likewise.
52822 (grub_help_init): Likewise.
52823 * normal/command.c (grub_command_init): Likewise.
52824 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52825 * disk/loopback.c (grub_loop_init): Likewise.
52826 (GRUB_MOD_INIT): Likewise.
52827 * commands/ls.c (grub_ls_init): Likewise.
52828 (GRUB_MOD_INIT): Likewise.
52829 (options): Likewise.
52830 * commands/boot.c (grub_boot_init): Likewise.
52831 (GRUB_MOD_INIT): Likewise.
52832 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52833 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52834 (GRUB_MOD_INIT): Likewise.
52835 * commands/cmp.c (grub_cmp_init): Likewise.
52836 (GRUB_MOD_INIT): Likewise.
52837
52838 * normal/arg.c: Use <> instead of "" to include header files.
52839 (SHORT_ARG_HELP): New macro.
52840 (SHORT_ARG_USAGE): Likewise.
52841 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52842 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52843 descriptions.
52844 (find_short): Check if C is 'h' or 'u' explicitly.
52845 (grub_arg_show_help): Use space characters instead of tabs. Treat
52846 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52847 are shown with --help and --usage only if they are not used for
52848 the command itself.
52849 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52850 'h' and 'u'.
52851
52852 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52853 const into "longarg". Change the type of "shortarg" to int.
52854
f806d18e 528552005-07-17 Yoshinori Okuji <okuji@enbug.org>
52856
52857 * boot/i386/pc/boot.S (boot_drive_check): New label.
52858
52859 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52860 macro.
52861
52862 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52863 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52864
e293232b 528652005-07-17 Yoshinori Okuji <okuji@enbug.org>
52866
52867 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52868 When turning off Gate A20, skip the check and return immediately,
52869 because this is not fatal usually.
52870
ebedfd00 528712005-07-17 Yoshinori Okuji <okuji@enbug.org>
52872
52873 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52874 be 0x7C00 instead of 0x8000.
52875
52876 * boot/i386/pc/pxeboot.S: Rewritten.
52877
52878 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52879 EXT_C.
52880 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52881 result.
52882
654fc59f 528832005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52884
52885 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52886 robustness. This routine now supports a BIOS call and System
52887 Control Port A to modify the gate A20.
52888
52889 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52890 Increased to 0x440.
52891
09f9923f 528922005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52893
52894 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52895 device path and resulting ihandle.
52896 (grub_ofdisk_close): dprintf the ihandle being closed.
52897 (grub_ofdisk_read): dprintf function parameters.
52898 * kern/mm.c (grub_mm_init_region): Likewise.
52899 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52900 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52901 size, and boot arguments.
52902 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52903 before loading into memory.
52904 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52905 before loading into memory.
52906
7ef504d8 529072005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52908
52909 * kern/mm.c: Added much documentation.
52910 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52911 8, set to 5 instead of 8.
52912
e0f050c2 529132005-07-10 Yoshinori Okuji <okuji@enbug.org>
52914
52915 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52916
52917 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52918 (grub_mkdevicemap_SOURCES): New variable.
52919
52920 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52921 lib/device.c of GRUB Legacy.
52922
7224189a 529232005-07-10 Yoshinori Okuji <okuji@enbug.org>
52924
52925 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52926 instead of PATH is NULL.
52927
68c864eb 529282005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52929
52930 * commands/cmp.c (BUFFER_SIZE): New macro.
52931 (grub_cmd_cmp): Close the right file at the right time. Compare
52932 only data just read. Don't report files of different size as
52933 identical. Dynamically allocate buffers. Move variable
52934 declarations at the beginning of function.
52935
e6f3e614 529362005-07-09 Yoshinori Okuji <okuji@enbug.org>
52937
52938 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52939 reverse.
52940
f8f1559a 529412004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52942
52943 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52944 when backspace is pressed at beginning of line.
52945
39c9d41d 529462005-07-03 Yoshinori Okuji <okuji@enbug.org>
52947
52948 * DISTLIST: Added genfslist.sh.
52949
52950 * normal/main.c (fs_module_list): New variable.
52951 (autoload_fs_module): New function.
52952 (read_fs_list): Likewise.
52953 (grub_normal_execute): Call read_fs_list.
52954
52955 * kern/fs.c (grub_fs_autoload_hook): New variable.
52956 (grub_fs_probe): Added support for auto-loading.
52957
52958 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52959 (grub_fs_module_list_t): New type.
52960
52961 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52962 (grub_fs_autoload_hook): New prototype.
52963
52964 * genfslist.sh: New file.
f19dbdb7 52965
39c9d41d 52966 * genmk.rb: Added a rule to generate a filesystem list.
52967
121c1d83 529682005-06-30 Marco Gerards <metgerards@student.han.nl>
52969
52970 * configure.ac: Fix the test for cross-compiling.
52971
52972 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52973 define GRUB_UTIL anymore.
52974
52975 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52976 so this function works on other systems than just big endian.
52977 (load_modules): Likewise.
52978 (add_segments): Likewise.
52979
e75d76e1 529802005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52981
52982 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52983 contains `l' modifier, get a long from va_arg().
52984
50b5a0a7 529852005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52986
52987 * kern/mm.c (grub_free): If the next free block which is being
52988 merged is the first free block, set the first block to the block
52989 being freed.
52990 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52991
89371b20 529922005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52993
52994 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52995 `grub_ieee1275_chosen'.
52996
168d6e58 529972005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52998
52999 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
53000 (grub_ieee1275_chosen): New variable.
53001 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
53002 `chosen'.
53003 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53004 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53005 Rename first argument to `phandle' for consistency.
53006 (grub_ieee1275_get_property_length): Likewise.
53007 (grub_ieee1275_next_property): Likewise. Change type of first argument
53008 to grub_ieee1275_phandle_t.
53009 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53010 Move export next to declaration.
53011 (grub_ieee1275_chosen): New variable.
53012 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53013 Correct cosmetic typo.
53014 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53015 `grub_ieee1275_chosen'.
53016 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53017 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53018 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53019 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53020 `grub_ieee1275_chosen'.
53021
ca5baa3f 530222005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53023
53024 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53025 /chosen/bootargs.
53026 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53027 /chosen/bootargs as "variable=value" pairs.
53028
708b345f 530292005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53030
53031 * include/grub/misc.h (grub_dprintf): New macro.
53032 (grub_real_dprintf): New prototype.
53033 (grub_strword): Likewise.
53034 (grub_iswordseparator): Likewise.
53035 * kern/misc.c (grub_real_dprintf): New function.
53036 (grub_strword): Likewise.
53037 (grub_iswordseparator): Likewise.
53038
f4c5e67c 530392005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53040
53041 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53042 (roundup): Remove macro.
53043 (grub_ieee1275_flags): Make static.
53044 (grub_ieee1275_realmode): Remove.
53045 (grub_ieee1275_test_flag): New function.
53046 (grub_ieee1275_set_flag): Likewise.
53047 (find_options): Rename to `grub_ieee1275_find_options'; update
53048 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53049 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53050 (cmain): New prototype.
53051 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53052 `grub_ieee1275_flags' directly.
53053 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53054 machine/biosdisk.h.
53055 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53056 Don't include grub/machine/init.h.
53057 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53058 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53059 Remove prototype.
53060 (grub_ieee1275_realmode): Likewise.
53061 (grub_ieee1275_flag): New enum.
53062 (grub_ieee1275_test_flag): New prototype.
53063 (grub_ieee1275_set_flag): New prototype.
53064 * include/grub/powerpc/ieee1275/init.h: Remove file.
53065 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53066 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53067 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53068 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53069 comment.
53070 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53071 `grub_ieee1275_test_flag'.
53072 (grub_ieee1275_encode_devname): Likewise.
53073
ed16607e 530742005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53075
53076 * include/grub/powerpc/ieee1275/ieee1275.h
53077 (grub_ieee1275_encode_devname): New prototype.
53078 (grub_ieee1275_get_filename): Likewise.
53079 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53080 function.
53081 (grub_set_prefix): Likewise.
53082 (grub_machine_init): Call grub_set_prefix.
53083 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53084 (grub_parse_type): New enum.
53085 (grub_ieee1275_get_devargs): New function.
53086 (grub_ieee1275_get_devname): Likewise.
53087 (grub_ieee1275_parse_args): Likewise.
53088 (grub_ieee1275_get_filename): Likewise.
53089 (grub_ieee1275_encode_devname): Likewise.
53090
be369920 530912005-03-30 Marco Gerards <metgerards@student.han.nl>
53092
53093 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53094 `grub_loader_unset'.
53095
a5ce3a4a 530962005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53097
53098 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53099 instead of grub_ieee1275_interpret.
53100 (grub_halt_init): New function.
53101 (grub_halt_fini): Likewise.
53102 (GRUB_MOD_INIT): Correct message grammar.
53103 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53104 instead of grub_ieee1275_interpret.
53105 (grub_reboot_init): New function.
53106 (grub_reboot_fini): Likewise.
53107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53108 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53109 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53110 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53111 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53112 function.
53113 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53114 Add prototype.
53115 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53116 prototype.
53117 (grub_halt): Likewise.
53118 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53119 (cmain): Remove __attribute__((unused)).
53120 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53121 (grub_heap_len): Likewise.
53122 (grub_machine_fini): New function.
53123 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53124 (grub_halt): Likewise.
53125 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53126 function.
53127 * util/powerpc/ieee1275/misc.c: New file.
53128
0058f771 531292005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53130
53131 * DISTLIST: New file.
53132 * gendistlist.sh: Likewise.
f19dbdb7 53133
0058f771 53134 * Makefile.in (COMMON_DISTFILES): Removed.
53135 (BOOT_DISTFILES): Likewise.
53136 (CONF_DISTFILES): Likewise.
53137 (DISK_DISTFILES): Likewise.
53138 (FS_DISTFILES): Likewise.
53139 (INCLUDE_DISTFILES): Likewise.
53140 (KERN_DISTFILES): Likewise.
53141 (LOADER_DISTFILES): Likewise.
53142 (TERM_DISTFILES): Likewise.
53143 (UTIL_DISTFILES): Likewise.
53144 (DISTFILES): Likewise.
53145 (uninstall): Uninstall files in $(pkgdata_DATA).
53146 (DISTLIST): New target.
53147 (distdir): Use the contents of the file DISTLIST to get a list of
53148 distributed files.
53149
46b3b8a5 531502005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53151
53152 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53153 descriptor. This is ported from GRUB Legacy.
53154
53155 * gencmdlist.sh: Added an extra semicolon to make it work with
53156 old sed versions. Reported by Robert Bihlmeyer
53157 <robbe@orcus.priv.at>.
53158
5822ff87 531592005-03-08 Yoshinori Okuji <okuji@enbug.org>
53160
53161 Automatic loading of commands is supported.
f19dbdb7 53162
5822ff87 53163 * normal/main.c (read_command_list): New function.
53164 (grub_normal_execute): Call read_command_list.
53165
53166 * normal/command.c (grub_register_command): Return zero or CMD.
53167 Allocate CMD->NAME from the heap.
53168 Initialize CMD->MODULE_NAME to zero.
53169 Find the same name as well. If the same command is found and it is
53170 a dummy command, overwrite members. If it is not a dummy command,
53171 return zero.
53172 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53173 (grub_command_find): If a dummy command is found, load a module
53174 and retry to find a command only once.
53175
53176 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53177 make sure that each command is loaded.
53178
53179 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53180 macro.
53181 (struct grub_command): Remove const from the member `name'.
53182 Add a new member `module_name'.
53183 (grub_register_command): Return grub_command_t.
53184
53185 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53186 sure that each command is loaded.
53187
53188 * genmk.rb (PModule::rule): Specify a module name without the
53189 suffix ".mod" to gencmdlist.sh.
53190
7b1f4b57 531912005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53192
53193 * gencmdlist.sh: New file.
f19dbdb7 53194
7b1f4b57 53195 * genmk.rb (PModule::rule): Generate a rule for a command list.
53196 Clean command.lst.
53197 Generate command.lst from $(COMMANDFILES).
53198
53199 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53200 (DATA): Added $(pkgdata_DATA).
53201 (install-local): Install files in $(pkgdata_DATA).
53202
062aaf39 532032005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53204
53205 * term/i386/pc/vga.c (debug_command): Removed.
53206 (GRUB_MOD_INIT): Do not register the command "debug".
53207
53208 From Hollis Blanchard:
53209 * commands/configfile.c: New file.
53210 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53211 commands/configfile.c.
53212 (pkgdata_MODULES): Added configfile.mod.
53213 (configfile_mod_SOURCES): New variable.
53214 (configfile_mod_CFLAGS): Likewise.
53215 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53216 commands/configfile.c.
53217 (pkgdata_MODULES): Added configfile.mod.
53218 (configfile_mod_SOURCES): New variable.
53219 (configfile_mod_CFLAGS): Likewise.
53220 * util/grub-emu.c (main): Call grub_configfile_init and
53221 grub_configfile_fini.
53222 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53223 prototype.
53224 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 53225
cee01aa6 532262005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53227
53228 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53229 address.
53230
53231 * commands/help.c (grub_cmd_help): Do not print newlines after
53232 the last command in print_command_help.
53233
93f3a1d8 532342005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53235
53236 * commands/default.h: New file.
53237 * commands/timeout.h: Likewise.
53238 * normal/context.c: Likewise.
f19dbdb7 53239
93f3a1d8 53240 * util/misc.c: Do not include sys/times.h.
53241 Include sys/time.h and grub/machine/time.h.
53242 (grub_get_rtc): Rewritten with gettimeofday.
53243
53244 * util/grub-emu.c (main): Call grub_default_init and
53245 grub_timeout_init before grub_normal_init, and call
53246 grub_timeout_fini and grub_default_fini after grub_main.
53247
53248 * util/console.c (grub_ncurses_checkkey): Return the read
53249 character or -1.
53250
53251 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53252 timeouts.
53253
53254 * normal/main.c (read_config_file): Push MENU. If this fails,
53255 print an error and wait for a user input.
53256 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53257 If a menu is empty or an error occurs, pop MENU.
53258 (grub_normal_execute): Pop and free MENU after grub_menu_run
53259 returns.
53260
53261 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53262
53263 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53264 include time.h.
53265 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53266 without GRUB_UTIL.
53267 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53268 time.h.
53269 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53270 without GRUB_UTIL.
53271
53272 * include/grub/normal.h (struct grub_menu_list): New struct.
53273 (grub_menu_list_t): New type.
53274 (struct grub_context): New struct.
53275 (grub_context_t): New type.
53276 (grub_register_command): Got rid of EXPORT_FUNC.
53277 (grub_unregister_command): Likewise.
53278 (grub_context_get): New prototype.
53279 (grub_context_get_current_menu): Likewise.
53280 (grub_context_push_menu): Likewise.
53281 (grub_context_pop_menu): Likewise.
53282 [GRUB_UTIL] (grub_default_init): Likewise.
53283 [GRUB_UTIL] (grub_default_fini): Likewise.
53284 [GRUB_UTIL] (grub_timeout_init): Likewise.
53285 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53286
53287 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53288 commands/timeout.c and normal/context.c.
53289 (pkgdata_MODULES): Added default.mod and timeout.mod.
53290 (normal_mod_SOURCES): Added normal/context.c.
53291 (default_mod_SOURCES): New variable.
53292 (default_mod_CFLAGS): Likewise.
53293 (timeout_mod_SOURCES): Likewise.
53294 (timeout_mod_CFLAGS): Likewise.
53295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53296 conf/i386-pc.rmk.
53297 (pkgdata_MODULES): Added default.mod and timeout.mod.
53298 (normal_mod_SOURCES): Added normal/context.c.
53299 (default_mod_SOURCES): New variable.
53300 (default_mod_CFLAGS): Likewise.
53301 (timeout_mod_SOURCES): Likewise.
53302 (timeout_mod_CFLAGS): Likewise.
53303
53304 * Makefile.in (all-local): Added $(MKFILES).
53305
4ed2e1dd 533062005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53307
53308 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53309 (grub_emu_SOURCES): Likewise.
53310 (pkgdata_MODULES): Add `sun.mod'.
53311 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53313 `partmap/sun.c'.
53314 (pkgdata_MODULES): Add `sun.mod'.
53315 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53316 * include/grub/partition.h (grub_sun_partition_map_init): New
53317 prototype.
53318 (grub_sun_partition_map_fini): Likewise.
53319 * partmap/sun.c: New file.
53320 * util/grub-emu.c (main): Initialize and de-initialize the sun
53321 partitionmap support.
53322
4d4e372e 533232005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53324
53325 This implements an Emacs-like menu entry editor.
f19dbdb7 53326
4d4e372e 53327 * normal/menu_entry.c: New file.
f19dbdb7 53328
4d4e372e 53329 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53330 characters to ASCII.
53331 (saved_char): New variable.
53332 (grub_ncurses_checkkey): Rewritten completely.
53333 (grub_ncurses_getkey): Likewise.
53334 (grub_ncurses_init): Call raw instead of cbreak.
53335
53336 * normal/menu.c (print_entry): Do not put a space.
53337 (init_page): Renamed to ...
53338 (grub_menu_init_page): ... this. All callers changed.
53339 (edit_menu_entry): Removed.
53340 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53341
53342 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53343
53344 * kern/misc.c (grub_vprintf): Call grub_refresh.
53345
53346 * normal/menu.c (DISP_LEFT): Renamed to ...
53347 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53348 * normal/menu.c (DISP_UP): Renamed to ...
53349 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53350 * normal/menu.c (DISP_RIGHT): Renamed to ...
53351 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53352 * normal/menu.c (DISP_DOWN): Renamed to ...
53353 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53354 * normal/menu.c (DISP_HLINE): Renamed to ...
53355 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53356 * normal/menu.c (DISP_VLINE): Renamed to ...
53357 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53358 * normal/menu.c (DISP_UL): Renamed to ...
53359 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53360 * normal/menu.c (DISP_UR): Renamed to ...
53361 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53362 * normal/menu.c (DISP_LL): Renamed to ...
53363 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53364 * normal/menu.c (DISP_LR): Renamed to ...
53365 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53366 * normal/menu.c (TERM_WIDTH): Renamed to ...
53367 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53368 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53369 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53370 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53371 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53372 * normal/menu.c (TERM_MARGIN): Renamed to ...
53373 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53374 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53375 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53376 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53377 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53378 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53379 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53380 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53381 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53382 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53383 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53384 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53385 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53386 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53387 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53388 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53389 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53390 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53391 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53392 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53393 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53394 All callers changed.
53395
53396 * include/grub/normal.h: New prototype.
53397
53398 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53399 normal/menu_entry.c.
53400 (normal_mod_SOURCES): Likewise.
53401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53402 (normal_mod_SOURCES): Likewise.
53403
e6b92c8a 534042005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53405
53406 * include/grub/normal.h (grub_halt_init): New prototype.
53407 (grub_halt_fini): Likewise.
53408 (grub_reboot_init): Likewise.
53409 (grub_reboot_fini): Likewise.
53410
53411 * util/grub-emu.c: Include signal.h.
53412 (main_env): New global variable.
53413 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53414 catch C-c.
53415 (grub_machine_fini): New function.
53416 (main): Call grub_halt_init and grub_reboot_init before
53417 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53418 Call setjmp with MAIN_ENV to go back afterwards.
53419 Call grub_machine_fini right before return.
53420
53421 * include/grub/util/misc.h: Include setjmp.h.
53422 (main_env): New prototype.
53423
53424 * include/grub/kernel.h (grub_machine_fini): New prototype.
53425 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53426 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53427
53428 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53429 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53430 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 53431
e6b92c8a 53432 * util/i386/pc/misc.c: New file.
f19dbdb7 53433
e6b92c8a 53434 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53435 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53436 commands/i386/pc/reboot.c.
53437
c642636f 534382005-02-14 Guillem Jover <guillem@hadrons.org>
53439
53440 * include/grub/dl.h (grub_dl_check_header): New prototype.
53441 (grub_arch_dl_check_header): Change return type to grub_err_t,
53442 remove size parameter and export function. Update all callers.
53443 * kern/dl.c (grub_dl_check_header): New function.
53444 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53445 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53446 are inside the core.
53447 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53448 independent ELF header checks.
53449 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53450 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53451 `grub_dl_check_header' instead of explicit checks. Check for the
53452 ELF type.
53453 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53454 `grub_dl_check_header' instead of explicit checks. Remove arch
53455 specific ELF header checks.
53456
e6b92c8a 53457 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53458 argument SIZE.
53459
5eabe94b 534602005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53461
53462 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53463 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53464
1b14a681 534652005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53466
53467 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 53468 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 53469 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 53470 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 53471 * partmap/amiga.c (amiga_partition_map_iterate): Return
53472 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53473 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53474
aca108aa 534752005-02-01 Guillem Jover <guillem@hadrons.org>
53476
53477 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53478 help info.
53479
c9f9c556 534802005-01-31 Marco Gerards <metgerards@student.han.nl>
53481
53482 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53483 Removed prototype.
53484 (grub_rescue_cmd_linux): New prototype.
53485 (grub_rescue_cmd_initrd): Likewise.
53486 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53487 `bi_rec'.
53488 (grub_linux_release_mem): Release the memory for the initrd.
53489 (grub_load_linux): Renamed from this...
53490 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53491 Changed `entry' not to be static. Loop over memory regions to
53492 find another one when the default fails.
53493 (grub_rescue_cmd_initrd): New function.
53494 (grub_linux_init): Remove function.
53495 (grub_linux_fini): Likewise.
53496 (GRUB_MOD_INIT): Register `initrd'.
53497 (GRUB_MOD_FINI): Unregister `initrd'.
53498 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53499 Function removed.
53500 (grub_linux_normal_fini): Likewise.
53501 (GRUB_MOD_INIT): Register `initrd'.
53502 (GRUB_MOD_FINI): Unregister `initrd'.
53503
990cf3aa 535042005-01-31 Marco Gerards <metgerards@student.han.nl>
53505
53506 * commands/help.c: New file.
53507 * normal/arg.c (show_help): Renamed to...
53508 (grub_arg_show_help): ... this.
53509 * commands/i386/pc/halt.c: New file.
53510 * commands/i386/pc/reboot.c: Likewise.
53511 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53512 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53513 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53514 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53515 variables.
53516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53517 `commands/help.c'.
53518 (pkgdata_MODULES): Add `help.mod'.
53519 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53520 * grub/i386/pc/init.h (grub_reboot): New prototype.
53521 (grub_halt): Likewise.
53522 * include/grub/normal.h (grub_arg_show_help): New prototype.
53523 (grub_help_init): Likewise.
53524 (grub_help_fini): Likewise.
53525 * util/grub-emu.c (main): Initialize and deinitialize the help
53526 command.
53527
53528 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53529
53530 * normal/command.c (grub_command_init): Fixed the description of
53531 the `set' and `unset' commands.
53532
535332005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 53534
53535 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53536 function.
53537 * commands/ieee1275/halt.c: New file.
53538 * commands/ieee1275/reboot.c: Likewise.
53539 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53540 `__attribute__ ((unused))'. Some GCS related fixed.
53541 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53542 (grub_suspend_fini): Likewise.
53543 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53544 and `halt.mod'.
53545 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53546 (halt_mod_CFLAGS): New variables.
53547 * include/grub/powerpc/ieee1275/ieee1275.h
53548 (grub_ieee1275_interpret): New prototype.
53549
1ab09cc7 535502005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53551
53552 * include/grub/misc.h (memmove): New prototype.
53553 (memcpy): Likewise.
53554
8b8cbdb2 535552005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53556
53557 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53558 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53559
e3741a27 535602005-01-22 Marco Gerards <metgerards@student.han.nl>
53561
53562 * kern/misc.c (grub_strndup): Function rewritten.
53563
776bd780 535642005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53565
53566 * normal/menu.c (TERM_WIDTH): Macro redefined.
53567 (TERM_TOP_BORDER_Y): Likewise.
53568 (draw_border): Replaced while-loop by a for-loop. Make the number
53569 of lines consistent with the number of lines displayed in
53570 print_entries. Added a margin below the rectangle.
53571 (print_entry): Make the entry fit in the rectangle.
53572 (print_entries): Display the scroll arrows next to the right
53573 border.
53574
78026bce 535752005-01-21 Marco Gerards <metgerards@student.han.nl>
53576
53577 * fs/minix.c (grub_minix_find_file): Reserve more space for
53578 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53579 `grub_strncpy' to copy `path' into it.
53580
67bbaf0f 535812005-01-21 Marco Gerards <metgerards@student.han.nl>
53582
53583 Add the loopback device, a device via which files can be accessed
53584 as devices.
f19dbdb7 53585
67bbaf0f 53586 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53587 (pkgdata_MODULES): Add loopback.mod.
53588 (loopback_mod_SOURCES): New variable.
53589 (loopback_mod_CFLAGS): Likewise.
53590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53591 `disk/loopback.c'.
53592 (pkgdata_MODULES): Add loopback.mod.
53593 (loopback_mod_SOURCES): New variable.
53594 (loopback_mod_CFLAGS): Likewise.
53595 * disk/loopback.c: new file.
53596 * include/grub/normal.h (grub_loop_init): New prototype.
53597 (grub_loop_fini): New prototype.
53598 * util/grub-emu.c (main): Initialize and de-initialize loopback
53599 support.
53600 * include/grub/disk.h (grub_disk_dev_id): Add
53601 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53602
6f1c18bd 536032005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53604
53605 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53606 function.
53607 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53608 (suspend_mod_SOURCES): New variable.
53609 (suspend_mod_CFLAGS): Likewise.
53610 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53611 New prototype.
53612 * commands/ieee1275/suspend.c: New file.
53613
b38551da 536142005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53615
53616 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 53617 ((unused))' to `__attribute__ ((used))'.
b38551da 53618 (GRUB_MOD_FINI): Likewise.
53619 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53620 * genmk.rb (PModule): Assign space to common symbols when linking
53621 modules.
53622
777aff39 536232005-01-20 Marco Gerards <metgerards@student.han.nl>
53624
53625 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53626 `unsigned' arguments to `grub_size_t'.
53627 (grub_malloc): Likewise.
53628 (grub_realloc): Likewise.
53629 (grub_memalign): Likewise.
53630 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53631 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53632 * util/misc.c (grub_malloc): Likewise.
53633 (grub_realloc): Likewise.
53634 * kern/mm.c (get_header_from_pointer): Change the casts to
53635 `unsigned' into a cast to `grub_size_t'.
53636
53637 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53638 point to `currnode' when `currnode' is changed.
53639
53640 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53641 Schottelius <nico-linux@schottelius.org>.
53642
d0ff18e1 536432005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53644
53645 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53646 (note_path): Remove variable.
53647 (GRUB_IEEE1275_NOTE_NAME): New macro.
53648 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53649 (grub_ieee1275_note_hdr): New structure.
53650 (grub_ieee1275_note_desc): Likewise.
53651 (grub_ieee1275_note): Likewise.
53652 (load_note): Remove `dir' argument. All callers updated. Remove
53653 `note_img' and `path'. Do not load a file from `note_path'.
53654 Initialize a struct grub_ieee1275_note and write that to `out'.
53655 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53656
4ca7004c 536572005-01-05 Marco Gerards <metgerards@student.han.nl>
53658
53659 * util/misc.c (grub_util_read_image): Revert last change. It
53660 called `grub_util_read_at', which seeks from the beginning of the
53661 file.
53662
0b412211 536632005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53664
53665 * TODO: Add note about endianness in grub-mkimage.
53666 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53667 section.
53668 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53669 (grub_mkimage_SOURCES): New target.
53670 * include/grub/kernel.h (grub_start_addr): Remove variable.
53671 (grub_end_addr): Likewise.
53672 (grub_total_module_size): Likewise.
53673 (grub_kernel_image_size): Likewise.
53674 (GRUB_MODULE_MAGIC): New constant.
53675 (grub_module_info): New structure.
53676 (grub_arch_modules_addr): New prototype.
53677 (grub_get_end_addr): Remove prototype.
53678 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53679 * include/grub/powerpc/ieee1275/kernel.h: New file.
53680 * include/grub/util/misc.h (grub_util_get_fp_size): New
53681 prototype.
53682 (grub_util_read_at): Likewise.
53683 (grub_util_write_image_at): Likewise.
53684 * kern/main.c (grub_get_end_addr): Remove function.
53685 (grub_load_modules): Call grub_arch_modules_addr instead of using
53686 grub_end_addr. Look for a grub_module_info struct in memory. Use
53687 the grub_module_info fields instead of calling grub_get_end_addr
53688 as loop conditions. Move grub_add_unused_region code here.
53689 (grub_add_unused_region): Remove function.
53690 * kern/i386/pc/init.c: Include grub/cache.h.
53691 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53692 one call to add_mem_region.
53693 (grub_arch_modules_addr): New function.
53694 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53695 (grub_total_module_size): Likewise.
53696 Include grub/machine/kernel.h.
53697 (grub_arch_modules_addr): New function.
53698 * util/grub-emu.c (grub_end_addr): Remove variable.
53699 (grub_total_module_size): Likewise.
53700 (grub_arch_modules_addr): New function.
53701 * util/misc.c: Include unistd.h.
53702 (grub_util_get_fp_size): New function.
53703 (grub_util_read_at): Likewise.
53704 (grub_util_write_image_at): Likewise.
53705 (grub_util_read_image): Call grub_util_read_at.
53706 (grub_util_write_image): Call grub_util_write_image_at.
53707 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53708 additional memory in kernel_img for a struct grub_module_info.
53709 Fill in that grub_module_info.
53710 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53711
458786f8 537122005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53713
53714 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53715 New function.
53716 * include/grub/powerpc/ieee1275/ieee1275.h
53717 (grub_ieee1275_milliseconds): New prototype.
53718 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53719 Change to 1000.
53720 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53721 grub_ieee1275_milliseconds.
53722
ac507d1b 537232005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53724
53725 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53726 variable.
53727 (find_options): New function.
53728 (cmain): Call find_options.
53729 * include/grub/powerpc/ieee1275/ieee1275.h
53730 (grub_ieee1275_realmode): New extern variable.
53731 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53732 grub_map if grub_ieee1275_realmode is false.
53733
6b8fd1c4 537342004-12-29 Marco Gerards <metgerards@student.han.nl>
53735
53736 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53737 lines are inserted and make it work like readline. Reported by
53738 Vincent Pelletier <subdino2004@yahoo.fr>.
53739
8514a1e0 537402004-12-28 Marco Gerards <metgerards@student.han.nl>
53741
53742 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53743
53744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53745 `kern/powerpc/cache.S'.
53746
924b6140 537472004-12-27 Marco Gerards <metgerards@student.han.nl>
53748
53749 * genmk.rb: Handle the `Program' class in the main loop. Written
53750 by Johan Rydberg <jrydberg@gnu.org>.
53751 (Program): New class.
53752 (programs): New variable.
53753 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53754 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53755 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53756 (help_arch): Function removed.
53757 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53758 `powerpc/libgcc.h' and `loader.h'.
53759 (pkgdata_PROGRAMS): New variable.
53760 (sbin_UTILITIES): Variable removed.
53761 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53762 (grubof_SOURCES): Variable re-defined so it only includes the
53763 core functionality.
53764 (grubof_CFLAGS): Remove `-DGRUBOF'.
53765 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53766 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53767 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53768 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53769 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53770 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53771 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53772 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53773 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53774 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53775 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53776 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53777 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53778 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53779 (pc_mod_CFLAGS): New variables.
53780 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53781 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53782 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53783 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53784 Moved from here...
53785 * include/grub/i386/pc/init.h (grub_os_area_addr)
53786 (rub_os_area_size): ... to here.
53787 * include/grub/powerpc/ieee1275/ieee1275.h
53788 (grub_ieee1275_entry_fn): Export symbol.
53789 * include/grub/powerpc/ieee1275/init.h: New file.
53790 * include/grub/powerpc/libgcc.h: Likewise.
53791 * include/grub/cache.h: Likewise.
53792 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53793 <hollis@penguinppc.org>.
53794 * kern/dl.c: Include <grub/cache.h>.
53795 (grub_dl_flush_cache): New function.
53796 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53797 for this module.
53798 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53799 (grub_console_init): Removed prototypes.
53800 (grub_machine_init): Don't initialize the modules anymore.
53801 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53802 static.
53803 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53804 Macro undef removed.
53805 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53806 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53807 relocation `R_PPC_REL32'. Return an error when the relocation is
53808 unknown.
53809 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53810 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53811 * util/misc.c (grub_arch_sync_caches): Likewise.
53812
e4b47e0c 538132004-12-19 Marco Gerards <metgerards@student.han.nl>
53814
53815 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53816 `symlist.c', add `grubof_symlist.c'.
53817 (symlist.c): Variable removed.
53818 (grubof_HEADERS): Variable added.
53819 (grubof_symlist.c): New target.
53820 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53821 `kernel_img_HEADERS'.
53822 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53823 * kern/powerpc/dl.c: New file.
53824 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53825 Function removed.
53826 (grub_arch_dl_relocate_symbols): Likewise.
53827 (grub_register_exported_symbols): Likewise.
53828
4ceb3636 538292004-12-13 Marco Gerards <metgerards@student.han.nl>
53830
53831 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53832 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53833 to fail instead. Reported by Vincent Pelletier
53834 <subdino2004@yahoo.fr>.
53835
53836 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53837 it is not allocated. Reported by Vincent Pelletier
53838 <subdino2004@yahoo.fr>.
53839
53840 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53841 output so the output looks better.
f19dbdb7 53842
3f1578fe 538432004-12-04 Marco Gerards <metgerards@student.han.nl>
53844
53845 Modulize the partition map support and add support for the amiga
53846 partition map.
f19dbdb7 53847
3f1578fe 53848 * commands/ls.c: Include <grub/partition.h> instead of
53849 <grub/machine/partition.h>.
53850 * kern/disk.c: Likewise.
53851 * kern/rescue.c: Likewise.
53852 * loader/i386/pc/chainloader.c: Likewise.
53853 * normal/cmdline.c: Likewise.
53854 * kern/powerpc/ieee1275/init.c: Likewise.
53855 (grub_machine_init): Call `grub_pc_partition_map_init',
53856 `grub_amiga_partition_map_init' and
53857 `grub_apple_partition_map_init'.
53858 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53859 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53860 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53861 `partition.h' and `pc_partition.h'.
53862 (grub_setup_SOURCES): Remove
53863 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53864 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53865 (grub_emu_SOURCES): Likewise.
53866 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53867 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53868 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53869 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53870 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53871 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53872 (grubof_SOURCES): Likewise.
53873 * disk/i386/pc/partition.c: File removed.
53874 * disk/powerpc/ieee1275/partition.c: Likewise.
53875 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53876 * include/grub/i386/pc/partition.h: Likewise.
53877 * kern/partition.c: New file.
53878 * partmap/amiga.c: Likewise.
53879 * partmap/apple.c: Likewise.
53880 * partmap/pc.c: Likewise.
53881 * include/grub/partition.h: Likewise..
53882 * include/grub/pc_partition.h: Likewise.
53883 * util/grub-emu.c: Include <grub/partition.h> instead of
53884 <grub/machine/partition.h>.
53885 (main): Call `grub_pc_partition_map_init',
53886 `grub_amiga_partition_map_init' and
53887 `grub_apple_partition_map_init' and deinitialize afterwards.
53888 * util/i386/pc/biosdisk.c: Include `#include
53889 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53890 `<grub/machine/partition.h>'.
53891 * util/i386/pc/grub-setup.c: Likewise.
53892 * util/i386/pc/biosdisk.c: Likewise.
53893 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53894 partition information in case of a PC partition.
53895 * util/i386/pc/grub-setup.c: Include `#include
53896 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53897 `<grub/machine/partition.h>'.
53898 (setup): Only access the PC specific partition information in case
53899 of a PC partition.
53900
0ef4ced9 539012004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 53902
0ef4ced9 53903 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53904 (grub_longjmp): Likewise.
53905 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53906 20.
53907 * normal/powerpc/setjmp.S: New file.
53908 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53909 `normal/powerpc/setjmp.S'.
53910 (grubof_CFLAGS): Add `-DGRUBOF'.
53911 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53912 [GRUB_UTIL && !GRUBOF].
f19dbdb7 53913
19950e29 539142004-11-16 Marco Gerards <metgerards@student.han.nl>
53915
53916 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53917 property named `name'. Correctly handle the error returned by
53918 `grub_ieee1275_finddevice' if a device can not be opened.
53919
a2fea427 539202004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53921
53922 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53923 `actual' for negativity.
53924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53925 kern/fshelp.c.
53926
41ea0ea3 539272004-11-01 Marco Gerards <metgerards@student.han.nl>
53928
53929 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53930 (PAGE_OFFSET): New macro.
53931 (CRTC_ADDR_PORT): Likewise.
53932 (CRTC_DATA_PORT): Likewise.
53933 (START_ADDR_HIGH_REGISTER): Likewise.
53934 (START_ADDR_LOW_REGISTER): Likewise.
53935 (GRAPHICS_ADDR_PORT): Likewise.
53936 (GRAPHICS_DATA_PORT): Likewise.
53937 (READ_MAP_REGISTER): Likewise.
53938 (INPUT_STATUS1_REGISTER): Likewise.
53939 (INPUT_STATUS1_VERTR_BIT): Likewise.
53940 (page): New variable.
53941 (wait_vretrace): New function.
53942 (set_read_map): Likewise.
53943 (set_start_address): Likewise.
53944 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53945 the right page.
53946 (check_vga_mem): Take the page into account.
53947 (write_char): Likewise.
53948 (write_cursor): Likewise.
53949 (scroll_up): Likewise. Copy the page to the page that is not
53950 shown and switch between both pages.
53951 (grub_vga_putchar): Fix off by one error.
53952 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53953 account.
53954
ad0bd20b 539552004-11-01 Marco Gerards <metgerards@student.han.nl>
53956
53957 Add support for iso9660 (including rockridge).
f19dbdb7 53958
ad0bd20b 53959 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53960 (iso9660_mod_SOURCES): New variable.
53961 (iso9660_mod_CFLAGS): Likewise.
53962 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53963 * include/grub/fs.h (grub_iso9660_init): New prototype.
53964 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53965 * fs/iso9660.c: New file.
53966
53967 * include/grub/misc.h (grub_strncat): New prototype.
53968 * kern/misc.c (grub_strncat): New function.
f19dbdb7 53969
ad0bd20b 53970 * fs/hfs.c (grub_hfs_mount): Translate the error
53971 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53972 * fs/jfs.c (grub_jfs_mount): Likewise.
53973 * fs/ufs.c (grub_ufs_mount): Likewise.
53974
a5477a59 539752004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53976
53977 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53978 which initialized BAT registers.
53979 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53980 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53981 Move from here...
53982 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53983 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53984 ... to here.
53985 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53986 (grub_mapclaim): Likewise.
53987 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53988 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53989 hand.
53990
9304c1f8 539912004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53992
53993 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53994 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53995 -ffreestanding and -msoft-float.
53996
86f4ae25 539972004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53998
53999 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
54000 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
54001 set in grub_ieee1275_flags.
54002
38912228 540032004-10-14 Hollis Blanchard <hollis@penguinppc.org>
54004
54005 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54006 prototype.
54007 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54008 grub_console_init first.
54009 Change the memory range used for grub_ieee1275_claim and
54010 grub_mm_init_region.
54011 Print an error message if the claim fails.
54012 Include <grub/misc.h>.
54013
d1923dc8 540142004-10-13 Hollis Blanchard <hollis@penguinppc.org>
54015
54016 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54017 Call grub_children_iterate for device nodes of type `scsi',
54018 `ide', or `ata'.
54019 (grub_ofdisk_open): Remove manual device alias resolution.
54020 Fix memory leak when device cannot be opened.
f19dbdb7 54021 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 54022 (grub_children_iterate): New prototype.
54023 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54024 New function.
54025 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54026 Return -1 if args.size was -1.
54027
4512e4f3 540282004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54029
54030 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54031 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54032 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54033 Open Firmware's memory for it; claim memory from _start to _end.
54034 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54035 (_end): New extern.
54036 (_start): Zero BSS from __bss_start to _end.
54037 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54038 New extern.
54039 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54040
4d61feb0 540412004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54042
ad0bd20b 54043 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54044 -1 if args.base was -1.
4d61feb0 54045
026fa2f9 540462004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54047
54048 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54049 escape sequence instead of a literal ^L. Also call
54050 grub_ofconsole_gotoxy.
54051
9f2220ef 540522004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54053
54054 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54055 void * arguments to grub_addr_t. All callers updated. Also make
54056 the `result' argument optional.
54057 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54058 All callers updated.
54059
8a572cd7 540602004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54061
54062 * commands/ls.c (grub_ls_list_files): Use the string following the
54063 initial ')', if present, as the filesystem path.
54064 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54065
54066 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54067
18aa81f2 540682004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54069
54070 Make the source code of the menu interface more readable.
f19dbdb7 54071
18aa81f2 54072 * normal/menu.c: Include grub/mm.h.
54073 (TERM_WIDTH): New macro.
54074 (TERM_HEIGHT): Likewise.
54075 (TERM_INFO_HEIGHT): Likewise.
54076 (TERM_MARGIN): Likewise.
54077 (TERM_SCROLL_WIDTH): Likewise.
54078 (TERM_TOP_BORDER_Y): Likewise.
54079 (TERM_LEFT_BORDER_X): Likewise.
54080 (TERM_BORDER_WIDTH): Likewise.
54081 (TERM_MESSAGE_HEIGHT): Likewise.
54082 (TERM_BORDER_HEIGHT): Likewise.
54083 (TERM_NUM_ENTRIES): Likewise.
54084 (TERM_FIRST_ENTRY_Y): Likewise.
54085 (TERM_ENTRY_WIDTH): Likewise.
54086 (TERM_CURSOR_X): Likewise.
54087 (draw_border): Use macros instead of magic numbers.
54088 (print_entry): Likewise.
54089 (print_entries): Likewise.
54090 (run_menu): Likewise. Also, handle the key 'e'.
54091 (run_menu_entry): Ignore empty command lines.
54092 (print_message): Added a new argument EDIT. If EDIT is true,
54093 print a different message.
54094 (init_page): Likewise.
54095 (edit_menu_entry): New function. Not implemented yet.
54096
b47efe30 540972004-09-17 Marco Gerards <metgerards@student.han.nl>
54098
54099 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54100 can be loaded from normal mode.
f19dbdb7 54101
b47efe30 54102 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54103 `multiboot.mod'.
54104 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54105 (multiboot_mod_CFLAGS): New variables.
54106 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 54107 * loader/i386/pc/multiboot_normal.c: Likewise.
54108
b47efe30 54109 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54110 attribute `unused'.
f19dbdb7 54111
b47efe30 54112 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54113 `fdiro' to read the mode information from instead of `diro'.
54114
54115 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54116 looking up a symlink.
54117
54118 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54119 macro.
54120 * normal/command.c (grub_command_execute): Don't parse the
54121 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54122 flags of the command.
54123
54124 * normal/menu.c (grub_menu_run): Fix typo.
54125
da75ac71 541262004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54127
54128 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54129
54130 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54131 `y + 1' instead of `y - 1'.
54132
54133 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 54134
062b24c2 541352004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54136
54137 From Hollis Blanchard <hollis@penguinppc.org>:
54138 * kern/misc.c (memmove): New alias for grub_memmove.
54139 (memcmp): New alias for grub_memcmp.
54140 (memset): New alias for grub_memset.
f19dbdb7 54141 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 54142 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 54143 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 54144 (grub_ieee1275_get_property): Likewise.
f19dbdb7 54145
8ddad845 541462004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54147
54148 Added normal mode command `chainloader' as module chain.mod, which
54149 depends on normal.mod and _chain.mod.
f19dbdb7 54150
8ddad845 54151 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54152 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54153 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54154 Deleted prototype.
54155 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54156 but arguments parsing moved to ...
54157 (grub_chainloader_cmd): ... here. New function.
54158 * include/grub/i386/pc/chainloader.h: New file.
54159 * loader/i386/pc/chainloader_normal.c: Likewise.
54160
2c1f4ce3 541612004-09-11 Marco Gerards <metgerards@student.han.nl>
54162
54163 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54164 (grub_mkimage_LDFLAGS): Likewise.
54165 (grub_emu_SOURCES): Likewise.
54166 (kernel_img_HEADERS): Added fshelp.h.
54167 * fs/ext2.c: Include <grub/fshelp.h>.
54168 (FILETYPE_REG): New macro.
54169 (FILETYPE_INO_REG): Likewise.
54170 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54171 Changed all users.
54172 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54173 all users.
54174 (grub_fshelp_node): New struct.
54175 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54176 to a pointer.
54177 (grub_ext2_get_file_block): Removed function.
54178 (grub_ext2_read_block): New function.
54179 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54180 This function was written.
54181 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54182 (grub_ext2_find_file): Removed function.
54183 (grub_ext2_read_symlink): New function.
54184 (grub_ext2_iterate_dir): Likewise.
54185 (grub_ext2_open): Rewritten.
54186 (grub_ext2_dir): Rewritten.
54187 * include/grub/fshelp.h: New file.
54188 * fs/fshelp.c: Likewise.
54189
3c52136a 541902004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54191
54192 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54193 (print_message): Add a missing newline.
54194 (run_menu): Added timeout support.
54195 (run_menu_entry): New local function.
54196 (grub_menu_run): Added support for booting.
54197
54198 * kern/loader.c (grub_loader_is_loaded): New function.
54199
54200 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54201 (grub_get_rtc): Exported.
54202
54203 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54204 (grub_get_rtc): Exported.
54205
54206 * include/grub/normal.h (struct grub_command_list): Remove
54207 constant from the member `command'.
54208
54209 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54210
54211 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54212
54213 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54214
aa033560 542152004-08-28 Marco Gerards <metgerards@student.han.nl>
54216
54217 Add support for the JFS filesystem.
54218
54219 * fs/jfs.c: New file.
54220 * include/grub/fs.h (grub_jfs_init): New prototype.
54221 (grub_jfs_fini): New prototype.
54222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54223 (grub_emu_SOURCES): Likewise.
54224 (pkgdata_MODULES): Add jfs.mod.
54225 (jfs_mod_SOURCES): New variable.
54226 (jfs_mod_CFLAGS): Likewise.
54227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54228 (grubof_SOURCES): Likewise.
54229 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54230
54231 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54232 endian to the host endian.
54233 (grub_fat_utf16_to_utf8): Move function from there...
54234 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 54235 the endianness of the source string anymore.
aa033560 54236 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54237
94bc45af 542382004-08-24 Marco Gerards <metgerards@student.han.nl>
54239
54240 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54241 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54242 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54243 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 54244
94bc45af 54245 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54246 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54247 for `node_found' and `it_dir'.
54248 (grub_hfs_dir): Add prototype for `dir_hook'.
54249
54250 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54251 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54252 and `indir32' to silence a gcc warning.
54253
54254 * include/grub/fs.h (grub_hfs_init): New prototype.
54255 (grub_hfs_fini): Likewise.
f19dbdb7 54256
54257
97543f08 542582004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54259
54260 Each disk device has its own id now. This is useful to make use
54261 of multiple disk devices.
f19dbdb7 54262
97543f08 54263 * include/grub/disk.h (grub_disk_dev_id): New enum.
54264 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54265 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54266
54267 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54268 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54269
54270 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54271 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54272
54273 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54274 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54275
54276 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54277 "id" which is used by the cache manager.
54278
54279 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54280 of just "GRUB".
54281
64372eb4 542822004-08-18 Marco Gerards <metgerards@student.han.nl>
54283
54284 * fs/hfs.c: New file.
54285 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54286 (grub_emu_SOURCES): Likewise.
54287 (pkgdata_MODULES): Add hfs.mod.
54288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54289 (grubof_SOURCES): Likewise.
54290 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54291
54292 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54293 * kern/misc.c (grub_strncasecmp): Add function.
54294
cc61b58f 542952004-08-14 Marco Gerards <metgerards@student.han.nl>
54296
54297 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54298 with parentheses.
54299
54300 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54301 (grub_ext2_dir): In case the directory entry type is unknown, read
54302 it from the inode.
54303
0ef123f6 543042004-08-02 Peter Bruin <pjbruin@dds.nl>
54305
54306 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54307 grub_load_linux instead of grub_rescue_cmd_linux as second
54308 argument of grub_rescue_register_command.
54309
54310 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54311
a447c5df 543122004-07-27 Marco Gerards <metgerards@student.han.nl>
54313
54314 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54315 function.
54316 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54317 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54318 `loader/powerpc/ieee1275/linux.c',
54319 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54320 * include/grub/powerpc/ieee1275/ieee1275.h
54321 (grub_ieee1275_release): New prototype.
54322 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54323 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54324 normal, boot, linux and linux_normal.
54325 * loader/powerpc/ieee1275/linux.c: New file.
54326 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54327
5a9e3546 543282004-07-12 Marco Gerards <metgerards@student.han.nl>
54329
54330 * normal/arg.c (grub_arg_parse): Correct error handling after
54331 reallocating the argumentlist (check if `argl' is not null instead
54332 of checking if `args' is not null).
54333 * kern/mm.c (grub_realloc): Return the same pointer when using the
54334 same region, instead of returning the header address.
54335
e15199cb 543362004-07-11 Marco Gerards <metgerards@student.han.nl>
54337
54338 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54339 one block instead of two when looking for the initial partition.
54340 (grub_partition_probe): Initialize the local variable `p' with 0.
54341 Use base 10 for the grub_strtoul call.
54342 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54343 need for one local variable.
54344 (grub_strtoul): Don't add the new value to `num', instead of that
54345 just assign it.
54346
020616c2 543472004-07-11 Marco Gerards <metgerards@student.han.nl>
54348
54349 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54350 (pxeboot_img_SOURCES): New variable.
54351 (pxeboot_img_ASFLAGS): Likewise.
54352 (pxeboot_img_LDFLAGS): Likewise.
54353 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54354 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54355 <lode_leroy@hotmail.com>.
54356
6c51eb64 543572004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54358
54359 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54360 there was no input.
54361
cfb12aff 543622004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54363
54364 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54365 the history buffer logic.
54366
6eabba74 543672004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54368
54369 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54370 (FILETYPE_INO_SYMLINK): New macros.
54371 (grub_ext2_find_file): Check if the node is a directory using the
54372 inode stat information instead of using the filetype in the
54373 dirent. Exclude the first character of an absolute symlink.
54374 (grub_ext2_dir): Mask out the filetype part of the mode member of
54375 the inode.
54376
66e19ef8 543772004-05-24 Marco Gerards <metgerards@student.han.nl>
54378
54379 Add support for UFS version 1 and 2. Add support for the minix
54380 filesystem version 1 and 2, both the variants with 14 and 30 long
54381 filenames.
f19dbdb7 54382
66e19ef8 54383 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54384 fs/minix.c.
54385 (grub_emu_SOURCES): Likewise.
54386 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54387 (ufs_mod_SOURCES): New variable.
54388 (ufs_mod_CFLAGS): Likewise.
54389 (minix_mod_SOURCES): Likewise.
54390 (minix_mod_CFLAGS): Likewise.
54391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54392 fs/minix.c.
54393 (grubof_SOURCES): Likewise.
54394 * fs/ufs.c: New file.
54395 * fs/minix.c: New file.
54396 * include/grub/fs.h (grub_ufs_init): New prototype.
54397 (grub_ufs_fini): Likewise.
54398 (grub_minix_init): Likewise.
54399 (grub_minix_fini): Likewise.
54400 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54401 minix fs.
54402
cc2e748a 544032004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54404
54405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54406 commands/ls.c, commands/terminal.c, commands/boot.c,
54407 commands/cmp.c and commands/cat.c.
54408 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54409
54410 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54411 "env.h"
54412
4b13b216 544132004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54414
54415 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54416 and grub_, respectively. Because the conversion is trivial and
54417 mechanical, I omit the details here. Please refer to the CVS
54418 if you need more information.
54419
6a142551 544202004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54421
54422 * include/pupa: Renamed to ...
54423 * include/grub: ... this.
54424 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54425 * util/i386/pc/grub-mkimage.c: ... this.
54426 * util/i386/pc/pupa-setup.c: Renamed to ...
54427 * util/i386/pc/grub-setup.c: ... this.
54428 * util/pupa-emu.c: Renamed to ...
54429 * util/grub-emu.c: ... this.
54430
e56cdf21 544312004-03-29 Marco Gerards <metgerards@student.han.nl>
54432
54433 Add support for the newworld apple macintosh (PPC). This has been
54434 tested on the powerbook 2000 only. It only adds support for
54435 generic ieee1275 functions, console and disk support. This should
54436 be easy to port to other architectures with support for Open
54437 Firmware.
f19dbdb7 54438
e56cdf21 54439 * configure.ac: Accept the powerpc as host_cpu. In the case of
54440 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54441 specific tests are only executed while building for the i386.
54442 Inverse test for crosscompile.
54443 * genmk.rb (Utility): Allow assembler files.
54444 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54445 * conf/powerpc-ieee1275.rmk: New file.
54446 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54447 * disk/powerpc/ieee1275/partition.c: Likewise.
54448 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54449 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54450 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54451 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54452 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54453 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54454 * include/pupa/powerpc/ieee1275/loader.h
54455 * include/pupa/powerpc/setjmp.h: Likewise.
54456 * include/pupa/powerpc/types.h: Likewise.
54457 * kern/powerpc/ieee1275/init.c: Likewise.
54458 * kern/powerpc/ieee1275/openfw.c: Likewise.
54459 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54460
54461 These files were written by Johan Rydberg
54462 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 54463
e56cdf21 54464 * boot/powerpc/ieee1275/cmain.c: New file.
54465 * boot/powerpc/ieee1275/crt0.S: Likewise.
54466 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54467 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54468
8c8cc205 544692004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54470
54471 * Makefile.in: Update copyright.
54472 * genmodsrc.sh: Likewise.
54473 * gensymlist.sh: Likewise.
54474 * term/i386/pc/vga.c: Indent correctly.
54475
54476 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54477 bugreporting address.
54478 * util/i386/pc/pupa-setup.c (usage): Likewise,
54479 (main): Call pupa_ext2_init and pupa_ext2_fini.
54480
f19dbdb7 54481 * fs/fat.c (log2): Renamed to ...
8c8cc205 54482 (fat_log2): ... this.
54483 All callers changed.
54484 * kern/misc.c (memcpy): Alias to pupa_memmove.
54485 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54486 lvalue cast.
54487 * util/console.c (pupa_ncurses_fini): Return 0.
54488
54489 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54490 Move fail label here.
54491 [__GNU__]: Don't warn when using stat.
54492 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54493 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54494 long int. Use strtol instead of strtoul.
f19dbdb7 54495
db1771cf 544962004-03-14 Marco Gerards <metgerards@student.han.nl>
54497
54498 * commands/boot.c: New file.
54499 * commands/cat.c: Likewise.
54500 * commands/cmp.c: Likewise.
54501 * commands/ls.c: Likewise.
54502 * commands/terminal.c: Likewise.
54503 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54504 (pupa_register_command): Changed interface to match the new
54505 argument parser.
54506 (pupa_command_execute): Changed (almost rewritten) so it uses
54507 pupa_split_command. Added support for setting variables using the
54508 syntax `foo=bar'.
54509 (rescue_command): Changed to work with the new argument parser.
54510 (terminal_command): Moved from here to commands/terminal.c.
54511 (set_command): New function.
54512 (unset_command): New function.
54513 (insmod_command): New function.
54514 (rmmod_command): New function.
54515 (lsmod_command): New function.
54516 (pupa_command_init): Don't initialize the command terminal
54517 anymore. Initialize the commands set, unset, insmod, rmmod and
54518 lsmod.
54519 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54520 (kernel_img_HEADERS): Add arg.h and env.h.
54521 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54522 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54523 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54524 normal/arg.c.
54525 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54526 terminal.mod.
54527 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54528 (boot_mod_SOURCES): New variable.
54529 (terminal_mod_SOURCES): Likewise.
54530 (ls_mod_SOURCES): Likewise.
54531 (cmp_mod_SOURCES): Likewise.
54532 (cat_mod_SOURCES): Likewise.
54533
54534 * normal/arg.c: New file.
54535 * kern/env.c: Likewise.
54536 * include/pupa/arg.h: Likewise.
54537 * include/pupa/env.h: Likewise.
54538 * font/manager.c (font_command): Changed to match argument parsing
54539 interface changes.
54540 (PUPA_MOD_INIT): Likewise.
54541 * hello/hello.c (pupa_cmd_hello): Likewise.
54542 (PUPA_MOD_INIT): Likewise.
54543 * include/pupa/disk.h: Include <pupa/device.h>.
54544 (pupa_print_partinfo): New prototype.
54545 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54546 (pupa_dl_get_prefix): Likewise.
54547 * include/pupa/misc.h: Include <pupa/err.h>.
54548 (pupa_isgraph): New prototype.
54549 (pupa_isdigit): Likewise.
54550 (pupa_split_cmdline): Likewise.
54551 * include/pupa/normal.h: Include <pupa/arg.h>.
54552 (pupa_command): Changed the prototype of the member `func' to
54553 match the argument parsing interface. Added member `options'.
54554 (pupa_register_command): Updated to match function.
54555 (pupa_arg_parse): New prototype.
54556 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54557 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54558 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54559 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54560 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54561 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54562 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54563 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54564 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54565 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54566 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54567 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54568 * kern/disk.c: Include <pupa/file.h>.
54569 (pupa_print_partinfo): New function.
54570 * kern/dl.c: Include <pupa/env.h>.
54571 (pupa_dl_dir): Variable removed.
54572 (pupa_dl_load): Use the environment variable `prefix' instead of
54573 the variable pupa_dl_dir.
54574 (pupa_dl_set_prefix): Function removed.
54575 (pupa_dl_get_prefix): Likewise.
54576 * kern/i386/pc/init.c: Include <pupa/env.h>.
54577 (pupa_machine_init): Use the environment variable `prefix' instead of
54578 using pupa_dl_set_prefix to set the prefix.
54579 * kern/main.c: Include <pupa/env.h>.
54580 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54581 using pupa_dl_get_prefix to get the prefix.
54582 * kern/misc.c: Include <pupa/env.h>.
54583 (pupa_isdigit): New function.
54584 (pupa_isgraph): Likewise.
54585 (pupa_ftoa): Likewise.
54586 (pupa_vsprintf): Added support for printing values of the type
54587 `double'. Make it possible to format variable output when using
54588 formatting like `%1.2%f'.
54589 (pupa_split_cmdline): New function.
54590 * kern/rescue.c: Include <pupa/env.h>.
54591 (next_word): Removed function.
54592 (pupa_rescue_cmd_prefix): Likewise.
54593 (pupa_rescue_cmd_set): New function.
54594 (pupa_rescue_cmd_unset): New function.
54595 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54596 split the command line instead of splitting it here. Added
54597 support for setting variables using the syntax `foo=bar'. Don't
54598 initialize the prefix command anymore. Initialized the set and
54599 unset commands.
54600 * normal/cmdline.c: Include <pupa/env.h>.
54601 (pupa_tab_complete): Added prototypes for print_simple_completion,
54602 print_partition_completion, add_completion, iterate_commands,
54603 iterate_dev, iterate_part and iterate_dir. Moved code to print
54604 partition information from here to kern/disk.c.
fe6b695a 54605 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 54606 * normal/main.c: Include <pupa/env.h>.
54607 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54608 instead of using pupa_dl_get_prefix to get the prefix.
54609 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54610 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54611 warning.
54612 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54613 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54614 ((unused))' to silence a gcc warning.
54615 (pupa_vga_setcolor): Likewise.
54616 (debug_command): Changed to match argument parsing
54617 interface changes.
54618 * util/pupa-emu.c: Include <pupa/env.h>.
54619 (options): Added 0's for unused fields to silence a gcc warning.
54620 (argp): Likewise.
54621 (main): Use the environment variable `prefix' instead of using
54622 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54623 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54624 and terminal.
54625
54626 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54627 * util/misc.c: Include <malloc.h>.
54628 (pupa_malloc): Rewritten so errors are correctly reported.
54629 (pupa_realloc): Likewise.
54630 (pupa_memalign): Likewise.
54631 (pupa_mm_init_region): Declare unused variables with
54632 `__attribute__ ((unused))' to silence a gcc warning.
54633 * normal/i386/setjmp.S: Remove tab at the end of the file to
54634 silence a gcc warning.
54635 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54636 variables with `__attribute__ ((unused))' to silence a gcc
54637 warning.
54638 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54639 local variable i unsigned to silence a gcc warning.
54640
54641 * kern/term.c: Include <pupa/misc.h>.
54642 (pupa_more_lines): New variable.
54643 (pupa_more): Likewise.
54644 (pupa_putcode): When the pager is active pause at the end of every
54645 screen.
54646 (pupa_set_more): New function.
54647 * include/pupa/term.h (pupa_set_more): New prototype.
54648
54649
3b1139cb 546502004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54651
54652 Now this project is GRUB 2 rather than PUPA. The location of
54653 the CVS repository was moved to GRUB's.
f19dbdb7 54654
3b1139cb 54655 * configure.ac: Use bug-grub as the reporting address.
54656 Use GRUB instead of PUPA.
54657 Change the version number to 1.90.
54658
8367695c 546592004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54660
54661 * genkernsyms.sh: Updated copyright information.
54662 * genmk.rb: Likewise.
54663 * genmodsrc.sh: Likewise.
54664 * gensymlist.sh: Likewise.
54665 * boot/i386/pc/boot.S: Likewise.
54666 * boot/i386/pc/diskboot.S: Likewise.
54667 * disk/i386/pc/biosdisk.c: Likewise.
54668 * disk/i386/pc/partition.c: Likewise.
54669 * font/manager.c: Likewise.
54670 * fs/ext2.c: Likewise.
54671 * fs/fat.c: Likewise.
54672 * include/pupa/boot.h: Likewise.
54673 * include/pupa/device.h: Likewise.
54674 * include/pupa/disk.h: Likewise.
54675 * include/pupa/dl.h: Likewise.
54676 * include/pupa/elf.h: Likewise.
54677 * include/pupa/err.h: Likewise.
54678 * include/pupa/file.h: Likewise.
54679 * include/pupa/font.h: Likewise.
54680 * include/pupa/fs.h: Likewise.
54681 * include/pupa/kernel.h: Likewise.
54682 * include/pupa/loader.h: Likewise.
54683 * include/pupa/misc.h: Likewise.
54684 * include/pupa/mm.h: Likewise.
54685 * include/pupa/net.h: Likewise.
54686 * include/pupa/normal.h: Likewise.
54687 * include/pupa/rescue.h: Likewise.
54688 * include/pupa/setjmp.h: Likewise.
54689 * include/pupa/symbol.h: Likewise.
54690 * include/pupa/term.h: Likewise.
54691 * include/pupa/types.h: Likewise.
54692 * include/pupa/i386/setjmp.h: Likewise.
54693 * include/pupa/i386/types.h: Likewise.
54694 * include/pupa/i386/pc/biosdisk.h: Likewise.
54695 * include/pupa/i386/pc/boot.h: Likewise.
54696 * include/pupa/i386/pc/console.h: Likewise.
54697 * include/pupa/i386/pc/init.h: Likewise.
54698 * include/pupa/i386/pc/kernel.h: Likewise.
54699 * include/pupa/i386/pc/linux.h: Likewise.
54700 * include/pupa/i386/pc/loader.h: Likewise.
54701 * include/pupa/i386/pc/memory.h: Likewise.
54702 * include/pupa/i386/pc/multiboot.h: Likewise.
54703 * include/pupa/i386/pc/partition.h: Likewise.
54704 * include/pupa/i386/pc/time.h: Likewise.
54705 * include/pupa/i386/pc/vga.h: Likewise.
54706 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54707 * include/pupa/util/getroot.h: Likewise.
54708 * include/pupa/util/misc.h: Likewise.
54709 * include/pupa/util/resolve.h: Likewise.
54710 * kern/device.c: Likewise.
54711 * kern/disk.c: Likewise.
54712 * kern/dl.c: Likewise.
54713 * kern/err.c: Likewise.
54714 * kern/file.c: Likewise.
54715 * kern/fs.c: Likewise.
54716 * kern/loader.c: Likewise.
54717 * kern/main.c: Likewise.
54718 * kern/misc.c: Likewise.
54719 * kern/mm.c: Likewise.
54720 * kern/rescue.c: Likewise.
54721 * kern/term.c: Likewise.
54722 * kern/i386/dl.c: Likewise.
54723 * kern/i386/pc/init.c: Likewise.
54724 * kern/i386/pc/lzo1x.S: Likewise.
54725 * kern/i386/pc/startup.S: Likewise.
54726 * loader/i386/pc/chainloader.c: Likewise.
54727 * loader/i386/pc/linux.c: Likewise.
54728 * loader/i386/pc/multiboot.c: Likewise.
54729 * normal/cmdline.c: Likewise.
54730 * normal/command.c: Likewise.
54731 * normal/main.c: Likewise.
54732 * normal/menu.c: Likewise.
54733 * normal/i386/setjmp.S: Likewise.
54734 * term/i386/pc/console.c: Likewise.
54735 * term/i386/pc/vga.c: Likewise.
54736 * util/console.c: Likewise.
54737 * util/genmoddep.c: Likewise.
54738 * util/misc.c: Likewise.
54739 * util/pupa-emu.c: Likewise.
54740 * util/resolve.c: Likewise.
54741 * util/unifont2pff.rb: Likewise.
54742 * util/i386/pc/biosdisk.c: Likewise.
54743 * util/i386/pc/getroot.c: Likewise.
54744 * util/i386/pc/pupa-mkimage.c: Likewise.
54745 * util/i386/pc/pupa-setup.c: Likewise.
54746
e6eced71 547472004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54748
54749 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54750 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54751 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54752 reading and reset it after reading.
54753 (pupa_ext2_close): Return PUPA_ERR_NONE.
54754
54755 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54756 Correct value.
54757 (struct linux_kernel_header): Add kernel_version and
54758 initrd_addr_max.
54759 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54760 pupa_file_read succeeds.
54761 (pupa_rescue_cmd_initrd): Implement.
54762
5aded270 547632003-12-03 Marco Gerards <metgerards@student.han.nl>
54764
54765 * fs/ext2.c (pupa_ext2_label): New function.
54766 (pupa_ext2_fs): Added label.
54767 * fs/fat.c (pupa_fat_label): New function.
54768 (pupa_fat_fs): Added label.
54769 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54770
54771 * kern/misc.c (pupa_strndup): New function.
54772 * include/pupa/misc.h (pupa_strndup): New prototype.
54773
54774 * include/pupa/normal.h: Include <pupa/err.h>.
54775 (pupa_set_history): New prototype.
54776 (pupa_iterate_commands): New prototype.
54777 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54778 <pupa/disk.h>, <pupa/file.h>.
54779 (hist_size): New variable.
54780 (hist_lines): Likewise.
54781 (hist_end): Likewise.
54782 (hist_used): Likewise.
54783 (pupa_set_history): New function.
54784 (pupa_history_get): Likewise.
54785 (pupa_history_add): Likewise.
54786 (pupa_history_replace): Likewise.
54787 (pupa_tab_complete): Likewise.
54788 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54789 completion shows partitionnames while completing partitions, this
54790 feature was suggested by Jeff Bailey.
54791 * normal/command.c (pupa_iterate_commands): New function.
54792 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54793 (pupa_normal_init): Initialize history buffer.
54794 (PUPA_MOD_INIT): Likewise.
54795 (pupa_normal_fini): Free the history buffer.
54796 (PUPA_MOD_FINI): Likewise.
54797
54798 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54799 key.
54800
54801 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54802 * configure.ac [i386]: Check for regparam bug.
54803 (NESTED_FUNC_ATTR) [! i386]: Defined.
54804
1f7315a3 548052003-11-17 Marco Gerards <metgerards@student.han.nl>
54806
54807 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54808 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54809 (pupa_emu_SOURCES): New variable.
54810 (pupa_emu_LDFLAGS): Likewise.
54811 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54812 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54813 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54814 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54815 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54816 (pupa_jmp_buf): New typedef.
54817 (pupa_setjmp) [PUPA_UTIL]: New macro.
54818 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54819 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54820 (pupa_refresh): New prototype.
54821 * include/pupa/util/getroot.h: New file.
54822 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54823 it.
54824 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54825 (pupa_rescue_cmd_cat): Likewise.
54826 (pupa_rescue_cmd_ls): Likewise.
54827 (pupa_rescue_cmd_testload): Likewise.
54828 (pupa_rescue_cmd_lsmod): Likewise.
54829 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54830 * normal/menu.c (run_menu): Likewise.
54831 * kern/term.c (pupa_cls): Likewise.
54832 (pupa_refresh): New function.
54833 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54834 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54835 * util/console.c: New file.
f19dbdb7 54836
1f7315a3 54837 * util/i386/pc/getroot.c: New file.
54838 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54839 (pupa_putchar): New function.
54840 (pupa_refresh): Likewise.
54841 (xgetcwd): Function moved to ...
54842 (strip_extra_slashes): Likewise.
54843 (get_prefix): Likewise.
f19dbdb7 54844 * util/i386/pc/getroot.c: ... here.
1f7315a3 54845 (find_root_device): Function moved and renamed to...
54846 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54847 Changed all callers.
54848 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54849 and renamed to...
54850 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54851 Changed all callers.
54852 * util/misc.c (pupa_memalign): New function.
54853 (pupa_mm_init_region): Likewise.
54854 (pupa_register_exported_symbols): Likewise.
54855 (pupa_putchar): Function removed.
54856 * util/pupa-emu.c: New file.
54857
9a5c1ade 548582003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54859
54860 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54861 (_multiboot_mod_SOURCES): New variable.
54862 (_multiboot_mod_CFLAGS): Likewise.
54863 * loader/i386/pc/multiboot.c: New file.
54864 * include/pupa/i386/pc/multiboot.h: Likewise.
54865 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54866 (pupa_multiboot_real_boot): New function.
54867 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54868 (pupa_multiboot_real_boot): New prototype.
54869 (pupa_rescue_cmd_multiboot): Likewise
54870 (pupa_rescue_cmd_module): Likewise.
54871
54872 * kern/loader.c (pupa_loader_set): Continue when
54873 pupa_loader_unload_func() fails.
54874 (pupa_loader_unset): New function.
54875 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54876
54877 * kern/misc.c (pupa_stpcpy): New function.
54878 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54879
8e72a9c0 548802003-11-12 Marco Gerards <metgerards@student.han.nl>
54881
54882 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54883 for available extensions.
54884
54885 * include/pupa/i386/pc/time.h: New file.
54886 * kern/disk.c: Include <pupa/machine/time.h>.
54887 (PUPA_CACHE_TIMEOUT): New macro.
54888 (pupa_last_time): New variable.
54889 (pupa_disk_open): Flush the cache when there was a timeout.
54890 (pupa_disk_close): Reset the timer.
54891 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54892 pupa_currticks.
54893 * util/misc.c: Include <sys/times.h>
54894 (pupa_get_rtc): New function.
54895
c4adbd32 548962003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54897
54898 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54899 as blocks.
54900 (pupa_ext2_get_file_block): Use blocks member.
54901
54902 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54903 first block. Return -1 instead of pupa_errno on error.
54904
bfd30f06 549052003-10-27 Marco Gerards <metgerards@student.han.nl>
54906
54907 * README: In the pupa-mkimage example use _chain instead of chain
54908 and ext2 instead of fat.
54909 * TODO: Replace ext2fs with jfs as an example. Add an item for
54910 adding journal playback for ext2fs.
54911 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54912 (pkgdata_MODULES): Added ext2.mod.
54913 (ext2_mod_SOURCES): New variable.
54914 (ext2_mod_CFLAGS): Likewise.
54915 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54916 * include/pupa/misc.h (pupa_strncpy): New prototype.
54917 (pupa_strcat): Likewise.
54918 (pupa_strncmp): Likewise.
54919 * kern/misc.c (pupa_strcat): Enable function.
54920 (pupa_strncpy): New function.
54921 (pupa_strncmp): Likewise.
54922 * fs/ext2.c: New file.
f19dbdb7 54923
bfd30f06 54924 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54925 when the read failed before retrying.
54926 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54927 (_FILE_OFFSET_BITS): Likewise.
54928 * configure.ac: Added AC_SYS_LARGEFILE.
54929
98d15063 549302003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54931
54932 * genmk.rb (PModule#rule): Make sure to get only symbol names
54933 from the output of nm.
59cad637 54934 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 54935
18d9c7cd 549362003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54937
54938 I forgot to check in these changes for a long time. This adds
54939 incomplete support for VGA console, and this is still very
54940 buggy. Also, a lot of consideration is required for I18N,
54941 UNICODE, and VGA font issues. Therefore, assume that this is
54942 such that "better than nothing".
f19dbdb7 54943
18d9c7cd 54944 * font/manager.c: New file.
54945 * include/pupa/font.h: Likewise.
54946 * include/pupa/i386/pc/vga.h: Likewise.
54947 * term/i386/pc/vga.c: Likewise.
54948 * util/unifont2pff.rb: Likewise.
54949
54950 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54951 (pkgdata_MODULES): Added vga.mod and font.mod.
54952 (vga_mod_SOURCES): New variables.
54953 (vga_mod_CFLAGS): Likewise.
54954 (font_mod_SOURCES): Likewise.
54955 (font_mod_CFLAGS): Likewise.
54956
54957 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54958
54959 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 54960 (struct pupa_term): Added init and fini.
18d9c7cd 54961 Changed the argument of putchar to pupa_uint32_t.
54962
54963 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54964 (pupa_console_real_putchar): New prototype.
54965 (pupa_console_putchar): Removed.
54966 (pupa_console_checkkey): Exported.
54967 (pupa_console_getkey): Likewise.
54968
54969 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54970 characters.
54971
54972 * kern/term.c (pupa_term_set_current): Rewritten.
54973 (pupa_putchar): Likewise.
54974 (pupa_putcode): New function.
54975
54976 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54977 (pupa_console_real_putchar): ... this.
54978 (pupa_vga_set_mode): New function.
54979 (pupa_vga_get_font): Likewise.
54980
54981 * normal/command.c: Include pupa/term.h.
54982 (terminal_command): New function.
54983 (pupa_command_init): Register the command "terminal".
54984
54985 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54986 (DISP_UP): Likewise.
54987 (DISP_RIGHT): Likewise.
54988 (DISP_DOWN): Likewise.
54989 (DISP_HLINE): Likewise.
54990 (DISP_VLINE): Likewise.
54991 (DISP_UL): Likewise.
54992 (DISP_UR): Likewise.
54993 (DISP_LL): Likewise.
54994 (DISP_LR): Likewise.
54995
54996 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 54997
977329f5 549982003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54999
55000 * util/resolve.c (pupa_util_resolve_dependencies): BUG
55001 FIX. Reverse the path_list.
55002
55003 * include/pupa/normal.h: Export pupa_register_command and
55004 pupa_unregister_command.
55005
55006 * hello/hello.c (pupa_cmd_hello): New module.
55007 * conf/i386-pc.rmk: Added hello.mod.
55008
1f5ab428 550092003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
55010
55011 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 55012
1f5ab428 55013 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55014 (compress_kernel): New variable.
55015 (generate_image): Heavily modified to support compressing a
55016 large part of the core image.
55017
55018 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55019 leak.
55020 (pupa_util_load_image): New function.
55021
55022 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55023 (pupa_compressed_size): New variable.
55024 (codestart): Enable Gate A20 here.
55025 Decompress the compressed part of the core image.
55026 Rearrange the code to put functions and variables which are
55027 required for initialization in the non-compressed part.
55028 Include lzo1x.S.
55029
55030 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55031 here.
55032
55033 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55034
f19dbdb7 55035 * include/pupa/i386/pc/kernel.h
1f5ab428 55036 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55037 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55038 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55039 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55040 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55041
55042 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55043
55044 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55045 (Utility#rule): Likewise.
55046
55047 * configure.ac: Check if LZO is available.
55048
ce5bf700 550492003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55050
55051 * include/pupa/normal.h: New file.
55052 * include/pupa/setjmp.h: Likewise.
55053 * include/pupa/i386/setjmp.h: Likewise.
55054 * normal/cmdline.c: Likewise.
55055 * normal/command.c: Likewise.
55056 * normal/main.c: Likewise.
55057 * normal/menu.c: Likewise.
55058 * normal/i386/setjmp.S: Likewise.
f19dbdb7 55059
ce5bf700 55060 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55061 (pupa_rescue_cmd_initrd): Likewise.
55062
55063 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55064 Likewise.
55065
55066 * kern/i386/pc/startup.S (translation_table): New variable.
55067 (translate_keycode): New function.
55068 (pupa_console_getkey): Call translate_keycode.
55069
55070 * kern/rescue.c (attempt_normal_mode): New function.
55071 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55072 it failed, print a message.
55073
55074 * kern/mm.c (pupa_real_malloc): Print more information when a
55075 free magic is broken.
55076 (pupa_free): If the first free header is not free actually, set
55077 it to P.
55078
55079 * kern/main.c (pupa_load_normal_mode): Just load the module
55080 "normal".
55081 (pupa_main): Don't print the message
55082 "Entering into rescue mode..." here.
55083
55084 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55085 Declared.
55086 (pupa_rescue_cmd_initrd): Likewise.
55087 (pupa_rescue_cmd_initrd): Likewise.
55088
55089 * include/pupa/symbol.h (FUNCTION): Specify the type.
55090 (VARIABLE): Likewise.
55091
55092 * include/pupa/err.h (pupa_err_t): Added
55093 PUPA_ERR_UNKNOWN_COMMAND.
55094
55095 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55096 (pupa_dl_get_prefix): Likewise.
55097
55098 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55099 Added _chain.mod and _linux.mod instead of chain.mod and
55100 linux.mod.
55101 (chain_mod_SOURCES): Renamed to ...
55102 (_chain_mod_SOURCES): ... this.
55103 (chain_mod_CFLAGS): Renamed to ...
55104 (_chain_mod_CFLAGS): ... this.
55105 (linux_mod_SOURCES): Renamed to ...
55106 (_linux_mod_SOURCES): ... this.
55107 (linux_mod_CFLAGS): Renamed to ...
55108 (_linux_mod_CFLAGS): ... this.
55109 (normal_mod_SOURCES): New variable.
55110 (normal_mod_CFLAGS): Likewise.
55111 (normal_mod_ASFLAGS): Likewise.
55112
551132003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55114
55115 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55116 possible.
55117
fe6b695a 55118 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 55119 recursively.
55120 (pupa_dl_unref): Unrefer depending modules recursively.
55121 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55122 a module is unloaded before one depending on that module is
55123 unloaded.
55124 (pupa_dl_unload): Unload depending modules explicitly,
55125 if possible.
55126
c04da074 551272003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55128
55129 * include/pupa/i386/pc/linux.h: New file.
55130 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 55131
c04da074 55132 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55133 Removed.
55134 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55135 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55136 of PUPA_CHAINLOADER_BOOT_SECTOR.
55137
55138 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55139 (pupa_linux_prot_size): New variable.
55140 (pupa_linux_tmp_addr): Likewise.
55141 (pupa_linux_real_addr): Likewise.
55142 (pupa_linux_boot_zimage): New function.
55143 (pupa_linux_boot_bzimage): Likewise.
55144
55145 * kern/i386/pc/init.c (struct mem_region): New structure.
55146 (MAX_REGIONS): New macro.
55147 (mem_regions): New variable.
55148 (num_regions): Likewise.
55149 (pupa_os_area_addr): Likewise.
55150 (pupa_os_area_size): Likewise.
55151 (pupa_lower_mem): Likewise.
55152 (pupa_upper_mem): Likewise.
55153 (add_mem_region): New function.
55154 (compact_mem_regions): Likewise.
55155 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55156 the size of the conventional memory and that of so-called upper
55157 memory (before the first memory hole).
55158 Instead of adding each found region to free memory, use
55159 add_mem_region and add them after removing overlaps.
55160 Also, add only 1/4 of the upper memory to free memory. The rest
55161 is used for loading OS images. Maybe this is ad hoc, but this
55162 makes it much easier to relocate OS images when booting.
55163
55164 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55165 (pupa_enter_rescue_mode): Don't register initrd and module.
55166
55167 * kern/mm.c: Include pupa/dl.h.
55168
55169 * kern/main.c: Include pupa/file.h and pupa/device.h.
55170
55171 * kern/loader.c (pupa_loader_load_module_func): Removed.
55172 (pupa_loader_load_module): Likewise.
55173
55174 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55175 ``.o''.
55176
55177 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55178 (pupa_linux_tmp_addr): Likewise.
55179 (pupa_linux_real_addr): Likewise.
55180 (pupa_linux_boot_zimage): Likewise.
55181 (pupa_linux_boot_bzimage): Likewise.
55182
55183 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55184 (pupa_upper_mem): Likewise.
55185 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55186 module is too dangerous.
55187
55188 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55189 (pupa_os_area_size): Likewise.
55190 (pupa_loader_set): Remove the first argument. Loader doesn't
55191 manage modules or initrd any longer.
55192 (pupa_loader_load_module): Removed.
55193
55194 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55195 (linux_mod_SOURCES): New variable.
55196 (linux_mod_CFLAGS): Likewise.
55197
a13f9237 551982003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55199
55200 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55201 the length of a blocklist correctly.
55202
55203 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55204 Use ioctl only if the OS file is a block device.
55205 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55206 not very useful for normal files.
55207
55208 * kern/main.c (pupa_set_root_dev): New function.
55209 (pupa_load_normal_mode): Likewise.
55210 (pupa_main): Call those above.
55211
55212 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55213 pupa_uint16_t.
55214
55215 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55216
a5ffe966 552172003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55218
55219 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55220 (setup): Configure the installed partition information and the
55221 dl prefix.
55222
55223 * loader/i386/pc/chainloader.c (my_mod): New variable.
55224 (pupa_chainloader_unload): New function.
55225 (pupa_rescue_cmd_chainloader): Refer itself.
55226 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55227
55228 * kern/i386/pc/startup.S (install_partition): Removed.
55229 (version_string): Likewise.
55230 (config_file): Likewise.
55231 (pupa_install_dos_part): New variable.
55232 (pupa_install_bsd_part): Likewise.
55233 (pupa_prefix): Likewise.
55234 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55235
55236 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55237 and pupa/misc.h.
55238 (make_install_device): New function.
55239 (pupa_machine_init): Set the dl prefix.
55240
55241 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55242 (buf): Renamed to ...
55243 (linebuf): ... this.
55244 (pupa_rescue_cmd_prefix): New function.
55245 (pupa_rescue_cmd_insmod): Likewise.
55246 (pupa_rescue_cmd_rmmod): Likewise.
55247 (pupa_rescue_cmd_lsmod): Likewise.
55248 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55249 rmmod and lsmod.
55250
55251 * kern/mm.c (pupa_memalign): If failed even after invalidating
55252 disk caches, unload unneeded modules and retry.
55253
55254 * kern/misc.c (pupa_memmove): New function.
55255 (pupa_memcpy): Removed.
55256 (pupa_strcpy): New function.
55257 (pupa_itoa): Made static.
55258
55259 * kern/dl.c (pupa_dl_iterate): New function.
55260 (pupa_dl_ref): Likewise.
55261 (pupa_dl_unref): Likewise.
55262 (pupa_dl_unload): Return if succeeded or not.
55263 (pupa_dl_unload_unneeded): New function.
55264 (pupa_dl_unload_all): Likewise.
55265 (pupa_dl_init): Renamed to ...
55266 (pupa_dl_set_prefix): ... this.
55267 (pupa_dl_get_prefix): New function.
55268
55269 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55270 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55271 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55272 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55273 (pupa_install_dos_part): Declared.
55274 (pupa_install_bsd_part): Likewise.
55275 (pupa_prefix): Likewise.
55276 (pupa_boot_drive): Likewise.
55277
55278 * include/pupa/types.h: Fix a typo.
55279
55280 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55281 pupa_memmove.
55282 (pupa_memmove): Declared.
55283 (pupa_strcpy): Likewise.
55284
55285 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55286 pupa_mod_init takes one argument, its own module.
55287 (pupa_dl_unload_unneeded): Declared.
55288 (pupa_dl_unload_all): Likewise.
55289 (pupa_dl_ref): Likewise.
55290 (pupa_dl_unref): Likewise.
55291 (pupa_dl_iterate): Likewise.
55292 (pupa_dl_init): Renamed to ...
55293 (pupa_dl_set_prefix): ... this.
55294 (pupa_dl_get_prefix): Declared.
55295
55296 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 55297 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 55298 unloaded.
55299 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55300 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55301
55302 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55303 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55304
012d7999 553052003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55306
55307 * util/i386/pc/pupa-setup.c (setup): Define the internal
55308 function find_first_partition_start at the top level, because GCC
55309 3.0.x cannot compile internal functions in deeper scopes
55310 correctly.
55311 (find_root_device): Use lstat instead of stat.
55312 Don't follow symbolic links.
55313 Fix the path-constructing code.
55314
55315 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55316 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55317 by a BLKGETSIZE ioctl first, because block devices don't fill
55318 the member st_mode of the structure stat on Linux.
55319 [__linux__] (linux_find_partition): Use a temporary buffer
55320 REAL_DEV for the working space. Copy it to DEV before returning.
55321 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55322 buffer cache consistent.
55323 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55324 strncmp. The previous value was merely wrong.
55325 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55326
55327 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55328 FAT size is 12. The previous value was merely wrong.
55329
55330 * kern/main.c (pupa_main): Don't split the starting message from
55331 newlines.
55332
55333 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55334 LF, because BIOS goes crazy about character attributes in this
55335 case.
55336
1cc73a62 553372003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55338
55339 * include/i386/pc/util/biosdisk.h: New file.
55340 * util/i386/pc/biosdisk.c: Likewise.
55341 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 55342
1cc73a62 55343 * Makefile.in (INCLUDE_DISTFILES): Added
55344 include/pupa/i386/pc/util/biosdisk.h.
55345 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55346 directory util/i386/pc.
55347 (install-local): Added a rule for sbin_UTILITIES.
55348 (uninstall): Likewise.
55349
55350 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55351
55352 * util/misc.c (xrealloc): New function.
55353 (pupa_malloc): Likewise.
55354 (pupa_free): Likewise.
55355 (pupa_realloc): Likewise.
55356 (pupa_stop): Likewise.
55357 (pupa_putchar): Likewise.
55358
55359 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55360
55361 * include/pupa/util/misc.h (xrealloc): Declared.
55362
55363 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55364 macro.
55365 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55366 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55367
55368 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55369 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55370
55371 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55372 way should be implemented.
55373 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55374
55375 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55376 the size of NAME for safety.
55377 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55378 0x88.
55379
55380 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55381 (pupa_setup_SOURCES): Likewise.
55382
55383 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55384
08b70fe8 553852002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55386
55387 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55388 bunch of pushl's from pusha, because this destroys the return
55389 value.
55390
62ddcc8f 553912002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55392
55393 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55394 This means that any missing prototypes could be fatal. Also, you
55395 must take care when writing assembly code. See the comments at
55396 the beginning of startup.S, for more details.
f19dbdb7 55397
62ddcc8f 55398 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55399 compilation mechanism.
55400 (pupa_chainloader_real_boot): Likewise.
55401 (pupa_biosdisk_rw_int13_extensions): Likewise.
55402 (pupa_biosdisk_rw_standard): Likewise.
55403 (pupa_biosdisk_check_int13_extensions): Likewise.
55404 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55405 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55406 (pupa_get_memsize): Likewise.
55407 (pupa_get_mmap_entry): Likewise.
55408 (pupa_console_putchar): Likewise.
55409 (pupa_console_setcursor): Likewise.
55410 (pupa_getrtsecs): Use pushl instead of push.
55411
55412 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55413 memory instead of the stack for a mmap entry, because some
55414 BIOSes may ignore the maximum size and overflow.
55415
55416 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55417
55418 * genmk.rb (PModule#rule): Compile automatically generated
55419 sources with module-specific CFLAGS as well as other sources.
55420
9962ed99 554212002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55422
55423 * configure.ac: Check ld.
55424 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55425 respectively, before checking endianness and sizes.
55426
55427 * Makefile.in (LD): New variable.
f19dbdb7 55428
abdfc3c5 554292002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55430
55431 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55432
6a161fa9 554332002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55434
55435 * Changelog: New file.
55436