]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/term/gfxterm.c: Avoid division by zero.
[grub2.git] / ChangeLog
1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/term/gfxterm.c: Avoid division by zero.
4
5 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
6
7 Avoid division by zero in serial.
8
9 * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
10 * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
11
12 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13
14 * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
15
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
19 by zero.
20
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * include/grub/term.h: Avoid returining 0-sized terminal
24 as it may lead to division by zero.
25
26 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27
28 * grub-core/fs/zfs.c: Avoid divisions by zero.
29
30 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/fs/btrfs.c: Avoid divisions by zero.
33
34 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
37
38 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
41 blocksize validity.
42
43 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
44
45 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
46
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
50 validity.
51
52 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
55 divide by zero.
56
57 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
60 sanity checks.
61
62 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/fs/minix.c: Additional filesystem
65 sanity checks.
66
67 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
68
69 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
70 checks for superblock validity.
71
72 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
73
74 * grub-core/fs/ufs.c (grub_ufs_mount): Check
75 that sblock.ino_per_group is not 0.
76
77 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
78
79 Reject NILFS2 superblocks with over 1GiB blocks.
80
81 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
82 block size is <= 1GiB.
83
84 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
87 is sane when using CHS addressing.
88
89 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
92
93 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
96 division by zero.
97
98 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
99
100 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
101 potentially returning 0.
102
103 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
104
105 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
106 the end of file.
107
108 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
111 past the end of file.
112
113 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
116 synchronously with line.
117
118 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
119
120 Replace explicit sizeof divisions by ARRAY_SIZE.
121
122 2015-01-19 Kris Moore <kris@pcbsd.org>
123
124 * grub-core/disk/geli.c: Support GELI v6 and v7.
125
126 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
127
128 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
129 option processing.
130
131 2014-12-07 David Kozub <zub.272@gmail.com>
132
133 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
134 in __aeabi_uidivmod
135 Fixes Savannah bug #43632.
136
137 2014-12-07 Peter Nelson <peterdn>
138
139 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
140 chunks.
141
142 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
143
144 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
145 non-portable '-n' echo option.
146 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
147 non-portable 'echo -n.
148 * util/grub.d/10_linux.in: Likewise (closes 43668).
149 * util/grub.d/20_linux_xen.in: Likewise.
150 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
151 non-portable 'echo -n'.
152
153 2014-12-07 Curtis Larsen <larsen@dixie.edu>
154
155 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
156 free when multiple empty segments were received (closes 42765).
157
158 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
159
160 * tests/util/grub-shell.in: Support --files also for netboot.
161 * tests/file_filter_test.in: New file with file filters tests.
162 * Makefile.util.def: Add file_filter_test.
163 * conf/Makefile.extra-dist: ... and here.
164 * tests/file_filter/file.gz: Test file for file_filter_test.
165 * tests/file_filter/file.gz.sig: Likewise.
166 * tests/file_filter/file.lzop: Likewise.
167 * tests/file_filter/file.lzop.sig: Likewise.
168 * tests/file_filter/file.xz: Likewise.
169 * tests/file_filter/file.xz.sig: Likewise.
170 * tests/file_filter/keys: Likewise.
171 * tests/file_filter/keys.pub: Likewise.
172 * tests/file_filter/test.cfg: Likewise.
173 * grub-core/commands/verify.c: Fix memory corruption doing
174 signature check for network files (closes 43601).
175
176 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
177
178 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
179 memory leak (CID 73645, 73782).
180 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
181 (CID 73635).
182
183 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
184
185 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
186 inline array (CID 73610).
187
188 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
189
190 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
191 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
192 (Coverity CID 73813, 73710)
193 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
194 and use after free (Coverity CID 73813, 73710, 73730)
195 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
196 CID 73854)
197 * util/grub-install-common.c (grub_install_get_target): Check return
198 value of grub_util_fd_read (Coverity CID 73819).
199 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
200 to hd.magic (Coverity CID 73587, 73888, bug 43690).
201
202 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
203
204 * tests/util/grub-fs-tester.in: Consistently print output
205 of grub ls if test fails.
206
207 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
208
209 * grub-core/kern/efi/init.c: check value of *path before
210 dereferencing.
211
212 2014-11-03 Michael Chang <mchang@suse.com>
213
214 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
215 of neighbor solicitation packet in grub_netbuff_pull.
216
217 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
218
219 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
220 avoid fatal warnings with older gcc (probably before 4.7).
221 * grub-core/loader/arm64/linux.c: Likewise.
222 * grub-core/loader/i386/linux.c: Likewise.
223 * grub-core/loader/i386/pc/linux.c: Likewise.
224 * grub-core/loader/ia64/efi/linux.c: Likewise.
225 * grub-core/loader/mips/linux.c: Likewise.
226 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
227 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
228
229 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
230
231 Fix in-tree --platform=none
232
233 * configure.ac: Only remove include/grub/cpu and
234 include/grub/machine in the --platform=none case, not all of
235 include/grub.
236
237 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
238
239 Add a new "none" platform that only builds utilities
240
241 * configure.ac: Add "none" platform. Default to it for unsupported
242 CPUs rather than stopping with a fatal error. Don't downgrade
243 x86_64-none to i386. Define COND_real_platform Automake conditional
244 if the platform is anything other than "none". Don't do any include
245 directory linking for "none".
246 * Makefile.am: Skip building grub-core and all bootcheck targets if
247 !COND_real_platform.
248 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
249 is defined.
250
251 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
252
253 Use grub_cpu_to_XXX_compile_time for constants.
254
255 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
256
257 The AML parser implements only a small subset of possible AML
258 opcodes. On the Fujitsu Lifebook E744 this and another bug in
259 the parser (incorrect handling of TermArg data types) would lead
260 to the laptop not turning off (_S5 not found).
261
262 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
263 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
264 aren't always simply strings!); Add function to skip TermArgs
265 * include/grub/acpi.h: Add new opcodes
266
267 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * grub-core/normal/main.c: Don't drop to rescue console in
270 case of password-protected prompt and no menu entries.
271
272 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
273
274 * grub-core/commands/keylayouts.c: Ignore unknown keys.
275
276 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * grub-core/gmodule.pl.in: Accept newer binutils which output
279 empty column rather than 0x0.
280
281 2014-09-21 Michael Chang <mchang@suse.com>
282
283 * grub-core/osdep/unix/config.c: Remove extraneous comma.
284
285 2014-09-21 Peter Jones <pjones@redhat.com>
286
287 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
288 we don't free a random pointer from the stack.
289 * grub-core/loader/arm64/linux.c: Likewise.
290 * grub-core/loader/i386/linux.c: Likewise.
291 * grub-core/loader/i386/pc/linux.c: Likewise.
292 * grub-core/loader/ia64/efi/linux.c: Likewise.
293 * grub-core/loader/mips/linux.c: Likewise.
294 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
295 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
296
297 2014-09-15 Khem Raj <raj.khem@gmail.com>
298
299 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
300 _BSD_SOURCE to avoid warnings under glibc 2.20+.
301
302 2014-09-08 Michael Chang <mchang@suse.com>
303
304 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
305 check; comparing &data->extent against addresses in the region it
306 points to is unpredictable.
307
308 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
309
310 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
311
312 * configure.ac: Remove -m64 from checks for -mcmodel=large and
313 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
314 already in TARGET_CFLAGS at this point, and they produce incorrect
315 results when building for x32.
316 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
317 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
318 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
319 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
320
321 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
322
323 * configure.ac: Remove several unnecessary semicolons.
324
325 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
326
327 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
328 Initialise pend to pacify GCC.
329
330 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
331
332 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
333 gettext_printf).
334
335 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * grub-core/term/at_keyboard.c: Retry probing keyboard if
338 scancode setup failed.
339
340 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
341
342 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
343
344 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
347 safety to avoid triggerring VirtualBox bug.
348
349 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
352
353 Fixes hang on virtualbox.
354
355 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
356
357 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
358 kernels whose paths contain regex metacharacters.
359 * util/grub.d/10_kfreebsd.in: Likewise.
360 * util/grub.d/10_linux.in: Likewise.
361 * util/grub.d/20_linux_xen.in: Likewise.
362
363 Reported by: Heimo Stranner.
364
365 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
366
367 * docs/grub-dev.texi (Finding your way around): The build system no
368 longer uses AutoGen directly.
369
370 2014-06-21 Роман Пехов <roman_pekhov>
371
372 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
373
374 2014-06-21 Glenn Washburn <development@efficientek.com>
375
376 * util/grub-install.c: Fix handling of --disk-module.
377
378 2014-06-21 Stephane Rochoy <sheda>
379
380 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
381 EFI system table.
382
383 2014-06-21 Stephane Rochoy <sheda>
384
385 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
386 EFI system table physical address.
387
388 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
389
390 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
391
392 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
395
396 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
399 check.
400
401 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
404
405 Reported by: Yves Blusseau <blusseau@zetam.org>.
406
407 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
408
409 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
410 GDT in conventional memory.
411
412 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
413
414 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
415 UUID. Other parts of grub-mkconfig tolerate these, they were
416 previously allowed here up to commit
417 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
418 practice when the system has active LVM snapshots.
419 Fixes Ubuntu bug #1287436.
420
421 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
422
423 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
424 "logical_volumes" block a little more accurately.
425
426 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
427
428 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
429
430 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
431
432 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
433 pulled from libgcc.
434
435 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
436
437 Replace few instances of memcmp/memcpy in the code that should be
438 grub_memcmp/grub_memcpy.
439
440 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
443 device names.
444
445 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
446
447 btrfs: fix get_root key comparison failures due to endianness
448
449 * grub-core/fs/btrfs.c (get_root): Convert
450 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
451
452 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
453
454 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
455
456 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
457 no longer to be forgiving of trailing spaces on grub-probe output
458 lines, which among other things means that util/grub.d/10_linux.in
459 no longer detects LVM. To fix this, make grub-probe's output
460 delimiting more consistent. As a bonus, this improves the coverage
461 of the -0 option.
462
463 Fixes Debian bug #735935.
464
465 * grub-core/disk/cryptodisk.c
466 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
467 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
468 Likewise.
469 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
470 Update prototype.
471 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
472 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
473 probe_mods): Adjust for extra user-data arguments.
474 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
475 probe_abstraction): Use configured delimiter. Update callers.
476
477 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
478
479 * util/grub-probe,c (options): Make -0 work again (broken by
480 conversion to argp).
481 (main): Simplify logic.
482
483 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
486
487 2014-03-26 Fu Wei <fu.wei@linaro.org>
488
489 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
490
491 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
494 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
495
496 Suggested by: Markus Müller.
497
498 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
501 if E820 failed to return any regions.
502
503 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
506 tables for low memory calculations.
507
508 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
511 location to 640K.
512
513 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
516 region.
517
518 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
521 exclusively.
522
523 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
524
525 Add bootpath parser for open firmware.
526
527 It enables net boot even when there is no bootp/dhcp server.
528
529 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
530 and call it at grub_ieee1275_net_config_real.
531 * grub-core/kern/ieee1275/init.c: Add bootpath to
532 grub_ieee1275_net_config.
533 * include/grub/ieee1275/ieee1275.h: Likewise.
534
535
536 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
537
538 Add grub_env_set_net_property function.
539
540 * grub-core/net/bootp.c: Remove set_env_limn_ro.
541 * grub-core/net/net.c: Add grub_env_set_net_property.
542 * include/grub/net.h: Likewise.
543
544 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
547
548 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
551
552 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
555 7 seconds to recover if last poweroff was bad.
556
557 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * grub-core/disk/ahci.c: Properly handle transactions with no
560 transferred data.
561
562 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
563
564 * grub-core/disk/ahci.c: Add safety cleanups.
565
566 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
569 slots to avoid pointing to uninited area.
570
571 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
574 enabling busmaster for the end.
575
576 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * util/grub-mkfont.c: Downgrade warnings about unhandled features
579 to debug.
580
581 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
584
585 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
586
587 * .gitignore: add missing files and .exe variants.
588
589 2014-01-26 Mike Gilbert <floppym@gentoo.org>
590
591 grub-install: support for partitioned partx loop devices.
592
593 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
594 /dev/loopX as being the parent of /dev/loopXpY.
595
596 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
599 Ensure that pointers are inited to NULL and that pointers are not
600 accessed after free.
601
602 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
603
604 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
605 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
606 * include/grub/emu/misc.h: ... and here.
607 * include/grub/err.h: ... and here.
608 * util/import_gcry.py: ... and here (in files g10lib.h).
609
610 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
611
612 * util/grub-mkimage.c: Make prefix argument mandatory.
613
614 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
615
616 Fix several translatable strings.
617
618 Suggested by: D. Prévot.
619
620 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * util/grub-install.c: List available targets.
623
624 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
625
626 * util/grub-install.c (write_to_disk): Add an info message.
627
628 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
629
630 * Makefile.am: Allow adding extra files to generated Windows ZIP
631 archive by setting GRUB_WINDOWS_EXTRA_DIST.
632
633 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
634
635 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
636 Show detected font path in summary.
637
638 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
639
640 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
641 interval gradually.
642 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
643 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
644 * grub-core/net/tftp.c (tftp_open): Likewise.
645 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
646
647 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
648
649 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
650 infinite loops.
651
652 In net/net.c there is a while (1) that only exits if there is a stop
653 condition and more then 10 packages or if there is no package received.
654
655 If GRUB is idle and enter in this loop, the only condition to leave is
656 if it doesn't have incoming packages. In a network with heavy traffic
657 this never happens.
658
659 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
660
661 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
662 EPERM when modifying kern.geom.debugflags. It is only a problem for
663 such things as installing GRUB to the MBR, in which case there'll be
664 an error later anyway, not for opening files during tests.
665
666 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
667
668 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
669 instead of MOD_FILES.
670 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
671 both with and without .exe.
672 * grub-core/genemuinitheader.sh: Same.
673
674 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
675
676 * util/grub-install.c: Fix a typo.
677
678 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * grub-core/normal/main.c (read_config_file): Buffer config file.
681 Reduces boot time.
682
683 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
684
685 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
686 symbolic link to directory. It fails in Msys shell on Windows 2003.
687
688 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * Makefile.am (default_payload.elf): Add modules
691 multiboot cbmemc linux16 gzio echo help.
692
693 2014-01-18 Mike Gilbert <floppym@gentoo.org>
694
695 * Makefile.util.def: Link grub-ofpathname with zfs libs.
696
697 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
700 conflicts.
701
702 Reported by: Andrey Borzenkov.
703
704 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
705
706 * include/grub/misc.h: Move macros for compiler features to ...
707 * include/grub/compiler.h: ... new file.
708 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
709 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
710 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
711 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
712 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
713 * grub-core/video/capture.c: Include <grub/misc.h>.
714 * include/grub/command.h: Include <grub/misc.h>.
715 * include/grub/dl.h: Include <grub/misc.h>.
716 * include/grub/procfs.h: Include <grub/misc.h>.
717
718 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
719
720 * configure.ac: Add support for BUILD_EXEEXT and use it ...
721 * Makefile.am: ... here.
722 * Makefile.util.def: ... and here.
723 * grub-core/Makefile.am: ... and here.
724
725 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
726
727 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
728 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
729
730 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/term/terminfo.c: Recognize keys F1-F12.
733
734 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
735
736 * configure.ac: Add support for BUILD_LDFLAGS.
737 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
738 * grub-core/Makefile.am: ... and here.
739 * INSTALL: Mention BUILD_LDFLAGS.
740
741 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
742
743 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
744
745 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
748 and has no //.
749
750 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * NEWS: Add few missing entries.
753
754 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
755
756 * util/grub.d/00_header.in (make_timeout): Use && rather than test
757 -a.
758 * util/grub.d/10_windows.in: Likewise.
759 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
760 than test -o.
761 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
762 rather than test -o.
763
764 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
765
766 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
767 redundant preprocessor conditional.
768
769 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
770
771 * Makefile.util.def (grub-macbless): Change mansection to 8.
772
773 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
774
775 * grub-core/loader/arm64/linux.c: correctly set device path end length.
776
777 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
778
779 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
780 arm64 to comply with EFI specification. Also use grubaa64.efi for
781 consistency.
782 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
783
784 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
785
786 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
787 on MinGW-64 when compiling for 32 bits.
788
789 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
790
791 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
792
793 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * NEWS: Add few missing entries. Correct existing ones.
796
797 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
798
799 Don't abort() on unavailable coreboot tables if not running on coreboot.
800
801 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
802
803 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
804 on mingw.
805
806 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
807
808 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
809 mention of it from 2.02.
810
811 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
812
813 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
814
815 As these functions are used on pre-ARMv6 CPUs as well we don't want
816 to make assembler assume that architecture is higher than default one.
817
818 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
819
820 * NEWS: First draft of 2.02 entry.
821
822 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
823
824 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
825 * docs/grub.texi (Getting the source code): Likewise.
826
827 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
828
829 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
830 detection.
831
832 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * configure.ac: Set version to 2.02~beta2.
835
836 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
837
838 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
839
840 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
841
842 * util/grub-probe.c: Improve help message and simplify list handling.
843
844 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
845
846 Fix buffer overflow in grub_efi_print_device_path.
847
848 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Show SATA device path.
851
852 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
853
854 Revert grub-file usage in grub-mkconfig.
855
856 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
857
858 Make newly-created files other than grub.cfg world-readable.
859
860 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
861
862 * util/grub.d/00_header.in: Improve compatibility with old config.
863
864 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
865
866 Make rijndael.c respect aliasing rules.
867
868 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
869
870 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Make grub_util_device_is_mapped_stat available in grub-emu core.
873
874 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
875
876 Add -Qn to TARGET_CFLAGS if it's supported.
877 Fixes compilation on cygwin.
878
879 Reported by: Andrey Borzenkov.
880 Suggested by: Andrey Borzenkov.
881
882 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
883
884 Save TARGET_CC version in modinfo.sh.
885
886 Suggested by: Andrey Borzenkov.
887
888 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
889
890 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
891 follow the same algorithm to avoid method mismatch. Don't assume
892 DMRAID- UUID to mean full disk but instead check that mapping is linear.
893
894 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
895
896 Declare GRUB_EFI_VENDOR_APPLE_GUID.
897
898 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
899
900 Dump type and vendor specific data when printing device path.
901
902 2013-12-23 Colin Watson <cjwatson@debian.org>
903
904 Update some documentation to refer to Git rather than Bazaar.
905
906 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
907 than Bazaar.
908 * po/README: Likewise. Fix spelling mistake.
909
910 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
911
912 Don't distribute config.h.
913
914 * Makefile.am (platform_HEADERS): Move to ...
915 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
916 failure when building from a distributed tarball.
917
918 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
919
920 * configure.ac: Fix spelling.
921 * grub-core/commands/parttool.c: Fix grammar.
922 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
923 Embedding Partition".
924
925 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
926
927 ARM64 support for grub-mkrescue.
928
929 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
930
931 Install modinfo.sh to keep build information around.
932
933 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
934
935 * grub-core/modinfo.sh.in: Add build config information.
936
937 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
938
939 ARM64 grub-file and grub-mkconfig support.
940
941 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
942
943 Remove leftover options defines.
944
945 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
948
949 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/loader/arm64/linux.c: Add missing bracket.
952
953 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
954
955 Add arm64-efi recognition to grub-file.
956
957 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
958
959 Fix ia64-efi recognition in grub-file.
960
961 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
962
963 Recognize raspberry pi kernel in grub-file.
964
965 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
966
967 Enable cache on ARM U-Boot port.
968
969 Without it the port is reidiculously slow.
970
971 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
972
973 Fix ARM cache maintainance.
974
975 More code was converted from ASM to C for easier handling.
976
977 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
980 algorithm on v5.
981
982 Suggested by: Leif Lindholm.
983
984 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
985
986 * util/grub-mkconfig.in: Fix Xen platform conditions.
987
988 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
989
990 * util/grub-mkrescue.c: Split single help message string in several
991 strings used in previous shell version.
992
993 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
994
995 Add arm64 Linux loader.
996
997 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
998
999 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1000
1001 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1002
1003 Add module loading and parsing boot time checkpoints.
1004
1005 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1008 platforms.
1009
1010 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
1011
1012 * util/grub-mkconfig.in: Skip non-executable files.
1013
1014 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 Workaround buggy timer in raspberry pie by using our own timer
1017 implementation.
1018
1019 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1022 Increase to 16 MiB to allow loading the whole memdisk.
1023
1024 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 Fix ARM Linux Loader on non-FDT platforms.
1027
1028 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * configure.ac: Choose link format based on host_os on emu.
1031
1032 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1035
1036 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/kern/emu/main.c: Build fix for emu.
1039
1040 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 Build fixes for argp.h with older gcc.
1043
1044 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1047 in strings.
1048
1049 Suggested by: David Prévot.
1050
1051 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1052
1053 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1054
1055 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1056
1057 Enable -Wformat=2 if it's supported.
1058
1059 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1062 -Wmissing-declarations if supported.
1063
1064 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1067 u32 as both HFS and HFS+ have 32-bit inodes.
1068
1069 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * include/grub/misc.h (grub_strtol): Fix overflow.
1072
1073 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1076 as return type in both conditionals.
1077
1078 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1079
1080 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1081 to use uint8_t for color.
1082
1083 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1084
1085 * util/misc.c (grub_util_get_image_size): Check for overflow.
1086
1087 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1090 for size.
1091
1092 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1093
1094 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1095 for pointer difference.
1096
1097 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * util/import_gcry.py: Skip sample keys.
1100
1101 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1104
1105 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * configure.ac: Remove duplicate warning arguments.
1108
1109 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 Add missing static qualifiers.
1112
1113 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 Add missing includes.
1116
1117 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Inline printf templates when possible to enable format checking.
1120
1121 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * include/grub/crypto.h: Don't discard const attribute.
1124
1125 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1128 was intended.
1129
1130 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 * grub-core/lib/crypto.c: Don't discard const attribute.
1133
1134 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/lib/disk.c: Fix potential overflow.
1137
1138 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/lib/arg.c: Don't discard const attribute.
1141
1142 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/kern/dl.c: Don't discard const attribute.
1145
1146 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 * grub-core/kern/disk.c: Fix potential overflow.
1149
1150 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 * conf/Makefile.common: Don't include non-existing directory
1153 grub-core/lib/libgcrypt-grub/include.
1154
1155 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Clarify several translatable messages.
1158
1159 2013-12-21 David Prévot <david@tilapin.org>
1160
1161 Correct some translatable strings.
1162
1163 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1164
1165 * util/grub-mkrescue.c: Rephrase mkrescue description.
1166
1167 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1168 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1169
1170 Clarify several translatable messages.
1171
1172 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1173
1174 Be more verbose about some configure failures.
1175
1176 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1177
1178 Fix various build problems on GNU/Hurd.
1179
1180 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1181 !defined (__GNU__).
1182 (xgetcwd): Likewise.
1183 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1184 [__GNU__]: Add prototype.
1185 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1186 long int using %ld rather than %d.
1187
1188 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * util/grub-install.c: Inform user about install platform.
1191
1192 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * configure.ac: Set version to 2.02~beta1.
1195
1196 2013-12-18 Allen Pais <allen.pais@oracle.com>
1197 2013-12-18 Bob Picco <bob.picco@oracle.com>
1198
1199 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1200
1201 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 Make grub_zlib_decompress handle incomplete chunks.
1204
1205 Fixes squash4.
1206
1207 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1210 on i386-multiboot.
1211
1212 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1213
1214 * grub-core/disk/usbms.c: Retry on unknown errors.
1215 Reuse the same tag on retries.
1216
1217 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1218
1219 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1220
1221 Avoid confusing them with already completed transfers.
1222
1223 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 Remove xen VFB.
1226
1227 Due to XEN bug it prevents Linux boot. Remove it at least, until
1228 workaround is found.
1229
1230 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * po/exclude.pot: Add 2 missing excludes.
1233
1234 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 Add missing license section in macbless.mod and macho.mod.
1237
1238 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Allow compilation without thumb-interwork as long as no thumb is
1241 involved or only thumb2 is used.
1242
1243 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1244
1245 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1246
1247 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 Add __attribute__ ((sysv_abi)) only if it's really needed.
1250
1251 Some compilers don't support it.
1252
1253 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1256
1257 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 Remove -Wold-style-definition.
1260
1261 Not very useful and interaction of it with regexp depends on GCC
1262 version.
1263
1264 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Make grub_util_get_windows_path_real static.
1267
1268 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/commands/fileXX.c: Silence cast-align.
1271 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1272
1273 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1276 rather than LL suffix.
1277
1278 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1281
1282 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/loader/arm/linux.c: Use common initrd functions.
1285
1286 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 Decrease number of strings to translate.
1289
1290 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1293
1294 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 Mark strings for translation and add remaining ones to exclude list.
1297
1298 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 * util/grub-file.c (main): Fix sizeof usage.
1301
1302 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 Silence spurious warning.
1305
1306 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1307
1308 Remove check_nt_hiberfil as it's been superseeded by file command.
1309
1310 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1311
1312 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1313
1314 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 Implement syslinux parser.
1317
1318 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1319
1320 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1321
1322 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1323
1324 Support cpuid --pae.
1325
1326 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1327
1328 Use AT keyboard on Yeeloong 3A.
1329
1330 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 Add Yeeloong 3A reboot and halt.
1333
1334 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 Add Radeon Yeeloong 3A support.
1337
1338 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 Add bonito 3A support.
1341
1342 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1345
1346 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1349
1350 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 * grub-core/loader/macho.c: Fix compilation on non-i386.
1353
1354 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 Add missing format_arg attribute to check that printf with translated
1357 messages has proper arguments.
1358
1359 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1360
1361 Use grub_xasprintf to format translated error messages containing
1362 64-bit quantity.
1363
1364 2013-12-17 Jon McCune <jonmccune@google.com>
1365
1366 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1367
1368 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 Unify message for unsupported relocation.
1371
1372 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Mark miscompile error for translation.
1375
1376 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 Use %I64 and not %ll when using OS printf if compiling for windows.
1379
1380 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 Update Mac code to match new register_efi prototype.
1383
1384 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 Implement better integration with Mac firmware.
1387
1388 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1391 load_addr.
1392
1393 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 Include serial module in default_payload.elf.
1396
1397 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 Add explicit thumb interwork bx in asm files.
1400
1401 Shouldn't matter for armv >= 5 but let's be safe.
1402
1403 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 Implement Truecrypt ISO loader.
1406
1407 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1410
1411 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 Implement grub_file tool and use it to implement generating of config
1414 in separate root.
1415
1416 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1417
1418 Change to v1 xen grants.
1419
1420 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1423
1424 GRUB relied on %ebx being preserved across hypercall which isn't true.
1425
1426 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1429
1430 GRUB relied on %rdi being preserved across hypercall which isn't true.
1431
1432 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1433
1434 Implement XEN VFB support.
1435
1436 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 Remove grub_bios_interrupt on coreboot.
1439
1440 It's not used currently and cannot be used safely currently.
1441
1442 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 Update exclude.pot and mark few strings for translation.
1445
1446 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1449
1450 Reported by: Jon McCune
1451
1452 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1453
1454 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1455 Add verbose information which firmware directories were tried.
1456
1457 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1458
1459 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1460 function to optionally redirect all three standard descriptors.
1461 Redefine grub_util_exec, grub_util_exec_redirect and
1462 grub_util_exec_redirect_null to use it.
1463 * include/grub/emu/exec.h: Define it.
1464 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1465 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1466 Use grub_util_exec_redirect_all to redirect error to NULL.
1467
1468 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * grub-core/tests/sleep_test.c: Silence spurious warning.
1471
1472 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1475 linker trying to "fixup" the code.
1476
1477 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1480
1481 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 Add support for converting PE+ to Elf64.
1484
1485 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1488
1489 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 Remove practice of assigning random const pointers to device id.
1492
1493 This is not required as cache code already checks driver id as well.
1494
1495 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1496
1497 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1498 with mingw.
1499
1500 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1503 mingw or cygwin as API already matches.
1504
1505 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1508
1509 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1512 not on long.
1513
1514 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 Handle X86_64_PC64 relocation.
1517
1518 Those are generated by some cygwin compilers.
1519
1520 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 Determine the need for mingw-related stubs at compile time rather than
1523 using not very significant $target_os.
1524
1525 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1528 may not work with ELF.
1529
1530 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 Use unix functions for temporary files and special files on cygwin.
1533
1534 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 Define functions explicitly rather than using --defsym in tests
1537 whenever possible. Respect locality in remaining cases.
1538
1539 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1542
1543 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1544
1545 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1546 unlikely errors when getting EFI variables and make exhaustive search
1547 for all BootNNNN variables to find matching one.
1548
1549 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1550
1551 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1552
1553 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 New functional test for sleep function.
1556
1557 This test allows to check sleep without qemu. Keep qemu version as
1558 well as functional test won't notice if all clocks are going too fast
1559 or too slow.
1560
1561 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 Add explicit sysv_abi on amd64 asm routines.
1564
1565 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1568 num_table_entries.
1569
1570 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1573 functions.
1574
1575 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1578 appropriate.
1579
1580 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1583
1584 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1587 appropriate.
1588
1589 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1592
1593 In case of quick removal of loopback and adding another one it may
1594 get same ID, confusing the cache system.
1595
1596 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1599 appropriate.
1600
1601 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1604 than converting to long.
1605
1606 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1609
1610 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1613 than almost useless pointer.
1614
1615 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 Add gcc_struct to all packed structures when compiling with mingw.
1618
1619 Just "packed" doesn't always pack the way we expect.
1620
1621 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1624
1625 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * util/grub-pe2elf.c: Fix handling of .bss.
1628
1629 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 Implement windows flavour of EFI install routines.
1632
1633 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1636
1637 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 Change grub_install_register_efi interface to pass GRUB device.
1640
1641 This allows grub_install_register_efi to request partition info
1642 directly.
1643
1644 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1647
1648 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 Do not use TCHAR string functions as they are not available on cygwin.
1651
1652 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 Workaround windows bug when querying EFI system partition parameters.
1655
1656 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1657
1658 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1659 by using bitfields.
1660
1661 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1664
1665 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Make i386-* other than i386-pc compileable under cygwin.
1668
1669 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 Fix definition of grub_efi_hard_drive_device_path. Take care that
1672 existing code would work even if by some reason bogus definition is
1673 used by EFI implementations.
1674
1675 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1678
1679 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1682 invocation.
1683
1684 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * util/config.c: Remove trailing newline from distributor in simple
1687 parsing.
1688
1689 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * include/grub/efi/api.h: Rename protocol and interface to avoid
1692 conflict.
1693
1694 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * .gitignore: add .exe variants. add missing files. remove few outdated
1697 entries.
1698
1699 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/osdep/exec.c: Use unix version on cygwin.
1702
1703 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 Implement multiboot2 EFI BS specification.
1706
1707 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1710 Crash happened only in some cases like a string starting at the
1711 half of the screen of same length.
1712
1713 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1716 with EFI counterpart.
1717
1718 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 Propagate the EFI commits to x86-efi specific parts.
1721
1722 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1725
1726 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Introduce grub_efi_packed_guid and use it where alignment is not
1729 guaranteed.
1730
1731 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1734 unaligned u16 rather than u8[2].
1735
1736 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1739 for relocation range.
1740
1741 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1742
1743 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1744 non-function pcrel21b relocation. It happens with .text.unlikely
1745 section.
1746
1747 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1748
1749 * make MAX_USABLE_ADDRESS platform-specific
1750 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1751
1752 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1753
1754 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1755
1756 2013-12-09 Jon McCune <jonmccune@google.com>
1757
1758 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1759 in grub-install and grub-bios-setup for x86 BIOS targets.
1760
1761 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1762
1763 Add missing compile and link options for sparc64-emu.
1764
1765 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 Implement sparc64 trampolines (needed for sparc64-emu).
1768
1769 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1772 range of R_SPARC_HI22.
1773 Implement R_SPARC_LM22.
1774
1775 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1778 Do not explicitly check for symbol table as it's already checked in
1779 platform-independent layer.
1780
1781 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1784 on ia64 as __clear_cache is a dummy on ia64.
1785
1786 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1789 Do not explicitly check for symbol table as it's already checked in
1790 platform-independent layer.
1791
1792 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1793
1794 * util/grub-mkconfig.in: Add missing newline to output.
1795
1796 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1799 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1800
1801 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1804 compilation with GCC <= 4.2.
1805 * grub-core/kern/emu/argp_common.c: Likewise.
1806
1807 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1810 right platform rather than leaking to sparc64-emu.
1811
1812 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1815 But ensure that the variables in question are indeed unsigned.
1816
1817 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1820
1821 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 Remove grub_memalign on emu.
1824
1825 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1828 truncate incomplete lines but instead flushes them.
1829
1830 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1833 and implement windows variant.
1834
1835 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 Fix mips-emu compilation.
1838
1839 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * configure.ac: Check for freetype library usability.
1842
1843 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 Make arm-emu work.
1846
1847 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1850
1851 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1852
1853 * docs/grub.texi (Environment): Update color_normal and color_highlight
1854 defaults (light-gray instead of white).
1855
1856 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1857
1858 * grub-core/normal/main.c (INIT): Set default color to light-gray
1859 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1860 and apparently BIOS defaults.
1861
1862 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 Transform -C option to grub-mkstandalone to --core-compress available
1865 in all grub-install flavours.
1866
1867 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 Merge GRUBFS and GRUB_FS variables.
1870
1871 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1872
1873 Revert commit 69ca97c820, it caused failures when using OS device name
1874 in grub-install. Instead just strip off parenthesis in grub-install
1875 if (hdX) was passed.
1876
1877 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1878
1879 * util/grub-install.c (push_partmap_module): Add helper to convert
1880 partmap names to module names and use it in probe_mods(). Fixes
1881 failure to find partmap modules in diskfilter case.
1882
1883 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * configure.ac: Make unifont mandatory on coreboot.
1886
1887 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * configure.ac: Skip unifont 6.3 pcf and bdf.
1890
1891 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * Makefile.am: Remove partial font files if generation failed.
1894
1895 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1896
1897 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1898 strings.
1899 * include/grub/util/misc.h: Define it ...
1900 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1901
1902 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1903
1904 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1905 ${grub_probe}.
1906
1907 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 Don't add -mlong-calls when compiling with clang.
1910
1911 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1912
1913 * configure.ac: Fix a typo.
1914
1915 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 Revamp relocation handling.
1918
1919 Move more code to common dl.c. Add missing veneers for arm and arm64.
1920 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1921
1922 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1925
1926 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1927
1928 * INSTALL: Raise minimum python version to 2.6.
1929 * gentpl.py: Use python3-style print function.
1930
1931 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * util/grub-install.c: Mention Boot* variable.
1934
1935 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1936
1937 * grub-core/osdep/linux/hostdisk.c
1938 (grub_util_find_partition_start_os): Initialise start to avoid
1939 spurious compiler warning.
1940
1941 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1942
1943 On Linux, read partition start offsets from sysfs if possible, to
1944 cope with block device drivers that don't implement HDIO_GETGEO.
1945 Fixes Ubuntu bug #1237519.
1946
1947 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1948 function.
1949 (sysfs_partition_start): Likewise.
1950 (grub_util_find_partition_start_os): Try sysfs_partition_start
1951 before HDIO_GETGEO.
1952
1953 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1954
1955 * grub-core/kern/fdt.c: Update struct size when adding node.
1956
1957 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 Handle unaligned .bss on sparc64.
1960
1961 Current code improperly assumes that both __bss_start and _end are
1962 aligned to 8-bytes. Eliminating this assumption and explicitly align
1963 modules.
1964
1965 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1968 so it doesn't land in the middle of loaded image.
1969
1970 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 * configure.ac: Move all warning options that may be absent in
1973 gcc >= 3.1 to optional.
1974
1975 Note: while this allows to compile with older GCC, official requirements
1976 remain the same and no support for older GCC.
1977
1978 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1979
1980 Copying the themes directory in grub-shell isn't
1981 parallel-test-friendly and breaks on the second test when the source
1982 directory is read-only (as in "make distcheck"). Instead, add a
1983 hidden --themes-directory option to grub-mkrescue et al, and use it
1984 in grub-shell.
1985
1986 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1989 as it's no longer necessarry.
1990
1991 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1992
1993 * configure.ac: Allow compilation with older GCC for ARM.
1994
1995 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1998 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1999 ppc.
2000
2001 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2002
2003 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2004
2005 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 Pass font config to config.h and not by TARGET_CFLAGS as adding
2008 arguments doesn't work if TARGET_CFLAGS is specified on command
2009 line.
2010
2011 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * configure.ac: Add -Wvla if compiler supports it.
2014
2015 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2018 Remove variable length arrays.
2019 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2020
2021 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2024
2025 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * include/grub/types.h: Declare all byteswaps as inline functions
2028 except compile-time ones.
2029
2030 Solves variable shadowing in constructions like
2031 cpu_to_le (le_to_cpu(x) + 1).
2032
2033 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2036
2037 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2040 minutes.
2041
2042 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2045 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2046
2047 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2048
2049 * grub-core/Makefile.core.def (setjmp): Distribute
2050 lib/arm64/setjmp.S.
2051
2052 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2053
2054 Add a new timeout_style environment variable and a corresponding
2055 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2056 controls hidden-timeout handling more simply than the previous
2057 arrangements, and pressing any hotkeys associated with menu entries
2058 during the hidden timeout will now boot the corresponding menu entry
2059 immediately.
2060
2061 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2062 generates a warning, and if it shows the menu it will do so as if
2063 the second timeout were not present. Other combinations are
2064 translated into reasonable equivalents.
2065
2066 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2067
2068 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2069
2070 * util/config.c: Add missing pointer adjustment.
2071 Reported by: qwertial
2072
2073 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2074
2075 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2076 directly, not via `cpu' link, to fix libgrub.pp generation.
2077
2078 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2079
2080 New port arm64-efi.
2081
2082 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2083
2084 * docs/grub.texi (sleep): Document exit codes.
2085
2086 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 Ensure that -mno-unaligned-access or some equivalent option is used.
2089
2090 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2093 -march=armv3.
2094
2095 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2098
2099 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2100
2101 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2102 builds, since we don't have an EPS version of font_char_metrics.png.
2103 Add leading dot to image extension per the Texinfo documentation.
2104
2105 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2106
2107 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2108 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2109 * util/grub-gen-widthspec.c: Likewise.
2110 * util/grub-mkfont.c: Likewise.
2111
2112 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2113
2114 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2115 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2116 failed to install on (hdX).
2117 * util/grub-setup.c (get_device_name): Remove, not needed after
2118 above change.
2119
2120 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2123
2124 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * util/grub-fstest.c: Remove variable length arrays.
2127
2128 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2131
2132 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2135 computing crc32 rather than handling with md fundtions directly.
2136
2137 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2140 checking fwstart.img rather than md fundtions directly.
2141
2142 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * util/grub-mkrescue.c (main): Check that fread succeeded.
2145
2146 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * conf/Makefile.common: Remove -mexplicit-relocs and
2149 -DUSE_ASCII_FALLBACK on yeeloong.
2150
2151 -DUSE_ASCII_FALLBACK is already added by font snippets.
2152 -mexplicit-relocs isn't needed is compiler/assemblera are
2153 configured properly.
2154 If they're not we shouldn't attempt to fix it by ourselves.
2155 Binary compare between before and after shows no difference.
2156
2157 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2160 sources in dependencies directly.
2161
2162 This was the only instance of "library" in core config. A bug was
2163 reported that -fno-stack-protector wasn't passed to it. Instead of
2164 figuring out why it failed just remove this construction used
2165 needlessly.
2166
2167 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2170 fgets succeeded.
2171
2172 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2173
2174 * docs/grub.texi (ls): Fix command description in case of a device name
2175 passed as argument.
2176
2177 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Eliminate variable length arrays in grub_vsnprintf_real.
2180
2181 A bit tricky because this function has to continue to work without
2182 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2183 but make all stack references use 32-bit offset rather than 8-bit one.
2184 So split va_args preparsing to separate function and put the prealloc
2185 into the caller.
2186
2187 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2190 Fixes build for windows.
2191
2192 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * gentpl.py: Don't generate platform-dependent conditionals for
2195 platform-independent targets.
2196
2197 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2198
2199 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2200 references to mdadm from otherwise generic code.
2201 (grub_util_exec_pipe): Likewise.
2202 (grub_util_exec_pipe_stderr): Likewise.
2203 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2204 This function calls vgs, not mdadm; adjust variable names
2205 accordingly.
2206
2207 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2208
2209 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2210 of Autogen. The Autogen definitions files remain intact as they
2211 offer a useful abstraction.
2212
2213 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2214
2215 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2216 into no-ops, and use it in programs that copy files but do not need
2217 to take special care to sync writes (grub-mknetdir, grub-rescue,
2218 grub-mkstandalone).
2219
2220 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2221
2222 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2223 than hardcoding /usr/local/bin/xorriso.
2224
2225 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 Add PCI command activation to all PCI drivers as required for coreboot
2228 and maybe some other firmwares.
2229
2230 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2233 and non-Apple variants of efiemu compile.
2234
2235 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2236
2237 * configure.ac: Add explicit check for linking format of
2238 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2239 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2240 hardcoding linking format.
2241
2242 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2245 and not pkgdatadir.
2246
2247 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2248 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Add a --locale-directory option to grub-install and related tools.
2251
2252 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2253 --locale-directory option.
2254 (enum grub_install_options): Add
2255 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2256 * util/grub-install-common.c (grub_install_help_filter): Handle
2257 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2258 (grub_install_parse): Likewise.
2259 (get_localedir): New function to check for a user-provided option
2260 before trying grub_util_get_localedir.
2261 (copy_locales): Use get_localedir rather than
2262 grub_util_get_localedir. Handle differing locale directory layouts.
2263 (grub_install_copy_files): Likewise.
2264
2265 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2268 Don't rely on PATH_MAX.
2269
2270 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/genmoddep.awk: Use more portable && rather than and.
2273
2274 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2277 an object after data. While it doesn't seem right solution, it
2278 works well enough and OSX isn't main compilation platform.
2279
2280 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2283 While it doesn't seem right solution, it works well enough and
2284 OSX isn't main compilation platform.
2285
2286 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 * configure.ac: Add -static to LDFLAGS when using apple linker to
2289 prevent it from pulling in dynamic linker.
2290
2291 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2292
2293 Apple assembly doesn't handle symbol arithmetic well. So define an
2294 offset symbol in boot.S and use it.
2295
2296 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 Apple assembly doesn't handle symbol arithmetic well. So instead
2299 of getting addres of kernel_sector + 4 define kernel_sector_high.
2300 It also makes code more readable.
2301
2302 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2303
2304 With Apple assembly in .macro environvemnt you have to use $$ instead
2305 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2306 to $$x on Apple and to $x on everything else.
2307
2308 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2311 OBJCONV.
2312
2313 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2316 and non-Apple. This instruction is shorter and faster,
2317 so no reason not to use it on both.
2318
2319 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2322 .text when compiling for Apple.
2323
2324 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2327
2328 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2331 %dx restore the probe worked on non-existant drive. Reorganize the
2332 code a little bit to free 2 bytes necessary for push/pop.
2333
2334 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2337 Add missing cast to silence warning.
2338
2339 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2340
2341 * util/grub-install.c (update_nvram): Support --no-nvram flag
2342 for EFI targets.
2343
2344 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2347
2348 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2349
2350 * util/garbage-gen.c: Add missing include of sys/time.h.
2351
2352 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 Don't add -mflush-func if it's not supported by compiler.
2355
2356 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 Move common BIOS/coreboot memory map declarations to
2359 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2360
2361 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2362
2363 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2364
2365 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 * INSTALL: Document why older clang versions aren't appropriate.
2368
2369 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * INSTALL: Document about clang for mips.
2372
2373 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2376 clang.
2377
2378 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2379
2380 Add *-xen to the list of grub-install-common platforms.
2381
2382 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2383
2384 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2385 3 last commits.
2386
2387 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2388
2389 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2390
2391 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2394 with -mcmodel=large.
2395
2396 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2399 range-checking for 32-bit quantities.
2400
2401 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * configure.ac: Compile with -fPIC when compiling with clang on
2404 mips.
2405
2406 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2409 when compiling with clang.
2410
2411 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 clang emits calls to abort () under some unknown conditions.
2414 Export abort () when compiling with clang.
2415
2416 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2417
2418 * docs/grub-dev.texi: Document stack and heap sizes.
2419
2420 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * include/grub/i386/pc/memory.h: Decrease
2423 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2424 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2425 The binary doesn't change (checked). It's more to better reflect actual
2426 usage.
2427
2428 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2431 at compile time that enough of scratch size is available.
2432
2433 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2436 Previously we misaligned stack by 8 in startup.S and compensated
2437 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2438 right behaviour is to align stack in startup.S and keep it aligned
2439 in callwrap.S. startup.S part was committed few commits before. This
2440 takes care of callwrap.S.
2441 Reported by: Gary Lin.
2442
2443 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2446 .data and .bss. May happen if compiler and assembly use different
2447 alignment.
2448
2449 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2450
2451 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2452 way.
2453
2454 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 Add support for a new magic symbol _gp_disp on mips to handle PIC
2457 binaries.
2458
2459 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2462
2463 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2464
2465 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2466 when rest of GRUB is compiled for hisher stepping. Instead use
2467 .set mips3/.set mips1 around cache and sync opcodes.
2468
2469 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2472 do essentially the same thing, do it in similar way.
2473
2474 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2475
2476 * util/grub-mkrescue.c (main): If a source directory is not
2477 specified, read platform-specific files from subdirectories of
2478 pkglibdir, not pkgdatadir.
2479
2480 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2481
2482 * grub-core/normal/progress.c: Remove unused file.
2483
2484 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2487 array.
2488
2489 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2492 than grub.cfg.
2493
2494 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * coreboot.cfg: Add missing file.
2497
2498 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2501
2502 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2503
2504 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2505 selectively skipping systems.
2506
2507 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2508
2509 * Makefile.util.def (grub-mkimage): Add
2510 grub-core/osdep/aros/config.c to extra_dist.
2511 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2512 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2513 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2514 grub-core/gnulib-no-gets.diff.
2515
2516 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 Add automated filesystem checking based on scripts I've used now for
2519 quite some time locally. Most of the test require root so they are
2520 skipped when run without necessarry privelegies.
2521
2522 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2523
2524 * util/grub-install.c (main): Adjust info messages to match
2525 installed paths of grub-bios-setup and grub-sparc64-setup.
2526
2527 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2528
2529 * util/grub-install-common.c (copy_locales): Consistently use
2530 grub_util_get_localedir () rather than LOCALEDIR.
2531 (grub_install_copy_files): Likewise.
2532
2533 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2534
2535 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2536 16-byte boundary, as required by the x86-64 ABI, before calling
2537 grub_main. In some cases, GCC emits code that assumes this
2538 alignment, which crashes if not aligned. The EFI firmware is also
2539 entitled to assume that stack alignment without checking.
2540
2541 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2542
2543 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2544 4k page boundaries as expected by firmware rather than 1k
2545 boundaries.
2546 (grub_mmap_malign_and_register): Likewise.
2547
2548 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2551 fragmentation 512M is enough.
2552
2553 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2554
2555 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2556 pointer to 32K. This is the size of cache element which is the most
2557 common allocation >1K. This way the pointer is always around blocks
2558 of 32K and so we keep performance while decreasing fragmentation.
2559
2560 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2563 current memory when allocating large chunks. This significantly
2564 decreases memory fragmentation.
2565
2566 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2567
2568 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2569 but for symmetry).
2570 * tests/lzocompress_test.in: Skip if lzop is not installed.
2571 * tests/xzcompress_test.in: Skip if xz is not installed.
2572
2573 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2574
2575 * util/grub-mkrescue.c (main): Fix typo.
2576
2577 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2580 clock frequency to 200 MHz,
2581
2582 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2585
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2589 Load config file from (cbfsdisk)/etc/grub.cfg.
2590
2591 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * util/grub-install-common.c (grub_install_copy_files): Fix module
2594 destination directory.
2595
2596 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2597
2598 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2599 files have not been built.
2600
2601 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2602
2603 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2604 Handle errors from mkstemp.
2605 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2606
2607 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2610 on primary master on pseries.
2611
2612 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2615 already loaded. This saves memory needed for tests,
2616
2617 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2620 work again.
2621
2622 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2625 work again.
2626
2627 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2630 master since with some combinations of qemu and firmware only primary
2631 IDE channel is available.
2632
2633 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2636 low-memory platforms where we don't have enough memory for them.
2637 * grub-core/tests/videotest_checksum.c: Likewise.
2638
2639 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2642 already loaded. This saves memory needed for tests,
2643
2644 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 Fix handling of install lists.
2647
2648 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2651
2652 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2655 the devices before accessing them.
2656
2657 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2660 as file argument.
2661
2662 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2665
2666 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2669 (grub_file_close): Free file->name.
2670
2671 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2674 (grub_load_public_key): Likewise.
2675 (grub_verify_signature_real): Likewise.
2676 (grub_cmd_verify_signature): Likewise.
2677
2678 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2681 memory leak.
2682
2683 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2686 (grub_longjmp): Restore r31.
2687 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2688
2689 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2692 modules to be in line with make_image_abs.
2693
2694 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2697
2698 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2699
2700 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2701
2702 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2703
2704 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2705
2706 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2707 to leave some memory to firmware.
2708
2709 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2712 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2713 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2714 Load gfxmenu.
2715
2716 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2719 now needs full arguments.
2720
2721 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2722
2723 * util/grub-mkrescue.c (main): Add trailing \n in
2724 .disk_label.contentDetails to be in line with previous shell script.
2725
2726 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2729
2730 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * util/grub-install-common.c (grub_install_parse): Recognize
2733 --compress=none like shell script did.
2734
2735 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * include/grub/misc.h: Replace check for __sparc64__ with one for
2738 __sparc__ as __sparc64__ isn't actually defined.
2739
2740 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2743 counterpart of fixing the naming of escc ports.
2744
2745 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2746
2747 * util/grub-install-common.c (platforms): Fix the order of entries and
2748 remove useless field val.
2749
2750 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * util/grub-install.c: Add new option --no-bootsector to skip
2753 installing of bootsector. Accept --grub-setup=/bin/true as
2754 backwards-compatible synonym.
2755
2756 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2757
2758 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2759 order of qsort arguments (number of elements vs. element size).
2760
2761 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2764 the function of these files exceeds what can be sanely handled in shell
2765 in posix-comaptible way. Also writing it in C extends the functionality
2766 to non-UNIX-like OS and minimal environments.
2767
2768 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2771 compiling to thumb2.
2772 * grub-core/kern/arm/cache_armv7.S: Likewise.
2773 * grub-core/lib/arm/setjmp.S: Likewise.
2774
2775 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2776
2777 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2778 in grub_uboot_syscall
2779
2780 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 Decrease stack usage in lexer.
2783
2784 We have only 92K of stack and using over 4K per frame is wasteful
2785
2786 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2787 as macros so that compiler would remove useless structure on stack.
2788 Better solution would be to fix flex not to put this structure on
2789 the stack but flex is external program.
2790
2791 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 Decrease stack usage in signature verification.
2794
2795 We have only 92K of stack and using over 4K per frame is wasteful
2796
2797 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2798 rather than stack.
2799 (grub_verify_signature_real): Likewise.
2800
2801 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 Decrease stack usage in mdraid 0.9x.
2804
2805 We have only 92K of stack and using over 4K per frame is wasteful
2806
2807 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2808 rather than stack.
2809
2810 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 Decrease stack usage in BtrFS.
2813
2814 We have only 92K of stack and using over 4K per frame is wasteful
2815
2816 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2817 rather than stack.
2818
2819 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 Decrease stack usage in JFS.
2822
2823 We have only 92K of stack and using over 4K per frame is wasteful
2824
2825 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2826 stack. Note: this function is recursive.
2827 (grub_jfs_read_inode): Read only part we care about.
2828
2829 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2830
2831 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2832 handling
2833
2834 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2835
2836 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2837
2838 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2839
2840 * docs/grub.texi (Environment): Document cmdpath.
2841
2842 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2843
2844 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2845 Remove "unused" attribute from arguments, they are used.
2846
2847 2013-11-15 Colin Watson <cjwatson@debian.org>
2848
2849 * .gitignore: Only ignore grub-mk* at the top level.
2850
2851 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2852
2853 * util/grub-reboot.in (usage): Fix a typo.
2854
2855 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 Replace libgcc version of ctz with our own.
2858
2859 On upcoming arm64 port libgcc ctz* are not usable in standalone
2860 environment. Since we need ctz* for this case and implementation is
2861 in C we may as well use it on all concerned platforms.
2862
2863 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * configure.ac: Probe for linking format rather than guessing it based
2866 on target_os.
2867
2868 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2871 "1" prior to handoff.
2872
2873 Reported by: M A Young.
2874
2875 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2878 \0 to all files.
2879
2880 Reported by: M A Young.
2881
2882 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2885 compilation on NetBSD.
2886
2887 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2888
2889 * acinclude.m4: Don't add -P on initial nm test.
2890
2891 Note: even though this patch postdates Andrey's it bears 14 Nov as
2892 date due to timezone difference.
2893
2894 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2895
2896 * grub-core/Makefile.core.def (signature_test): Add missing
2897 tests/signatures.h.
2898
2899 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2900
2901 * util/grub-install_header: Set localedir here, since this file is
2902 where it's used.
2903 * util/grub-install.in: Remove setting of localedir.
2904 * util/grub-mkrescue.in: Likewise.
2905
2906 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2907
2908 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2909
2910 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * configure.ac: Move nm checks to the end.
2913 Call grub_PROG_NM_WORKS.
2914 * acinclude.m4: New check grub_PROG_NM_WORKS.
2915 Use $TARGET_CFLAGS -c when compiling test binary.
2916
2917 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2918
2919 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2920 unused variables.
2921
2922 2013-11-14 Matthew Garrett <mjg@redhat.com>
2923
2924 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2925 cmdpath to firmware directory.
2926
2927 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2928
2929 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2930 at the start of second iteration.
2931
2932 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2935
2936 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * Makefile.am (default_payload.elf): New target for easier coreboot
2939 build.
2940
2941 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2944 clang (not necessarry with -no-integrated-as).
2945 * include/grub/symbol.h [__arm__]: Likewise.
2946
2947 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * configure.ac: Use -no-integrated-as on arm with clang.
2950 * INSTALL: Mention ARM compilation with clang.
2951
2952 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2955 -mthumb-interwork.
2956
2957 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2958
2959 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2960 code for indirect block handling.
2961
2962 Saves 185 bytes on compressed image.
2963
2964 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2965
2966 Fix make clean.
2967
2968 * Makefile.am: Remove build-grub-* in make clean.
2969
2970 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2971
2972 New files to gitignore.
2973
2974 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2975 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2976
2977 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2978
2979 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2980
2981 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2982
2983 * .gitignore: fix rules for .dep* and add *.a post git migration
2984
2985 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2986
2987 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2988 to match INSTALL.
2989
2990 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2991
2992 * grub-core/kern/misc.c: Don't redirect divisions in the
2993 GRUB_UTIL case.
2994 * include/grub/misc.h: Likewise.
2995
2996 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2997
2998 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2999 systems that require checking the return value of write.
3000
3001 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3002
3003 * util/grub-install.in (efi_quiet): Fix inverted logic: make
3004 efibootmgr quiet when --debug is not used, rather than when it is.
3005
3006 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3007
3008 * gentpl.py (define_macro_for_platform_dependencies): Remove
3009 first (and thus unused) of two definitions for this function.
3010 (platform_dependencies): Likewise.
3011
3012 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3013
3014 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3015 functions, we only need to check this for the target, not the host.
3016 * configure.ac (grub_apple_cc): Likewise.
3017
3018 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3021 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3022 asm to stay in arm even if surrounding is thumb.
3023
3024 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3025
3026 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3027 helper functions are needed for thumb.
3028
3029 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3032 level / 3 division explicitly unsigned. Saves few bytes.
3033
3034 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3037
3038 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3041 division.
3042
3043 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3046 grub_uboot_boot_data to asm part.
3047
3048 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3051 literal load.
3052 (grub_uboot_syscall): Save/restore r9 and align stack.
3053
3054 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3057
3058 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3061 occurencies with END.
3062
3063 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3064
3065 * util/grub-editenv.c (help_filter, argp): Document how to delete
3066 the whole environment block.
3067 Reported by Dan Jacobson. Fixes Debian bug #726265.
3068
3069 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3070
3071 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3072 sectioning.
3073
3074 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3075
3076 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3077 increment/decrement.
3078
3079 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3082 compiling with clang.
3083
3084 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3087 ".".
3088
3089 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 Redirect all divisions to grub_divmod64.
3092
3093 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3096
3097 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 Add missing includes of loader.h.
3100
3101 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3102
3103 * configure.ac: Allow disabling themes.
3104
3105 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3106
3107 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3108
3109 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3112 until it becomes operational.
3113
3114 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * grub-core/Makefile.core.def (legacy_password_test): Disable
3117 on platforms where no legacycfg is compiled.
3118 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3119 load legacy_password_test.
3120
3121 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3124
3125 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3128
3129 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3132 strict-aliasing warning.
3133 (fsync): Silence cast warning.
3134
3135 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * grub-core/commands/verify.c: Remove variable length arrays.
3138 Load gcry_dsa/gcry_rsa automatically.
3139
3140 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * grub-core/tests/signature_test.c: New test.
3143
3144 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3147 API.
3148
3149 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3152 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3153
3154 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3157
3158 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * grub-core/fs/proc.c: Allow \0 in proc files.
3161
3162 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3165
3166 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3169
3170 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * grub-core/fs/ext2.c: Remove variable length arrays.
3173
3174 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3177 length arrays.
3178
3179 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3182 * grub-core/disk/cryptodisk.c: Likewise.
3183 * grub-core/disk/geli.c: Likewise.
3184 * grub-core/disk/luks.c: Likewise.
3185
3186 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * grub-core/tests/legacy_password_test.c: New test.
3189 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3190
3191 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3194
3195 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 * grub-core/tests/pbkdf2_test.c: New test.
3198
3199 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3202
3203 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 * grub-core/io/lzopio.c: Remove variable length arrays.
3206
3207 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 * include/grub/crypto.h: Add maximums on hash size and cipher block
3210 size.
3211
3212 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3213
3214 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3215
3216 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/tests/xnu_uuid_test.c: New test.
3219
3220 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3223 covers it).
3224
3225 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/commands/hashsum.c: Remove variable length arrays.
3228
3229 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3232 condition.
3233 * tests/grub_func_test.in: Increase memory allocation.
3234
3235 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3238 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3239 sys/mount.h.
3240
3241 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3244 (grub_util_get_fd_size_os): ...this.
3245 (grub_hostdisk_flush_initial_buffer): New empty function.
3246
3247 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3250 without --defined-only.
3251
3252 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3255 rip-relative addressing in prologue.
3256
3257 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3258
3259 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3260 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3261
3262 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3263
3264 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3265 Add missing semicolon.
3266
3267 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3270
3271 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * configure.ac: Check for lzma.h for enabling liblzma and allow
3274 manual disabling.
3275
3276 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 Add missing includes of loader.h.
3279
3280 2013-11-11 Fam Zheng <famcool@gmail.com>
3281
3282 * util/grub.d/30_os-prober.in: Add minix entry.
3283
3284 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3287 right buffer for temporary load.
3288
3289 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3290
3291 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3292
3293 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3296 payload.
3297
3298 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3301 not Types.h.
3302 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3303 environment.
3304 (LzmaDec_InitDicAndState): Make static.
3305
3306 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3309
3310 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3313
3314 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3315
3316 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 * docs/grub-dev.texi: Replace bzr references with git ones.
3319
3320 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3321
3322 * docs/grub.texi (Simple configuration): Remove reference to
3323 grub-reboot from saved default entry description - grub-default
3324 does not use it anymore.
3325
3326 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3329 compiled with.
3330
3331 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3332
3333 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3334
3335 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 Fix grub_machine_fini bitrot.
3338
3339 Reported by: Glenn Washburn.
3340
3341 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3342
3343 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3344
3345 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3346
3347 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3348 -DELF.
3349 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3350 instead of ELF*.
3351
3352 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3355 Add -march=core2 when testing compile of efiemu64.
3356
3357 Thanks Andrey Borzenkov for spotting this.
3358
3359 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3362 XEN PV environment and load kernels.
3363
3364 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3367 * grub-core/loader/multiboot_mbi2.c: Likewise.
3368
3369 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3372 handling.
3373
3374 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3377
3378 Tested by: Denis 'GNUtoo' Carikli.
3379
3380 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3383
3384 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3387 Use to get rounded angle rather than truncated.
3388
3389 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/term/serial.c: Add option for enabling/disabling
3392 RTS/CTS flow control.
3393
3394 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3397 divisions.
3398
3399 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3402 Use grub_fatal rather than divide by zero.
3403 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3404
3405 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3408 truncate.
3409 (grub_fixed_fsf_divide): Likewise.
3410
3411 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3414 division by-zero and senseless negative divisions.
3415
3416 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3419 division by-zero and senseless negative divisions.
3420 (circprog_set_property): Don't accept negative num_ticks.
3421
3422 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3425 division by-zero and senseless negative divisions.
3426
3427 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * configure.ac: Use elf_*_fbsd on kfreebsd.
3430
3431 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 * grub-core/tests/div_test.c: New test.
3434
3435 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3436
3437 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3438 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3439 * grub-core/gfxmenu/view.c: Likewise.
3440 * grub-core/video/fb/video_fb.c: Introduce new functions:
3441 grub_video_set_area_status, grub_video_get_area_status,
3442 grub_video_set_region, grub_video_get_region.
3443 * grub-core/video/bochs.c: Likewise.
3444 * grub-core/video/capture.c: Likewise.
3445 * grub-core/video/video.c: Likewise.
3446 * grub-core/video/cirrus.c: Likewise.
3447 * grub-core/video/efi_gop.c: Likewise.
3448 * grub-core/video/efi_uga.c: Likewise.
3449 * grub-core/video/emu/sdl.c: Likewise.
3450 * grub-core/video/radeon_fuloong2e.c: Likewise.
3451 * grub-core/video/sis315pro.c: Likewise.
3452 * grub-core/video/sm712.c: Likewise.
3453 * grub-core/video/i386/pc/vbe.c: Likewise.
3454 * grub-core/video/i386/pc/vga.c: Likewise.
3455 * grub-core/video/ieee1275.c: Likewise.
3456 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3457 * include/grub/video.h: Likewise.
3458 * include/grub/video_fb.h: Likewise.
3459 * include/grub/fbfill.h: Updated render_target structure.
3460 grub_video_rect_t viewport, region, area
3461 int area_offset_x, area_offset_y, area_enabled
3462 * include/grub/gui.h: New helper function
3463 grub_video_bounds_inside_region.
3464 * docs/grub-dev.texi: Added information about new functions.
3465
3466 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3469 for alignment.
3470
3471 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3474 missing attribute.
3475 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3476
3477 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3480 simple division on arm and ia64.
3481
3482 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3485 link with libgcc.
3486
3487 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3490
3491 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3494 prefix symbol, not @.
3495
3496 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * INSTALL: Add note about older gcc and clang.
3499
3500 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3503
3504 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3507 NULL pointer dereference.
3508
3509 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3512 clang.
3513
3514 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3517 warnings.
3518
3519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3522 function.
3523 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3524 * grub-core/disk/geli.c (ascii2hex): Likewise.
3525
3526 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 * configure.ac: Run linker tests without -Werror.
3529 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3530 Change all occurences of -static-libgcc resp -lgcc to
3531 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3532
3533 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3534
3535 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3536
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 Allow compiling with clang (not really supported though).
3540
3541 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3542 unconditionally.
3543 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3544 Add -mrtd -mregparm=3 on i386 when not using clang.
3545 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3546
3547 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3550 bindings.
3551 * grub-core/lib/reed_solomon.c: Likewise.
3552 * include/grub/i386/gdb.h: Likewise.
3553 * include/grub/i386/pc/int.h: Likewise.
3554 * include/grub/i386/pc/pxe.h: Likewise.
3555 * include/grub/ieee1275/ieee1275.h: Likewise.
3556
3557 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 Import libgcrypt 1.5.3.
3560
3561 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * configure.ac: Don't add -Wcast-align on x86.
3564
3565 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * configure.ac: Add -freg-struct-return on all platforms that
3568 support it.
3569
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * acinclude.m4: Use -Werror on parameter tests.
3573 * configure.ac: Likewise.
3574
3575 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3578
3579 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * configure.ac: Check that -malign-loops works rather than assuming that
3582 either -falign-loops or -malign-loops work.
3583
3584 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3585
3586 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3587
3588 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3589
3590 * configure.ac: Prevent cflags leaking to subsequent tests by always
3591 resetting cflags to target_cflags in target tests.
3592
3593 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3596 function.
3597
3598 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3601
3602 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3603
3604 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3605
3606 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/normal/cmdline.c (grub_cmdline_get):
3609 Remove nested functions.
3610
3611 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * tests/test_sha512sum.in: Make it work on emu.
3614
3615 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3618 functions.
3619 (grub_bidi_line_logical_to_visual): Likewise.
3620
3621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 Remove vestiges of -Wunsafe-loop-optimisations.
3624
3625 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3626 -Wno-unsafe-loop-optimisations.
3627 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3628 pragma.
3629 * grub-core/io/gzio.c: Likewise.
3630 * grub-core/script/parser.y: Likewise.
3631 * grub-core/script/yylex.l: Likewise.
3632 * util/grub-mkfont.c: Likewise.
3633
3634 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * util/grub-mkfont.c (process_cursive): Remove nested function.
3637
3638 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3641 (grub_boot_time): Likewise.
3642
3643 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * include/grub/symbol.h (FUNCTION): Use @function rather than
3646 "function".
3647 (VARIABLE): Likewise.
3648
3649 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3652
3653 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3656 (parse_dhcp_vendor): Likewise.
3657
3658 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3661
3662 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3665 Define after defining type and not before.
3666
3667 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3670 type.
3671 (grub_gcm_decrypt): Likewise.
3672 (algo_decrypt): Likewise.
3673 (grub_zfs_decrypt_real): Transform error type.
3674
3675 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3678
3679 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3682 (grub_usbms_cbi_reset): Likewise.
3683 (grub_usbms_bo_reset): Likewise.
3684 (grub_usbms_reset): Likewise.
3685 (grub_usbms_attach): Likewise.
3686 (grub_usbms_transfer_cbi): Likewise.
3687
3688 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3691 "checksum = checksum;".
3692
3693 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3696 entry_type.
3697
3698 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3701 BIOS disk check.
3702
3703 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3706 type.
3707 (grub_ehci_fini_hw): Likewise.
3708 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3709
3710 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3713 return grub_usb_err_t for cosistency. All users updated.
3714
3715 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3718 assigning to itself.
3719
3720 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3721 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3722
3723 Issue separate DNS queries for ipv4 and ipv6
3724
3725 Adding multiple questions on a single DNS query is not supportted by
3726 most DNS servers. This patch issues two separate DNS queries
3727 sequentially for ipv4 and then for ipv6.
3728
3729 Fixes: https://savannah.gnu.org/bugs/?39710
3730
3731 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3732 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3733 * (grub_net_dns_lookup): Now using separated dns packages.
3734 * (grub_cmd_nslookup): Add error condition.
3735 * (grub_cmd_list_dns): Print DNS option.
3736 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3737 --prefer-ipv4, and --prefer-ipv6.
3738 * include/grub/net.h (grub_dns_option_t): New enum.
3739 * (grub_net_network_level_address): option added.
3740
3741 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3742
3743 * grub-core/video/fb/video_fb.c: Merge two blit functions
3744 into one.
3745
3746 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * grub-core/term/terminfo.c: Add sequences for home and end.
3749
3750 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3753 graphics console.
3754
3755 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3758 add mode 0x12.
3759
3760 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3763 e-mail by Per Öberg.
3764
3765 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3768 name.
3769
3770 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3771
3772 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3773 emu platforms.
3774 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3775
3776 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3777
3778 * docs/grub.texi: Document usage of menuentry id.
3779
3780 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3783
3784 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3785
3786 * grub-core/commands/i386/nthibr.c: New command.
3787
3788 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3791
3792 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3795 coordinate.
3796
3797 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 Support GRUB_DISABLE_SUBMENU config.
3800
3801 Inspired by patch from Prarit Bhargava.
3802
3803 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3804
3805 * docs/grub.texi: Mention RSA support.
3806
3807 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * grub-core/commands/verify.c: Add RSA support.
3810
3811 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3814 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3815 device is known to be ATAPI.
3816
3817 2013-11-03 Mike Frysinger <vapier>
3818
3819 * configure.ac: Don't add target-prefix.
3820
3821 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3824 variables.
3825
3826 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3827
3828 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3829 if language is English.
3830
3831 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3834
3835 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3836
3837 * configure.ac: Don't add -m32/-m64 on emu.
3838
3839 2013-11-02 neil
3840
3841 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3842 broken linux headers.
3843
3844 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3847
3848 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3851 Reed-Solomon recovery if more than half of redundancy info is 0.
3852
3853 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * util/grub-mount.c: Handle symlinks to directories.
3856
3857 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3858
3859 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3860 find_file recursively for symlink.
3861
3862 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3863
3864 * tests/util/grub-shell.in: Copy themes.
3865
3866 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3867
3868 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3869
3870 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * configure.ac: Use 0x8000 for address instead of 8000.
3873
3874 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3877 signature.
3878
3879 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3882 variable.
3883
3884 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3887
3888 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3891 file_progress_read_hook.
3892 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3893
3894 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3897 and double.
3898
3899 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3902
3903 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 Rewrite blocklist functions in order to get progress when
3906 reading large extents and decrease amount of blocklist hook calls.
3907
3908 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3911 of SI suffixes.
3912
3913 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 Support --base-clock for serial command to handle weird cards with
3916 non-standard base clock.
3917
3918 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3921 strncpy.
3922 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3923 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3924 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3925 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3926 + strcpy rather than strncpy.
3927
3928 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3929
3930 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3931 (check_pool_label): Likewise. Fixes overflow.
3932 (nvlist_find_value): Fix comparison.
3933
3934 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3935
3936 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3937 more appropriate functions.
3938
3939 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3942 realloc.
3943
3944 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3947
3948 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3951 on core size.
3952
3953 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3956
3957 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3958
3959 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3960 (initialize_tables): reset tl and td to NULL after freeing.
3961
3962 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3965
3966 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3969 of supported tags.
3970
3971 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3974
3975 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3978 quirks.
3979
3980 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3981
3982 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3983 a page in protected space.
3984
3985 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3988 allocate space for zero-sized modules.
3989
3990 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3993
3994 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3995
3996 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3997
3998 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4001 safeguards. Fixes a crash with i386/pc/console.c.
4002
4003 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4006 and grub_hostfs_init.
4007
4008 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4011 windows method on other platforms without good stat as well.
4012
4013 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4014
4015 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4016
4017 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 Make / in btrfs refer to real root, not the default volume.
4020 Modify mkrelpath to work even if device is mounted with subvolid option.
4021
4022 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4023
4024 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4025 extra_dist.
4026 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4027 extra_dist.
4028
4029 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4032 fails.
4033
4034 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4035
4036 * docs/autoiso.cfg: New file.
4037
4038 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4041 COND_GRUB_PE2ELF conditions.
4042
4043 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4044
4045 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4046 "vnd", "rd" and "fd" disks.
4047
4048 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 Move grub_disk_write out of kernel into disk.mod.
4051
4052 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4055 handling.
4056
4057 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/kern/misc.c (grub_abort): Make static
4060
4061 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4064 transform invalid unicode codepoints.
4065
4066 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4069 \0 checking.
4070
4071 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4074
4075 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 Consolidate cpuid code.
4078
4079 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 Move cpuid code to cpuid.h and TSC code to tsc.c.
4082
4083 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4084
4085 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4086
4087 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4088
4089 * util/grub-mkconfig.in: Replace $0 with $self.
4090 * util/grub-reboot.in: Likewise.
4091 * util/grub-set-default.in: Likewise.
4092
4093 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4094
4095 * docs/osdetect.cfg: New file.
4096
4097 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4098
4099 * tests/util/grub-shell.in: Add new --debug option.
4100
4101 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4102
4103 * tests/test_unset.in: New test.
4104
4105 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4106
4107 * tests/test_sha512sum.in: New test.
4108
4109 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4112 * include/grub/misc.h: Remove strncat.
4113 * grub-core/lib/posix_wrap/string.h: Likewise.
4114
4115 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4118 Try to handle more than 0xFFFF packets.
4119 Reported by: Bernhard Übelacker <bernhardu>.
4120 He also spotted few overflows in first version of this patch.
4121
4122 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * tests/date_unit_test.c: New test.
4125
4126 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4129 of first three years after start of validity of unixtime.
4130
4131 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4134 division as the one making more sense.
4135 (update_screen): Likewise.
4136 (complete): Likewise.
4137
4138 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4141
4142 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 Make char and string width grub_size_t rather than grub_ssize_t.
4145
4146 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4147
4148 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4149 unsigned.
4150 (grub_history_replace): Likewise.
4151
4152 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4155 appropriate.
4156
4157 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4160 appropriate.
4161
4162 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4165 Use unsigned divisions rather than signed variants.
4166
4167 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4170 unsigned arithmetics.
4171 Add missing break.
4172
4173 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4176
4177 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4180 rather than signed one.
4181 (recovery): Likewise.
4182
4183 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4186
4187 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4190 than signed.
4191
4192 2013-10-25 Jon McCune <jonmccune@google.com>
4193
4194 * docs/grub.texi: Cleanup security documentation around signatures.
4195
4196 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4199
4200 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4203 than int.
4204
4205 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4208 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4209 functions when compiling for kernel.
4210
4211 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4212
4213 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4214 unsigned long long when using %llu.
4215
4216 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4219 terminal after updating progress.
4220
4221 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4224 argument. We don't disable Gate A20 in this code.
4225
4226 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4229 Conceptually based on change in branch "vbe-on-coreboot".
4230
4231 2013-10-24 Robert Millan <rmh@gnu.org>
4232
4233 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4234 numeric constants with their symbolic equivalent.
4235 Taken from branch "vbe-on-coreboot".
4236
4237 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4240
4241 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4244 divmod64 for offset division.
4245
4246 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4247
4248 Rename .bzrignore to .gitignore. Add "*.o" rule.
4249
4250 * .bzrignore: Renamed to...
4251 * .gitignore: ...this.
4252
4253 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4254
4255 Add new progress module that displays the load progress of files.
4256
4257 * grub-core/lib/progress.c: New file.
4258 * grub-core/Makefile.core.def (progress): New module.
4259 * grub-core/kern/file.c (grub_file_open): File name added.
4260 * (grub_file_read): Progress hook added.
4261 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4262 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4263 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4264 * include/grub/file.h (struct grub_file): Add progress module members.
4265 * include/grub/term.h (struct grub_term_output): Likewise.
4266 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4267 Terminal velocity added.
4268 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4269 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4270 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4271 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4272 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4273 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4274 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4275 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4276 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4277 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4278 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4279 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4280
4281 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 Verify signatures of signatures unless --skip-sig is specified.
4284
4285 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4288 \0 checking.
4289
4290 Saves 70 bytes on compressed image.
4291
4292 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4293
4294 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4295 check.
4296
4297 Saves 10 bytes on compressed image.
4298
4299 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 * grub-core/kern/misc.c (grub_isprint): Move to ...
4302 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4303
4304 Saves 20 bytes on compressed image due to remving exporting.
4305
4306 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4307
4308 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4309
4310 Saves 5 bytes on compressed image.
4311
4312 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4315 function get_utf8.
4316
4317 Saves 379 bytes on compressed image.
4318
4319 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4322
4323 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4326
4327 Saves 40 bytes on compressed image.
4328
4329 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4332 mask rather than 64-bit type.
4333
4334 Saves 20 bytes on compressed image.
4335
4336 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4339 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4340
4341 Saves 273 bytes on compressed image.
4342
4343 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4346 variable length arrays.
4347
4348 Saves 50 bytes on compressed image.
4349
4350 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4353
4354 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/fs/ufs.c: Remove variable length arrays.
4357
4358 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4361
4362 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 * grub-core/fs/zfs.c: Remove variable length arrays.
4365 Reduces zfs.mod by 160 bytes (208 compressed).
4366
4367 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4370
4371 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/net/arp.c: Remove variable length arrays.
4374 * grub-core/net/bootp.c: Likewise.
4375 * grub-core/net/dns.c: Likewise.
4376 * grub-core/net/icmp6.c: Likewise.
4377 * grub-core/net/net.c: Likewise.
4378
4379 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 * grub-core/fs/ntfs.c: Remove variable length arrays.
4382 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4383 compressed).
4384
4385 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/fs/hfs.c: Remove variable length arrays.
4388 Reduces hfs.mod by 8 bytes (52 compressed).
4389
4390 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/fs/udf.c: Remove variable length arrays.
4393 Increases udf.mod by 128 bytes (but decreases by 13 when
4394 compressed).
4395
4396 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4397
4398 * grub-core/fs/iso9660.c: Remove variable length arrays.
4399 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4400 compressed).
4401
4402 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4405 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4406 compressed).
4407
4408 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * grub-core/fs/xfs.c: Remove variable length arrays.
4411 Reduces xfs.mod by 40 bytes (43 compressed).
4412
4413 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4414
4415 * grub-core/fs/fshelp.c: Remove variable length arrays.
4416 Reduces fshelp.mod by 116 bytes (23 compressed).
4417
4418 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * grub-core/normal/completion.c: Remove variable length arrays.
4421 * grub-core/normal/menu_entry.c: Likewise.
4422
4423 Reduces normal.mod by 496 bytes.
4424
4425 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4428 by 356 bytes (158 compressed).
4429
4430 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4431
4432 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4433 by 364 bytes (169 compressed).
4434
4435 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4436
4437 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4438 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4439 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4440
4441 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4444 bitmasks to small structures of size chosen to fit in registers.
4445
4446 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * conf/Makefile.common: Use -freg-struct-return on i386. This
4449 decreases code size and improves performance.
4450
4451 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4454
4455 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4458 "(null)" string.
4459 Simplify expressions to save around 256 bytes in kernel.img.
4460 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4461
4462 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4465 Use GRUB_UTIL_FD_O_* rather than O_*.
4466
4467 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 Add haiku-specific functions.
4470
4471 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4474
4475 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 Move stat () and device mode checking into OS-dependent files as
4478 long as performance doesn't suffer.
4479
4480 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 Split make_system_path_relative_to_its_root into separate file
4483 relpath.c from getroot.c as it's common between unix and haiku
4484 but otherwise haiku doesn't use any functions from unix getroot.c.
4485
4486 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4489 New function.
4490 (grub_util_is_special_file): Likewise.
4491
4492 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4495 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4496
4497 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4500 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4501
4502 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4505 (load_image): Likewise.
4506
4507 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * util/grub-render-label.c: Move backend part to ...
4510 * util/render-label.c: ... here.
4511
4512 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4513
4514 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4515 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4516
4517 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4518
4519 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4520
4521 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4522
4523 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4524 CD-ROM in case when it's declared as having subpartitions.
4525
4526 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 Don't add -lm on haiku.
4529
4530 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4531 and empty on haiku.
4532 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4533 -lm.
4534
4535 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * configure.ac: Use -melf_*_haiku as target on haiku.
4538
4539 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * Makefile.util.def: Add util/setup.c to extra_dist.
4542
4543 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4546 unknown types through.
4547
4548 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4551 (grub_util_check_char_device): Likewise.
4552 * include/grub/emu/getroot.h: Likewise.
4553
4554 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4557 memset rather than inline static function.
4558
4559 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4562 not doing embedded decompressor.
4563
4564 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4565
4566 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4567 shadowing.
4568 * grub-core/kern/disk.c: Likewise.
4569 * grub-core/kern/misc.c: Likewise.
4570 * include/grub/parser.h: Likewise.
4571 * include/grub/script_sh.h: Likewise.
4572 * include/grub/zfs/zfs.h: Likewise.
4573
4574 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4577
4578 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4581 defined before trying to use it.
4582
4583 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4586 warning.
4587
4588 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4591 Use __unused__ rather than __used__ on gcc < 3.2.
4592
4593 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4596 gcc < 4.0.
4597 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4598
4599 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4600
4601 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4602
4603 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4606 * include/grub/emu/misc.h: Likewise.
4607
4608 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4611 cur_color.
4612
4613 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4614
4615 * grub-core/tests/checksums.h: Regenerated due to progress bar
4616 get_minimal_size changes.
4617
4618 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4619
4620 Added `tr' command support.
4621
4622 * grub-core/commands/tr.c: New file.
4623 * grub-core/Makefile.core.def: Build rules for new module.
4624
4625 * tests/grub_cmd_tr.in: New test.
4626 * Makefile.util.def: Build rules for new test.
4627
4628 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4629
4630 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4631
4632 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4633
4634 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4635 * docs/gurb.texi: Likewise.
4636
4637 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4638
4639 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4640 Pixmap highlighted section with east and west slices was displayed
4641 incorrectly due to negative width of the central slice.
4642
4643 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4644
4645 * docs/grub.texi: Graphical options information update.
4646 Removed outdated. Updated current. Inserted missed.
4647
4648 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 * docs/grub.texi: Mention few new platform-specific commands.
4651
4652 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4655 currently used so this doesn't really have any effect.
4656 Reported by: Douglas Ray <dougray>
4657
4658 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4661 compilation but prevents gcc from displaying messages in non-Latin
4662 alphabets.
4663 * conf/Makefile.common: Likewise.
4664
4665 2013-10-16 Hiroyuki YAMAMORI
4666
4667 Handle Japanese special keys.
4668 Reported by: Hiroyuki YAMAMORI.
4669 Codes supplied by: Hiroyuki YAMAMORI.
4670
4671 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4672
4673 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4674
4675 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4676
4677 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4678 * docs/grub.texi: Likewise.
4679
4680 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4683 value in case of incomplete read.
4684 (grub_util_fd_write): Likewise.
4685
4686 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4687
4688 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4689
4690 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * util/grub-editenv.c (create_envblk_file): More from here ...
4693 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4694
4695 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4698 canonicalize file name before doing the rest.
4699
4700 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4703 mingw32.
4704
4705 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 Define grub_util_is_directory/regular/special_file and
4708 use OS-dependent versions rather than to rely on stat().
4709
4710 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * util/grub-mkimage.c: Move backend part to ...
4713 * util/mkimage.c: ... here.
4714
4715 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 Allow compilation with mingw64 albeit with warnings due to lack of
4718 %llx/%llu.
4719
4720 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4721 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4722 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4723 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4724 on mingw64.
4725 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4726
4727 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4728
4729 Remove leftover references to some of the system headers.
4730
4731 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4734 read.
4735
4736 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4739 of strerror.
4740
4741 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 Split out blocklist retrieving from setup.c to
4744 grub-core/osdep/blocklist.c and add windows implementation since
4745 generic version doesn't work on NTFS on Windows due to aggressive
4746 unflushable cache.
4747
4748 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4751 files.
4752
4753 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4754
4755 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4756 Cut tailing newline. Remove arbitrary limitation. Always use
4757 grub_util_tchar_to_utf8.
4758
4759 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4762 * tests/printf_unit_test.c (printf_test): Add %% tests.
4763 Reported by: Paulo Flabiano Smorigo.
4764
4765 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4768 implement fsync.
4769
4770 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4773 use nvlist_lookup_string and don't use nvlist_print.
4774
4775 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4778 closedir to handle filename charset translation.
4779
4780 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 * include/grub/emu/hostdisk.h: Move file operations to
4783 * include/grub/emu/hostfile.h: ... here.
4784
4785 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4788 unicode path.
4789
4790 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4793
4794 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4797 and remove export.h.
4798
4799 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/kern/emu/error.c: Removed.
4802 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4803 explicitly as it's already in libgnu.a.
4804
4805 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4808 config-util.h include.
4809
4810 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 Split emunet into platform-dependent and GRUB-binding parts. Keep
4813 platform-dependent part in kernel for easy access to OS functions.
4814
4815 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4818 open/read/write.
4819
4820 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 * grub-core/osdep/windows/emuconsole.c: New file.
4823
4824 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4825
4826 * conf/Makefile.extra-dist: Add osdep/*/init.c
4827
4828 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4831
4832 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4833
4834 * util/grub-probe.c (probe): Separate different drives in hint-str
4835 by spaces and not newlines.
4836 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4837
4838 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4839
4840 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4841 Handle CD-ROMs.
4842
4843 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 Pass-through unknown E820 types. It required reorganisation of mmap
4846 module.
4847
4848 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4849
4850 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4851
4852 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4853
4854 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4855 fseeko.
4856
4857 2013-10-14 qwertial <qwertial>
4858
4859 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4860
4861 2013-10-14 Jon McCune <jonmccune@google.com>
4862
4863 * docs/grub.texi: Document new signatures possibility.
4864
4865 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4868
4869 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4872 missing prototype.
4873 (grub_util_tchar_to_utf8): Likewise.
4874
4875 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4878 * grub-core/kern/emu/main.c: Add missing include.
4879 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4880 Don't call grub_util_init_nls.
4881 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4882 Likewise.
4883
4884 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4887 stat.
4888
4889 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4892
4893 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4896
4897 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 Add a wrapper for fopen. On unix-like systems just pass-through. On
4900 windows use unicode version.
4901
4902 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4903
4904 Move set_program_name and init_nls to host_init. On windows
4905 fix in this fuction console and argument charset as well.
4906
4907 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4908
4909 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4910 GRUB_ENABLE_CRYPTODISK.
4911
4912 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4913 GRUB_ENABLE_CRYPTODISK.
4914 * util/grub-mkconfig_lib.in: Likewise.
4915
4916 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4917
4918 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4919
4920 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4921
4922 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4923 error when enabling debug.
4924
4925 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4926
4927 * configure.ac: Use -melf_*_obsd on openbsd.
4928
4929 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4932
4933 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4934
4935 * include/grub/misc.h: Use gnu_printf rather than printf as format
4936 template since our functions are independent of libc.
4937
4938 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4939
4940 * util/grub-setup.c (setup): Move copying of partition table as
4941 futher up as possible to avoid possible overwrite by floppy routines.
4942
4943 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4944
4945 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4946
4947 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4948
4949 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4950 * docs/grub.texi: Likewise.
4951
4952 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4955 it's mostly unused. Move vestiges to the callers.
4956
4957 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4960 version of salt and hash. Use grub_snprintf rather than snprintf.
4961
4962 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * docs/grub.texi: Fix problem with braces.
4965
4966 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * conf/Makefile.extra-dist: Fix extra-dist list.
4969 * grub-core/Makefile.core.def: Likewise.
4970
4971 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * docs/grub.texi: Document disk names used on Windows and AROS.
4974
4975 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4978 with AROS devs.
4979 * grub-core/osdep/aros/hostdisk.c: Likewise.
4980
4981 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 Avoid including hostfile.h when not necessarry as it pulls
4984 in OS-specific headers which may redefine generic names
4985 like "far".
4986
4987 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4988
4989 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4990 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4991 scrollbar_bottom_pad
4992 * docs/grub.texi: Likewise.
4993
4994 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4995
4996 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4997
4998 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5001
5002 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5005 Removed.
5006 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5007 Made static.
5008
5009 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5012 leftover.
5013
5014 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 Move OS-specific driver configuration to grub_util_fd_open. This
5017 moves OS-dependent parts from kern/emu/hostdisk.c to
5018 grub-core/osdep/*/hostdisk.c.
5019
5020 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5021
5022 * util/grub-mkimage.c (generate_image): Use size_t instead of
5023 grub_size_t.
5024 * util/grub-mkimagexx.c (locate_sections): Likewise.
5025 (load_image): Likewise.
5026
5027 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5028
5029 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5030 size_t.
5031 (grub_util_write_image): Likewise.
5032
5033 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5036 get random when no RNG is available.
5037 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5038
5039 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5040
5041 * include/grub/util/lvm.h: Removed.
5042
5043 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5044
5045 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5046 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5047
5048 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5051
5052 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5055
5056 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * grub-core/net/drivers/emu/emunet.c: Move to ..
5059 * grub-core/osdep/linux/emunet.c: ..here.
5060
5061 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5062
5063 * util/ieee1275/ofpath.c: Move to ...
5064 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5065 * grub-core/osdep/basic/ofpath.c: ..here.
5066
5067 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 Move password-querying (util-version) routines to grub-core/osdep.
5070
5071 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 Move sleep routines to grub-core/osdep.
5074
5075 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 Move OS-dependent files to grub-core/osdep and document it.
5078
5079 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5080
5081 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5082 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5083
5084 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5087
5088 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * util/misc.c: Remove leftover inclusion of malloc.h.
5091
5092 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * include/grub/setjmp.h: Remove leftover GRUBOF.
5095
5096 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5097
5098 * util/raid.c: Fold into ...
5099 * util/getroot_linux.c: ... here. Make all functions static.
5100
5101 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5102
5103 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5104 macros to GRUB ones.
5105
5106 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5107
5108 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5109 occasional bug. If there are too many boot entries or too low
5110 scrollbar height then we need to use another formula to calculate
5111 the position and size of the scrollbar thumb.
5112
5113 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5116
5117 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5118
5119 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5120 * docs/grub.texi: Likewise.
5121
5122 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5123
5124 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5125 viewport.
5126
5127 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5128
5129 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5130 minimal width calculations.
5131
5132 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * docs/grub.texi: Update note on colors on emu console.
5135
5136 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5139 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5140 it's FS and not GRUB limitation.
5141
5142 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5145
5146 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5149
5150 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5151
5152 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5153 kernels by version order.
5154
5155 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5158
5159 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 Add AROS hostdisk and getroot routines.
5162
5163 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 Make cryptodisk and diskfilter probe data retrievable programmatically
5166 and not just printable.
5167
5168 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Split random retrieving code into separate files.
5171
5172 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5175 R_ARM_V4BX.
5176
5177 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5180 condition.
5181 * grub-core/tests/fake_input.c: Likewise.
5182 * grub-core/tests/cmdline_cat_test.c: Likewise.
5183
5184 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/video/capture.c: Do not do finalization when .fini
5187 is called as there is explicit capture_end.
5188
5189 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5190
5191 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5192 changing windows to avoid crash.
5193
5194 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5197
5198 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * po/exclude.pot: Add several strings to exclude.
5201
5202 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5205
5206 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5209 ./util/grub-gen-asciih.c to exclude list.
5210
5211 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5212
5213 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5214 and don't mark error strings for translation.
5215
5216 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5219 properly in case of missing block size.
5220
5221 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 * grub-core/lib/arm/setjmp.S: Add missing license section.
5224
5225 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * po/swiss.sed: Add replacement for key names and for term computer.
5228
5229 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5230
5231 * grub-core/gfxmenu/theme_loader.c: New global options for the
5232 theme background image handling. desktop-image-scale-method,
5233 desktop-image-h-align, desktop-image-v-align.
5234 * grub-core/gfxmenu/view.c: Likewise.
5235 * include/gfxmenu_view.h: Likewise.
5236 * include/bitmap_scale.h: Proportional scale functions introduced.
5237 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5238 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5239 cases of unexpected input variables for scale functions.
5240 * docs/grub.texi: Updated documentation for new options.
5241
5242 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5243
5244 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5245
5246 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5247
5248 * grub-core/tests/checksums.h: Corrected due to changes in
5249 bilinear interpolation function.
5250
5251 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5252
5253 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5254 to eliminate artefacts in bilinear interpolation.
5255
5256 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * grub-core/video/readers/tga.c: Support paletted tga.
5259
5260 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5263 incorrect cbcr setting when in color mode.
5264
5265 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/video/readers/png.c: Support paletted images and clean up
5268 greyscale support.
5269
5270 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5273 usage of wrong table which resulted in mishandling of 4-byte
5274 sequences.
5275
5276 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5277
5278 * grub-core/term/terminfo.c: Add Home and End key sequences.
5279
5280 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5283 Fix formula for computing total number of bytes.
5284
5285 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5288 image processing, fix big-endian and support grayscale.
5289
5290 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5291
5292 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5293 Correctly will with maximum transparency when using index color.
5294
5295 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5296
5297 * grub-core/video/readers/png.c: Support grayscale
5298
5299 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/video/readers/jpeg.c: Support grayscale.
5302
5303 2013-09-26 Jon McCune <jonmccune@google.com>
5304
5305 * grub-core/commands/loadenv.c: Support skipping signature check
5306 and variable names filtering.
5307
5308 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5309
5310 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5311 * grub-core/kern/emu/hostfs.c: Likewise.
5312 * util/getroot_unix.c: Likewise.
5313
5314 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5317 Migrate all explicit defines to this new one.
5318
5319 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5322 grub_util_fd_strerror when using grub_util_fd_*.
5323 (grub_util_fd_open_device): Likewise.
5324 (grub_util_biosdisk_read): Likewise.
5325 (grub_util_biosdisk_write): Likewise.
5326 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5327 (grub_util_fd_strerror): Likewise.
5328 (grub_util_fd_sync): Likewise.
5329 (grub_util_fd_close): Likewise.
5330 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5331 (grub_util_fd_close): Likewise.
5332 (grub_util_fd_strerror): Likewise.
5333 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5334 function proto rather than macro.
5335 (grub_util_fd_sync): Likewise.
5336 (grub_util_fd_open): Likewise.
5337 (grub_util_fd_strerror): New proto.
5338
5339 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5342 platforms on which it doesn't work.
5343
5344 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5347 stat immediately to where it's used.
5348
5349 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * util/getroot.c (grub_util_check_block_device): Move to ...
5352 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5353 * util/getroot.c (grub_util_check_char_device): Move to ...
5354 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5355
5356 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5359 disk closing logic.
5360
5361 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5362
5363 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5364
5365 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5366
5367 * docs/grub.texi (File name syntax): Document ZFS filenames
5368 (/volume@snapshot/...).
5369
5370 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5371
5372 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5373 Always return full path. Fixes a problem with mkrelpath.
5374
5375 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5376
5377 * util/grub-install.in: Add GPT PReP support.
5378 * util/grub-probe.c (probe): Support GPT partition type.
5379 (main): Support -t gpt_parttype.
5380
5381 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5382
5383 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5384
5385 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5386
5387 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5388
5389 2013-09-23 Tim Hardeck <thardeck>
5390
5391 * util/grub.d/10_hurd.in: Filter out character for the class.
5392 * util/grub.d/10_kfreebsd.in: Likewise.
5393 * util/grub.d/10_linux.in: Likewise.
5394 * util/grub.d/20_linux_xen.in: Likewise.
5395
5396 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5397
5398 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5399 "changed".
5400
5401 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5402
5403 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5404 boot partition.
5405
5406 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5409 doesn't use posix_wrap. Keep literal -fno-builtin however.
5410
5411 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5412
5413 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5414
5415 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5416 2013-09-23 neil
5417
5418 * configure.ac: Do not enable -Wmissing-noreturn as its
5419 usefulness is limited and creates problems on some OS notably with
5420 code generated by bison.
5421
5422 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5423 2013-09-23 neil
5424
5425 * configure.ac: Do not explicitly enable -Waddress as it's not
5426 supported by all gcc and when it is, it's already enabled by -Wall.
5427
5428 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5429
5430 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5431 desactivated use of EDID at all.
5432
5433 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5434 2013-09-23 neil
5435
5436 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5437 video if no text is available.
5438
5439 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5440 2013-09-23 neil
5441
5442 * configure.ac: Substitute TARGET_RANLIB.
5443
5444 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5445 2013-09-23 neil
5446
5447 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5448
5449 Based on patches from AROS.
5450
5451 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5452 2013-09-23 neil
5453
5454 * grub-core/Makefile.am: Override STRIP and RANLIB.
5455 * configure.ac: compute TARGET_RANLIB.
5456 * INSTALL: Document TARGET_RANLIB
5457
5458 Based on patches from AROS.
5459
5460 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5463 that floppies are unpartitioned.
5464
5465 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5468 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5469
5470 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5473 less nice but more portable.
5474 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5475
5476 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5477
5478 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5479 for cheat_fd.
5480 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5481 functions.
5482 (grub_cryptodisk_cheat_insert): Likewise.
5483 (grub_cryptodisk_close): Likewise.
5484
5485 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5488 Use windows path for DEFAULT_DIRECTORY.
5489
5490 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5493 difference was likely just gcc version, not anything mingw-related.
5494
5495 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Use Winapi on both cygwin and mingw32 to share more code between both.
5498
5499 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5500
5501 * util/grub-install.in: Add --grub-editenv option.
5502 * util/grub-install_header (grub_compress_file): Explicitly check for
5503 plain file to avoid cp error.
5504
5505 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5506
5507 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5508 names; fix LVM driver name (lvm, not lv).
5509 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5510 names.
5511
5512 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5515 files rather than one file with loads of #if's.
5516 * util/getroot.c: Likewise.
5517
5518 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5519
5520 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5521
5522 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5525 GNU/Hurd to the list of checked PRNG.
5526
5527 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5530
5531 2013-09-21 Ales Nesrsta <starous@volny.cz>
5532
5533 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5534
5535 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5538 * grub-core/disk/lvm.c: Add LVM UUIDs.
5539 * util/getroot.c: Use LVM UUIDs whenever possible.
5540
5541 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5542
5543 * docs/grub.texi (Networking commands): Add documentation for
5544 network related commands.
5545
5546 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5549 to determine if device is handled by devmapper.
5550 (convert_system_partition_to_system_disk): Likewise.
5551 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5552 already done in grub_util_open_dm.
5553
5554 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5555
5556 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5557 Clean up stack manipulation (sync_caches_armv*)
5558
5559 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * util/lvm.c: Remove since unused. Remove remaining references.
5562
5563 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 Handle the case of partitioned LVM properly.
5566
5567 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5568 Stop on meeting LVM, mpath or DMRAID.
5569 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5570 (read_device_map): Likewise.
5571 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5572 device is full disk rather than erroring out on LVM and similar cases.
5573
5574 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5577
5578 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5581 4K before the end.
5582 Reported by: Leif Lindholm
5583
5584 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5585 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5588 codes.
5589
5590 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5591
5592 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5593 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5594
5595 2013-09-18 Douglas Ray <dougray@cpan.org>
5596
5597 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5598 as secure.
5599
5600 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5601
5602 * docs/grub.texi: Fix broken link.
5603
5604 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5605
5606 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5607 to break endless loop.
5608
5609 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 * util/grub-fstest.c: Fix several printf formats.
5612 * util/grub-mkimage.c: Likewise.
5613 * util/grub-mkimagexx.c: Likewise.
5614 * util/grub-script-check.c: Likewise.
5615
5616 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5619 error.
5620
5621 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5624
5625 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5626
5627 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5628 removed in current versions cygwin_conv_*.
5629
5630 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * configure.ac: Disable efiemu runtime on cygwin.
5633
5634 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5637 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5638
5639 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5640
5641 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5642 error message.
5643
5644 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5647 windows variant.
5648 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5649 data.
5650
5651 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5654 when on x86 and not cygwin.
5655 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5656 -Wl,-melf_x86_64.
5657
5658 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * configure.ac: Set CPP to build one when checkoing for freetype for
5661 build.
5662
5663 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5666 [!GRUB_BUILD]: Remove has_argument.
5667
5668 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5671 Replace with a dummy.
5672
5673 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * configure.ac: Don't change host_os from mingw to cygwin.
5676
5677 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5678
5679 * configure.ac: Change target_os from windows to cygwin.
5680
5681 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5684
5685 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5686 (build-grub-gen-asciih): Likewise.
5687 (build-grub-gen-widthspec): Likewise.
5688 * Makefile.util.def (grub-pe2elf): Remove.
5689 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5690 * configure.ac: Separate tests for build.
5691 Move ./build-grub-pe2elf to grub-core.
5692 Fix typo.
5693 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5694 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5695 defined.
5696 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5697 constants.
5698 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5699 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5700 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5701
5702 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5703
5704 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5705 mingw32 as well based on grub_util_get_disk_size.
5706 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5707 grub_util_get_fd_size.
5708 (sync): Removed.
5709 (fsync): Moved to ...
5710 * grub-core/kern/emu/misc.c (fsync): ... here.
5711
5712 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * include/grub/mm.h (grub_extend_alloc): Remove.
5715 * grub-core/loader/i386/pc/plan9.c: Use own version of
5716 grub_extend_alloc with appropriate types.
5717
5718 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5721
5722 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5725
5726 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 Fix dependencies on cygwin.
5729
5730 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5731 dependencies when used and defined.
5732 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5733
5734 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5737 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5738
5739 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5742 implementation available to cause compile-time rather than runtime
5743 error.
5744
5745 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * util/grub-fstest.c: Don't check for symlinks on windows.
5748
5749 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5750
5751 * INSTALL: Mention unavailability of man pages when cross-compiling.
5752
5753 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5754
5755 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5756 and gcry_log_bug.
5757 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5758
5759 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5760
5761 * INSTALL: Document cross-compilation.
5762 * acinclude.m4: Determine whether nm support -P and --defined-only.
5763 * configure.ac: Add TARGET_ to all variables pertaining to target
5764 that don't have it yet.
5765 * gentpl.py: Likewise.
5766 * grub-core/Makefile.am: Likewise.
5767 * grub-core/genmod.sh.in: Likewise.
5768 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5769 as well.
5770
5771 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5772
5773 * configure.ac: Remove -Wempty-body. It's not essential and needs
5774 recent gcc.
5775
5776 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5777
5778 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5779 * util/getroot.c: Likewise.
5780
5781 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/disk/ahci.c: Add needed explicit cast.
5784 * grub-core/lib/backtrace.c: Likewise.
5785 * grub-core/net/ip.c: Likewise.
5786 * grub-core/net/tcp.c: Likewise.
5787 * grub-core/net/udp.c: Likewise.
5788
5789 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5792
5793 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5794
5795 * util/import_gcry.py: Add final newline in visibility.h.
5796
5797 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 * conf/Makefile.common: Fix typo.
5800
5801 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5804
5805 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * Makefile.am (widthspec.h): Fix typo.
5808 * util/grub-gen-widthspec.c: Likewise.
5809
5810 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 Move ascii.h and widthspec.h generation to a separate build-time-only
5813 tool.
5814
5815 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5816
5817 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5818 Always fill bootdisk info and improve check for NetBSD disklabel.
5819
5820 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * conf/Makefile.extra-dist: Add util/bin2h.c.
5823 Reported by: floppym.
5824
5825 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5828
5829 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * configure.ac: Disable unifont and starfield if no freetype was found.
5832
5833 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5836 on NetBSD and OpenBSD.
5837
5838 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5839
5840 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5841
5842 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5843
5844 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5845 reduced. Inheritant options are processed during the theme loading.
5846
5847 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5848
5849 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5850
5851 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5852
5853 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5854
5855 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5856
5857 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5858 using qemu.
5859
5860 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5861
5862 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5863 remove-potcdate.sed.
5864
5865 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5866
5867 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5868 unused attribute from pull argument.
5869
5870 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5871
5872 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5873 memory leak.
5874
5875 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5876
5877 * util/getroot.c (pull_lvm_by_command): add --separator option
5878 to vgs call to disable padding of output to 10 characters.
5879
5880 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5883 here ...
5884 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5885 here.
5886
5887 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5890 length.
5891
5892 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5895 full Canadian cross. Tested with build=x86_64, host=arm,
5896 target=ppc-ieee1275.
5897
5898 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5899
5900 * configure.ac: Error if no $BUILD_CC could be found.
5901 Reported by: DevHC.
5902
5903 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5906 i386-multiboot.
5907
5908 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5909
5910 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5911 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5912
5913 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5914
5915 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5916 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5917 falling back to the partition device, otherwise a later call to this
5918 function may fail spuriously.
5919 Reported by Axel Beckert. Fixes Debian bug #708614.
5920
5921 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5922
5923 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5924
5925 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5926
5927 Prevent shadowing of stdlib's devname(3) on BSD.
5928
5929 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5930 and devlast to diskname and disklast, respectively.
5931
5932 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5933
5934 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5935
5936 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5937
5938 * docs/grub.texi: Introduce terminal window position options:
5939 terminal-left: terminal window's left position
5940 terminal-top: terminal window's top position
5941 terminal-width: terminal window's width
5942 terminal-height: terminal window's height
5943 terminal-border: terminal window's border width
5944 * grub-core/gfxmenu/theme-loader.c: Likewise.
5945 * include/grub/gfxmenu_view.h: Likewise.
5946 * po/exlude.pot: Likewise.
5947 * grub-core/gfxmenu/view.c: Likewise.
5948 Also updated minimal window size.
5949 Also terminal_sanity_check function has been introduced.
5950 * grub-core/tests/checksums.h: Update (terminal window height
5951 is adjusted now for low resolution screen)
5952
5953 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5956 position).
5957
5958 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5959
5960 * po/exclude.pot: Add few recent exceptions.
5961
5962 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 * tests/grub_func_test.in: Add unicode.pf2.
5965
5966 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5969 standard rather than noral color, in line with other terminals.
5970
5971 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5974 analysis.
5975
5976 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5977
5978 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5979
5980 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5981
5982 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5983 inappropriate printf.
5984
5985 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5986
5987 * .bzrignore: Remove grub-core/lib/dtc-grub,
5988 grub-core/Makefile.libfdt.def
5989 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5990
5991 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * include/grub/video.h (grub_video_register): Keep double-linked as
5994 well as single-linked invariants.
5995 Reported by: qwertial.
5996
5997 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/commands/nativedisk.c (get_uuid): Handle
6000 GRUB_DISK_DEVICE_UBOOTDISK_ID.
6001
6002 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
6003
6004 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6005 maximum of NW, N, NE heights instead of N's height and maximum of
6006 NW, W, SW widths instead of W's width. (So the box will be always
6007 correctly drawn)
6008
6009 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6010
6011 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6012 Fix misuse of variable count.
6013
6014 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
6015 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
6016 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 New ports to arm-uboot and arm-efi.
6019 Mostly by Leif Lindholm with some additions from
6020 Francesco Lavra and cleanup by Vladimir Serbinenko.
6021
6022 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6025 and not before.
6026 Reported by: Leon Drugi.
6027
6028 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6031 Reported by: Paulo Flabiano Smorigo.
6032
6033 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6034
6035 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6036
6037 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6038
6039 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6040
6041 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6044
6045 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6048
6049 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6050
6051 * grub-core/net/bootp.c: Export net_* variables.
6052 * grub-core/net/net.c: Likewise.
6053
6054 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6055
6056 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6057
6058 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6061
6062 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6065
6066 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6069
6070 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6071
6072 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6073 <= 0.
6074
6075 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6076
6077 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6078 functions.
6079
6080 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6081
6082 * grub-core/fs/zfs/zfs_lz4.c: New file.
6083 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6084
6085 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6086
6087 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6088
6089 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6090
6091 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6092 (check_pool_label): Likewise.
6093 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6094
6095 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6096
6097 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6098
6099 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6100
6101 * docs/grub.texi (Commands): Document postition parameters
6102 for menuentry command.
6103
6104 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6105
6106 * util/grub-mknetdir.in: Remove stray line from help output.
6107
6108 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Remove early sm712 init as there is no reason for it (the "watchdog"
6111 effect was due to wrong GPIO map).
6112
6113 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/commands/pcidump.c: Remove static variables.
6116
6117 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6120
6121 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6122
6123 * configure.ac: Move delimiter after the infos.
6124
6125 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6128
6129 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6132 not filling whole 8x16 space.
6133
6134 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6137
6138 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * configure.ac: Indicate which liblzma is used if any.
6141
6142 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6143 2013-06-21 Craig Sanders <savannah@taz.net.au>
6144
6145 * util/grub-reboot.in: Document submenu usage.
6146
6147 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6148
6149 * .bzrignore: Update with a number of new test-related files.
6150
6151 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6152
6153 * util/grub-script-check.c: Fail on scripts containing no
6154 commands, to guard against corrupted grub-mkconfig setups that
6155 produce no useful output.
6156 * tests/grub_script_no_commands.in: New test.
6157 * Makefile.util.def (grub_script_no_commands): Add.
6158 Reported by Hans Putter. Fixes Debian bug #713886.
6159
6160 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6161
6162 * grub-core/disk/diskfilter.c: Forgot to remove comment
6163 from previous commit.
6164
6165 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6166
6167 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6168 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6169
6170 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6171
6172 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6173
6174 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6175
6176 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6177 rescan diskfilter devices until nothing new is found.
6178
6179 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6180
6181 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6182
6183 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 Don't try to detect cbfs on *-emu.
6186
6187 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6190
6191 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 Add support for processed coreboot payload chainloading.
6194
6195 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 Enable coreboot information commands even when not loaded as
6198 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6199
6200 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6201
6202 Support for cbfs. Also factor out the part which is common
6203 for all archives to a separate module. This splits tar from cpio
6204 as they are very different but keeps cpio, cpio_be, odc and newc
6205 together since they're very similar.
6206
6207 2013-06-15 David Michael <fedora.dm0@gmail.com>
6208
6209 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6210 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6211
6212 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * tests/grub_script_eval.in: Really add the eval test.
6215
6216 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 Move flavour-specific parts out of common cpio.c file and
6219 rename remaining to cpio_common.c
6220
6221 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6222
6223 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6224 off new function grub_script_execute_new_scope. Change callers to use
6225 either of them as appropriate.
6226 * grub-core/commands/eval.c: New command eval.
6227 * docs/grub.texi (Commands): Document it.
6228
6229 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6230
6231 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6232 to fetch values when listing.
6233
6234 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6235
6236 Fix make dist on non-pc.
6237
6238 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6239
6240 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6241 without a device name.
6242
6243 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 Remove enable_executable_check as it's not needed anymore.
6246 Reported by: dougray.
6247
6248 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6251 ambigouos RAID before discovering RAIDs on top of it.
6252 Reported by: bodom.
6253
6254 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6255
6256 Fix typo (failback vs fallback).
6257
6258 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6259
6260 * util/grub.d/30_os-prober.in: Add support for probing EFI
6261 System Partition (as of os-prober 1.58).
6262
6263 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * configure.ac: Add yet another path to unifont. For parabola.
6266
6267 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6268
6269 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6270 handling to copy the killed characters to the kill buffer as
6271 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6272 stored as char. Eliminates UCS4 truncation and corruption
6273 observed when killing characters with Ctrl-u and yanking them
6274 back with Ctrl-y.
6275
6276 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 Detach optional parts of gfxterm and integrate in with coreboot init.
6279
6280 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 Move blit and fill dispatcher to appropriate files to decrease export
6283 and relocation overhead.
6284
6285 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6288 functions.
6289
6290 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6291
6292 * grub-core/Makefile.am: Fix compilation problem with some
6293 automake versions.
6294
6295 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6296
6297 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6298
6299 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6302 automake versions.
6303
6304 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6307 SSDT.
6308
6309 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6310
6311 * grub-core/partmap/dfly.c: New partition map.
6312
6313 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6316 checking.
6317 Reported by: Francesco Lavra.
6318
6319 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6320
6321 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6322 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6323 false conditions.
6324 * conf/Makefile.common: define dist_grubconf_DATA
6325
6326 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 Progressively skip menu elements on small terminals rather
6329 than crashing.
6330
6331 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6334 to avoid losing last column.
6335
6336 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 * po/exclude.pot: Add missing string "%C".
6339
6340 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6341
6342 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6343 after the test.
6344
6345 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * util/grub-install.in: Gettextize "Not found" message.
6348
6349 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 Fix distfiles list.
6352 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6353
6354 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6355
6356 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6357 present.
6358 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6359
6360 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6361
6362 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6363
6364 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6367 attribute since structure is not necessarily aligned.
6368
6369 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6370
6371 * docs/grub.texi (Device syntax): Clarify description of network
6372 drives.
6373
6374 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6377 for vasprintf presence.
6378
6379 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * util/grub-install.in: Handle efibootmgr presence check.
6382 Reported by: Leif Lindholm.
6383
6384 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6387 new strings to translate.
6388
6389 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6392 yet another string (pun intended) to translate.
6393
6394 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * po/POTFILES-shell.in: Autogenerate it.
6397
6398 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6401
6402 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6405 misnomer.
6406
6407 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6408
6409 * docs/grub.texi (Network): Add description of net_default_interface,
6410 net_default_ip and net_default_mac. Rewrite variables description
6411 to emphasize that they are per-interface.
6412
6413 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 New test: cmdline and cat.
6416
6417 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * grub-core/commands/cat.c: Show UTF-8 characters.
6420
6421 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 * conf/Makefile.common: Poison float and double on non-emu.
6424
6425 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * configure.ac: Don't disable extended registers on emu.
6428
6429 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * configure.ac: Don't use extended registers on x86_64.
6432 Reported by: Peter Jones.
6433
6434 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * grub-core/term/efi/console.c: Fix compile error.
6437
6438 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 Compressed HFS+ support.
6441
6442 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6445 pixel".
6446
6447 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 Menu color test.
6450
6451 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/tests/setjmp_test.c: New test.
6454
6455 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 New variables 'net_default_*' to determine MAC/IP of default interface.
6458
6459 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6460
6461 * tests/gettext_strings_test.in: A test to check for strings not
6462 marked for translation.
6463
6464 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * autogen.sh: Exclude unused libgcrypt files from translation.
6467
6468 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 Simplify few strings.
6471
6472 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 Mark few forgotten strings for translation.
6475
6476 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6479 rather than printf.
6480
6481 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6482
6483 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6484 rather than printf.
6485 * grub-core/video/readers/tga.c: Likewise.
6486
6487 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * tests/priority_queue_unit_test.cc: New test.
6490
6491 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6494 than printf.
6495
6496 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6497
6498 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6499 variable for one time boot menu entry.
6500
6501 2013-05-05 Bean <bean123ch@gmail.com>
6502
6503 * grub-core/commands/testspeed.c: New command testspeed.
6504
6505 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6506
6507 Factor-out human-size printing.
6508
6509 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 Agglomerate more mallocs to speed-up gfxterm.
6512
6513 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 Speed-up gfxterm by slightly agglomerating mallocs.
6516
6517 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 More video checks.
6520
6521 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 Speed-up gfxterm by saving intermediate results in index+alpha
6524 format.
6525
6526 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6527
6528 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6529 test.
6530
6531 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6534 line of timeout as it may contain the rest of long line.
6535
6536 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 * grub-core/normal/main.c: Fix freed memory dereference.
6539
6540 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 Fix several memory leaks.
6543
6544 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6547
6548 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6551
6552 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 Fix test -a and -o precedence.
6555 Reported by: adrian15.
6556
6557 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6560
6561 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6562
6563 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6564 and add it as source to functional_test module.
6565
6566 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6569
6570 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 New series of tests for gfxterm and gfxmenu.
6573
6574 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6577 the theme path relative to $prefix/themes.
6578
6579 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6580
6581 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6582 Fix order bug.
6583 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6584
6585 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6588 descriptor.
6589
6590 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6591
6592 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6593 grub_gfxmenu_timeout_notifications.
6594 (grub_gfxmenu_view_destroy): Likewise.
6595
6596 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6599
6600 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 Several fixes to ieee1275 and big-endian video.
6603
6604 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 Add missing exports on mips.
6607
6608 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6611 if no unifont is found.
6612 Restore original keyboard.
6613
6614 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6617 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6618
6619 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 First automated video test (running videotest and comparing results)
6622
6623 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6626 instead of 2 to have full RGB/CMY test pattern.
6627
6628 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 Add few more tests.
6631
6632 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6635 ARCS. All users updated.
6636
6637 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6638
6639 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6640
6641 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6644
6645 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6648 Reported by: qwertial.
6649
6650 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6651
6652 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6653 with syntax "XXX deg"/"XXX °".
6654
6655 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Make PCI init in i386-qemu port more robust.
6658
6659 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6660
6661 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6662 cached view is reused.
6663 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6664 open boot menus.
6665
6666 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6667
6668 Unify more code in grub-install_header.
6669
6670 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 Add few new tests.
6673
6674 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 Enforce disabling of firmware disk drivers when native drivers kick in.
6677
6678 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * grub-core/commands/nativedisk.c: Customize the list of modules on
6681 platform. Don't try to search for disks already using native drivers.
6682
6683 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6686 platforms.
6687
6688 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6691 handling of variables containing backslash.
6692
6693 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6696 dereference.
6697 Reported by: qwertial.
6698
6699 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6700
6701 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6702
6703 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6706 dereference.
6707 Reported by: qwertial.
6708
6709 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6710
6711 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6712
6713 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6716
6717 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6718
6719 New command `nativedisk'.
6720
6721 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6724 * grub-core/loader/i386/bsd.c: Likewise.
6725
6726 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6729
6730 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6731
6732 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6733 grub_get_unaligned16 rather than shifts.
6734
6735 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * grub-core/kern/file.c: Use const char * rather than casting to
6738 non-const.
6739
6740 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * grub-core/commands/probe.c: Add missing grub_device_close.
6743
6744 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * INSTALL: Document linguas.sh.
6747
6748 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 Remove POTFILES.in and regenerate it in autogen.sh.
6751
6752 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 Move --directory/--override-directorry to grub-install_header and unify.
6755
6756 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/term/morse.c: Macroify dih and dah.
6759
6760 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6761
6762 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6763
6764 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * grub-core/term/ns8250.c: Systematically probe ports by writing
6767 to SR before using them.
6768
6769 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6770
6771 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6772 disks.
6773 (check_sas): Get sas_adress info.
6774
6775 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6778 ports.
6779
6780 2013-04-27 Leon Drugi <eyak>
6781
6782 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6783 BSS clearing.
6784
6785 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 Core compression test.
6788
6789 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 Implement grub_machine_get_bootlocation for ARC.
6792
6793 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6794
6795 Improve AHCI detection and command issuing.
6796
6797 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6798
6799 Fix pseries test.
6800
6801 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 Make 'make check' work on emu.
6804
6805 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 Replace libcurses with our own vt100 handling for the ease of testing
6808 and decreasing prerequisites.
6809
6810 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6813
6814 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6817 compile when not needed.
6818
6819 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * tests/pseries_test.in: New test.
6822
6823 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 Add test to check that different boot mediums work.
6826
6827 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6830 ofw limited ISO support.
6831
6832 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6833
6834 * configure.ac: Fix loongson conditional.
6835
6836 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6837
6838 Enable mipsel-arc.
6839
6840 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 Add serial on ARC platform.
6843
6844 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6847 commit.
6848
6849 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * tests/partmap_test.in: Add missing double semicolon.
6852
6853 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 * util/grub-mkrescue.in: Fix loongson filename.
6856
6857 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * util/grub-mkrescue.in: Move all files that don't have a location
6860 set in stone under /boot/grub. Use ISO hard links rather than copies
6861 to save some space.
6862
6863 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6866 bogus SLOF values.
6867
6868 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 Make check work on mips-arc.
6871
6872 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * util/grub-mkrescue.in: Alias sashARCS as sash.
6875
6876 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6879 it's serial.
6880
6881 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * util/grub-install.in: Fix target fo qemu_mips.
6884 Fix extension on EFI.
6885
6886 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6889 in front of chosen entry to mark it even if highlighting is lost.
6890
6891 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6894 gfxpayload=keep if cbfb is active.
6895
6896 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6897
6898 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6899
6900 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 Add missing video ids to coreboot and ieee1275 video.
6903
6904 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * util/grub-mkrescue.in: Add mips-arc support.
6907
6908 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6911
6912 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6913
6914 Move mips-arc link address. Previous link address was chosen
6915 in belief that RAM on SGI platforms grows down while in fact it
6916 grows up from an unusual base.
6917
6918 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6921 Fix a type which prevented CD-ROM and floppy boot.
6922
6923 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 Support coreboot framebuffer.
6926
6927 * grub-core/video/i386/coreboot/cbfb.c: New file.
6928
6929 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6930
6931 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6932 detecting too small regions.
6933
6934 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6937
6938 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6941 Remove dprintf.
6942 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6943
6944 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6947 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6948 * grub-core/loader/powerpc/ieee1275/linux.c
6949 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6950
6951 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6954 Look for /boot-rom as well as /rom/boot-rom.
6955
6956 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6959 handling when creating text_layer failed.
6960 * grub-core/video/video.c (grub_video_create_render_target):
6961 Set result to 0 on error.
6962 (grub_video_delete_render_target): Do not dereference NULL.
6963
6964 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6967 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6968 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6969 (grub_linux_load64): Mask out 2 high bits.
6970
6971 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6972
6973 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6974 more place.
6975
6976 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 Add support for pseries and other bootinfo machines to grub-mkrescue.
6979
6980 Tested by: Paulo Flabiano Smorigo.
6981
6982 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6983
6984 * util/grub-mkrescue.in: Add GPT for EFI boot.
6985
6986 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6989 It improves performance in qemu.
6990
6991 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 * build-aux/snippet: Add missing gnulib files.
6994
6995 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6996
6997 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6998
6999 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
7000
7001 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7002
7003 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7004 2013-04-15 Peter Jones <pjones@redhat.com>
7005
7006 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7007 sectors.
7008 Based on patch by Peter Jones.
7009
7010 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 Fix DMRAID partition handling.
7013
7014 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * tests/grub_cmd_date.in: Skip on sparc64.
7017
7018 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7021 firmware error messages.
7022
7023 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7026 source and destination differ.
7027
7028 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7031 detection.
7032
7033 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7036 match config-util.h to avoid warnings and increase compatibility.
7037
7038 2013-04-14 Szymon Janc <szymon@janc.net.pl>
7039 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 Add option to compress files on install/image creation.
7042
7043 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7044
7045 * docs/grub-dev.texi: Rearrange menu to match the section order.
7046 Reported by: Bryan Hundven.
7047
7048 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7051
7052 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Move GRUB out of system area when using xorriso 1.2.9 or later.
7055
7056 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 * tests/grub_cmd_date.in: Add missing exit 1.
7059
7060 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * tests/partmap_test.in: Skip on sparc64.
7063
7064 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7065
7066 Support grub-shell on sparc64.
7067
7068 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7069
7070 Support mkrescue on sparc64.
7071
7072 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7075 Needed on OpenBIOS due to incomplete device tree.
7076
7077 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7080 would be otherwise excluded.
7081
7082 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7085 Inline name defines used only once.
7086
7087 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 Fix memory leaks in ofnet.
7090 Reported by: Francesco Lavra.
7091
7092 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7093
7094 * docs/man/grub-glue-efi.h2m: Add missing file.
7095
7096 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7099
7100 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 Better support Apple Intel Macs on CD.
7103
7104 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 Replace stpcpy with grub_stpcpy in tools.
7107
7108 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 Handle Japanese special keys.
7111 Reported by: Hiroyuki YAMAMORI.
7112 Codes supplied by: Hiroyuki YAMAMORI.
7113
7114 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7115
7116 * util/grub-mkimage.c: Document memdisk implying --prefix.
7117
7118 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7119
7120 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7121 much we can do about it anyway.
7122
7123 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7124
7125 Fix handling of split transfers.
7126
7127 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * grub-core/net/http.c: Fix bad free.
7130
7131 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7134 than buffer size.
7135
7136 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7137
7138 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7139
7140 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * tests/util/grub-shell.in: Fix it on powerpc.
7143
7144 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 Turn off QEMU ACPI-way since new releases don't have shutdown port
7147 anymore.
7148
7149 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * docs/grub.texi: Update coreboot status info.
7152
7153 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * tests/grub_cmd_date.in: New test for datetime.
7156
7157 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * tests/partmap_test.in: Fix missing qemudisk setting.
7160
7161 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 Support i386-ieee1275 grub-mkrescue and make check on it.
7164
7165 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7168 feature for it.
7169
7170 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7173 GRUB_CMDLINE_XEN_DEFAULT.
7174 Reported by: Marc Warne (GigaTux) <gigatux>
7175
7176 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 Import new gnulib.
7179
7180 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 Use ACPI shutdown intests as traditional port was removed.
7183
7184 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7185
7186 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7187 distinction.
7188
7189 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7192 Fix few warining messages and leaks while on it.
7193
7194 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7195
7196 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7197 links under grub-core/lib/libgcrypt-grub/mpi.
7198
7199 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 Fix ia64-efi image generation on big-endian machines. Deduplicate
7202 some code while on it.
7203 Reported by: Leif Lindholm.
7204
7205 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7206
7207 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7208 as extra_dist.
7209
7210 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7211
7212 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7213
7214 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7215
7216 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7217 texinfo-5.1.
7218
7219 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * grub-core/normal/term.c: Few more fixes for menu entry editor
7222 rendering.
7223 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7224
7225 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * grub-core/normal/term.c: Few more fixes for menu entry editor
7228 rendering.
7229 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7230
7231 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7232
7233 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7234 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7235
7236 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7237
7238 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7239 instead of hardcoding grub.mo.
7240
7241 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7242
7243 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7244
7245 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7248 grub-core/disk/geli.c.
7249
7250 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7251
7252 * util/grub-mkfont.c: Prefer enum to #define.
7253
7254 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7257
7258 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7261
7262 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7265
7266 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7267
7268 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7269
7270 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * include/grub/bsdlabel.h: Use enums.
7273
7274 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7275
7276 Move GRUB_CHAR_BIT to types.h.
7277
7278 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7279
7280 * docs/grub.texi: Document more user commands.
7281
7282 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7283
7284 * docs/grub.texi: Document menuentry --id option.
7285
7286 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7287
7288 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7289
7290 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 Unify file copying setup across different install scripts. Add
7293 options for performing partial install.
7294
7295 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7296 2013-04-04 Peter Jones <pjones@redhat.com>
7297
7298 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7299
7300 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 Use TSC as a possible time source on i386-ieee1275.
7303
7304 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7307 Init err.
7308
7309 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * util/grub-setup.c (setup): Handle some corner cases.
7312
7313 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7316
7317 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/commands/verify.c: Save verified file to avoid it being
7320 tampered with after verification was done.
7321
7322 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7325 reported width by one to compensate for curesor algorithm problem.
7326
7327 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 Fix screen corruption in menu entry editor and simplify the code
7330 flow while on it.
7331
7332 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7333
7334 * util/grub-mount.c (fuse_init): Return error if fuse_main
7335 failed.
7336
7337 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7338
7339 * include/grub/elf.h: Add missing ARM relocation codes and fix
7340 existing ones.
7341
7342 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7343
7344 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7345
7346 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7347 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7350 into account when calculating radius.
7351
7352 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7353
7354 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7355
7356 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7357
7358 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7359
7360 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7361
7362 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7363 missing closing bracket.
7364
7365 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7366
7367 * INSTALL: Mention xorriso requirement.
7368
7369 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7370
7371 * grub-core/commands/verify.c: Fix hash algorithms values for
7372 the first three hashes - they start with 1, not with 0.
7373
7374 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7375
7376 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7377 Try terminating EFI services several times due to quirks in some
7378 implementations.
7379
7380 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7381
7382 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7383 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7384 BankField extended opcodes.
7385 (get_sleep_type): Add minimal scope handling (just enough to
7386 handle setting the scope to the root path).
7387 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7388 * include/grub/acpi.h: Add enumeration values for Event, Device,
7389 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7390
7391 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7392
7393 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7394 memory leak.
7395
7396 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7397
7398 * grub-core/disk/ahci.c: Give more time for AHCI request.
7399
7400 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7403 command.
7404
7405 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 Replace the region at 0 from coreboot tables to available in BSD
7408 memory map.
7409
7410 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7413 non-BIOS platforms.
7414
7415 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7418 platforms.
7419
7420 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7423 handling of multi-device filesystems.
7424
7425 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7428 platforms.
7429
7430 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 Add new 'proc' filesystem framework and put luks_script into it.
7433
7434 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7435
7436 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7437 and qemu.
7438
7439 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7442
7443 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 Add ability to generate newc additions on runtime.
7446
7447 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7450 description.
7451
7452 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7453
7454 * po/POTFILES.in: Regenerate.
7455
7456 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * grub-core/commands/verify.c (hashes): Add several hashes
7459 from the spec.
7460
7461 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 Slight improve in USB-related boot-time checkpoints.
7464
7465 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/commands/boottime.c: Fix copyright header.
7468
7469 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7472 coreboot tables content. Support for cbmemc.
7473
7474 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7475
7476 Fix a conflict between ports structures with 2 controllers of
7477 same kind.
7478
7479 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 * include/grub/boottime.h: Add missing file.
7482
7483 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 Initialize USB ports in parallel to speed-up boot.
7486
7487 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 Fix USB devices not being detected when requested
7490 due to delayed attach.
7491
7492 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 Implement boot time analysis framework.
7495
7496 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 Remove get_endpoint_descriptor and change all functions needing
7499 descriptor to just receive it as argument rather than endpoint
7500 address.
7501
7502 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7503
7504 Better estimate the maximum USB transfer size.
7505
7506 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 Resend a packet if we got the wrong buffer in status.
7509
7510 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7513 multiplication rather than division.
7514
7515 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7518 than divisions.
7519
7520 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7521
7522 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7523 operations to have intended shifts and not divisions.
7524
7525 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7528 intended shifts rather than division.
7529
7530 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7531
7532 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7533 computation for some years before epoch. Avode confusing division
7534 while on it.
7535
7536 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7537
7538 * grub-core/video/i386/pc/vbe.c
7539 (grub_video_vbe_print_adapter_specific_info): Replace division by
7540 shifts.
7541
7542 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 Adjust types in gdb module to have intended unsigned shifts rather than
7545 signed divisions.
7546
7547 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7550 maximum size is 4G - 1 on hfs
7551
7552 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7553
7554 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7555
7556 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7559 function.
7560
7561 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7562
7563 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7564 causing gcc error with gcc 4.7.1.
7565
7566 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7567
7568 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7569 dereference null pointer. While the code is technically correct, gcc
7570 may eliminate a null check if pointer is already dereferenced.
7571
7572 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7573
7574 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7575 OOM check.
7576 * grub-core/normal/term.c (read_terminal_list): Likewise.
7577
7578 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 Lift up core size limits on some platforms. Fix potential memory
7581 corruption with big core on small memory systems. Document remaining
7582 limits.
7583
7584 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7587 gotoxy to 0,0.
7588
7589 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 Remove all trampoline support. Add -Wtrampolines when
7592 present. Remove symbols used for trampolines to make
7593 link fail if trampolines are present.
7594
7595 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7598 append out of its parent.
7599
7600 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7603 parent.
7604
7605 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7606
7607 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7608 all vars to a macro. All users updated.
7609
7610 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7611
7612 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7613 i386-ieee1275.
7614
7615 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7616
7617 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7618
7619 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7622
7623 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 Move to more hookless approach in IEEE1275 devices handling.
7626
7627 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * grub-core/kern/term.c (grub_term_normal_color),
7630 (grub_term_highlight_color): Add back lost defaults.
7631
7632 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 Make elfload not use hooks. Opt for flags and iterators instead.
7635
7636 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7639 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7640
7641 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7642
7643 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7644
7645 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7648 hook pass-through parameter. All users updated and unnested.
7649
7650 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7653 out of its parent.
7654
7655 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/fs/hfs.c: Remove nested functions.
7658
7659 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7662 the context through.
7663 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7664
7665 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * util/grub-editenv.c (list_variables): Move print_var out of its
7668 parent.
7669
7670 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7671
7672 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7673 function.
7674
7675 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/gentrigtables.c: Make tables const.
7678
7679 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7680
7681 Remove nested functions from videoinfo iterators.
7682
7683 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7686 for 64-bit platforms.
7687
7688 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7691 a FOR_CHILDREN macro.
7692
7693 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7696 platform from firmware path.
7697
7698 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 Enable linux16 on non-BIOS systems for i.a. memtest.
7701
7702 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7703 correctly.
7704 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7705
7706 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7709 Fix end of table condition.
7710
7711 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7714 out of its parent.
7715
7716 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 * grub-core/fs/jfs.c: Remove nested functions.
7719
7720 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/fs/minix.c: Remove nested functions.
7723
7724 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 * grub-core/fs/iso9660.c: Remove nested functions.
7727
7728 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7731 of parent function.
7732
7733 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * util/grub-fstest.c: Remove nested functions.
7736
7737 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * grub-core/loader/machoXX.c: Remove nested functions.
7740
7741 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7742
7743 Remove nested functions from disk and file read hooks.
7744
7745 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7746 (struct grub_disk): Add read_hook_data member.
7747 * include/grub/file.h (struct grub_file): Likewise.
7748 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7749 argument.
7750
7751 Update all callers.
7752
7753 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7754
7755 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7756 Fix off by one error in enumerating extended partitions.
7757
7758 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7759
7760 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7761 memory leak if device name is not found.
7762
7763 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7764
7765 * grub-core/normal/menu_entry.c (update_screen): remove
7766 unused variable `off' which caused scroll down arrow to be always shown.
7767
7768 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7769
7770 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7771 access to unallocated memory.
7772
7773 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7774
7775 * Makefile.util.def: Add partmap/msdos.c to common library.
7776 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7777 * grub-core/disk/ldm.c: Check for existence of
7778 GRUB_PC_PARTITION_TYPE_LDM.
7779
7780 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7783 sizes and display sector size.
7784
7785 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 Implement new command cmosdump.
7788
7789 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7790
7791 Support Openfirmware disks with non-512B sectors.
7792
7793 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7794 size of the disk.
7795 * (grub_ofdisk_get_block_size): New function.
7796 * (grub_ofdisk_prepare): Use the correct block size.
7797 * (grub_ofdisk_read): Likewise.
7798 * (grub_ofdisk_write): Likewise.
7799 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7800 New proto.
7801
7802 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7803
7804 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7805
7806 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7809 on first error.
7810
7811 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7814 freeing it.
7815
7816 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 Implement USBDebug (full USB stack variant).
7819
7820 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7823 unless they have unexpected values.
7824
7825 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7828 grub_print_error.
7829
7830 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7833 zero-out of port structure.
7834
7835 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7836
7837 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7838 of extended attributes.
7839
7840 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7841
7842 * util/grub-install.in: change misleading comment about
7843 device.map creation
7844
7845 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7848 when menu highlight color isn't set.
7849
7850 2013-01-27 C. Masloch <pushbx@38.de>
7851
7852 Improve FreeDOS direct loading support compatibility.
7853
7854 * include/grub/i386/relocator.h (grub_relocator16_state):
7855 New member ebp.
7856 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7857 variable.
7858 (grub_relocator16_boot): Handle %ebp.
7859 * grub-core/lib/i386/relocator16.S: Likewise.
7860 * grub-core/loader/i386/pc/freedos.c:
7861 Load BPB to pass kernel which partition to load from.
7862 Check that kernel file is not too large.
7863 Set register dl to BIOS unit number as well.
7864
7865 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7866
7867 * util/grub-reboot.in (usage): Document the need for
7868 GRUB_DEFAULT=saved.
7869 * util/grub-set-default.in (usage): Likewise.
7870 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7871
7872 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7873
7874 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7875 than defining WORDS_BIGENDIAN manually.
7876
7877 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7878
7879 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7880 invariants.
7881
7882 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7883
7884 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7885 nested.
7886 (blit_comb: add_device_width): Likewise.
7887
7888 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7889
7890 Remove nested functions from USB iterators.
7891
7892 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7893 (grub_usb_controller_iterate_hook_t): Likewise.
7894 (grub_usb_iterate): Add hook_data argument.
7895 (grub_usb_controller_iterate): Likewise.
7896 (struct grub_usb_controller_dev.iterate): Likewise.
7897
7898 Update all implementations and callers.
7899
7900 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7901
7902 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7903 margin when not needed.
7904
7905 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7906
7907 Make color variables global instead of it being per-terminal.
7908
7909 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7912 asterisk.
7913
7914 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7915
7916 Fix powerpc and sparc64 build failures caused by un-nesting memory
7917 map iterators.
7918
7919 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7920
7921 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7922 parameter declarations.
7923
7924 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7927
7928 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 Improve spkmomdem reliability by adding a separator between bytes.
7931
7932 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7933
7934 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7935 an Acer registration utility with several sightings in the wild.
7936 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7937
7938 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7939
7940 Remove nested functions from filesystem directory iterators.
7941
7942 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7943 (struct grub_fs.dir): Add hook_data argument.
7944
7945 Update all implementations and callers.
7946
7947 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7948
7949 * docs/grub.texi (Multi-boot manual config): Fix typo for
7950 "recommended".
7951
7952 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7953
7954 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7955 until after its use in generate_image.
7956
7957 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7958
7959 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7960 initrd size to addr_min, since the initrd will be allocated after
7961 this address.
7962
7963 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7964
7965 * conf/Makefile.common: Fix autogen rules to pass definition
7966 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7967
7968 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7969
7970 * include/grub/elf.h: Update ARM definitions based on binutils.
7971
7972 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7973
7974 Split long USB transfers into short ones.
7975
7976 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7977
7978 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7979 is interrupted by ESC.
7980
7981 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * util/grub-script-check.c (main): Uniform the error message.
7984
7985 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7986
7987 Remove nested functions from ELF iterators.
7988
7989 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7990
7991 Remove nested functions from device iterators.
7992
7993 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7994 (grub_arc_iterate_devs): Add hook_data argument.
7995 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7996 (struct grub_ata_dev.iterate): Add hook_data argument.
7997 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7998 (grub_device_iterate): Add hook_data argument.
7999 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8000 (struct grub_disk_dev.iterate): Add hook_data argument.
8001 (grub_disk_dev_iterate): Likewise.
8002 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8003 Likewise.
8004 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8005 Likewise.
8006 * include/grub/partition.h (grub_partition_iterate_hook_t): New
8007 type.
8008 (struct grub_partition_map.iterate): Add hook_data argument.
8009 (grub_partition_iterate): Likewise.
8010 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8011 (struct grub_scsi_dev.iterate): Add hook_data argument.
8012
8013 Update all callers.
8014
8015 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8016
8017 Fix typos for "developer" and "development".
8018
8019 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 Add license header to spkmodem-recv.c.
8022
8023 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 Rewrite spkmodem to use PIT for timing. Double the speed.
8026
8027 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 Add new command pcidump.
8030
8031 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8032
8033 New terminal outputs using serial: morse and spkmodem.
8034
8035 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 Improve bidi handling in entry editor.
8038
8039 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8040
8041 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8042 argument to prevent name collision.
8043
8044 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8045
8046 Remove nested functions from script reading and parsing.
8047
8048 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8049 getline_data argument, passed to getline.
8050 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8051 getline_data argument, passed to grub_parser_split_cmdline.
8052 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8053 lexerstate->getline_data to lexerstate->getline.
8054 (grub_script_lexer_init): Add getline_data argument, saved in
8055 lexerstate->getline_data.
8056 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8057 argument, passed to grub_script_parse.
8058 * grub-core/script/script.c (grub_script_parse): Add getline_data
8059 argument, passed to grub_script_lexer_init.
8060 * include/grub/parser.h (grub_parser_split_cmdline): Update
8061 prototype. Update all callers to pass appropriate getline data.
8062 (struct grub_parser.parse_line): Likewise.
8063 (grub_rescue_parse_line): Likewise.
8064 * include/grub/reader.h (grub_reader_getline_t): Add void *
8065 argument.
8066 * include/grub/script_sh.h (struct grub_lexer_param): Add
8067 getline_data member.
8068 (grub_script_parse): Update prototype. Update all callers to pass
8069 appropriate getline data.
8070 (grub_script_lexer_init): Likewise.
8071 (grub_normal_parse_line): Likewise.
8072
8073 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8074 data argument.
8075 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8076 static instead of nested. Rename to ...
8077 (grub_parser_execute_getline): ... this.
8078 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8079 data argument.
8080 * grub-core/normal/main.c (read_config_file: getline): Make static
8081 instead of nested. Rename to ...
8082 (read_config_file_getline): ... this.
8083 (grub_normal_read_line): Add unused data argument.
8084 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8085 getline): Make static instead of nested. Rename to ...
8086 (grub_script_execute_sourcecode_getline): ... this.
8087 * util/grub-script-check.c (main: get_config_line): Make static
8088 instead of nested.
8089
8090 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8091
8092 Remove nested functions from memory map iterators.
8093
8094 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8095 argument, passed to hook.
8096 * grub-core/kern/i386/coreboot/mmap.c
8097 (grub_linuxbios_table_iterate): Likewise.
8098 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8099 instead of nested.
8100 (grub_machine_mmap_iterate): Add hook_data argument.
8101 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8102 Add hook_data argument, passed to hook.
8103 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8104 Likewise.
8105 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8106 Likewise.
8107 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8108 Likewise.
8109 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8110 Likewise.
8111 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8112 Likewise.
8113 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8114 Likewise.
8115 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8116 (grub_machine_mmap_iterate): Likewise.
8117 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8118 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8119 prototype.
8120 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8121 Remove NESTED_FUNC_ATTR from here and from all users.
8122 (grub_mmap_iterate): Update prototype.
8123 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8124 pass appropriate hook data.
8125 (grub_machine_mmap_iterate): Likewise.
8126
8127 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8128 static instead of nested.
8129 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8130 Rename to ...
8131 (lsmmap_hook): ... this.
8132 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8133 Likewise.
8134 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8135 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8136 heap_init): Likewise.
8137 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8138 Rename to ...
8139 (mmap_iterate_hook): ... this.
8140 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8141 Likewise.
8142 * grub-core/lib/ieee1275/relocator.c
8143 (grub_relocator_firmware_get_max_events: count): Likewise.
8144 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8145 to ...
8146 (grub_relocator_firmware_fill_events_iter): ... this.
8147 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8148 hook): Likewise. Rename to ...
8149 (grub_relocator_alloc_chunk_align_iter): ... this.
8150 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8151 Rename to ...
8152 (generate_e820_mmap_iter): ... this.
8153 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8154 Rename to ...
8155 (count_hook): ... this.
8156 (grub_linux_boot: hook): Likewise. Rename to ...
8157 (grub_linux_boot_mmap_find): ... this.
8158 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8159 (grub_linux_boot_mmap_fill): ... this.
8160 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8161 hook): Likewise. Rename to ...
8162 (grub_fill_multiboot_mmap_iter): ... this.
8163 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8164 hook): Likewise. Rename to ...
8165 (count_hook): ... this.
8166 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8167 hook): Likewise. Rename to ...
8168 (grub_fill_multiboot_mmap_iter): ... this.
8169 * grub-core/loader/powerpc/ieee1275/linux.c
8170 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8171 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8172 Likewise. Rename to ...
8173 (alloc_phys_choose): ... this.
8174 (determine_phys_base: get_physbase): Likewise.
8175 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8176 find_hook): Likewise.
8177 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8178 (malloc_hook: count_hook): Likewise.
8179 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8180 Likewise. Rename to ...
8181 (lower_hook): ... this.
8182 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8183 (upper_hook): ... this.
8184 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8185 (post64_hook): ... this.
8186 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8187 Likewise. Rename to ...
8188 (lower_hook): ... this.
8189 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8190 (upper_hook): ... this.
8191 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8192 (grub_mmap_iterate: fill_hook): Likewise.
8193 (fill_mask): Pass addr and mask within a single struct.
8194 (grub_cmd_badram: hook): Make static instead of nested. Rename
8195 to ...
8196 (badram_iter): ... this.
8197 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8198 (cutmem_iter): ... this.
8199
8200 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8201
8202 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8203 delimit path in strings using quotes.
8204 * util/getroot.c (grub_guess_root_devices): Likewise.
8205 (grub_make_system_path_relative_to_its_root): Likewise.
8206 * util/grub-probe.c (probe): Likewise.
8207 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8208 (xrealpath): Likewise.
8209
8210 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 Fix compilation with older compilers.
8213
8214 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8215 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8216 declarations.
8217 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8218 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8219 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8220 identifier with b.
8221 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8222 * include/grub/crypto.h: Add type defines.
8223 * util/import_gcrypth.sed: Remove duplicate type defines.
8224
8225 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8226
8227 New command list_trusted.
8228
8229 * grub-core/commands/verify.c (grub_cmd_list): New function.
8230
8231 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8232
8233 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8234 info message.
8235
8236 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8237
8238 Remove nested functions from PCI iterators.
8239
8240 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8241 passed to hook. Update all callers to pass appropriate hook data.
8242 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8243 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8244 Remove NESTED_FUNC_ATTR from here and from all users.
8245 (grub_pci_iterate): Update prototype.
8246 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8247 instead of nested. Rename to ...
8248 (grub_cs5536_find_iter): ... this.
8249 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8250 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8251 Likewise.
8252 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8253 Likewise.
8254 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8255 Likewise.
8256 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8257 Likewise.
8258 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8259 * grub-core/video/radeon_fuloong2e.c
8260 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8261 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8262 find_card): Likewise.
8263 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8264 Likewise.
8265
8266 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * grub-core/commands/verify.c: Mark messages for translating.
8269
8270 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8273 fatal.
8274
8275 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8278 fatal.
8279
8280 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * autogen.sh: Do not try to delete nonexistant files.
8283 * util/import_gcrypth.sed: Add some missing header removals.
8284
8285 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8286
8287 Clean up dangling references to grub-setup.
8288 Fixes Ubuntu bug #1082045.
8289
8290 * docs/grub.texi (Images): Refer generally to grub-install rather
8291 than directly to grub-setup.
8292 (Installing GRUB using grub-install): Remove direct reference to
8293 grub-setup.
8294 (Device map) Likewise.
8295 (Invoking grub-install): Likewise.
8296 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8297 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8298 * util/grub-install.in (usage): Likewise.
8299
8300 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8301 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8302 grub-setup.
8303 * configure.ac: Remove grub_setup output variable.
8304
8305 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8306 to grub-bios-setup.
8307 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8308 grub-setup to grub-sparc64-setup.
8309
8310 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 Import gcrypt public-key cryptography and implement signature checking.
8313
8314 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8315
8316 * grub-core/fs/ntfs.c: Ue more appropriate types.
8317 * grub-core/fs/ntfscomp.c: Likewise.
8318 * include/grub/ntfs.h: Likewise.
8319
8320 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8321
8322 Support Apple FAT binaries on non-Apple platforms.
8323
8324 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8325 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8326 Likewise.
8327 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8328 Apple FAT binaries.
8329
8330 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8331
8332 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8333 sector devices.
8334
8335 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8336
8337 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8338 explicitly zeroing elements.
8339 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8340 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8341 of elements in a structure already allocated using grub_zalloc.
8342 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8343
8344 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8345
8346 * docs/grub.texi (grub_cpu): New subsection.
8347 (grub_platform): Likewise.
8348
8349 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8352
8353 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8354
8355 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8356 divisions.
8357
8358 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8361 * grub-core/fs/ntfscomp.c: Likewise.
8362 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8363 (grub_ntfs_comp): Likewise.
8364
8365 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8366
8367 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8368 Rename to ...
8369 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8370 of groups_per_block. All users updated.
8371
8372 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8375 grub_error properly.
8376 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8377 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8378
8379 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8382 always in /boot/zfs.
8383 Reported by: Yuta Satoh.
8384
8385 2013-01-03 Yuta Satoh <nigoro>
8386
8387 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8388 ${grub_probe}
8389
8390 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8391
8392 * configure.ac: Extend -Wno-trampolines to host.
8393
8394 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8397 entry->len = 0.
8398
8399 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8400
8401 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8402 (Invoking grub-script-check): Likewise.
8403
8404 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8405
8406 * docs/grub.texi (Invoking grub-mount): New section.
8407 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8408
8409 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8410
8411 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8412 test failures, so that a failing unit test correctly causes 'make
8413 check' to fail.
8414
8415 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8416
8417 Fix failing printf test.
8418
8419 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8420 '$' in the correct order when collecting type information.
8421
8422 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8423
8424 * docs/grub.texi (configfile): Explain environment variable
8425 handling.
8426 (source): New section.
8427 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8428
8429 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8430
8431 Remove several trivially-unnecessary uses of nested functions.
8432
8433 * grub-core/commands/i386/pc/sendkey.c
8434 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8435 instead of nested.
8436 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8437 Rename to ...
8438 (legacy_file_getline): ... this.
8439 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8440 Likewise.
8441 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8442 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8443 to ...
8444 (probe_dummy_iter): ... this.
8445 * grub-core/kern/i386/coreboot/mmap.c
8446 (grub_linuxbios_table_iterate: check_signature): Likewise.
8447 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8448 check_varstate): Likewise. Mark inline.
8449 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8450 an additional parameter.
8451 (find_long: fnd_long): Likewise. Pass two additional parameters.
8452 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8453 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8454 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8455 Likewise. Rename to ...
8456 (grub_cmos_find_port_iter): ... this.
8457 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8458 Rename to ...
8459 (find_rtc_iter): ... this.
8460
8461 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8462 function directly into the function body, since it is only called
8463 once.
8464
8465 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8466
8467 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8468 __attribute__ ((unused)).
8469 * grub-core/video/bochs.c (find_card): Likewise.
8470 * grub-core/video/cirrus.c (find_card): Likewise.
8471 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8472 * grub-core/video/sis315pro.c (find_card): Likewise.
8473 * grub-core/video/sm712.c (find_card): Likewise.
8474
8475 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8476
8477 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8478 Fixes Savannah bug #37821.
8479
8480 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8481
8482 Apply program name transformations at build-time rather than at
8483 run-time. Fixes Debian bug #696465.
8484
8485 * acinclude.m4 (grub_TRANSFORM): New macro.
8486 * configure.ac: Create output variables with transformed names for
8487 most programs.
8488 * util/bash-completion.d/grub-completion.bash.in: Use
8489 pre-transformed variables for program names.
8490 * util/grub-install.in: Likewise.
8491 * util/grub-kbdcomp.in: Likewise.
8492 * util/grub-mkconfig.in: Likewise.
8493 * util/grub-mkconfig_lib.in: Likewise.
8494 * util/grub-mknetdir.in: Likewise.
8495 * util/grub-mkrescue.in: Likewise.
8496 * util/grub-mkstandalone.in: Likewise.
8497 * util/grub-reboot.in: Likewise.
8498 * util/grub-set-default.in: Likewise.
8499 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8500 * tests/util/grub-shell-tester.in: Remove unused assignment.
8501 * tests/util/grub-shell.in: Likewise.
8502 * util/grub.d/00_header.in: Likewise.
8503
8504 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8505
8506 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8507
8508 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8509 HAVE_RAW_DECL_GETS.
8510 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8511
8512 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8515 Reported by: Eriks Latosheks <foresterlv>.
8516
8517 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8518
8519 * docs/grub.texi (Network): Update instructions on generating netboot
8520 image.
8521
8522 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8525 around device name if necessarry.
8526
8527 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8528
8529 * util/grub-install.in: Follow the symbolic link parameter added
8530 to the file command.
8531
8532 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8533
8534 * util/grub-install.in: Remove stale TODO.
8535
8536 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8537
8538 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8539 dynamic allocation for the bootpath buffer.
8540
8541 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8542
8543 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8544 window too small.
8545
8546 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8549 argument rather than font name. All users updated.
8550 (grub_gfxterm_set_window): Likewise.
8551
8552 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8553
8554 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8555 from working.
8556
8557 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * util/getroot.c (convert_system_partition_to_system_disk): Support
8560 nbd disks.
8561
8562 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8565 infinite loop on corrupted FS.
8566
8567 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8568
8569 Fix big-endian mtime.
8570
8571 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8572 together sec and usec.
8573 (grub_ufs_dir): Use correct byteswapping for UFS time.
8574
8575 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 Support big-endian UFS1.
8578
8579 * Makefile.util.def (libgrubmods): Add ufs_be.c
8580 * grub-core/Makefile.core.def (ufs1_be): New module.
8581 * grub-core/fs/ufs_be.c: New file.
8582 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8583 the file.
8584
8585 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8586
8587 * include/grub/types.h: Fix functionality unaffecting typo in
8588 GRUB_TARGET_WORDSIZE conditional macro.
8589
8590 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8591
8592 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8593
8594 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8595
8596 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8597 that /netbsd appears first (when it exists).
8598
8599 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8600
8601 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8602 Fixes Savannah bug #37558.
8603
8604 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8605
8606 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8607 description of extract_entries_configfile.
8608
8609 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8610
8611 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8612 preferred_address.
8613 (grub_cmd_linux): Likewise.
8614 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8615 preferred_lifetime. Update all users.
8616
8617 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8618
8619 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8620 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8621
8622 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8623
8624 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8625 errors from grub-probe to /dev/null, not stdout.
8626
8627 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8628
8629 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8630 sector 1.
8631
8632 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8633
8634 * util/grub-install.in: Make the error message if $source_dir
8635 doesn't exist more useful.
8636
8637 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8638
8639 Fix grub-emu build on FreeBSD.
8640
8641 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8642 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8643 headers on Linux.
8644 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8645 implementation is currently Linux-specific.
8646 * util/getroot.c (exec_pipe): Define only on Linux or when either
8647 libzfs or libnvpair is unavailable.
8648 (find_root_devices_from_poolname): Remove unused path variable.
8649
8650 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8651
8652 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8653 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8654 should fit before end == 63.
8655
8656 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8657
8658 * util/grub-setup.c (write_rootdev): Remove unused core_img
8659 parameter. Update all callers.
8660 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8661 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8662 GRUB_SETUP_BIOS.
8663
8664 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8665
8666 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8667 (grub_add_tab): New function.
8668 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8669 * util/grub.d/10_illumos.in: Likewise.
8670 * util/grub.d/10_kfreebsd.in: Likewise.
8671 * util/grub.d/10_linux.in: Likewise.
8672 * util/grub.d/10_netbsd.in: Likewise.
8673 * util/grub.d/10_windows.in: Likewise.
8674 * util/grub.d/10_xnu.in: Likewise.
8675 * util/grub.d/20_linux_xen.in: Likewise.
8676 * util/grub.d/30_os-prober.in: Likewise.
8677
8678 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8681 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8682 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8683 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8684 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8685 ieee1275-nocursor.
8686 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8687 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8688
8689 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8692 le-conversion.
8693 Reported by: BURETTE, Bernard.
8694
8695 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8696
8697 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8698 from comment.
8699
8700 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8701
8702 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8703 IEEE1275 machines. Fixes powerpc-emu compilation.
8704 * include/grub/terminfo.h: Likewise.
8705
8706 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8707
8708 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8709 a const pointer.
8710 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8711 const pointer.
8712 (efiemu_set_variable): Make vendor_guid a const pointer.
8713
8714 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 Don't require grub-mkconfig_lib to generate manpages for programs.
8717
8718 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8719 dependencies, don't add grub-mkconfig_lib.
8720 (program): Pass empty adddeps.
8721 (script): Pass grub-mkconfig_lib as adddeps.
8722
8723 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8726 * util/getroot.c (grub_find_device): Likewise.
8727 (get_mdadm_uuid): Likewise.
8728 (grub_util_is_imsm): Likewise.
8729 (grub_util_pull_device): Likewise.
8730 * util/grub-probe.c (probe): Likewise.
8731
8732 2012-09-10 Benoit Gschwind <gschwind>
8733
8734 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8735 (devs): Add devpath_8.
8736
8737 2012-09-08 Peter Jones <pjones@redhat.com>
8738
8739 * grub-core/Makefile.core.def (efifwsetup): New module.
8740 * grub-core/commands/efi/efifwsetup.c: New file.
8741 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8742 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8743 New define.
8744 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8745
8746 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8747
8748 * configure.ac: Add SuSe path.
8749
8750 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8751
8752 * NEWS: Fix typo.
8753
8754 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8755
8756 * util/import_gcry.py: Sort cipher_files, to make build system
8757 generation more deterministic.
8758
8759 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8762 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8763 (grub_set_datetime): Likewise.
8764
8765 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8768 warnings.
8769
8770 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8773
8774 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8777
8778 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8779
8780 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8781 required for checkouts from bzr, but it may be useful for users or
8782 distributors wishing to update translations against a tarball
8783 distribution, and it can be helpful for the tarball to be a superset
8784 of what's in bzr.
8785
8786 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8787
8788 * Makefile.am (EXTRA_DIST): Add
8789 grub-core/tests/boot/linux.init-mips.S,
8790 grub-core/tests/boot/linux.init-ppc.S, and
8791 grub-core/tests/boot/linux-ppc.cfg.
8792
8793 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8794
8795 * grub-core/mmap/mips/loongson: Remove empty directory.
8796
8797 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8798
8799 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8800 gone.
8801
8802 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8803
8804 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8805 grub-sparc64-setup.
8806
8807 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8808
8809 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8810
8811 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8812
8813 * po/POTFILES.in: Regenerated.
8814
8815 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8816
8817 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8818 (NetBSD): New subsection.
8819
8820 2012-07-22 Ales Nesrsta <starous@volny.cz>
8821
8822 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8823 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8824
8825 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8828 * util/grub.d/10_hurd.in: Add missing quoting.
8829 * util/grub.d/10_illumos.in: Likewise.
8830 * util/grub.d/10_kfreebsd.in: Likewise.
8831 * util/grub.d/10_linux.in: Likewise.
8832 * util/grub.d/20_linux_xen.in: Likewise.
8833
8834 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 New command `lsefi'.
8837
8838 * grub-core/Makefile.core.def (lsefi): New module.
8839 * grub-core/commands/efi/lsefi.c: New file.
8840 * include/grub/efi/api.h: Add more GUIDs.
8841
8842 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8845 (grub_bsd_elf32_hook): Likewise.
8846 (grub_bsd_elf64_size_hook): Likewise.
8847 (grub_bsd_elf64_hook): Likewise.
8848 (grub_bsd_load_elf): Likewise.
8849
8850 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8853 if hash function is unavailable.
8854 (dec_stream_header): Likewise.
8855
8856 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8857
8858 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8859 filter state.
8860
8861 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 Fix coreboot compilation.
8864
8865 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8866 (grub_vga_text_init_real): ... this.
8867 (grub_vga_text_fini): Rename to ...
8868 (grub_vga_text_fini_real): ... this.
8869
8870 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8871
8872 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8873
8874 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * grub-core/lib/legacy_parse.c: Support clear and testload.
8877
8878 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8881
8882 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8885
8886 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 * grub-core/net/tftp.c (ack): Fix endianness problem.
8889 (tftp_receive): Likewise.
8890 Reported by: Michael Davidsaver.
8891
8892 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8895
8896 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8897
8898 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8899 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8900 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8901
8902 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8905 efi_mmap_size.
8906 Reported by: Stuart Hayes.
8907
8908 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8911
8912 * grub-core/Makefile.core.def (mda_text): New module.
8913 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8914 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8915 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8916 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8917 here.
8918 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8919 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8920 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8921 here.
8922 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8923 to ..
8924 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8925 ... here
8926 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8927 here.
8928 * grub-core/term/i386/vga_common.c: Removed.
8929 * include/grub/i386/vga_common.h: Likewise.
8930 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8931 (grub_vga_cr_bw_read): Likewise.
8932 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8933 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8934 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8935 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8936 grub_vga_cr_read/grub_vga_cr_write.
8937 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8938
8939 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * configure.ac: Bump version to 2.00.
8942 * grub-core/normal/main.c (features): Add feature_200_final.
8943
8944 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8945 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8946
8947 * NEWS: Fix unclarity and language mistakes.
8948
8949 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8952 additional size to 3 pages.
8953 Reported by: Stuart Hayes.
8954
8955 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * NEWS: Add 2.00 entry.
8958
8959 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8960
8961 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8962 put explicit "/" for empty path.
8963 (wildcard_expand): Improve dprintf.
8964
8965 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8968 it's equal to currnode. This can happen with "" symlink.
8969
8970 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8971
8972 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8973 echo shell command by printf command.
8974
8975 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8978 the value returned by firmware is the maximal position, not diumension.
8979 (grub_terminfo_output_state): Use a more sane fallback.
8980
8981 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8984
8985 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8988 frequency to 150 MHz.
8989
8990 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8991
8992 Apple fixes.
8993
8994 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8995 __APPLE_
8996 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8997 definition.
8998 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8999
9000 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 Handle slash in HFS label.
9003
9004 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9005 (grub_hfs_dir): Tanslate slash.
9006 (grub_hfs_label): Don't translate slash.
9007
9008 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9011 network protocol listing since it introduces problematic dependency on
9012 net module.
9013
9014 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9015
9016 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9017
9018 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 Init video early on yeeloong to avoid being rebooted by watchdog.
9021
9022 * grub-core/Makefile.am (gensm712): New target.
9023 (sm712_start.S): Likewise.
9024 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9025 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9026 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9027 description.
9028 * include/grub/vga.h: Move registry definitions to...
9029 * include/grub/vgaregs.h: ... here.
9030
9031 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9034 signedness.
9035
9036 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9039 platforms with firmware disk drivers in the core.
9040
9041 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9042
9043 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9044 informative verbose message.
9045 (read_lv): Handle 64-bit segment size.
9046
9047 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9050
9051 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9052
9053 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9054 character but still remove trainling spaces.
9055 (grub_fat_label): Ignore archive flag.
9056
9057 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9060 cast between linux_kernel_header and linux_kernel_params.
9061
9062 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9065 type for size.
9066 (grub_raid6_recover_func_t): Likewise.
9067 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9068 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9069
9070 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9071
9072 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9073
9074 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9075
9076 Fix overflow.
9077
9078 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9079 [__NetBSD__]: Add explicit cast before bitshift.
9080
9081 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9082
9083 * configure.ac: Bump to 2.00~rc1.
9084
9085 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9088 half of $a0.
9089
9090 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9091 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9092
9093 * docs/grub.texi: Fix search syntax.
9094 (Multi-boot manual config): Put msdos rather than GPT example.
9095 Grammar corrections.
9096
9097 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9100
9101 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9104
9105 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9108 message on double free. Put the value of magic in case of mismatch.
9109
9110 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 Speed-up video on yeeloong.
9113
9114 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9115 add cached_ptr.
9116 (grub_video_sm712_video_fini): Unmap cached_ptr.
9117 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9118 (grub_video_sm712_set_active_render_target): Removed.
9119 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9120 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9121 sync caches.
9122
9123 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 Avoid flushing the same line multiple times on loongson.
9126
9127 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9128 Step in 32 bytes and not 1 byte.
9129 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9130 Likewise.
9131
9132 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9135 subvolumes.
9136
9137 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 Implement flow control for http.
9140
9141 * grub-core/net/http.c (parse_line): Handle response 206.
9142 (http_receive): Stall if too many packets are in the queue.
9143 (http_establish): Fix range header.
9144 (http_seek): Fix double free.
9145 (http_close): Likewise.
9146 (http_packets_pulled): New function.
9147 (grub_http_protocol): Set http_seek
9148 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9149 (ack_real): Set window depending on i_stall.
9150 (grub_net_send_tcp_packet): Likewise.
9151 (grub_net_tcp_stall): New function.
9152 (grub_net_tcp_unstall): Likewise.
9153 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9154 (grub_net_tcp_unstall): Likewise.
9155
9156 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9159
9160 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9163
9164 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * tests/util/grub-shell.in: Fix a typo.
9167
9168 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 Implement flow control for tftp.
9171
9172 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9173 packets but stop only if stop condition is satisfied.
9174 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9175 `stall' instead of `eof' as stop condition.
9176 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9177 (http_err): Likewise.
9178 * grub-core/net/tftp.c (ack): Replace the first argument with data
9179 instead of socket.
9180 (tftp_receive): Stall if too many packets are in wait queue.
9181 (tftp_packets_pulled): New function.
9182 (grub_tftp_protocol): Set packets_pulled.
9183 * include/grub/net.h (grub_net_packets): New field count.
9184 (grub_net_put_packet): Increment count.
9185 (grub_net_remove_packet): Likewise.
9186 (grub_net_app_protocol): New field `packets_pulled'.
9187 (grub_net): New field `stall'.
9188
9189 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9190
9191 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9192 sync part to handle them.
9193
9194 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9197 * grub-core/net/drivers/ieee1275/ofnet.c
9198 (grub_ieee1275_net_config_real): Likewise.
9199
9200 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9201
9202 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9203 the direct route for server/gateway.
9204
9205 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9208 IP address to server name since we may not hame the DNS.
9209
9210 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9211
9212 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9213 freeing random buffer on failure.
9214 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9215
9216 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9217
9218 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9219
9220 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9223 reserved bytes.
9224 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9225 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9226 Handle malloc error correctly.
9227
9228 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9231 blocks.
9232
9233 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9236 increment.
9237
9238 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9241 none is explicitly specified.
9242
9243 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9246 while reallocating.
9247
9248 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Respect netmask from bootp/dhcp.
9251
9252 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9253 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9254 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9255 into ...
9256 (grub_net_add_ipv4_local): ... this.
9257 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9258 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9259 (grub_net_add_ipv4_local): New proto.
9260
9261 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9262
9263 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9264 determining EFI memory map size.
9265
9266 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9269
9270 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9271
9272 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9273 when looking for partition separator.
9274
9275 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9278 Escape commas.
9279
9280 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9281
9282 Restructure FAT driver to avoid hook in label reading as it hits a
9283 GCC bug.
9284
9285 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9286 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9287 (grub_fat_iterate_dir): Split into ...
9288 (grub_fat_iterate_init): ... this, ...
9289 (grub_fat_iterate_fini): ... this, ...
9290 (grub_fat_iterate_dir_next): ... and this. All users updated.
9291
9292 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9295 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9296 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9297 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9298 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9299 New fields last_key and last_key_time.
9300 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9301 extended key-esc into extended key-extended key.
9302
9303 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 Avoid unnecessary memcpy of whole video buffer.
9306
9307 * grub-core/video/fb/video_fb.c (dirty): New struct.
9308 (framebuffer): Add members current_dirty and previous_dirty.
9309 (dirty): New function.
9310 (grub_video_fb_fill_rect): Update dirty.
9311 (common_blitter): Likewise.
9312 (grub_video_fb_scroll): Likewise.
9313 (doublebuf_blit_update_screen): Copy only dirty part.
9314 (doublebuf_pageflipping_update_screen): Likewise.
9315 (grub_video_fb_doublebuf_blit_init): Init dirty.
9316 (doublebuf_pageflipping_init): Likewise.
9317 (grub_video_fb_setup): Likewise.
9318
9319 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9320
9321 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9322 poll rate.
9323
9324 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 Fix wildcard regexp dot and other special characters handling.
9327 Reported by: Robert Mabee.
9328
9329 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9330 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9331 (split_path): Trigger expansion on '?'.
9332 (unescape): New function.
9333 (wildcard_expand): Unescape parts copied without globbing.
9334 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9335 (grub_script_arglist_to_argv): Don't unescape expansions.
9336
9337 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 * include/grub/net.h (grub_net_card): New member txbufsize.
9340 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9341 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9342 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9343 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9344 txbufsize.
9345 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9346 compatible property to check for macs. Set
9347 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9348 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9349 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9350 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9351 (send_card_buffer): Use txbuf.
9352 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9353 nested function out of the parent while on it.
9354
9355 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9358 presence check.
9359 (grub_ieee1275_net_config_real): Fix config pointer.
9360
9361 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9364 filename parsing to non-block devices.
9365
9366 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9369
9370 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9371
9372 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9373 All users updated.
9374
9375 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9376
9377 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9378 UUID search command even if hints probing failed.
9379
9380 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9381
9382 * po/POTFILES.in: Regenerated.
9383
9384 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9385
9386 Speed-up video on fuloong.
9387
9388 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9389 New function.
9390 (grub_pci_device_unmap_range): Handle non-cached address.
9391 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9392 add direct_ptr.
9393 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9394 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9395 (grub_video_sis315pro_set_active_render_target): Removed.
9396 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9397 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9398 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9399 sync caches.
9400 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9401 New proto.
9402
9403 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 * docs/grub.texi (Multi-boot manual config): New section.
9406
9407 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 Avoid slow read-back from VRAM.
9410
9411 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9412 Move from here ...
9413 * grub-core/video/fb/video_fb.c
9414 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9415 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9416 (front_target): Remove front_target. Add pages.
9417 (grub_video_fb_init): Skip setting front_pages.
9418 (grub_video_fb_fini): Likewise.
9419 (doublebuf_blit_update_screen): Use pages.
9420 (grub_video_fb_doublebuf_blit_init): Likewise.
9421 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9422 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9423 (grub_video_fb_setup): Prefer doublebuffing.
9424
9425 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9428 gzio.
9429
9430 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 Add loongson tests.
9433
9434 * tests/util/grub-shell.in: Handle loongson.
9435 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9436 drivers.
9437 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9438 Reboot instead of shutdown if REBOOT is defined.
9439
9440 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9443 sized ports since unlike on real hardware qemu supports only 32-bit
9444 regs.
9445
9446 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9447
9448 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9449 * util/grub-mkrescue.in: Handle loongson.
9450
9451 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9452
9453 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9454 Set is_part appropriately.
9455 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9456 names. Canonicalize partition without full disk.
9457
9458 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 Revert usb-quiesce since it's wrong.
9461
9462 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9463 (grub_ofdisk_init): Don't do quiesce.
9464
9465 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9468 PowerMac workaround to Xserves as well.
9469 Information supplied by: Benjamin Herrenschmidt.
9470
9471 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 Don't assume that beginning address is also the entry point on ppc.
9474
9475 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9476 (grub_linux_boot): Use linux_entry.
9477 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9478 (grub_linux_load64): Likewise.
9479
9480 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9483
9484 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9487 needlessly lose the console.
9488
9489 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9490
9491 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9492 space.
9493
9494 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9497 than current grub_get_rtc() not implemented when booted with
9498 coreboot without TSC.
9499
9500 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9501 Add machine/time.h to kernel headers on loongson.
9502 * grub-core/Makefile.core.def (kernel): Remove
9503 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9504 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9505 (grub_get_rtc): Likewise.
9506 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9507 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9508 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9509 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9510 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9511 rather than installing known non-working time source.
9512 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9513 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9514 * include/grub/time.h: Don't include machine/time.h.
9515 * include/grub/efi/time.h: Removed.
9516 * include/grub/i386/efi/time.h: Likewise.
9517 * include/grub/i386/ieee1275/time.h: Likewise.
9518 * include/grub/powerpc/ieee1275/time.h: Likewise.
9519 * include/grub/sparc64/ieee1275/time.h: Likewise.
9520 * include/grub/x86_64/efi/time.h: Likewise.
9521
9522 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 Remove dot on i and j when combining with above diacritics.
9525
9526 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9527 value.
9528 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9529 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9530 with dotless variants when any combining above is present.
9531
9532 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9535 text and not binary.
9536
9537 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 Stop polling as soon as we have the packet we were waiting for.
9540
9541 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9542 All users updated.
9543 * grub-core/net/arp.c (have_pending): New var.
9544 (pending_req): Likewise.
9545 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9546 stop indicator.
9547 (grub_net_arp_receive): Set have_pending.
9548 * grub-core/net/dns.c (recv_data): New field stop.
9549 (recv_hook): Set stop.
9550 (grub_net_dns_lookup): Init stop and use as stop condition.
9551 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9552 condition.
9553 * grub-core/net/net.c (grub_net_poll_cards): New argument
9554 stop_condition. Stop when it goes true.
9555 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9556 indicator.
9557 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9558
9559 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 Keep TX and RX buffers on EFI rather than always allocate new ones.
9562
9563 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9564 card. All users updated.
9565 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9566 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9567 (get_card_packet): Likewise.
9568 (grub_efinet_findcards): Init new fields.
9569
9570 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9573 compilation error on sparc64.
9574
9575 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 Use ITC on IA64 rather than broken routine based on daytime.
9578
9579 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9580 ia64.
9581 (grub_get_rtc) [__ia64__]: Likewise.
9582 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9583 (get_itc): New function.
9584 (grub_rtc_get_time_ms): Likewise.
9585 (grub_machine_init): Calibrate ITC.
9586 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9587 Keep only on non-ia64. Don't export since it's broken and used only
9588 if TSC is unavailable.
9589
9590 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9593 even if it's used.
9594 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9595 Skip if parent is unused.
9596
9597 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9600
9601 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 Fix wildcard escaping.
9604
9605 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9606 * grub-core/script/execute.c (wildcard_escape): .. to here.
9607 Don't escape dot.
9608 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9609 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9610 Don't escape dot.
9611 * grub-core/script/execute.c (gettext_append): Always escape.
9612 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9613 * grub-core/script/yylex.l: Don't cut away the escaping.
9614 * tests/grub_script_echo1.in: Add tests with wildcard.
9615
9616 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9619 (ftdi_hw_configure): Likewise.
9620 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9621 define.
9622 (real_config): Handle 1.5 stop bits.
9623 (pl2303_hw_configure): Likewise.
9624
9625 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * Makefile.am: Add ppc linux bootcheck.
9628 * grub-core/tests/boot/linux-ppc.cfg: New file.
9629 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9630
9631 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9632
9633 * tests/grub_script_expansion.in: Skip network protocols.
9634
9635 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9638
9639 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9642 --rom-directory.
9643 Add -graft-points.
9644
9645 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9646
9647 ESCC serial driver for conducting sautomated tests in qemu.
9648 Not tested on real hardware.
9649
9650 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9651 * grub-core/term/ieee1275/escc.c: New file.
9652 * grub-core/Makefile.core.def (escc): New module.
9653
9654 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9657 invalid on error.
9658 (serial_hw_fetch): Don't read invalid handle.
9659 (serial_hw_put): Don't write into invalid handle.
9660
9661 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 Add a 1.5 stop bits value.
9664
9665 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9666 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9667 GRUB_SERIAL_STOP_BITS_1_5.
9668
9669 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9670
9671 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9672 value rather than let it uninited.
9673
9674 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9675
9676 * grub-core/commands/wildcard.c (+check_file): New function.
9677 (wildcard_expand): Don't expand to non-existing files, expand with
9678 suffix and not attempt to expand if not needed.
9679
9680 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9683 out of partitions containing other partitions.
9684
9685 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9688 on some qemu versions with GRUB.
9689
9690 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9691 define.
9692 (grub_openbsd_bootarg_pcibios): New struct.
9693 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9694 Add PCIINFO.
9695
9696 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * tests/util/grub-shell.in: Trim firmware output on EFI.
9699
9700 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9703 and coreboot since it's already in kernel.
9704
9705 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9708 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9709 to here. New return value start. All users updated.
9710 Recursively scan linear mappings.
9711 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9712 proto.
9713 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9714 Use grub_util_get_dm_node_linear_info.
9715 * util/getroot.c (convert_system_partition_to_system_disk): Use
9716 grub_util_info rather than grub_dprintf.
9717 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9718
9719 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9720
9721 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9722
9723 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9724 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9725
9726 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * include/grub/types.h (grub_set_unaligned64): New function.
9729 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9730 (setup): Likewise.
9731
9732 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9733
9734 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9735 (grub_ofdisk_fini): Quiesce USB devices.
9736
9737 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9740 caches.
9741
9742 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9745
9746 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/disk/pata.c (grub_pata_pio_read)
9749 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9750 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9751
9752 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9753
9754 Extend automated tests to qemu-mips.
9755
9756 * Makefile.am: reorganise tests and enable qemu-mips.
9757 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9758 * grub-core/tests/boot/linux.init-mips.S: New file.
9759 * tests/partmap_test.in: Handle ata0 disks.
9760 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9761 non-pc i386.
9762
9763 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9766 ia64.
9767 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9768 quotes while on it.
9769
9770 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9771
9772 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9773 (grub_halt): Likewise.
9774 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9775
9776 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9777
9778 * grub-core/term/serial.c (grub_serial_register)
9779 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9780 the behaviour in line with x86 platforms.
9781
9782 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9785 (grub_ata_strncpy): Likewise.
9786 (grub_ata_identify): Add missing byteswaps.
9787
9788 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9791 byte-swap.
9792 (screen_read_char): Likewise.
9793 (grub_vga_text_cls): Likewise.
9794
9795 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9796
9797 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9798 filenames.
9799 (make_file_path): Likewise.
9800
9801 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9804 machines.
9805 Tested by: Paulo Flabiano Smorigo.
9806 Crucial information about API supplied by: Coleen <Last name unknown>.
9807 Reviewed by: Coleen <Last name unknown>.
9808
9809 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * util/grub-mkimage.c: Disable -Wcast-align.
9812
9813 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9814
9815 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9816 as they are fatal.
9817
9818 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9821
9822 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * util/grub-probe.c (escape_of_path): Fix double free.
9825
9826 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9827
9828 * grub-core/commands/videoinfo.c (hook): Show pitch.
9829
9830 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9833
9834 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9837 (probe): Add ieee1275 to OFW devices.
9838
9839 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9842
9843 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 Handle IBM OFW path.
9846
9847 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9848 available.
9849 (of_path_of_scsi): Handle vdevice.
9850
9851 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9852
9853 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9854 Allocate in multiples of 16 to avoid adding a few bytes free region the
9855 windows bugs upon.
9856
9857 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9860 Allocate in multiples of 16 to avoid adding a few bytes free region the
9861 windows bugs upon.
9862 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9863
9864 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9867 resolutions.
9868 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9869 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9870
9871 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9872
9873 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9874
9875 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9878 resulted in \\ at the end of the line.
9879
9880 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9883 (grub_parser_cmdline_state): Likewise.
9884 (grub_parser_split_cmdline): Likewise.
9885
9886 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9889 /dev/root and /dev/dm-*.
9890
9891 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9894 fix partially stale display.
9895
9896 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9899 substraction.
9900
9901 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9904 Fix MBR remapping workaround.
9905 (grub_util_biosdisk_read) [__linux__]: Likewise.
9906
9907 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9910
9911 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * configure.ac: Bump to beta6.
9914
9915 2012-05-31 Christer Weinigel <christer@weinigel.se>
9916
9917 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9918
9919 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9920
9921 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9922 (grub_cmd_linux): Likewise.
9923
9924 2012-05-31 Christer Weinigel <christer@weinigel.se>
9925
9926 Fix EHCI low-speed.
9927
9928 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9929 (GRUB_EHCI_MULT_TWO): Likewise.
9930 (GRUB_EHCI_MULT_THREE): Likewise.
9931 (GRUB_EHCI_CMASK_MASK): New enum value.
9932 (GRUB_EHCI_SMASK_MASK): Likewise.
9933 (GRUB_EHCI_CMASK_OFF): Likewise.
9934 (GRUB_EHCI_SMASK_OFF): Likewise.
9935 (grub_ehci_pci_iter): Enable periodic schedule.
9936 (grub_ehci_parse_notrun): Likewise.
9937 (grub_ehci_restore_hw): Likewise.
9938 (grub_ehci_setup_qh): Set flags for low speed transfers.
9939 (grub_ehci_find_qh): Use periodic list for low speed.
9940 (grub_ehci_setup_transfer): Check periodic queue as well.
9941 (grub_ehci_check_transfer): Likewise.
9942 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9943
9944 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9945
9946 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9947 parameter is used.
9948
9949 2012-05-31 Peter Jones <pjones@redhat.com>
9950
9951 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9952 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9953 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9954
9955 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9958 uninited variable. Allocate at least setup_sects.
9959
9960 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 Fix handling of EFI with big memory maps.
9963
9964 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9965 (real_mode_mem): Likewise.
9966 (real_mode_target): Likewise.
9967 (real_mode_pages): Likewise.
9968 (prot_mode_pages): Likewise.
9969 (linux_params): New var.
9970 (linux_cmdline): Likewise.
9971 (free_pages): Don't set real mode variables.
9972 (allocate_pages): Don't allocate real mode memory.
9973 (grub_e820_add_region): Remove the limit.
9974 (grub_linux_boot): Allocate and copy real mode memory.
9975 (grub_linux_unload): Free linux_cmdline.
9976 (grub_cmd_linux): Use temporary storage for parameters.
9977 (grub_cmd_initrd): Likewise.
9978 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9979 (linux_kernel_params): Make it 1K big.
9980
9981 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 * Makefile.util.def: Remove -Wno-format.
9984 * grub-core/Makefile.core.def: Likewise.
9985
9986 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 * tests/cmp_unit_test.c: Add missing failure message.
9989 * tests/example_unit_test.c: Likewise.
9990 * tests/printf_unit_test.c: Likewise.
9991
9992 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9995 relaxation of protective MBR requirements.
9996
9997 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 * configure.ac: Add condition for COND_HOST_XNU.
10000 * Makefile.util.def (10_xnu): New script.
10001 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10002
10003 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10006 objconv bug.
10007
10008 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10011 Binary on other platforms stays identical.
10012
10013 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10016 Apple.
10017
10018 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10021
10022 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10025 rather than defining size_t ourselves to avoid conflict.
10026
10027 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10030 initialisation to avoid __bzero reference.
10031
10032 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10035 version.
10036 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10037 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10038 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10039 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10040 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10041
10042 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10045 * grub-core/kern/misc.c: Likewise.
10046 * grub-core/loader/i386/xnu.c: Likewise.
10047 * include/grub/i386/tsc.h: Likewise.
10048 * include/grub/symbol.h: Likewise.
10049
10050 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10053 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10054 on older compiler.
10055
10056 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10057
10058 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10059 Implement Apple flavour.
10060 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10061
10062 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10065 (memmove) [__APPLE__]: Likewise.
10066 (memcpy) [__APPLE__]: Likewise.
10067 (memset) [__APPLE__]: Likewise.
10068 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10069 (memmove) [__APPLE__]: Likewise.
10070 (memcpy) [__APPLE__]: Likewise.
10071 (memset) [__APPLE__]: Likewise.
10072
10073 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10076 dependency discard.
10077
10078 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * grub-core/normal/main.c (read_config_file): Provide config_file and
10081 config_directory.
10082 * util/grub.d/41_custom.in: Use config_directoy when available.
10083
10084 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10087 (grub_bfs_dir): Likewise.
10088
10089 2012-05-27 Peter Jones <pjones@redhat.com>
10090
10091 The old code gives arguments to a printf function which can't work
10092 correctly, and the compiler complains.
10093
10094 * grub-core/tests/example_functional_test.c (example_test): Add
10095 missing text.
10096 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10097 * include/grub/test.h (grub_test_assert_helper): New declaration.
10098 (grub_test_assert): Use grub_test_assert_helper.
10099
10100 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10103 (exfctest): ... this to avoid overlong filenames.
10104 All users updated.
10105
10106 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 Handle "." and ".." on squashfs.
10109
10110 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10111 Make inode numbers into stack.
10112 (grub_squash_read_symlink): Use stack.
10113 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10114 (make_root_node): Fill stack.
10115 (grub_squash_open): Use stack.
10116
10117 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10120 freeing.
10121
10122 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10123
10124 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10125 stderr on test calls.
10126
10127 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10128
10129 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10130
10131 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10132
10133 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10134
10135 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10138 "..".
10139
10140 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10143 (grub_hfsplus_iterate_dir): Add "." and "..".
10144
10145 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10148 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10149
10150 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10153 (find_path): Handle "." and "..".
10154
10155 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10158 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10159 (grub_affs_iterate_dir): Handle hardlinks.
10160
10161 2012-05-26 Matthew Garrett <mjg@redhat.com>
10162
10163 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10164 (grub_efi_console_fini): Likewise.
10165 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10166 (grub_video_gop_fill_mode_info): Rename to ...
10167 (grub_video_gop_fill_real_mode_info): ... this.
10168 (grub_video_gop_fill_mode_info): New function.
10169 (grub_video_gop_setup): Setup double framebuffer.
10170 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10171 Free offscreen.
10172 (grub_video_gop_swap_buffers): Copy framebuffer.
10173 (grub_video_gop_fini): Free offscreen buffer.
10174 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10175 New enum.
10176 (grub_efi_gop_blt_pixel): New struct.
10177
10178 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * gentpl.py: Remove error disabling for objconv.
10181
10182 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10183
10184 * configure.ac: Remove -Wunitialized as it's not available on older
10185 compilers.
10186
10187 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10188
10189 Fix extent overflow comparator.
10190
10191 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10192 (grub_hfsplus_read_block): Set type.
10193 (grub_hfsplus_cmp_extkey): Compare type.
10194
10195 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10196
10197 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10198
10199 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10202 than 0.
10203
10204 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10207 (dejavu_bold_14.pf2): New target.
10208
10209 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10210
10211 * configure.ac: Fix djvu font detection.
10212
10213 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10216 ext* instead of ext2.
10217
10218 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10221 name with \0.
10222
10223 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10224
10225 * docs/grub-dev.texi: Remove dot from .png.
10226
10227 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10228
10229 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10230 protective entry in any slot.
10231 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10232 if protective entry is found in any slot.
10233
10234 Protective entry in non-first slot make no sense but is a widespread
10235 brain damage.
10236
10237 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10240
10241 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10242
10243 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10244 with old reiserfs.
10245 (grub_reiserfs_open): Don't free root.
10246
10247 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10250 after freeing for safety.
10251
10252 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10255 Reported by: Jordan Uggla.
10256
10257 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10258
10259 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10260 actual implementation. Specifically, clarify that the grub menu will
10261 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10262 passed.
10263
10264 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10265
10266 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10267 of r0.
10268
10269 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 Remove unjustified hard dependency of normal.mod on gfxterm.
10272
10273 * include/grub/term.h (grub_term_output): New member fullscreen.
10274 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10275 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10276 (grub_gfxterm): Set .fullscreen.
10277 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10278 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10279
10280 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10283 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10284 Mention case-insensitive AFFS, SFS and JFS.
10285
10286 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10289
10290 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10291
10292 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10293 a bad FS.
10294
10295 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10296
10297 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10298 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10299
10300 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10301
10302 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10303 (grub_jfs_mount): Fill caseins.
10304 (grub_jfs_find_file): Respect caseins.
10305
10306 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10309 through UTF-16.
10310
10311 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10314 New argument origpath. All users updated.
10315
10316 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10319 (read_attr): Ensure that we read start of possibly compressed block.
10320
10321 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10324 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10325 All users updated.
10326
10327 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10330 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10331 (dejavu.pf2): Replace with ...
10332 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10333 this.
10334
10335 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * util/grub.d/20_linux_xen.in: Add missing line.
10338
10339 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10342 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10343 (grub_utf16_to_utf8): Likewise.
10344
10345 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10346
10347 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10348 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10349 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10350 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10352 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10353
10354 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10357 a bad FS.
10358
10359 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10362 (grub_udf_read_symlink): Handle read_string failure.
10363
10364 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10367 comment.
10368
10369 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 Fix handling of UDF symlinks.
10372
10373 * grub-core/fs/udf.c (read_string): New argument outbuf.
10374 All users updated.
10375 (grub_ufs_read_symlink): Rename to ...
10376 (grub_udf_read_symlink): ... this. All users updated.
10377 Handle symlinks with more than one component.
10378
10379 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10382 symlinks. Replace leading colon with a slash.
10383
10384 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10387 filename.
10388
10389 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10392 match in inner node.
10393
10394 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10395
10396 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10397 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10398 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10399 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10400 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10401 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10402 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10403 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10404 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10405
10406 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 Use grub-probe and not cmp to check that disk is empty.
10409
10410 * util/grub-install.in: Use grub-probe for zero-check.
10411 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10412 (probe): Handle PRINT_ZERO_CHECK.
10413 (argp_parser): Handle -t zero_check.
10414
10415 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10416
10417 Flush block cache on adding disk to device map.
10418
10419 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10420 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10421 adding.
10422 (read_device_map): Likewise.
10423 (open_device): Flush on opening.
10424
10425 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10428 (handle_symlink): Fix off-by-one error.
10429 Canonicalize the target.
10430 (grub_cpio_dir): Canonicalize the name.
10431 Fix memory leak.
10432 Set directory.
10433 (grub_cpio_open): Canonicalize the name.
10434
10435 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10438 handling.
10439
10440 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10443 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10444
10445 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10448 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10449 All users updated.
10450
10451 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10452
10453 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10454 counterpart.
10455
10456 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 Fix UFS1 big file support.
10459
10460 * grub-core/fs/ufs.c (INODE): Removed.
10461 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10462 64-bit.
10463 (INODE_MODE): Simplify.
10464 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10465 (grub_ufs_lookup_symlink): Don't use INODE.
10466
10467 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10470
10471 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10472 (grub_minix_data): Replace log_block_size with block_size.
10473 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10474 (grub_minix_mount): Fill block_size.
10475
10476 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 * configure.ac: Bump to beta5.
10479
10480 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10481
10482 Fix wrapped HFS+ handling.
10483
10484 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10485 blocks_start. All users updated.
10486 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10487 wrapping offset.
10488 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10489
10490 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10491
10492 Fix long symlinks on reiserfs.
10493
10494 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10495 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10496 (grub_reiserfs_iterate_dir): Save size for non-directories.
10497 (grub_reiserfs_open): Don't reread stat block as we already know the
10498 size.
10499 (grub_reiserfs_read): Split into...
10500 (grub_reiserfs_read_real): ... and ...
10501 (grub_reiserfs_read): ...this.
10502
10503 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10504
10505 Fix non-indexed JFS.
10506
10507 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10508 (grub_jfs_data): New field namecomponentlen.
10509 (grub_jfs_mount): Fill namecomponentlen.
10510 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10511
10512 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10515 * tests/grub_script_echo1.in: Add tests.
10516
10517 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * util/grub-install.in: Ignore empty devicetree directory.
10520
10521 2012-05-08 Bean <bean123ch@gmail.com>
10522
10523 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10524 All users updated.
10525 (free_rsm): Free header as well.
10526 (free_old_fragments): Fix memory leak.
10527 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10528 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10529 (destroy_pq): Likewise.
10530 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10531
10532 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10535 resulting hash as a precaution.
10536
10537 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10538
10539 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10540 '_' in variable names.
10541 * grub-core/net/net.c (grub_net_network_level_interface_register):
10542 Likewise.
10543
10544 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 Fix AFFS with non-512B blocks.
10547
10548 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10549 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10550 (grub_affs_data): Replace blocksize with log_blocksize.
10551 (grub_affs_read_block): Fix non-512B blocks.
10552 (grub_affs_read_symlink): Likewise.
10553 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10554 (grub_affs_read): Fix non-512B blocks.
10555 (grub_affs_label): Likewise.
10556 (grub_affs_mtime): Likewise.
10557 (grub_affs_mount): Fix block detection routine.
10558
10559 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 Add filesystem mtime to AFFS.
10562
10563 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10564 (aftime2ctime): New function.
10565 (grub_affs_dir): Use aftime2ctime.
10566 (grub_affs_label): Fix return value.
10567 (grub_affs_mtime): New function.
10568 (grub_affs_fs): Add mtime.
10569
10570 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10571
10572 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10573 UTF-8.
10574
10575 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10576
10577 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10578 UTF-8.
10579
10580 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10583
10584 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10585
10586 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10587 flags.
10588 (FLAGS_CASE_SENSITIVE): New enum value.
10589 (cache_entry): New struct.
10590 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10591 cache_size and cache.
10592 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10593 Add log_blocksize and fshelp_flags.
10594 (grub_sfs_read_extent): Handle non-512 blocks.
10595 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10596 (grub_sfs_read_file): Handle non-512 blocks.
10597 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10598 fshelp_flags.
10599 (grub_sfs_read_symlink): Handle non-512 blocks.
10600 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10601 (grub_sfs_dir): Free cache.
10602 (grub_sfs_close): Likewise.
10603
10604 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10607 filesystems.
10608
10609 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10612
10613 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10614
10615 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10616
10617 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10620 (grub_sfs_read_extent): Likewise.
10621 (grub_sfs_read_block): Likewise.
10622 (grub_sfs_mount): Likewise.
10623 (grub_sfs_iterate_dir): Likewise.
10624 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10625 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10626
10627 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 Fix errors on compressed NTFS with 512B clusters.
10630
10631 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10632 types.
10633 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10634 not 0.
10635 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10636 Relax check for inline extents.
10637 (ntfscomp): Return correct -1 on error and not 0.
10638
10639 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * util/grub-install.in: Fix handling of prefix containing spaces.
10642
10643 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10644
10645 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10646 (grub_squash_read_data): Fix offset byte-swapping.
10647
10648 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10651 per common usage and preffered in several parts of code.
10652 (grub_memcmp): Likewise.
10653 (grub_strncmp): Likewise.
10654 * include/grub/misc.h (grub_strcasecmp): Likewise.
10655 (grub_strncasecmp): Likewise.
10656 * Makefile.util.def (cmp_test): New test.
10657 (grub_script_strcmp): Likewise.
10658 * tests/cmp_unit_test.c: New file.
10659 * tests/grub_script_strcmp.in: Likewise.
10660 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10661
10662 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10663
10664 * include/grub/pci.h: Move enums into no-asm part.
10665
10666 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10667
10668 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10669
10670 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10671
10672 * util/getroot.c (find_hurd_root_device): Try to make error message
10673 and comments to translators clearer.
10674
10675 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10678
10679 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10682 btrfs.
10683
10684 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * docs/grub.cfg: Update.
10687
10688 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * docs/grub.texi (PXE): Remove not present variables.
10691
10692 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/net/net.c (defserver_set_env): New function.
10695 (defserver_get_env): Likewise.
10696 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10697
10698 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10701 entries.
10702
10703 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10706 * grub-core/kern/emu/hostdisk.c: Likewise.
10707
10708 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10709
10710 Handle hurd userspace partitions.
10711
10712 * util/getroot.c (find_hurd_root_device): New function.
10713 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10714
10715 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10718 names.
10719 Reported by: Bastian Blank.
10720
10721 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10724 crossing page boundary.
10725
10726 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 Fix B-tree search in BFS, especially in presence of non-ASCII
10729 characters.
10730
10731 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10732 (find_in_b_tree): Use standard bsearch + btree algorithm.
10733
10734 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10735
10736 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10737 and so on.
10738
10739 2012-05-03 Matthew Garrett <mjg@redhat.com>
10740 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10741
10742 Suspend broadcom cards in order to stop their DMA.
10743
10744 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10745 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10746 (pci): Don't build on x86 EFI.
10747 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10748 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10749 New function.
10750 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10751 stop_broadcom if running on EFI.
10752 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10753 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10754 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10755 (grub_pci_find_capability): New proto.
10756
10757 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * docs/grub.texi: Remove dot from the extension as it apparently
10760 doesn't work with some makeinfo versions.
10761
10762 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10765 with GRUB expectance.
10766
10767 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10770
10771 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10774 zero after directory block since last entry may be not 0-terminated if
10775 it ends on block boundary. Use continue instead of if spanning whole
10776 loop.
10777
10778 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 Support 4K sectors UDF inline files.
10781
10782 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10783 (grub_udf_extended_file_entry): Likewise.
10784 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10785 All users updated.
10786 (get_fshelp_size): New function.
10787 (grub_udf_read_icb): Read whole block.
10788 (grub_udf_iterate_dir): Likewise.
10789 (grub_udf_dir): Likewise.
10790 (grub_udf_open): Likewise.
10791
10792 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10793
10794 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10795
10796 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10799 inline symlinks in addition to workaround.
10800
10801 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10802
10803 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10804
10805 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10808
10809 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10812
10813 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 Fix reiserfs big seek times.
10816
10817 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10818 exact. All users updated.
10819 (grub_reiserfs_read): Use nearest btree search for seeking.
10820 Fix return value on error.
10821
10822 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10823
10824 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10825 entries.
10826 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10827 * docs/grub.texi: Update menuentry description.
10828
10829 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10832 crash when embedding onto filesystem.
10833
10834 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10837 name.
10838
10839 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10840
10841 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10842
10843 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10846 commit.
10847
10848 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10849 2012-05-01 Bean <bean123ch@gmail.com>
10850
10851 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10852
10853 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10854
10855 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10856 Special behaviour for len = 0 to read whole file isn't used anywhere and
10857 can cause buffer ovewrflows in several places.
10858
10859 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10860
10861 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10862
10863 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10864
10865 Handle RAIDZ on non-512B sectors.
10866
10867 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10868 max_children_ashift.
10869 (fill_vdev_info_real): Fill max_children_ashift.
10870 (read_device): Use max_children_ashift.
10871
10872 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10875
10876 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10877
10878 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10879 disk names.
10880 * docs/grub.texi: Update device.map parts.
10881
10882 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10883
10884 Don't scan into non-diskfilter devices having diskfilter names.
10885
10886 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10887 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10888 handling.
10889 (scan_disk_hook): New function.
10890
10891 2012-04-29 Bean <bean123ch@gmail.com>
10892
10893 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10894 allocation.
10895
10896 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10897
10898 * configure.ac: Detect starfield theme font path
10899 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10900
10901 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10904 geometry on serial consoles.
10905
10906 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10909 because of network consoles.
10910
10911 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10914 handling.
10915
10916 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10919 falls on Q syndrom.
10920
10921 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10922
10923 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10924 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10925
10926 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10927
10928 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10929 Allocate at lest 8192 for temporary buffer as required for lzo.
10930
10931 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10934 to cluster_bits, since it's already added in.
10935 (grub_fat_read_data): Likewise.
10936
10937 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10940 as long as cluster size is multiple of 512 bytes.
10941
10942 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * util/grub-mkrescue.in: Fix locale directory.
10945
10946 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * grub-core/kern/emu/hostdisk.c (map): Make static.
10949
10950 2012-04-23 Bean <bean123ch@gmail.com>
10951
10952 * util/grub-fstest.c (fstest): Add missing break.
10953
10954 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10955
10956 Fix hurd build.
10957
10958 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10959 not define nr variable.
10960 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10961 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10962 grub_find_device): Do not define.
10963
10964 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10965
10966 Fix kfreebsd compile and behaviour.
10967
10968 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10969 format-security.
10970 * util/getroot.c: Fix wait.h include.
10971 (grub_guess_root_devices): Error if grub_find_device fails.
10972 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10973 (grub_util_get_dev_abstraction): Likewise.
10974 (grub_util_pull_device): Likewise.
10975 (grub_util_get_grub_dev): Likewise.
10976 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10977
10978 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 Fix and unify wholedisk detection.
10981
10982 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10983 is_part. All users updated.
10984 (device_is_wholedisk): Removed.
10985 (grub_util_biosdisk_get_grub_dev): Use is_part.
10986
10987 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10988
10989 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10990 mode.
10991
10992 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * configure.ac: Bump to beta4.
10995
10996 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10997
10998 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10999 --fs-uuid --set UUID syntax.
11000
11001 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11002
11003 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11004 disunification.
11005
11006 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11007
11008 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11009
11010 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
11011
11012 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11013
11014 2012-04-18 Mike Gilbert <floppym@gentoo.org>
11015
11016 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11017
11018 2012-04-18 Bean <bean123ch@gmail.com>
11019
11020 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11021 place.
11022
11023 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11024
11025 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11026 users updated.
11027 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11028 corresponding to GRUB partitions.
11029 (grub_util_biosdisk_write): Likewise.
11030
11031 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11032
11033 Scan mdraid before LVM.
11034
11035 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11036 (grub_diskfilter_register_front): ... this.
11037 (grub_diskfilter_register_back): New function.
11038 All users of grub_diskfilter_register updated.
11039
11040 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 * util/grub-install.in: Fix an automatic target detection bug.
11043
11044 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 * util/grub-install.in: New option --efi-directory.
11047
11048 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11051 boot services if we have no other choice.
11052
11053 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11056 document it.
11057 * tests/util/grub-shell.in: Update to --directory.
11058
11059 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11062
11063 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11066 (grub_minix_read_file): Likewise.
11067 (grub_minix_read_inode): Likewise.
11068 (grub_minix_find_file): Likewise.
11069 (grub_minix_dir): Likewise.
11070
11071 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 * util/grub-setup.c (setup): Fix partition handling and blocklist
11074 check.
11075
11076 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11079 redundant buggy overlap check.
11080
11081 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11082
11083 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11084 and grub-mknetdir.
11085
11086 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11089 kh.loadflags on pre-2.00 kernels.
11090
11091 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11092
11093 Terminate UNDI and PXE before launching the payload to avoid problems
11094 with DMA.
11095
11096 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11097 (grub_loader_flags): ... this. All users updated.
11098 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11099 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11100 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11101 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11102 function.
11103 (grub_pxe_restore): Likewise.
11104 (fini_hnd): New var.
11105 (GRUB_MOD_INIT): Register shutdown hook.
11106 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11107 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11108 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11109 (grub_loader_set): Rename second argument to flags.
11110
11111 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11114 written bytes.
11115 (grub_get_num_of_utf8_bytes): New function.
11116 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11117 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11118 executing it.
11119 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11120 (grub_ucs4_to_utf8): Change return type.
11121
11122 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11125 warning.
11126 * grub-core/fs/bfs.c (hop_level): Likewise.
11127 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11128
11129 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11130
11131 * grub-core/lib/adler32.c: Recode due to license unclearness.
11132
11133 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11136 (test_header): Likewise.
11137
11138 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 Fix --help formatting.
11141
11142 * util/grub-mkconfig_lib.in (print_option_help): New function.
11143 (grub_fmt): Likewise.
11144 * util/grub-install.in: Use print_option_help and grub_fmt.
11145 * util/grub-kbdcomp.in: Likewise.
11146 * util/grub-mkconfig.in: Likewise.
11147 * util/grub-mknetdir.in: Likewise.
11148 * util/grub-mkrescue.in: Likewise.
11149 * util/grub-mkstandalone.in: Likewise.
11150 * util/grub-reboot.in: Likewise.
11151 * util/grub-set-default.in: Likewise.
11152 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11153
11154 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * linguas.sh: Remove autogenerated *.po.
11157
11158 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * po/README: Move language fetcing to ...
11161 * linguas.sh: ... here.
11162 * po/README: Point to linguas.sh.
11163
11164 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * po/README: Exclude ko.po due to disclaimer problems.
11167
11168 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11171 len = 0.
11172 (grub_gettext_translate_real): Handle 0th string.
11173 (grub_gettext_translate): Ensure that "" isn't translated.
11174
11175 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11178 TRANSLATORS comment.
11179 (grub_diskfilter_print_partmap): Propagate changing of error into
11180 warning.
11181
11182 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11185 to uint64_t to prevent overflow.
11186 (grub_diskfilter_lv): Increase start_extent and extent_count
11187 to uint64_t to prevent overflow.
11188
11189 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11190
11191 * configure.ac: Increase version.
11192
11193 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11194
11195 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11196
11197 * po/Rules-translit: New file.
11198 * po/arabic.sed: Likewise.
11199 * po/cyrillic.sed: Likewise.
11200 * po/greek.sed: Likewise.
11201 * po/hebrew.sed: Likewise.
11202 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11203 * po/Makefile.in.in: Add extra_dist4.
11204
11205 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11206
11207 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11208
11209 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11210 modify names. Introduce MODE_BIGENDIAN.
11211 * grub-core/fs/minix_be.c: New file.
11212 * grub-core/fs/minix2_be.c: Likewise
11213 * grub-core/fs/minix3_be.c: Likewise.
11214 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11215 minix3_be.
11216 * grub-core/Makefile.core.def (minix_be): New module.
11217 (minix2_be): Likewise.
11218 (minix3_be): Likewise.
11219
11220 2012-04-01 Felix <email@hamburg.de>
11221
11222 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11223 (devs): Add MBP 2011.
11224
11225 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11228
11229 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 * grub-core/normal/cmdline.c (print_completion): New field
11232 prompt_len.
11233 (grub_cmdline_get): Handle width properly.
11234
11235 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11236
11237 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11238
11239 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11240
11241 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11242 after 29th of February.
11243
11244 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 Fix exfat endianness handling.
11247
11248 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11249 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11250 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11251 Byte-swap utf16 when necessary.
11252 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11253
11254 2012-03-31 Anton Blanchard <anton@samba.org>
11255 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11256
11257 Fix btrfs endianness handling.
11258
11259 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11260 (lower_bound): Make root uint64_t. Use root in le.
11261 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11262 (find_path): Fix template key init.
11263 (grub_btrfs_dir): Fix mtime byteswap.
11264 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11265
11266 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11269 recursion_depth. Break infinite resursions. All users updated.
11270
11271 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11274 after free.
11275 Reported by: Peter Jones.
11276
11277 2012-03-31 Anton Blanchard <anton@samba.org>
11278
11279 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11280 8 bit values.
11281
11282 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11283
11284 * util/grub-install.in: Fix nvram call for PreP.
11285
11286 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11287
11288 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11289 the error when some elements are missing into a warning.
11290
11291 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11294
11295 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11296
11297 * docs/grub.texi (Invoking grub-probe): New section.
11298 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11299
11300 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11301
11302 Fix tab and wide character handling in editor and menu.
11303
11304 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11305 agglomerate control characters with combining marks.
11306 (bidi_line_wrap): Allow break on tab.
11307 (grub_unicode_get_comb_start): New function.
11308 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11309 and tab correctly.
11310 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11311 with a space.
11312 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11313 fixed_tab_size. All users updated.
11314 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11315 (grub_term_getcharwidth): Handle \t.
11316 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11317 and copy.
11318
11319 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11320
11321 Handle big-endian mdraid.
11322
11323 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11324 * grub-core/Makefile.core.def (mdraid09_be): New module.
11325 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11326 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11327 * grub-core/disk/mdraid_linux_be.c: New file.
11328
11329 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11330
11331 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11332
11333 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11336 missing quotes which caused confusion among translators.
11337
11338 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * util/grub-mkconfig_lib.in: Fix typo.
11341
11342 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11343
11344 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11345 spaces.
11346 * tests/grub_script_leading_whitespace.in: New file.
11347 * Makefile.util.def (grub_script_leading_whitespace): New test.
11348
11349 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11350
11351 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11352 to work.
11353
11354 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11355
11356 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11357 starts with control character.
11358
11359 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11362 overflow.
11363 (grub_gdb_outbuf): Likewise.
11364
11365 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11366
11367 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11368 zero terminator. Fixes a crash.
11369
11370 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11371
11372 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11373 beyond 4 GiB.
11374 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11375 images independently of preffered adderss field.
11376
11377 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11378
11379 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11380 * grub-core/commands/regexp.c: Likewise.
11381 * grub-core/loader/i386/linux.c: Likewise.
11382 * grub-core/partmap/msdos.c: Likewise.
11383 * grub-core/script/execute.c: Likewise.
11384 * grub-core/term/gfxterm.c: Likewise.
11385
11386 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 Add variable parsing in $"..." and fix several mismatches with bash.
11389
11390 * Makefile.util.def (grub_script_gettext): New test.
11391 * grub-core/script/execute.c (parse_string): New function.
11392 (gettext_append): Likewise.
11393 (grub_script_arglist_to_argv): Use gettext_append.
11394 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11395 * tests/grub_script_gettext.in: New file.
11396
11397 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 Fix handling of leading spaces in scripts.
11400
11401 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11402 spaces.
11403 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11404 other than skipping \r. All users updated.
11405 * tests/grub_script_echo1.in: Add space-related tests.
11406 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11407
11408 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11411
11412 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * configure.ac: Bump up the version to beta2.
11415
11416 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11417
11418 Fix gettext reload bugs (e.g. inability to disable gettext
11419 once enabled).
11420
11421 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11422 main_context and secondary_context. All functions updated.
11423 (grub_gettext_translate): Rename to ...
11424 (grub_gettext_translate_real): ... this. Return NULL on failed
11425 translate.
11426 (grub_gettext_translate): Handle secondary context.
11427 (grub_gettext_delete_list): Close file and zero-out the context.
11428 (grub_mofile_open): Don't call grub_gettext_delete_list.
11429 Don't close file.
11430 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11431 if locale="" to avoid pointless error message.
11432 (grub_gettext_env_write_lang): Update lang even if load fails.
11433 Handle secondary context.
11434 (grub_gettext_reread_prefix): New function.
11435 (read_main): Likewise.
11436 (read_secondary): Likewise.
11437 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11438 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11439 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11440 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11441
11442 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * configure.ac: Decrease warning level to avoid spurious warnings and
11445 to be able to compile with GCC 4.2.
11446 * Makefile.util.def: Remove -Wno-error=logical-op.
11447
11448 2012-03-10 William Bittner <william.bittner@gmail.com>
11449
11450 * util/import_unicode.py: Add missing brackets around string for
11451 python 3 support.
11452
11453 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 Fix efi chainloader on network root.
11456
11457 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11458 network devices.
11459 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11460 New function.
11461
11462 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11465 unused show_text member.
11466 * docs/grub.texi: Document "text" property.
11467
11468 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11471 in dprintf.
11472
11473 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 Fix IMSM handling on Fedora.
11476
11477 * util/getroot.c (grub_util_is_imsm): New function.
11478 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11479
11480 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * Makefile.am: Strip gold section.
11483 * conf/Makefile.common: Likewise.
11484 * gentpl.py: Likewise.
11485 * grub-core/Makefile.core.def: Likewise.
11486 * grub-core/genmod.sh.in: Likewise.
11487
11488 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11491 * util/grub.d/20_linux_xen.in: Likewise.
11492 Based on Debian patch.
11493
11494 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * util/grub.d/10_linux.in: Fix syntax error resulting in
11497 Richard Laager's patch.
11498 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11499
11500 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11503 dependencies.
11504
11505 2012-03-10 Richard Laager <rlaager@wiktel.com>
11506
11507 * util/grub.d/10_linux.in: Fix ZFS root passing.
11508
11509 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11510
11511 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11512 * grub-core/commands/xnu_uuid.c: Likewise.
11513 * grub-core/loader/efi/appleloader.c: Likewise.
11514 * grub-core/script/execute.c: Likewise.
11515 * grub-core/script/main.c: Likewise.
11516 * util/grub-mkfont.c: Likewise.
11517
11518 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 * util/grub-mkfont.c (options): Use more appropriate "select" that
11521 "set" for face index.
11522
11523 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11524
11525 * util/grub-editenv.c (options): Gettextize command summaries.
11526
11527 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11528
11529 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11530 "out of memory" error messagge.
11531
11532 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11535 of diskfilter for diskfilter on diskfilter support.
11536
11537 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11538
11539 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11540
11541 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11542
11543 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11544 themes/starfield.
11545
11546 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11547
11548 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11549
11550 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11553
11554 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11557 of error message.
11558
11559 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11560
11561 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11562
11563 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11566 message.
11567 * util/grub-install.in: Fix and gettextize error message.
11568
11569 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11570
11571 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11572 Gettextize.
11573 * util/grub-mount.c (options): Likewise.
11574
11575 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11578 gettextize.
11579 * grub-core/commands/search_wrap.c (options): Likewise.
11580
11581 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11584
11585 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11588 size calculation.
11589 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11590 none is known.
11591
11592 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11593
11594 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11595 "temporary" since it's used in identifier and is limited in space.
11596
11597 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11598
11599 * po/POTFILES.in: Regenerate. Include *.h since they contain
11600 translatable strings as well.
11601
11602 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11603
11604 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11605 byte-swap on big-endian.
11606 Reported by: Lennart Sorensen
11607
11608 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11609
11610 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11611 (allocate_pages): Improve dprintf.
11612 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11613 code32_start. Fill code32_start and kernel_alignment in params.
11614 (grub_cmd_initrd): Use prot_init_space.
11615
11616 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11617
11618 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11619
11620 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11621
11622 * util/grub-install.in: Add missing dot at the end of sentence.
11623
11624 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11625
11626 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11627 * grub-core/commands/videotest.c: Likewise.
11628 * grub-core/loader/i386/linux.c: Likewise.
11629
11630 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11633 sentence.
11634 Reported by: Milo Casagrande.
11635
11636 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11639 * grub-core/commands/gptsync.c: Likewise.
11640 * grub-core/commands/hashsum.c: Likewise.
11641 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11642 * grub-core/commands/legacycfg.c: Likewise.
11643 * grub-core/io/gzio.c: Likewise.
11644 * grub-core/net/net.c: Likewise.
11645 * grub-core/term/gfxterm.c: Likewise.
11646 * grub-core/term/terminfo.c: Likewise.
11647 * grub-core/tests/test_blockarg.c: Likewise.
11648 * grub-core/video/video.c: Likewise.
11649 * util/grub-install.in: Likewise.
11650 * util/grub-mkfont.c: Likewise.
11651
11652 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11653
11654 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11655
11656 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * grub-core/commands/search_wrap.c (options): Fix a typo.
11659 Reported by: David Prévot.
11660
11661 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11662
11663 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11664 description.
11665
11666 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11667
11668 * util/grub-script-check.c (main): Fix a syntax error message which was
11669 unclear.
11670
11671 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11672
11673 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11674
11675 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11678 messages.
11679
11680 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11683 without argument.
11684 * util/grub-mount.c (options): Likewise.
11685
11686 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11689
11690 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11691
11692 * grub-core/net/http.c: Add TRANSLATORS comments.
11693 * grub-core/normal/cmdline.c: Likewise.
11694 * grub-core/normal/misc.c: Likewise.
11695 * grub-core/partmap/msdos.c: Likewise.
11696 * grub-core/parttool/msdospart.c: Likewise.
11697 * grub-core/script/execute.c: Likewise.
11698 * grub-core/script/main.c: Likewise.
11699 * grub-core/term/terminfo.c: Likewise.
11700 * grub-core/video/bitmap.c: Likewise.
11701 * util/grub-install.in: Likewise.
11702 * util/grub-mkimage.c: Likewise.
11703 * util/grub-mklayout.c: Likewise.
11704 * util/grub-setup.c: Likewise.
11705
11706 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11709 with similar messages in grub-fstest.
11710
11711 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * util/grub-install.in: Unify "option requires an argument" message
11714 with similar messages in other files.
11715 * util/grub-mkconfig.in: Likewise.
11716
11717 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11718
11719 * util/grub-set-default.in: Replace printf with gettext_printf (the
11720 string in in question is already translated from grub-reboot)
11721
11722 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11723
11724 * configure.ac: Bump up the version to beta1.
11725
11726 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11729 case when min_align = 0.
11730
11731 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11732
11733 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11734 and fix a case when line_start overflows.
11735
11736 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11737
11738 * util/grub-reboot.in (usage): Mention id posibility.
11739 * util/grub-set-default.in (usage): Likewise.
11740
11741 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11742
11743 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11744 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11745 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11746 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11747 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11748 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11749 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11750
11751 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 * grub-core/commands/menuentry.c (options): Remove
11754 GRUB_ARG_OPTION_REPEATABLE.
11755 Reported by: Andreas Vogel
11756
11757 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11758
11759 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11760
11761 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11762
11763 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11764 error.
11765
11766 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 Use sort -V by the idea of Georgi Georgiev.
11769
11770 * util/grub-mkconfig_lib.in (version_sort): New function.
11771 (version_test_numeric): Use version_sort.
11772
11773 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11774
11775 Use submenus in grub-mkconfig.
11776
11777 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11778 * util/grub-mkconfig_lib.in (grub_quote): New function.
11779 (gettext_printf): Use gettext and not gettext_quoted to fix several
11780 messages.
11781 * util/grub.d/10_hurd.in: Use submenus.
11782 * util/grub.d/10_kfreebsd.in: Likewise.
11783 * util/grub.d/10_linux.in: Likewise.
11784 * util/grub.d/10_netbsd.in: Likewise.
11785 * util/grub.d/20_linux_xen.in: Likewise.
11786 * util/grub.d/30_os-prober.in: Likewise.
11787 * util/grub.d/10_illumos.in: Add missing quoting.
11788 * util/grub.d/10_windows.in: Likewise.
11789
11790 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 Fix menu title instability bug.
11793
11794 * grub-core/commands/menuentry.c (options): New option --id.
11795 (grub_normal_add_menu_entry): New argument id. All users updated.
11796 (grub_cmd_menuentry): Handle --id.
11797 (grub_menu_init): Accept unknown arguments.
11798 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11799 feature_menuentry_options.
11800 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11801 saved_entry.
11802 (get_entry_number): Match with id as well.
11803 * include/grub/menu.h (grub_menu_entry): New member id.
11804 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11805 * util/grub.d/00_header.in: Define menuentry_id_option.
11806 * util/grub.d/10_hurd.in: Define id.
11807 * util/grub.d/10_illumos.in: Likewise.
11808 * util/grub.d/10_kfreebsd.in: Likewise.
11809 * util/grub.d/10_linux.in: Likewise.
11810 * util/grub.d/10_netbsd.in: Likewise.
11811 * util/grub.d/10_windows.in: Likewise.
11812 * util/grub.d/20_linux_xen.in: Likewise.
11813 * util/grub.d/30_os-prober.in: Likewise.
11814
11815 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11816
11817 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11818 "scope" with "body".
11819
11820 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11823 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11824 prot_size and prot_file_size.
11825
11826 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11829 All users updated. If easily=1 require raid-5/-6 to be full.
11830 (is_node_readable): Likewise.
11831 (scan_devices): Scan incomplete but readable LVs at the end.
11832 (grub_diskfilter_memberlist): Pull missing devices.
11833 (insert_array): Skip scanning until device is complete or scan is
11834 done otherwise.
11835 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11836 check.
11837 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11838 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11839
11840 2012-03-03 Matthew Garrett <mjg@redhat.com>
11841 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 Avoid EFI boot services when loading Linux.
11844
11845 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11846 avoid_efi_bootservices. All users updated.
11847 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11848 argument avoid_efi_bootservices. All users updated.
11849 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11850 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11851 align, min_align, relocatable, prefered_address. All users updated.
11852 Allocate avoiding boot services if kernel is relocatable.
11853 (grub_cmd_linux): Check if kernel is relocatable.
11854 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11855 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11856 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11857 avoid_efi_boot_services.
11858 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11859 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11860 (linux_kernel_params): Likewise.
11861
11862 2012-03-03 Matthew Garrett <mjg@redhat.com>
11863 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 Use EDID on EFI.
11866
11867 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11868 datasize_out.
11869 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11870 modes. Set gop_handle.
11871 (grub_video_gop_get_edid): New function.
11872 (grub_gop_get_preferred_mode): Likewise.
11873 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11874 (grub_video_efi_gop_adapter): Set .get_edid.
11875 * include/grub/efi/edid.h: New file.
11876 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11877
11878 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11879
11880 * util/grub-install.in: Load efivars unconditionally.
11881
11882 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11883
11884 * po/Rules-piglatin: Change suffix from .po-update-en to
11885 .po-update-en-piglatin.
11886
11887 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 Add a pig farm.
11890
11891 * po/piglatin.sed: New file.
11892 * po/en@piglatin.header: Likewise.
11893 * po/Rules-piglatin: Likewise.
11894 * po/README: Add en@piglatin to autogenerated languages.
11895
11896 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11899 "Command for ...".
11900 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11901 "Check" since we don't check anything.
11902 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11903 is 64-bit one.
11904 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11905 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11906 (grub_md_sha512_real): Likewise.
11907
11908 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * grub-core/commands/gptsync.c: Fix typographic quoting.
11911 * grub-core/commands/ieee1275/suspend.c: Likewise.
11912 * grub-core/commands/parttool.c: Likewise.
11913 * grub-core/commands/search_wrap.c: Likewise.
11914 * grub-core/commands/videoinfo.c: Likewise.
11915 * grub-core/gfxmenu/gui_label.c: Likewise.
11916 * grub-core/hello/hello.c: Likewise.
11917 * grub-core/kern/emu/main.c: Likewise.
11918 * grub-core/net/net.c: Likewise.
11919 * grub-core/normal/menu.c: Likewise.
11920 * grub-core/normal/menu_text.c: Likewise.
11921 * grub-core/normal/misc.c: Likewise.
11922 * util/grub-editenv.c: Likewise.
11923 * util/grub-install.in: Likewise.
11924 * util/grub-kbdcomp.in: Likewise.
11925 * util/grub-mkconfig.in: Likewise.
11926 * util/grub-mknetdir.in: Likewise.
11927 * util/grub-mkrescue.in: Likewise.
11928 * util/grub-mkstandalone.in: Likewise.
11929 * util/grub-reboot.in: Likewise.
11930 * util/grub-set-default.in: Likewise.
11931 * util/grub-setup.c: Likewise.
11932 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11933
11934 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11937 * grub-core/commands/keystatus.c: Likewise.
11938 * grub-core/commands/loadenv.c: Likewise.
11939 * grub-core/commands/probe.c: Likewise.
11940 * grub-core/commands/regexp.c: Likewise.
11941 * grub-core/commands/true.c: Likewise.
11942 * grub-core/commands/videoinfo.c: Likewise.
11943 * grub-core/disk/cryptodisk.c: Likewise.
11944 * grub-core/disk/ldm.c: Likewise.
11945 * grub-core/disk/loopback.c: Likewise.
11946 * grub-core/disk/luks.c: Likewise.
11947 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11948 * grub-core/kern/disk.c: Likewise.
11949 * grub-core/kern/emu/hostdisk.c: Likewise.
11950
11951 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11954 * util/grub-install.in: Add missing quote in the comment.
11955
11956 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11959 * grub-core/commands/lsmmap.c: Likewise.
11960 * grub-core/commands/minicmd.c: Likewise.
11961 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11962 * grub-core/commands/regexp.c: Likewise.
11963 * grub-core/gdb/gdb.c: Likewise.
11964 * grub-core/term/gfxterm.c: Likewise.
11965 * util/grub-mkconfig.in: Likewise.
11966 * util/grub-mkfont.c: Likewise.
11967 * util/grub-mklayout.c: Likewise.
11968 * util/grub-mknetdir.in: Likewise.
11969 * util/grub-mkrescue.in: Likewise.
11970 * util/grub.d/30_os-prober.in: Likewise.
11971
11972 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11975 with "Direct color" and "Packed" with "Packed pixel".
11976 (grub_cmd_videoinfo): Simplify legend.
11977
11978 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11979
11980 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11981 absolutely unclear error message.
11982
11983 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * util/grub-mkstandalone.in: Remove confusing leftover print.
11986
11987 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11990 comments.
11991 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11992 (GRUB_MOD_INIT): Likewise.
11993 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11994 VGA mode.
11995 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11996 comments.
11997 * util/grub-install.in (usage): Likewise.
11998 Spell ID in whole letters.
11999 Add missing ending dot.
12000 Quote variables.
12001 * util/grub-reboot.in: Fix capitalisation.
12002 * util/grub-set-default.in: Likewise.
12003
12004 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12005
12006 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12007 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12008 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12009 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12010 Disable -Werror for -Wdeprecated-declarations.
12011 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12012 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12013 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12014 (grub_util_get_grub_dev): Make luks handling dependent on
12015 HAVE_DEVICE_MAPPER and not __linux__.
12016 (get_win32_path): Fix format security.
12017 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12018 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12019 Don't try grub_find_zpool_from_dir.
12020 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12021 #ifdef-out paresdir.
12022
12023 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * util/grub-pe2elf.c (usage): Add missing noreturn.
12026 (write_section_data): Rename name to shname to avoid shadowing.
12027 (write_symbol_table): Rename name to symname to avoid shadowing.
12028 Fix write_reloc_section call.
12029
12030 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12033 to ensure that it's after the last byte of .text.
12034
12035 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * util/ieee1275/ofpath.c (my_isdigit): New function.
12038 (trailing_digits): Use my_isdigit.
12039 (strip_trailing_digits): Likewise.
12040
12041 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12042
12043 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12044 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12045
12046 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * grub-core/kern/i386/pc/startup.S: Define __start.
12049
12050 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12053 strip already transforms he format.
12054
12055 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12056
12057 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12058
12059 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 * util/grub-install.in: Add missing gettext init.
12062 * util/grub-kbdcomp.in: Likewise.
12063 * util/grub-mkconfig.in: Likewise.
12064 * util/grub-mknetdir.in: Likewise.
12065 * util/grub-mkrescue.in: Likewise.
12066 * util/grub-mkstandalone.in: Likewise.
12067 * util/grub-reboot.in: Likewise.
12068 * util/grub-set-default.in: Likewise.
12069 * util/grub.d/00_header.in: Likewise.
12070 * util/grub.d/10_hurd.in: Likewise.
12071 * util/grub.d/10_windows.in: Likewise.
12072 * util/grub.d/30_os-prober.in: Likewise.
12073 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12074
12075 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * po/Rules-swiss: Fix header comment.
12078
12079 2012-02-29 Andreas Vogel <anvoit>
12080
12081 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12082 resulted in leak of arguments.
12083
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12087 reed_solomon_size const definition instead of computing it since
12088 Apple assembler doesn't support the later.
12089
12090 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12091
12092 * gentpl.py (kernel): Rewrite Apple part.
12093
12094 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12097
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12101 ELF section gap.
12102 (load_image): Likewise.
12103
12104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * configure.ac: Fix a typo in previous commit.
12107
12108 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 Don't add -Wl,-N on Apple platform.
12111
12112 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12113 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12114
12115 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * grub-core/Makefile.core.def (lzma_decompress): Use
12118 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12119
12120 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12121
12122 * grub-core/genmod.sh.in: Rewrite the Apple part.
12123
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12127 comparison.
12128
12129 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12130
12131 * acinclude.m4 (grub_CHECK_PIC): New test.
12132 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12133
12134 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12135
12136 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12137 to avoid the warning.
12138
12139 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12140
12141 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12142 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12143 after. All users updated.
12144
12145 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 Use the common size routine in hostfs so we can read disks as well.
12148
12149 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12150 (grub_util_get_fd_size): ... this. Return size in bytes.
12151 All users updated.
12152 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12153 grub_util_get_fd_size.
12154
12155 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12158 Add blocksize retrieval.
12159
12160 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 * configure.ac: Restore CFLAGS after efiemu check.
12163
12164 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12167 Apple bug.
12168
12169 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12172
12173 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12174
12175 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12176 (grub_cmd_halt): Likewise.
12177
12178 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12181 for local arithmetics.
12182 Break %sp init into 2 instructions.
12183 Add 0 byte at the end.
12184
12185 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12186
12187 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12188 before loops.
12189
12190 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12191
12192 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12193 for context.
12194
12195 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * grub-core/disk/ldm.c (make_vg): Init part.name.
12198 (grub_ldm_detect): Silence spurious warning.
12199 (grub_util_is_ldm): Likewise.
12200
12201 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12202
12203 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12204 sane value to avoid a spurious warning.
12205
12206 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12207
12208 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12209 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12210
12211 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12214 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12215
12216 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12219 hardcoding the relevant info.
12220
12221 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12224 missing const qualifiers.
12225 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12226
12227 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 * util/getroot.c [__APPLE__]: Add missing includes.
12230 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12231
12232 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12233
12234 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12235
12236 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12237
12238 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12239 avoid conflicts.
12240
12241 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12242
12243 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12244
12245 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12246
12247 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12248 and grub_file_close call.
12249
12250 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12251
12252 Add LZSS Mach-O support (needed for new xnu kernelcache).
12253
12254 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12255 * grub-core/loader/lzss.c: New file.
12256 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12257 on Mach-O open failure.
12258 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12259 Don't free cmdsXX in uncompressedXX is set.
12260 (grub_macho_file): Init new fields.
12261 New argument is_64bit. All users updated.
12262 Handle compressed. Error out if no suitable architecture is found.
12263 Don't close file.
12264 (grub_macho_open): New argument is_64bit. All users updated.
12265 * grub-core/loader/macho32.c: Add defines for new fields.
12266 * grub-core/loader/macho64.c: Likewise.
12267 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12268 (grub_macho_parse): Handle compressed.
12269 Defer actual processing if compressed.
12270 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12271 "filename". All users updated.
12272 (grub_macho_size): New argument "filename". All users updated.
12273 (grub_macho_get_entry_point): Likewise.
12274 (grub_macho_load): Handle compressed.
12275 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12276 (GRUB_MACHO_LZSS_OFFSET): New define.
12277 (grub_decompress_lzss): New proto.
12278 * include/grub/machoload.h (grub_macho_file): New fields to handle
12279 compressed.
12280 (grub_macho_contains_macho64): Remove proto.
12281 (grub_macho_contains_macho32): Likewise.
12282 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12283
12284 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12287
12288 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12289
12290 Fix make dist.
12291
12292 * Makefile.am (starfield_theme_files): New var.
12293 (starfield_DATA): Use starfield_theme_files.
12294 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12295 Add bootcheck-related files.
12296 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12297 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12298 and font_char_metrics.txt.
12299 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12300 (setjmp): Add lib/ia64/longjmp.S.
12301 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12302 * po/POTFILES.in: Regenerate.
12303 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12304 DISTFILES.common.extra1.
12305 * util/devicemap.c: Removed.
12306 * grub-core/lib/i386/relocator_backward.S: Likewise.
12307 * util/import_gcry.py: Remove unused files. Add extra_dist for
12308 ChangeLog.
12309
12310 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12313 grub_gettext_delete_list before changing grub_gettext_max to avoid
12314 running out of array bounds.
12315
12316 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12317
12318 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12319 grub_vga_text_init/grub_vga_text_fini.
12320
12321 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12322
12323 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12324
12325 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 * configure.ac: Bump to 2.00~beta0.
12328
12329 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12332 missing initialisation.
12333
12334 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12335
12336 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12337
12338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12339
12340 Support v2 xnu boot arguments.
12341
12342 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12343 New argument fsbfreq_out.
12344 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12345 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12346 be used.
12347 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12348 darwin_version.
12349 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12350 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12351 (grub_xnu_boot_params): Rename to ...
12352 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12353 (grub_xnu_boot_params_v2): New struct.
12354
12355 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12356
12357 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12358 zeroing of CRC field before computing CRC.
12359
12360 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12361
12362 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12363 Change order of allocations to decrease fragmentation.
12364
12365 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12366
12367 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12368
12369 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12370
12371 Use write-combining MTRR to speed up video with buggy BIOSes.
12372
12373 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12374 (cpuid): New define.
12375 (rdmsr): Likewise.
12376 (wrmsr): Likewise.
12377 (mtrr_base): Likewise.
12378 (mtrr_mask): Likewise.
12379 (grub_vbe_enable_mtrr_entry): New function.
12380 (grub_vbe_enable_mtrr): Likewise.
12381 (grub_vbe_disable_mtrr): Likewise.
12382 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12383 control off to BIOS.
12384 (grub_video_vbe_init): Fill mtrr.
12385 (grub_video_vbe_fini): Disable mtrr.
12386 (grub_video_vbe_get_info_and_fini): Likewise.
12387 (grub_video_vbe_setup): Enable mtrr.
12388
12389 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12390
12391 * include/grub/partition.h (grub_partition_map): Change prototype of
12392 embed to take a maximum value for nsectors.
12393 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12394 * include/grub/fs.h (grub_fs): Likewise.
12395 * grub-core/partmap/msdos.c (embed_signatures): New array.
12396 (pc_partition_map_embed): Check for and avoid sectors matching any
12397 of the signatures in embed_signatures, up to max_nsectors.
12398 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12399 returned sector map to max_nsectors.
12400 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12401 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12402 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12403 * util/grub-setup.c (setup): Allow for the embedding area being
12404 split into multiple blocklists. Tell dest_partmap->embed the
12405 maximum number of sectors we care about.
12406
12407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12410 Specify blocklist_install and reserver_first_sector for all fs.
12411 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12412 blocklists.
12413
12414 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 * util/grub-install.in: Clarify strings.
12417 Fix source dir check.
12418
12419 2012-02-27 Richard Laager <rlaager@wiktel.com>
12420
12421 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12422 "zfs" and "fuse.zfs" as synonyms.
12423
12424 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 * configure.ac: Put platform and target_cpu substitutions back since
12427 they are used for directories.
12428
12429 2012-02-27 Richard Laager <rlaager@wiktel.com>
12430 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12433 * util/grub.d/20_linux_xen.in: Likewise.
12434
12435 2012-02-27 Richard Laager <rlaager@wiktel.com>
12436
12437 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12438 with full paths.
12439
12440 2012-02-27 Richard Laager <rlaager@wiktel.com>
12441
12442 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12443 unescape.
12444
12445 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12446
12447 Don't use insecure popen in getroot.
12448
12449 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12450 (exec_pipe): ... here.
12451 (find_root_devices_from_poolname): Use exec_pipe.
12452
12453 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 Remove platform and target_cpu replacement.
12456
12457 * configure.ac: Remove platform and target_cpu substitutions.
12458 * tests/util/grub-shell.in: Use modinfo.
12459 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12460 explicitly.
12461
12462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 Autodetect platform in grub-install but allow override.
12465
12466 * util/grub-install.in: Autodetect platform. Support --target and
12467 --directory. Read platform from modinfo.sh.
12468
12469 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12470
12471 Support btrfs multi-volume probe.
12472
12473 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12474 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12475 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12476 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12477 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12478 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12479 grub_find_root_devices_from_btrfs if on btrfs.
12480
12481 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 Remove any awareness of *.c util files about target.
12484
12485 * Makefile.util.def (grub-setup): Split to ...
12486 (grub-bios-setup): ... and this.
12487 (grub-sparc64-setup): ... and this.
12488 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12489 * docs/man/grub-setup.h2m: Split into ...
12490 * docs/man/grub-sparc64-setup.h2m: ... this.
12491 * docs/man/grub-bios-setup.h2m: ... and this.
12492 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12493 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12494 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12495 (grub_target_addr_t): Remove.
12496 (grub_target_size_t): Remove.
12497 (grub_target_ssize_t): Remove.
12498 * util/grub-install.in: Use new grub-*-setup.
12499 * util/grub-mkimagexx.c (Elf_Word): New define.
12500 (Elf_Half): Likewise.
12501 (Elf_Section): Likewise.
12502 (ELF_ST_TYPE): Likewise.
12503 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12504 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12505
12506 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 Replace grub_target_addr with more appropriate types.
12509
12510 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12511 grub_target_addr with grub_addr.
12512 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12513 grub_target_addr with grub_port.
12514 (grub_cmd_write): Likewise.
12515 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12516 grub_target_addr with grub_addr.
12517 (grub_cmd_write): Likewise.
12518 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12519
12520 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12523 const qualifier for vendor_guid.
12524
12525 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12528 const qualifier.
12529 (efiemu_memequal): Likewise.
12530 (find_variable): Likewise.
12531
12532 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12533
12534 Fix missing console prototype on qemu-mips.
12535
12536 * include/grub/mips/qemu_mips/console.h: New file.
12537
12538 2012-02-27 Matthew Garrett <mjg@redhat.com>
12539 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12542 * include/grub/efi/efi.h: Likewise.
12543 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12544 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12545 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12546 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12547 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12548 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12549
12550 2012-02-27 Matthew Garrett <mjg@redhat.com>
12551
12552 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12553
12554 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12555
12556 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12557 error.
12558
12559 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 * configure.ac: Remove inappropriate use of program_transform_name
12562 on grubdir and bootdir but allow explicit specification of those
12563 variables.
12564
12565 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12566
12567 * util/grub-mknetdir.in (grub_prefix): Removed.
12568 (subdir): Use @bootdirname@ and @grubdirname@.
12569
12570 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12573
12574 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12575
12576 * po/POTFILES.in: Regenerated.
12577
12578 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12579
12580 Remove improper use of program_transform_name on pkglibrootdir.
12581
12582 * configure.ac (pkglibrootdir): Removed.
12583 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12584 * util/grub-mkimage.c: Likewise.
12585
12586 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12587
12588 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12589 warning.
12590
12591 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12592
12593 * util/grub-install.in: Use file identifier if no UUID is available
12594 or user explicitly prompted for it.
12595
12596 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12597
12598 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12599 (freebsd_get_zfs): New function.
12600 (grub_freebsd_boot): Pass zfs UUID.
12601 (grub_cmd_freebsd): Set zfs UUID.
12602
12603 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12604
12605 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12606 pkglibrootdir.
12607
12608 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12609
12610 Add configure flag to control libzfs integration.
12611
12612 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12613
12614 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12617 device.
12618 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12619 small devices.
12620
12621 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12622
12623 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12624 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12625 be used on non-modules.
12626
12627 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12628 Rename to grub_boot_init.
12629 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12630 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12631 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12632 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12633 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12634 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12635 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12636 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12637 includes.
12638 (grub_machine_init): Remove empty inits.
12639 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12640 includes.
12641 (grub_machine_init): Remove empty inits.
12642 * grub-core/term/arc/console.c: Remove explicit proto.
12643 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12644 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12645 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12646 grub_at_keyboard_fini.
12647 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12648 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12649 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12650 grub_gfxterm_fini.
12651 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12652 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12653 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12654 grub_vgatext_fini.
12655 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12656 * grub-core/term/serial.c (GRUB_MOD_INIT)
12657 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12658 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12659 grub_serial_fini.
12660 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12661 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12662 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12663 grub_terminfo_fini.
12664 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12665 (GRUB_MOD_FINI): Likewise.
12666 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12667 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12668 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12669 grub_video_radeon_fuloong2e_fini.
12670 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12671 [LOONGSON]: Rename to grub_video_sis315pro_init.
12672 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12673 grub_video_sis315pro_fini.
12674 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12675 [LOONGSON]: Rename to grub_video_sm712_init.
12676 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12677 grub_video_sm712_fini.
12678 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12679 (grub_at_keyboard_fini): Likewise.
12680 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12681 Don't declare grub_{modname}_init.
12682 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12683 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12684 New proto.
12685 (grub_keylayouts_fini) [!EMU]: Likewise.
12686 * include/grub/serial.h (grub_serial_init) [!EMU]:
12687 New proto.
12688 (grub_serial_fini) [!EMU]: Likewise.
12689 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12690 New proto.
12691 (grub_terminfo_fini) [!EMU]: Likewise.
12692 * include/grub/video.h (grub_font_init) [!EMU]:
12693 New proto.
12694 (grub_font_fini) [!EMU]: Likewise.
12695 (grub_gfxterm_init) [!EMU]: Likewise.
12696 (grub_gfxterm_fini) [!EMU]: Likewise.
12697 (grub_video_sm712_init) [!EMU]: Likewise.
12698 (grub_video_sm712_fini) [!EMU]: Likewise.
12699 (grub_video_sis315pro_init) [!EMU]: Likewise.
12700 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12701 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12702 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12703
12704 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 Make nand a prefix for nand devices.
12707
12708 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12709
12710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12713 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12714
12715 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 * include/grub/env.h (grub_env_find): Remove prototype.
12718 * grub-core/kern/env.c (grub_env_find): Make static.
12719 (grub_env_set): Remove useless set.
12720
12721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12722
12723 * grub-core/kern/i386/realmode.S: Remove useless align.
12724
12725 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726
12727 * include/grub/dl.h (grub_dl_load_file): Don't export.
12728
12729 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12730
12731 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12732 grub_dprintf.
12733
12734 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12735
12736 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12737 grub_errors.
12738 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12739 not reloading whole superblock but only the part which is really needed.
12740 Remove useless grub_errors.
12741 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12742 grub_errors.
12743
12744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 Don't export grub_get_rtc.
12747
12748 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12749 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12750
12751 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12752
12753 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12754
12755 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12758 argument since it can be deduced from diskfilter. All users updated.
12759
12760 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12761
12762 Remove prio_list.
12763
12764 * include/grub/list.h (grub_prio_list): Removed.
12765 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12766 GRUB_COMMAND_PRIO_MASK.
12767 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12768 GRUB_COMMAND_FLAG_ACTIVE.
12769 (grub_prio_list_insert): Removed.
12770 (grub_prio_list_remove): Likewise.
12771 (GRUB_AS_PRIO_LIST): Likewise.
12772 (GRUB_AS_PRIO_LIST_P): Likewise.
12773 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12774 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12775 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12776 * grub-core/kern/command.c (grub_register_command_prio): Inline
12777 the prio_list code.
12778 (grub_unregister_command): Likewise.
12779
12780 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 Fix interrupt mixup from previous commit.
12783
12784 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12785 (grub_realidt): New var.
12786 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12787 Load idt.
12788 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12789 New declaration.
12790 (grub_relocator16_boot): Set grub_relocator16_idt.
12791 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12792 (LOCAL(realidt)): ... this.
12793 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12794 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12795 (grub_realidt): New variable.
12796
12797 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12800 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12801 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12802 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12803 Gettextize.
12804 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12805 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12806 * po/POTFILES.in: Regenerate.
12807
12808 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12811 errors.
12812
12813 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12814
12815 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12816 \0.
12817 (add_length): Likewise.
12818
12819 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12820 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12821
12822 GDB serial and backtrace support.
12823
12824 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12825 (prot_to_real): Likewise.
12826 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12827 * grub-core/Makefile.core.def (backtrace): New module.
12828 (gdb): Likewise.
12829 * grub-core/gdb/cstub.c: New file.
12830 * grub-core/gdb/gdb.c: Likewise.
12831 * grub-core/gdb/i386/idt.c: Likewise.
12832 * grub-core/gdb/i386/machdep.S: Likewise.
12833 * grub-core/gdb/i386/signal.c: Likewise.
12834 * grub-core/lib/i386/backtrace.c: Likewise.
12835 * grub-core/lib/backtrace.c: Likewise.
12836 * include/grub/backtrace.h: Likewise.
12837 * include/grub/gdb.h: Likewise.
12838 * include/grub/i386/gdb.h: Likewise.
12839
12840 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12841
12842 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12843 New function.
12844 (add_length): Likewise.
12845 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12846 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12847 proto.
12848 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12849 __argp_get_display_len.
12850
12851 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12852
12853 $"..." support in scripts.
12854
12855 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12856 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12857 * grub-core/script/yylex.l: Likewise.
12858 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12859 value.
12860
12861 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12862
12863 * gentpl.py: Remove obsolete pkglib_DATA handling.
12864
12865 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12868 mailing list.
12869
12870 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12871 * util/grub-kbdcomp.in: Likewise.
12872 * util/grub-mkconfig.in: Likewise.
12873 * util/grub-mkconfig_lib.in: Likewise.
12874 * util/grub-mknetdir.in: Likewise.
12875 * util/grub-mkrescue.in: Likewise.
12876 * util/grub-mkstandalone.in: Likewise.
12877 * util/grub-reboot.in: Likewise.
12878 * util/grub-set-default.in: Likewise.
12879 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12880
12881 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12882
12883 Remove GRUB_PREFIX.
12884
12885 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12886 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12887 used for backward compatibility.
12888
12889 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 Add new all_video module.
12892
12893 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12894 * grub-core/Makefile.core.def (all_video): New module.
12895 * grub-core/genmoddep.awk: Generate dependency of all_video from
12896 video.lst.
12897 * grub-core/lib/fake_module.c: New file.
12898 * grub-core/normal/main.c (features): Add feature_all_video_module.
12899 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12900 don't do explicit search again.
12901 insmod all_video in load_video if available.
12902
12903 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 Another round of string clarification and adding TRANSLATORS comments.
12906
12907 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12908
12909 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12910
12911 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12912
12913 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12914 to grub_ssize_t.
12915 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12916 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12917
12918 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12921 trailing newline implicitly. All users updated.
12922
12923 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 Implement serial on IEEE1275 and EFI.
12926
12927 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12928 on emu. Mention arc and emu as the only platforms without serial
12929 support.
12930 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12931 ieee1275 platforms.
12932 * grub-core/term/efi/serial.c: New file.
12933 * grub-core/term/ieee1275/serial.c: Likewise.
12934 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12935 specification if no ns8250 driver is available.
12936 (grub_cmd_serial): Likewise.
12937 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12938 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12939 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12940 (grub_efi_parity_type_t): New type.
12941 (grub_efi_stop_bits_t): Likewise.
12942 (grub_efi_serial_io_interface): New struct.
12943 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12944 available for all interfaces.
12945 Add EFI and IEEE1275 fields.
12946 (grub_ofserial_init): New proto.
12947 (grub_efiserial_init): Likeiwse.
12948 * util/grub.d/00_header.in: Don't check for the presence of serial
12949 module.
12950
12951 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12954 name as if it was an alias.
12955
12956 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 * grub-core/commands/lsacpi.c (options): Fix typo.
12959
12960 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 Convert grub-emu to argp.
12963
12964 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12965 emu.
12966 * util/argp_common.c: Rename to ...
12967 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12968 Add missing includes.
12969 * grub-core/kern/emu/main.c: Convert to argp.
12970 * po/POTFILES.in: Regenerate.
12971 * util/grub-install.in (usage): Make first letter lowcase in messages
12972 for uniformity.
12973 * util/grub-setup.c (options): Likewise.
12974
12975 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12978 Put back accidently commented-out code.
12979
12980 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12983 loop check using Brent algorithm.
12984 (grub_hfsplus_btree_search): Likewise.
12985
12986 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * util/grub-install.in: Fix usage of wrong device for PreP install.
12989
12990 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12991
12992 * conf/Makefile.common (CFLAGS_GNULIB): Add
12993 -Wno-unsafe-loop-optimizations.
12994 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12995 on tools.
12996 * grub-core/commands/legacycfg.c: Add pragma to skip
12997 -Wunsafe-loop-optimizations.
12998 (check_password_md5_real): Fix loop counter type.
12999 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13000 reading.
13001 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13002 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13003 loop condition.
13004 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13005 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13006 * grub-core/net/net.c (grub_net_route_address): Add safety loop
13007 condition.
13008 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13009 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13010 avoid possible infinite loops.
13011 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13012 and -Wunsafe-loop-optimizations.
13013 * grub-core/script/yylex.l: Likewise.
13014 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13015 (print_glyphs): Avoid infinite loops.
13016 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13017
13018 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13019
13020 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13021 to avoid infinite loop.
13022 (disp_acpi_rsdt_table): Likewise.
13023
13024 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 * grub-core/font/font.c (grub_font_load): Add support for default
13027 path for fonts ($prefix/fonts).
13028 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13029 for checking if string is a path.
13030 * grub-core/normal/main.c (features): Add feature_default_font_path.
13031 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13032 * util/grub.d/00_header.in: Use default directory if possible.
13033 * util/grub-install.in: Install unicode.pf2.
13034
13035 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13038 * po/Rules-swiss: New file.
13039 * po/swiss.sed: Likewise.
13040
13041 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/fs/btrfs.c (find_device): Fix typos.
13044 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13045 * util/grub-mkrelpath.c (argp_parser): Likewise.
13046 Reported by: Yuri Chornoivan.
13047
13048 2012-02-23 Dalet Omega <daletomega@gmail.com>
13049
13050 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13051 for usual informative messages.
13052
13053 2012-02-23 Dalet Omega <daletomega@gmail.com>
13054
13055 Starfield theme.
13056
13057 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13058 * conf/Makefile.common: Define starfielddir.
13059 * configure.ac: Configure starfield.
13060 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13061 * themes/starfield/README: Likewise.
13062 * themes/starfield/blob_w.png: Likewise.
13063 * themes/starfield/boot_menu_c.png: Likewise.
13064 * themes/starfield/boot_menu_e.png: Likewise.
13065 * themes/starfield/boot_menu_n.png: Likewise.
13066 * themes/starfield/boot_menu_ne.png: Likewise.
13067 * themes/starfield/boot_menu_nw.png: Likewise.
13068 * themes/starfield/boot_menu_s.png: Likewise.
13069 * themes/starfield/boot_menu_se.png: Likewise.
13070 * themes/starfield/boot_menu_sw.png: Likewise.
13071 * themes/starfield/boot_menu_w.png: Likewise.
13072 * themes/starfield/slider_c.png: Likewise.
13073 * themes/starfield/slider_n.png: Likewise.
13074 * themes/starfield/slider_s.png: Likewise.
13075 * themes/starfield/src/blob_nw.xcf: Likewise.
13076 * themes/starfield/src/bootmenu/: Likewise.
13077 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13078 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13079 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13080 * themes/starfield/src/slider_c.xcf: Likewise.
13081 * themes/starfield/src/slider_n.xcf: Likewise.
13082 * themes/starfield/src/slider_s.xcf: Likewise.
13083 * themes/starfield/src/terminalbox/: Likewise.
13084 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13085 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13086 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13087 * themes/starfield/starfield.png: Likewise.
13088 * themes/starfield/terminal_box_c.png: Likewise.
13089 * themes/starfield/terminal_box_e.png: Likewise.
13090 * themes/starfield/terminal_box_n.png: Likewise.
13091 * themes/starfield/terminal_box_ne.png: Likewise.
13092 * themes/starfield/terminal_box_nw.png: Likewise.
13093 * themes/starfield/terminal_box_s.png: Likewise.
13094 * themes/starfield/terminal_box_se.png: Likewise.
13095 * themes/starfield/terminal_box_sw.png: Likewise.
13096 * themes/starfield/terminal_box_w.png: Likewise.
13097 * themes/starfield/theme.txt: Likewise.
13098
13099 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * util/grub.d/00_header.in: Add missing export theme.
13102
13103 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13106 already included.
13107 Reported by: Eren D.
13108
13109 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 * conf/Makefile.common (grubdatadir): Removed.
13112 (Makefile.am): Move eveything grubdata to pkgdata.
13113
13114 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13115
13116 * grub-core/commands/acpihalt.c (get_sleep_type):
13117 Remove unused variable.
13118
13119 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13120
13121 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13122 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13123 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13124 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13125 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13126 i18n with gettext no-op.
13127 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13128 GRUB_ACPI_OPCODE_STRING_CONST.
13129 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13130 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13131
13132 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13133
13134 * po/POTFILES.in: Regenerate.
13135
13136 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13139 -Wno-error=missing-noreturn.
13140
13141 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13144 condition to avoid possibly infinite loops.
13145 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13146 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13147
13148 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13151 condition to avoid possibly infinite loops.
13152
13153 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13154
13155 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13156 on show_error.
13157
13158 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13161
13162 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13163
13164 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13165
13166 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * util/bin2h.c (usage): Add missing attribute noreturn.
13169
13170 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13173 if the size isn't divisible by 512.
13174
13175 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 Make list_push and list_remove functions rather than inline functions
13178 to decrease size and avoid aliasing violations.
13179
13180 * include/grub/list.h (grub_list_push): Move to ...
13181 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13182 * include/grub/list.h (grub_list_remove): Move to ...
13183 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13184
13185 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13188 and -Wunused-result.
13189
13190 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13193 Reported by: Seth Goldberg
13194
13195 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13196
13197 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13198
13199 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13200
13201 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13202 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13203 command line.
13204 * docs/grub.texi (Simple configuration): Document
13205 GRUB_CMDLINE_GNUMACH.
13206
13207 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * conf/Makefile.common (platform_SCRIPTS): New variable.
13210 (platform_PROGRAMS): Likewise.
13211 * gentpl.py: Mark *,module and *.image for install.
13212 * grub-core/gdb_grub.in: Add a notice of expected environment.
13213 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13214 (gmodule.pl): Likewise.
13215
13216 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13217
13218 Replace grub_checkkey with grub_getkey_noblock.
13219
13220 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13221 (grub_getkey_noblock): ... this. All users updated.
13222
13223 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * grub-core/kern/emu/console.c: Move to ...
13226 * grub-core/term/emu/console.c: ...here.
13227 (grub_ncurses_getkey): Fix return value if no key is detected.
13228
13229 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13230
13231 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13232 (grub_unit_test_fini): Likewise.
13233 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13234
13235 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13236
13237 * include/grub/test.h (GRUB_UNIT_TEST)
13238
13239 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13240
13241 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13242 Better error handling.
13243 (grub_script_return): Likewise.
13244 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13245
13246 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13249 rimplicit redifinition.
13250
13251 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13252
13253 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13254 GRUB.
13255
13256 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13257
13258 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13259 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13260 prompt here.
13261
13262 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13263
13264 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13265 as GRUB_ERR_BUG. Don't malloc if no device is available.
13266
13267 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13268
13269 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13270 Mark calling with invalid term as GRUB_ERR_BUG.
13271
13272 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13273
13274 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13275 packets rather than raising an error.
13276
13277 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13280 in if.
13281
13282 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13285 diagnostic to dprintf.
13286 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13287
13288 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13289
13290 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13291 device name.
13292
13293 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13296 (grub_ntfs_iterate_dir): Likewise.
13297
13298 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13299
13300 Efiemu stylistic fixes and gettext.
13301
13302 * grub-core/efiemu/i386/loadcore32.c
13303 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13304 * grub-core/efiemu/i386/loadcore64.c
13305 (grub_arch_efiemu_relocate_symbols64): Likewise.
13306 * grub-core/efiemu/i386/pc/cfgtables.c
13307 (grub_machine_efiemu_init_tables): Likewise.
13308 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13309 (grub_efiemu_loadcore_initXX): Add a filename argument.
13310 All users updated.
13311 Improved error message.
13312 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13313 Add a filename argument.
13314 All users updated.
13315 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13316 Reclassify double relocation as GRUB_ERR_BUG.
13317
13318 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13321 handling.
13322
13323 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13326 on partition.
13327
13328 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13329
13330 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13331
13332 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13333
13334 Improve string. Gettextize.
13335
13336 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13337
13338 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13339 utils.
13340 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13341
13342 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13345 [GRUB_UTIL]: New function.
13346 (insert_array) [GRUB_UTIL]: Store partmaps.
13347 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13348 partmaps.
13349 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13350 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13351 (probe_abstraction): Print diskfilter and not raid.
13352 Reported by: Lennart Sorensen
13353
13354 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13357 * util/grub-mkimagexx.c (MASK3): New define.
13358 (add_value_to_slot_20b): Use MASK3.
13359 (add_value_to_slot_21): Likewise.
13360 (relocate_addresses): Fix format specification.
13361 (load_image): Explicitly init symtab_section.
13362
13363 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13366 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13367
13368 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13371 on powerpc.
13372 Reported by: Lennart Sorensen
13373
13374 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13375
13376 * gentpl.py: Add missing license header.
13377 * docs/grub.texi: Update copyright year.
13378
13379 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13380
13381 Source grub-mkconfig_lib from the build directory at build time.
13382 Suggested by: Vladimir Serbinenko.
13383
13384 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13385 * util/grub-install.in: Define pkgdatadir if not already set, and source
13386 grub-mkconfig_lib from there.
13387 * util/grub-kbdcomp.in: Likewise.
13388 * util/grub-mkconfig.in: Likewise.
13389 * util/grub-mknetdir.in: Likewise.
13390 * util/grub-mkrescue.in: Likewise.
13391 * util/grub-mkstandalone.in: Likewise.
13392 * util/grub-reboot.in: Likewise.
13393 * util/grub-set-default.in: Likewise.
13394 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13395
13396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 Increase warning level.
13399
13400 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13401 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13402 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13403 (TARGET_CFLAGS): Likewise.
13404 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13405 * grub-core/Makefile.core.def (decompressor_xz): Add
13406 -Wno-unreachable-code.
13407 (normal): Add -Wno-redundant-decls.
13408 (xzio): Add -Wno-unreachable-code.
13409 (lzopio): Add -Wno-redundant-decls -Wno-error.
13410 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13411 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13412 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13413 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13414 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13415 * grub-core/kern/i386/coreboot/init.c: Add exception to
13416 -Wsuggest-attribute=noreturn.
13417 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13418 * grub-core/kern/ia64/dl_helper.c: Likewise.
13419 * grub-core/kern/mips/dl.c: Likewise.
13420 * grub-core/kern/sparc64/dl.c: Likewise.
13421 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13422 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13423 (memcmp): Likewise.
13424 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13425 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13426 * grub-core/loader/mips/linux.c: Likewise.
13427 * grub-core/loader/multiboot_elfxx.c: Likewise.
13428 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13429 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13430 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13431 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13432 fixme.
13433 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13434 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13435 Fix prototype.
13436
13437 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13440 address.
13441
13442 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13445 Avoid improper use of strings.
13446 (grub_cmd_legacy_initrdnounzip): Likewise.
13447
13448 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13451 attribute.
13452 (grub_util_info): Likewise.
13453 (grub_util_error): Likewise.
13454
13455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13458 * util/grub-fstest.c (fstest): Likewise.
13459
13460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13461
13462 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13463 (grub_md_sha512_real): Likewise.
13464 (grub_util_get_geli_uuid): Likewise.
13465 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13466 (grub_util_biosdisk_open): Fix format specification.
13467 Respect format security.
13468 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13469 (xrealloc): Likewise.
13470 (xasprintf): Likewise.
13471
13472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * util/import_gcry.py: Include grub/crypto.h in init.c.
13475
13476 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13479 (generate_image): Make prefix a const char *.
13480 Fix format specifications. Respect format security.
13481 Avoid void * arithmetics.
13482 Avoid shadowing.
13483 (argp_parser): Remove unused variable. Respect format security.
13484 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13485 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13486 (count_funcs): Remove unused variable.
13487 (relocate_addresses): Fix format specification.
13488 Disable x86-64 with elf32. Remove unused variables.
13489 (add_fixup_entry): Avoid shadowing.
13490 (make_reloc_section): Fix format specification.
13491 Use assert.
13492 (locate_sections): Fix format specifications.
13493 (load_image): Avoid shadowing.
13494
13495 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13498 Fix format specifications. Respect format security.
13499 Don't translate already translated grub_errmsg.
13500 (argp_parser): Remove unused variable
13501
13502 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13503
13504 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13505
13506 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13509 (main): Likewise. Use xmalloc. Respect format security.
13510
13511 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13514 a const char *.
13515 (argp_parser): Remove unused variable.
13516
13517 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13520 (add_pixel): Make static.
13521 (add_font): Likewise.
13522 (write_string_section): Make name and str a const char *.
13523 (write_be16_section): Make name a const char *.
13524 (print_glyphs): Make static.
13525 (write_font_ascii_bitmap): Likewise.
13526 (write_font_width_spec): Likewise.
13527 (write_font_pf2): Likewise.
13528 (argp_parser): Remove unused variable.
13529 Respect format security.
13530 (main): Avoid shadowing. Respect format security.
13531
13532 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 * util/grub-editenv.c (argp_parser): Make static.
13535 (create_envblk_file): Use xmalloc.
13536 (open_envblk_file): Likewise.
13537 Resepect format security.
13538 (set_variables): Respect format security.
13539
13540 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13541
13542 * util/getroot.c (grub_find_device): Respect format security.
13543 (get_mdadm_uuid): Remove unused variable.
13544 (grub_util_pull_device): Dont call gettext on already translated
13545 grub_errmsg.
13546 (find_system_device): Remove unused variable.
13547 (grub_util_get_grub_dev): Likewise.
13548 (grub_make_system_path_relative_to_its_root): Respect format security.
13549
13550 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13551
13552 * util/grub-fstest.c (execute_command): Make first argument
13553 a const char *.
13554 (read_file): Avoid shadowing.
13555 Reuse underlying error message if device open fails.
13556 (cmd_cmp): Respect format security.
13557 (root): Make const char *.
13558 (fstest): Remove args argument and use global copy.
13559 Respect format security.
13560 (argp_parser): Make static.
13561 (main): Make default_root const char *.
13562
13563 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * util/grub-mount.c (root): Make const char *.
13566 (execute_command): Make first argument a const char *.
13567 (fuse_init): Respect format security.
13568 (argp_parser): Make static. Remove unused variable.
13569 (main): Make default_root a const char *.
13570 Respect format security.
13571
13572 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13573
13574 * util/grub-probe.c (probe): Don't call gettext on already translated
13575 grub_errmsg.
13576 Remove unused variables.
13577 (argp_parser): Remove unused variable.
13578
13579 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * util/grub-script-check.c (argp_parser): Remove unused variable.
13582 (main): Rename read to curread to avoid shadowing.
13583
13584 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * util/misc.c (grub_util_write_image_at): Fix format specification.
13587 (grub_util_write_image): Likewise.
13588 (grub_script_execute_argument_to_string): Removed (unused).
13589 (grub_script_execute_menuentry): Likewise.
13590 (grub_putchar): Likewise.
13591
13592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13595 (FUNCTION) [GRUB_UTIL]: Likewise.
13596 (VARIABLE) [GRUB_UTIL]: Likewise.
13597
13598 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13599
13600 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13601 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13602
13603 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13604
13605 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13606 buffer.
13607
13608 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13609
13610 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13611 (LzmaEnc_SaveState): Removed (unused).
13612 (LzmaEnc_RestoreState): Likewise.
13613 (LzmaEnc_InitPriceTables): Made static.
13614 (LzmaEnc_Construct): Likewise.
13615 (LzmaEnc_FreeLits): Likewise.
13616 (LzmaEnc_Destruct): Likewise.
13617 (LzmaEnc_Init): Likewise.
13618 (LzmaEnc_InitPrices): Likewise.
13619 (LzmaEnc_Finish): Likewise.
13620 (LzmaEnc_PrepareForLzma2): Removed (unused).
13621 (LzmaEnc_MemPrepare): Likewise.
13622 (LzmaEnc_GetNumAvailableBytes): Likewise.
13623 (LzmaEnc_GetCurBuf): Likewise.
13624 (LzmaEnc_CodeOneMemBlock): Likewise.
13625
13626 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13627
13628 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13629 (grub_util_ldm_embed): Likewise.
13630
13631 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 * util/grub-editenv.c (print_var): Rename name to varname to
13634 avoid shadowing.
13635 (main): Rename index to curindex to avoid shadowing.
13636 Make filename a const char *.
13637
13638 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13639
13640 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13641 to arg_getline to avoid shadowing.
13642
13643 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13644
13645 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13646 disk_ to avoid shadowing.
13647
13648 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13651 curindex to avoid shadowing.
13652 Make static.
13653 (MatchFinder_GetNumAvailableBytes): Make static.
13654
13655 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13658 avoid shadowing.
13659
13660 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13663 argument from encrypt to do_encrypt to avoid shadowing.
13664
13665 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13666
13667 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13668 incorrect nesting of #if's.
13669
13670 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13671
13672 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13673 checks which are always false on some platforms.
13674 (grub_cmd_lsacpi): Likewise.
13675 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13676 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13677 Likewise.
13678
13679 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13682 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13683
13684 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13687 re_dfa_t to avoid breaking alignment invariants.
13688 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13689 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13690
13691 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13692
13693 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13694 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13695
13696 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13699 Fix declaration.
13700
13701 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13702
13703 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13704 conserve alignment invariants.
13705 (grub_ehci_ehcc_read16): Likewise.
13706 (grub_ehci_oper_read32): Likewise.
13707 (grub_ehci_oper_write32): Likewise.
13708 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13709 Conserve alignment invariants.
13710
13711 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13714 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13715 declarations.
13716
13717 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13720 Remove unused variable.
13721
13722 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13723
13724 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13725 Remove set in if.
13726
13727 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13728
13729 * include/grub/net.h: Remove double declarations.
13730
13731 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 Remove "payload" command in ia64 Linux loader since I couldn't
13734 find any evidence of it being used for anything.
13735 Replace "relocate" command with an environment variable
13736
13737 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13738 fields.
13739 (ia64_boot_payload): Removed.
13740 (last_payload): Likewise.
13741 (RELOCATE_OFF): Likewise.
13742 (RELOCATE_ON): Likewise.
13743 (RELOCATE_FORCE): Likewise.
13744 (relocate): Likewise.
13745 (free_pages): Don't free payloads.
13746 (grub_load_elf64): Use common error messages.
13747 Use "linux_relocate" variable.
13748 Increase the space after boot_params.
13749 (grub_cmd_payload): Removed.
13750 (grub_cmd_relocate): Likewise.
13751 (grub_cmd_fpswa): Improve messages.
13752 (cmd_payload): Removed.
13753 (cmd_relocate): Likewise.
13754 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13755 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13756
13757 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13758
13759 Convert UHCI to DMA framework.
13760
13761 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13762 (grub_uhci_pci_iter): Fill new members
13763 (grub_alloc_td): Use P2V and V2P functions.
13764 (grub_free_queue): Likewise.
13765 (grub_alloc_qh): Likewise.
13766 (grub_uhci_setup_transfer): Likewise.
13767 (grub_uhci_check_transfer): Likewise.
13768
13769 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13772 Remove assignment in if while on it.
13773
13774 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * util/grub-mkstandalone.in: Fix modules directory.
13777
13778 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13779
13780 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13781 on i386-pc target.
13782 (argp_parser): Accept "auto" as compression specification.
13783
13784 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13785
13786 Fix `help' with unloaded modules.
13787
13788 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13789 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13790 (grub_dyncmd_dispatcher): Small stylistic fix.
13791 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13792 explicit help is requested.
13793
13794 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13797 Explicitly init restart while on it.
13798
13799 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13800
13801 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13802 uninited variable.
13803
13804 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13805
13806 * util/grub-mknetdir.in: Use . rather than source for POSIX
13807 compatibility.
13808
13809 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13810
13811 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13812
13813 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13816 variable.
13817
13818 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13819
13820 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13821 without quotes.
13822
13823 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13824
13825 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13826
13827 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13830 iteration of partitions.
13831
13832 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13833
13834 Improve gettext support. Stylistic fixes and error handling fixes while
13835 on it.
13836
13837 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13838
13839 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13840 part. Instead setup the correct stack in RM.
13841 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13842 for stack.
13843 * include/grub/i386/relocator_private.h: New file.
13844
13845 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13848 argument.
13849 * util/grub-fstest.c (options): Add missing DEVICE part.
13850
13851 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 Clarify and unify messages.
13854
13855 * grub-core/commands/hashsum.c (options): Unify messages.
13856 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13857 literal-only message as translatable.
13858 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13859 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13860 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13861 commands.
13862 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13863 key, not the key used to unlock. Clarify what it's used for.
13864 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13865 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13866 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13867 * util/grub-editenv.c (options): Unify "verbose" message.
13868 * util/grub-fstest.c (read_file): Unify error message.
13869 (fstest): Add quotes around commands.
13870 (options): Unify "verbose" message.
13871 * util/grub-install.in: Add quotes around variable name.
13872 * util/grub-kbdcomp.in: Unify error message.
13873 * util/grub-mkfont.c (main): Likewise.
13874 * util/grub-mkrescue.in: Likewise.
13875 * util/grub-mklayout.c (options): Unify "verbose" message.
13876 * util/grub-mkstandalone.in: Unify help and verbose messages.
13877 * util/grub-mount.c (options): Unify "verbose" message.
13878 * util/grub-probe.c (options): Likewise.
13879 * util/grub-script-check.c (options): Likewise.
13880 * util/grub-setup.c (setup): Unify no-terminator message.
13881 (options): Use DEVICE and not DEV.
13882 Unify "verbose" message.
13883 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13884
13885 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 Improve and unify messages.
13888
13889 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13890 name. All users updated.
13891 Print filename in error.
13892 (read_device_map): Print filename in error.
13893 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13894 (grub_util_get_os_disk): Likewise.
13895 (grub_util_biosdisk_get_grub_dev): Likewise.
13896 (grub_util_check_block_device): Likewise.
13897 (grub_util_check_char_device): Likewise.
13898 (grub_make_system_path_relative_to_its_root): Likewise.
13899 * util/grub-editenv.c (create_envblk_file): Likewise.
13900 (open_envblk_file): Likewise.
13901 (write_envblk): Likewise.
13902 * util/grub-fstest.c (cmd_cp): Likewise.
13903 (cmd_cat): Likewise.
13904 (cmd_cmp): Likewise.
13905 * util/grub-menulst2cfg.c (main): Likewise.
13906 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13907 (write_font_width_spec): Likewise.
13908 (write_font_pf2): Likewise.
13909 * util/grub-mkimage.c (generate_image): New argument outname.
13910 All users updated.
13911 Remove unreacheable message.
13912 (options): Unify messages.
13913 (help_filter): Likewise.
13914 * util/grub-mklayout.c (usage): Removed (unused).
13915 (main): Print filename in error.
13916 * util/grub-mkrescue.in: Fix wrong quoting.
13917 * util/grub-setup.c (setup): Print filename in error.
13918 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13919 (check_sas): Likewise.
13920 * util/misc.c (grub_util_get_fp_size): Removed.
13921 (grub_util_get_image_size): Print filename in error.
13922 (grub_util_read_at): Removed.
13923 (grub_util_read_image): Print filename in error.
13924 (grub_util_load_image): Likewise.
13925 (grub_util_write_image_at): New argument filename. All users updated.
13926 Print filename in error.
13927 (grub_util_write_image): New argument filename. All users updated.
13928 Print filename in error.
13929 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13930 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13931
13932 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * grub-core/Makefile.core.def (pxechain): New module.
13935 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13936 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13937 function.
13938 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13939 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13940
13941 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13944 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13945 * include/grub/err.h (grub_error_saved): New struct.
13946 (grub_errmsg): Make array size explicit.
13947 * include/grub/misc.h (grub_error_save): New function.
13948 (grub_error_load): Likewise.
13949 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13950 (grub_error_push): Update `errno' member name.
13951 (grub_error_pop): Likewise
13952 * grub-core/net/tftp.c (tftp_data): New member save_err.
13953 (tftp_receive): Save error.
13954 (tftp_open): Restore error.
13955
13956 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13959 to real mode down to execute A20-related code in protected mode as
13960 intended.
13961
13962 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13963
13964 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13965 NULL when the argument `level' has an unexpected value.
13966
13967 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 Move platform-dependent files from $prefix to $prefix/$platform.
13970
13971 * config.h.in (GRUB_TARGET_CPU): New definition.
13972 (GRUB_PLATFORM): Likewise.
13973 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13974 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13975 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13976 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13977 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13978 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13979 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13980 * grub-core/normal/term.c (read_terminal_list): Likewise.
13981 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13982 $prefix/locale.
13983 (grub_gettext_init_ext): Likewise.
13984 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13985 grub_platform.
13986 * util/grub-install.in: Update directories.
13987 * util/grub-mknetdir.in: Likewise.
13988 * util/grub-mkrescue.in: Likewise.
13989
13990 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13991
13992 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13993 grub_error framework. All users updated.
13994
13995 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13998 lists (by always binsearching), improve caching (cache strings
13999 used for binsearch, not only results), improve
14000 maintainability (by using more structured binary search) and correct
14001 error handling.
14002
14003 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * grub-core/script/execute.c (grub_script_return): Fix warning.
14006
14007 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
14008
14009 * grub-core/script/execute.c (grub_script_return): Fix potential
14010 NULL-dereference.
14011 Reported by: Jim Meyering.
14012
14013 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 * po/POTFILES.in: Regenerate.
14016 * util/grub-install.in: Gettextize the strings missed in first pass.
14017
14018 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * Makefile.util.def (grub-mkdevicemap): Removed.
14021 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14022 * include/grub/util/deviceiter.h: Removed.
14023 * util/deviceiter.c: Likewise.
14024 * util/getroot.c (grub_util_get_os_disk): New function.
14025 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14026 replacement for EFI.
14027 * util/grub-mkdevicemap.c: Removed.
14028 * util/grub-probe.c (probe): Handle PRINT_DISK.
14029 (argp_parser): Handle -t disk.
14030
14031 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14032
14033 * util/grub-mkfont.c: Migrate to argp.
14034 * util/grub-mklayout.c: Likewise.
14035 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14036 * util/grub-mkrelpath.c: Likewise.
14037 * util/grub-probe.c: Likewise.
14038 * util/grub-script-check.c: Likewise.
14039
14040 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * util/grub-reboot.in: Add missing datarootdir.
14043 Add missing newline.
14044 * util/grub-set-default.in: Add missing datarootdir.
14045 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14046 * util/grub-mkrescue.in: Likewise.
14047
14048 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14051
14052 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * util/grub-kbdcomp.in: Add decent help and gettextize.
14055 * docs/man/grub-kbdcomp.h2m: New file.
14056
14057 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 Migrate grub-mkimage.c to argp.
14060
14061 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14062 (grub-setup): Likewise.
14063 * util/grub-setup.c (print_version): Move to ...
14064 * util/argp_common.c (print_version): ... here.
14065 * util/grub-setup.c (argp_program_version_hook): Move to ...
14066 * util/argp_common.c (argp_program_version_hook): ... here.
14067 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14068 safety.
14069 * util/grub-mkimage.c (main): Migrate to argp.
14070
14071 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * util/grub-mkrescue.in: Use same message as
14074 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14075 for better translations.
14076
14077 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14078
14079 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14080 options with generic grub-mkrescue.in with the goal of future
14081 merge.
14082
14083 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14084
14085 * grub-core/kern/mm.c: Add missing include of i18n.h
14086 * grub-core/lib/relocator.c: Likewise.
14087
14088 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14091 error.
14092 (allocate_pages): Check return value.
14093 Replace fatal with error.
14094 (grub_linux_boot): Replace printf with dprintf.
14095 Check find_mmap_size return value.
14096 Replace fatal with error.
14097 Don't call grub_machine_fini.
14098 (grub_load_elf64): Replace printf with dprintf.
14099 (grub_cmd_linux): Likewise.
14100 (grub_cmd_initrd): Likewise.
14101 (grub_cmd_payload): Likewise.
14102
14103 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14106 message.
14107 * grub-core/video/radeon_fuloong2e.c
14108 (grub_video_radeon_fuloong2e_setup): Likewise.
14109 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14110 * grub-core/video/video.c (grub_video_set_mode): Don't override
14111 standard out of memory message.
14112
14113 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14114
14115 NetBSD disk wedge support.
14116
14117 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14118 [__NetBSD__]: Handle NetBSD disk wedges.
14119 * util/getroot.c (convert_system_partition_to_system_disk)
14120 [__NetBSD__]: Likewise.
14121
14122 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14123
14124 * util/grub-mkconfig.in: Use umask rather than chmod to create
14125 grub.cfg.new to avoid insecure grub.cfg.
14126
14127 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/commands/ls.c: Gettextize.
14130 * grub-core/commands/setpci.c: Likewise.
14131 * grub-core/commands/videotest.c: Likewise.
14132 * grub-core/disk/geli.c: Likewise.
14133 * grub-core/kern/mm.c: Likewise.
14134 * grub-core/lib/relocator.c: Likewise.
14135 * grub-core/loader/efi/appleloader.c: Likewise.
14136 * grub-core/loader/i386/xnu.c: Likewise.
14137 * grub-core/loader/ia64/efi/linux.c: Likewise.
14138 * grub-core/loader/xnu.c: Likewise.
14139 * grub-core/net/dns.c: Likewise.
14140 * grub-core/net/net.c: Likewise.
14141 * grub-core/script/lexer.c: Likewise.
14142 * grub-core/script/parser.y: Likewise.
14143 * grub-core/script/yylex.l: Likewise.
14144 * util/getroot.c: Likewise.
14145 * util/grub-setup.c: Likewise.
14146
14147 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14150 number.
14151
14152 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14155
14156 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14159 macro.
14160 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14161 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14162
14163 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14164
14165 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14166 * util/grub-install.in: Gettextize.
14167 * util/grub-mkconfig.in: Likewise.
14168 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14169 if not available.
14170 (grub_warn): Gettextize.
14171 * util/grub-mknetdir.in: Gettextize.
14172 * util/grub-mkrescue.in: Likewise.
14173 * util/grub-mkstandalone.in: Likewise.
14174 * util/grub-reboot.in: Likewise.
14175 * util/grub-set-default.in: Likewise.
14176 * util/grub.d/00_header.in: Likewise.
14177 * util/grub.d/10_hurd.in: Likewise.
14178 * util/grub.d/10_kfreebsd.in: Likewise.
14179 * util/grub.d/10_linux.in: Likewise.
14180 * util/grub.d/10_netbsd.in: Likewise.
14181 * util/grub.d/10_windows.in: Likewise.
14182 * util/grub.d/20_linux_xen.in: Likewise.
14183 * util/grub.d/30_os-prober.in: Likewise.
14184 * po/POTFILES-shell.in: Regenerate.
14185
14186 2012-02-03 Richard Laager <rlaager@wiktel.com>
14187
14188 * util/grub-mkimage.c (main): Fix format-security warning.
14189 * util/grub-mkrelpath.c (main): Likewise.
14190 * util/grub-probe.c (main): Likewise.
14191
14192 2012-02-03 Richard Laager <rlaager@wiktel.com>
14193
14194 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14195 failure.
14196 Put back lost PRINT_DRIVE.
14197
14198 2012-02-03 Richard Laager <rlaager@wiktel.com>
14199
14200 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14201 (grub_guess_root_devices): Replace strlen with sizeof.
14202 Avoid crash.
14203 (find_root_devices_from_poolname): Remove unused variable.
14204 Handle raidzN.
14205
14206 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14207
14208 Support install on multi-device filesystems.
14209
14210 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14211 (grub_guess_root_devices): ...this. Return char **. All users updated.
14212 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14213 Removed.
14214 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14215 (find_root_devices_from_poolname): ... here.
14216 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14217 Support zfs-fuse.
14218 (grub_guess_root_device): Rename to ...
14219 (grub_guess_root_devices): ... this. Return char **. All users updated.
14220 * util/grub-install.in: Handle multi-device filesystems.
14221 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14222 argument. All users updated.
14223 Handle multi-device filesystems.
14224 Use 'delim' as separator.
14225 Remove device check to allow filesystems on file.
14226 (main): Support -0 argument. Handle multi-device.
14227 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14228 Fix a cross-device check while on it.
14229 (arguments): Remove root_dev.
14230 (argp_parser): Remove -r.
14231 (main): Remove root_dev.
14232
14233 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14236
14237 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14240 symbol.
14241 Reported by: NODA, Kai <nodakai>.
14242
14243 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14244
14245 Fix ehci on amd64.
14246
14247 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14248 pointers.
14249 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14250 (grub_ehci_setup_qh): Likewise.
14251 (grub_ehci_find_qh): Likewise.
14252 (grub_ehci_transaction): Likewise.
14253 (grub_ehci_setup_transfer): Likewise.
14254 (grub_ehci_check_transfer): Likewise.
14255 (grub_ehci_portstatus): Likewise.
14256 (grub_ehci_detect_dev): Likewise.
14257 (grub_ehci_transfer_controller_data): New field td_last_phys.
14258 (grub_ehci_setup_transfer): Fill td_last_phys.
14259 (grub_ehci_check_transfer): Use td_last_phys.
14260
14261 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14262
14263 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14264 if no submenu is present.
14265
14266 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14267
14268 CBI support.
14269
14270 * include/grub/usb.h (grub_usbms_protocol_t): New values
14271 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14272 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14273 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14274 (grub_usbms_dev): Add subclass, protocol and intrpt.
14275 Remove in_maxsz and out_maxsz.
14276 (grub_usbms_reset): Rename to ...
14277 (grub_usbms_bo_reset): .. this.
14278 (grub_usbms_cbi_cmd): New function.
14279 (grub_usbms_cbi_reset): Likewise.
14280 (grub_usbms_reset): Likewise.
14281 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14282 (grub_usbms_transfer): Rename to ...
14283 (grub_usbms_transfer_bo): ... this.
14284 (grub_usbms_transfer_cbi): Likewise.
14285 (grub_usbms_transfer): Likewise.
14286
14287 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14288 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14291 the support for the CS5536 modification thereos and few bugfixes.
14292
14293 * grub-core/Makefile.core.def (ehci): New module.
14294 * grub-core/bus/usb/ehci.c: New file.
14295 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14296 port and hubaddr. All users updated.
14297 Save port and hubaddr into dev structure.
14298 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14299 define.
14300 * include/grub/pci.h (grub_dma_phys2virt): New function.
14301 (grub_dma_virt2phys): Likewise.
14302 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14303
14304 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14307 check as some mkfs implementations omit it.
14308
14309 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14310
14311 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14312
14313 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14316 Add new member volname2.
14317 (grub_jfs_label): Use volname2 if available.
14318
14319 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14320
14321 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14322 over last_mounted as seen in image generated by mkfs.nilfs2.
14323 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14324
14325 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14328 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14329 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14330
14331 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14334 over the sector.
14335
14336 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14339 subvolume name (by removing a bogus and useless check).
14340
14341 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14344 sizeof while on it.
14345
14346 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14347
14348 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14349 (grub_scsi_read_capacity10): ... this.
14350 (grub_scsi_read_capacity16): New function.
14351 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14352 0xffffffff.
14353 Fix off-by-one error.
14354 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14355 64-bit unsigned.
14356 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14357 (grub_scsi_read_capacity10): ... this.
14358 (grub_scsi_read_capacity_data): Rename to ...
14359 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14360 (grub_scsi_read_capacity16): New struct.
14361 (grub_scsi_read_capacity16_data): Likewise.
14362 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14363 grub_scsi_cmd_read_capacity10.
14364 New command grub_scsi_cmd_read_capacity16.
14365
14366 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 SCSI >2TiB support.
14369
14370 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14371 (grub_scsi_write16): Likewise.
14372 (grub_scsi_read): Use read16 when necessary.
14373 (grub_scsi_write): Likewise.
14374 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14375 (grub_scsi_write16): Likewise.
14376 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14377
14378 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 SCSI write support (for usbms mainly).
14381
14382 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14383 a const pointer.
14384 (grub_scsi_write): Implement.
14385 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14386
14387 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14388
14389 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14390 variable.
14391
14392 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14393
14394 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14395
14396 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 * po/POTFILES.in: Regenerate.
14399
14400 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14403 with grub_printf to avoid unnecessary fatal failure.
14404
14405 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14408 (INT_MAX): Likewise.
14409 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14410 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14411 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14412 (strcpy): Likewise.
14413 (strstr): Likewise.
14414 (strchr): Likewise.
14415 (strncpy): Likewise.
14416 (strcat): Likewise.
14417 (strncat): Likewise.
14418 (strcoll): Likewise.
14419 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14420 (GRUB_INT_MAX): Likewise.
14421
14422 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14423
14424 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14425 unexpected error.
14426 (optimize_utf8): Likewise.
14427 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14428
14429 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14430
14431 * grub-core/boot/i386/pc/lnxboot.S: Use
14432 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14433 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14434 location.
14435 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14436 definition.
14437 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14438
14439 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14442 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14443 now to avoid double free.
14444 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14445 hostdisk.
14446 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14447 * util/grub-probe.c (escape_of_path): Always return a new copy.
14448 (print_full_name): Escape path.
14449 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14450 Fix hints on abstractions.
14451
14452 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14453
14454 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14455 Don't add "root" line if no compatibility hont is available.
14456 Suggested by: Seth Goldberg.
14457
14458 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14459
14460 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14461 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14462 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14463 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14464
14465 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14468
14469 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * util/grub-pe2elf.c (ehdr): Make static.
14472 (shdr): Likewise.
14473 (num_sections): Likewise.
14474 (offset): Likewise.
14475
14476 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14477
14478 Eliminate ofpath limits and possible overflows.
14479
14480 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14481 (OF_PATH_MAX): Removed.
14482 (MAX_DISK_CAT): New const.
14483 (find_obppath): Use allocated rather than preallocated buffer.
14484 Return result. Argument of_path removed. All users updated.
14485 Add missing fdstat.
14486 (xrealpath): New function.
14487 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14488 Allocate rather than use preallocated buffer. All users updated.
14489 (__of_path_common): Use allocated rather than preallocatecd buffer.
14490 Return result. Argument of_path removed. All users updated.
14491 (vendor_is_ATA): Read only needed part form the file.
14492 (check_sas): Allocate depending on contents rather than fixed.
14493 (main) [STANDALONE]: Handle NULL result.
14494
14495 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14496
14497 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14498
14499 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 Cryptodisk write support.
14502
14503 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14504 (grub_cryptodisk_decrypt): Moved logic to ...
14505 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14506 (grub_cryptodisk_write): Implement.
14507 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14508 (grub_util_fd_write): ... this. Make global.
14509 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14510
14511 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14512
14513 * include/grub/list.h (grub_list_remove): Don't crash if element is
14514 removed twice.
14515
14516 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 Rename ofconsole to console.
14519
14520 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14521 as sysnonym to console.
14522 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14523 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14524 Rename grub_ofconsole_ to grub_console_. All users updated
14525 (grub_console_term_output): Rename "ofconsole" to "console".
14526 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14527 as "console".
14528
14529 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14532 handling.
14533 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14534 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14535 GRUB_DISK_DEVICE_FILE_ID.
14536
14537 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14540 and improve performance.
14541
14542 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14543
14544 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14545 missing ieee1275/ prefix on whole disk.
14546
14547 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14550 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14551
14552 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14555
14556 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14557
14558 Merge common RAID and LVM logic to an abstract diskfilter.
14559 Add LDM support using the same framework.
14560
14561 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14562 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14563 (libgrubmods): Remove grub-core/disk/raid.c and
14564 grub-core/partmap/gpt.c.
14565 * grub-core/Makefile.core.def (ldm): New module.
14566 (raid): Renamed to diskfilter. All users updated.
14567 * grub-core/disk/raid.c: Moved to ...
14568 * grub-core/disk/diskfilter.c: ... here.
14569 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14570 (lv_num): New var.
14571 (find_array): Renamed to ...
14572 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14573 (grub_is_array_readable): Renamed to ...
14574 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14575 (insert_array): New argument id.
14576 (is_node_readable): New function.
14577 (scan_device): Rename to ...
14578 (scan_disk): .. this. Restrict to one disk.
14579 (scan_devices): New function.
14580 (grub_diskfilter_iterate): Support multi-LV.
14581 Skip invisible and nameless LVs.
14582 (grub_diskfilter_memberlist): Support multi-LV.
14583 (grub_diskfilter_read_node): New function.
14584 (grub_raid_read): Most of logic moved to ...
14585 (read_segment): ... here
14586 (read_lv): New function.
14587 (grub_diskfilter_get_vg_by_uuid): New function.
14588 (grub_diskfilter_make_raid): Likewise.
14589 * grub-core/disk/ldm.c: New file.
14590 * grub-core/disk/lvm.c (vg_list): Removed.
14591 (lv_count): Likewise.
14592 (scan_depth): Likewise.
14593 (is_lv_readable): Likewise.
14594 (grub_lvm_getvalue): Advance pointer past the number.
14595 (find_lv): Removed.
14596 (do_lvm_scan): Refactored into ...
14597 (grub_lvm_detect): ... this. Support raid.
14598 (grub_lvm_iterate): Removed.
14599 (grub_lvm_memberlist): Likewise.
14600 (grub_lvm_open): Likewise.
14601 (grub_lvm_close): Likewise.
14602 (read_lv): Likewise.
14603 (read_node): Likewise.
14604 (is_node_readable): Likewise.
14605 (is_lv_readable): Likewise.
14606 (grub_lvm_read): Likewise.
14607 (grub_lvm_write): Likewise.
14608 (grub_lvm_dev): Use diskfilter
14609 (GRUB_MOD_INIT): Likewise.
14610 (GRUB_MOD_FINI): Likewise.
14611 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14612 new interface.
14613 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14614 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14615 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14616 grub_diskfilter_read_node.
14617 Fix a bug with xor.
14618 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14619 grub_diskfilter_read_node.
14620 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14621 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14622 (grub_disk_dev_iterate): Move from here...
14623 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14624 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14625 Make global.
14626 (grub_hostdisk_find_partition_start): Likewise.
14627 (grub_hostdisk_os_dev_to_grub_drive): New function.
14628 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14629 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14630 * util/getroot.c (make_device_name): ... here.
14631 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14632 Move to ...
14633 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14634 * grub-core/kern/emu/hostdisk.c
14635 (convert_system_partition_to_system_disk): Move to ...
14636 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14637 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14638 * util/getroot.c (device_is_wholedisk): ... here.
14639 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14640 * util/getroot.c (find_system_device): ... here.
14641 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14642 Move to ...
14643 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14644 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14645 Move to ...
14646 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14647 Handle LDM.
14648 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14649 Move to ...
14650 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14651 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14652 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14653 DISKFILTER.
14654 * include/grub/raid.h: Renamed to ...
14655 * include/grub/diskfilter.h: ... this.
14656 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14657 (GRUB_RAID_LAYOUT_*): Make into array.
14658 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14659 (grub_diskfilter_vg): New struct.
14660 (grub_diskfilter_pv_id): Likewise.
14661 (grub_raid_member): Removed.
14662 (grub_raid_array): Likewise.
14663 (grub_diskfilter_pv): New struct.
14664 (grub_diskfilter_lv): Likewise.
14665 (grub_diskfilter_segment): Likewise.
14666 (grub_diskfilter_node): Likewise.
14667 (grub_diskfilter_get_vg_by_uuid): New proto.
14668 (grub_raid_register): Inline.
14669 (grub_diskfilter_unregister): Likewise.
14670 (grub_diskfilter_make_raid): New proto.
14671 (grub_diskfilter_vg_register): Likewise.
14672 (grub_diskfilter_read_node): Likewise.
14673 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14674 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14675 (grub_util_is_ldm): Likewise.
14676 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14677 (grub_hostdisk_find_partition_start): Likewise.
14678 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14679 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14680 New definition.
14681 (grub_gpt_partition_map_iterate): New proto.
14682 * include/grub/lvm.h (grub_lvm_vg): Removed.
14683 (grub_lvm_pv): Likewise.
14684 (grub_lvm_lv): Likewise.
14685 (grub_lvm_segment): Likewise.
14686 (grub_lvm_node): Likewise.
14687 * util/getroot.c [...]
14688 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14689 (probe_abstraction): Likewise.
14690 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14691 (main): Remove dead logic.
14692
14693 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 Simplify root device discover and don't fail when trying to open
14696 incorrect devices.
14697
14698 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14699 function.
14700 (get_diskname_from_path): Likewise.
14701 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14702 of iterating.
14703
14704 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14705
14706 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14707
14708 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14711 pastthe end.
14712
14713 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14714
14715 * util/grub-install.in: Add missing \.
14716 Reported by: gentoofan
14717
14718 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14721 (direct_read): Use correct compressed size.
14722 (grub_squash_read_data): Likewise.
14723
14724 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14725
14726 * docs/grub.texi (Platform limitations): New section.
14727 (Platform-specific operations): Likewise.
14728 * docs/grub-dev.texi (Porting): Likewise.
14729
14730 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14731
14732 IEEE1275 disk write support.
14733
14734 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14735 const void *.
14736 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14737 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14738 and seek loginc to ...
14739 (grub_ofdisk_prepare): ... here.
14740 (grub_ofdisk_write): Implement.
14741
14742 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 ARC disk write support.
14745
14746 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14747 (reopen): New argument writable. All users updated.
14748 Handle required access mode.
14749 (grub_arcdisk_write): Implement.
14750 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14751 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14752
14753 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14756 (read_sblock): Don't attempt to read superblocks outside the disk size.
14757
14758 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14761 first superblock to find the second one when possible.
14762
14763 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14764
14765 * util/grub-install.in: Fix an ARC bug.
14766 Print a warning if no platform-specific setup is available.
14767
14768 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14769
14770 Use static allocation rather than scratch pointer in reed_solomon.
14771 It decreases its size significantly and avoids a variable in .text.
14772
14773 * grub-core/lib/reed_solomon.c (scratch): Removed.
14774 (chosenstat): New const or static array.
14775 (sigma): Likewise.
14776 (errpot): Likewise.
14777 (errpos): Likewise.
14778 (sy): Likewise.
14779 (mstat): Likewise.
14780 (errvals): Likewise.
14781 (eqstat): Likewise.
14782 (pol_evaluate): Replace x with log_x argument. All users updated.
14783 (syndroms): Removed.
14784 (gauss_solve): Use statically allocated arrays.
14785 (rs_recover): Likewise.
14786 Calculate syndroms directly.
14787 (decode_block): Use statically allocated arrays.
14788 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14789 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14790
14791 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 Eliminate fixed limit on reed solomon decoder length.
14794
14795 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14796 rather than hardcoding the address.
14797 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14798 no_reed_solomon_length.
14799 Move gate_a20 to no-reed-solomon part.
14800 Don't force a particular size of no reed-solomon part.
14801 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14802 Removed.
14803 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14804 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14805
14806 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 * grub-core/commands/wildcard.c (match_files): Handle filenames
14809 without explicit device.
14810 (wildcard_expand): Don't add explicit device if not already present.
14811 * tests/grub_script_echo1.in: Add a new expansion test.
14812
14813 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 Replace single-linked with double-linked lists. It results in more
14816 compact and more efficient code.
14817
14818 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14819 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14820 (grub_list_remove): Moved from here ...
14821 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14822 (grub_prio_list_insert): Set prev.
14823 * include/grub/list.h (grub_list): Add prev. All users updated.
14824
14825 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14826
14827 Handle newer autotools. Add some missing quotes while on it.
14828
14829 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14830 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14831 (pkgdata_DATA): ... here.
14832 * Makefile.util.def (update-grub_lib): Removed.
14833 * conf/Makefile.common (pkglib_DATA): Removed.
14834 (pkglib_SCRIPTS): Likewise.
14835 (pkgdata_DATA): New variable.
14836 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14837 needed.
14838 Add missing quotes.
14839 Remove unused variable while on it.
14840 * tests/util/grub-shell.in: Likewise.
14841 * util/grub-install.in: Likewise.
14842 * util/grub-mkconfig.in: Likewise.
14843 * util/grub-mknetdir.in: Likewise.
14844 * util/grub-mkrescue.in: Likewise.
14845 * util/grub-mkstandalone.in: Likewise.
14846 * util/grub.d/00_header.in: Likewise.
14847 * util/grub.d/10_hurd.in: Likewise.
14848 * util/grub.d/10_illumos.in: Likewise.
14849 * util/grub.d/10_kfreebsd.in: Likewise.
14850 * util/grub.d/10_linux.in: Likewise.
14851 * util/grub.d/10_netbsd.in: Likewise.
14852 * util/grub.d/10_windows.in: Likewise.
14853 * util/grub.d/20_linux_xen.in: Likewise.
14854 * util/grub.d/30_os-prober.in: Likewise.
14855 * util/update-grub_lib.in: Removed.
14856
14857 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14858
14859 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14860 a workaround for intel problem.
14861
14862 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14863 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14864 2012-01-23 pfsmorigo
14865
14866 * util/grub-install.in: Support dd'in into PreP partition.
14867 * util/grub-probe.c (probe): Support discovering partition type.
14868 (main): Support -t msdos_parttype.
14869
14870 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14871
14872 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14873 infinite recursion using counter.
14874 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14875 init to skip it if the magic check fails.
14876 (dec_stream_header): Init s->crc32.
14877
14878 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14879 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14880 2012-01-22 Richard Laager <rlaager@wiktel.com>
14881
14882 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14883 All users updated.
14884 (find_bestub): Determine correct size.
14885 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14886 (scan_disk): Align the size down.
14887 Call check pool before find_bestub to have ashift.
14888
14889 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14892 dprintf in no-malloc zone.
14893
14894 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14895
14896 * configure.ac: Add back in test for limits.h.
14897
14898 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14899
14900 Support 4K-sector NTFS.
14901
14902 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14903 (grub_ntfs_data): Remove blocksize.
14904 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14905 Remove data argument. All users updated.
14906
14907 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14910 being in .text to avoid dprel references.
14911 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14912 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14913 (grub_arch_highmemsize): Likewise.
14914 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14915 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14916 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14917
14918 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14919
14920 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14921
14922 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14923 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14924
14925 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14926
14927 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14928 GRUB_UTIL.
14929 (grub_set_datetime_cmos): Likewise.
14930
14931 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 Make XZ compression parameters dependent on target and not host CPU.
14934
14935 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14936 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14937
14938 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14939
14940 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14941 set but not used variable.
14942
14943 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14944
14945 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14946 created when no uuid support is compiled into mkfs.reiser.
14947
14948 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14951 (utf8_to_macroman): Do the opposite.
14952 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14953
14954 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * configure.ac: Refise build qemu_mips w/o unifont.
14957
14958 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 Eliminate grub_min/grub_max prone to overflow usage.
14961
14962 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14963 (poll_nonroot_hub): Likewise.
14964 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14965 (grub_affs_label): Likewise.
14966 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14967 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14968 (grub_hfs_label): Likewise.
14969 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14970 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14971 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14972 (zap_leaf_array_get): Likewise.
14973 (dnode_get_path): Likewise.
14974 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14975 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14976 * grub-core/script/execute.c (grub_script_break): Likewise.
14977 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14978 grub_max.
14979 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14980 * include/grub/misc.h (grub_min): Removed.
14981 (grub_max): Likewise.
14982
14983 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14984
14985 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14986 direct.inode = 0.
14987
14988 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14989
14990 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14991
14992 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14993
14994 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14995
14996 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14999 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15000
15001 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15004 rather than a hack for grub_strncasemap.
15005
15006 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15007
15008 Support multiple initrds
15009 Note: part of this was accidently committed in r3739.
15010
15011 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15012 initrd.
15013 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15014 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15015 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15016 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15017 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15018
15019 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15022 disks with unknown size.
15023 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15024
15025 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15026
15027 Remove defines pertaining to arbitrary limits not affecting GRUB
15028 anymore.
15029
15030 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15031 (EXT2_MAX_SYMLINKCNT): Likewise.
15032 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15033 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15034 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15035 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15036 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15037 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15038 (DN_MAX_OBJECT_SHIFT): Likewise.
15039 (DN_MAX_OFFSET_SHIFT): Likewise.
15040 (DN_MAX_OBJECT): Likewise.
15041 (DNODES_PER_LEVEL_SHIFT): Likewise.
15042 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15043 (SPA_MAXBLOCKSIZE): Likewise.
15044 (SPA_BLOCKSIZES): Likewise.
15045 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15046 (MZAP_MAX_BLKSZ): Likewise.
15047
15048 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15051 handle NULL appropriately.
15052 Remove MIN.
15053
15054 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15055
15056 Fix efiemu.
15057
15058 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15059 cpu/types.h.
15060 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15061 * configure.ac: Fix efiemu check.
15062
15063 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15066 grub_probe.
15067 Reported by: adamwill
15068
15069 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15070
15071 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15072
15073 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 Fix handling of wide characters in gfxterm.
15076
15077 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15078 (clear_char): Likewise.
15079 (paint_char): Skip code == NULL chars.
15080 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15081
15082 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15083
15084 * grub-core/normal/charset.c: Move comment to right place.
15085
15086 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15087
15088 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15089 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15090 (grub_affs_mount): Revert the correct version checking.
15091
15092 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15093
15094 * docs/grub.texi (Unicode): Mention several other unsupported features.
15095
15096 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15099 case statements as compile-time one.
15100 (direct_read): Prevent spurious warnings.
15101 (grub_squash_read_data): Likewise.
15102
15103 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15104
15105 Various squash4 fixes and LZO and XZ support.
15106
15107 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15108 Add xzembed source files.
15109 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15110 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15111 (grub_squash_inode): New subtype long_dir.
15112 (SQUASH_TYPE_LONG_DIR): New inode type.
15113 (COMPRESSION): New enum.
15114 (XZBUFSIZ): New const.
15115 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15116 (read_chunk): Use data->decompress.
15117 (zlib_decompress): New function.
15118 (lzo_decompress): Likewise.
15119 (xz_decompress): Likewise.
15120 (squash_mount): Set new data fields.
15121 (grub_squash_iterate_dir): Handle long dir.
15122 (squash_unmount): Free xzdec and xzbuf.
15123 (grub_squash_open): Check ino type.
15124 (direct_read): Stylistic fixes. Use data->decompress.
15125 (grub_squash_read_data): Likewise.
15126 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15127 (get_byte): Likewise.
15128 (grub_zlib_disk_read): Removed.
15129 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15130 (GRUB_POSIX_BOOL_DEFINED): New define.
15131 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15132 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15133 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15134 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15135
15136 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15137
15138 Don't override more informative errors.
15139
15140 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15141 * grub-core/font/font.c (open_section): Likewise.
15142 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15143 filename. Don't override errors.
15144 (grub_cmd_openbsd_ramdisk): Don't override errors.
15145 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15146 (grub_cmd_initrd): Likewise.
15147 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15148 (grub_cmd_initrd): Likewise.
15149 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15150 (grub_cmd_linux): Likewise.
15151 (grub_cmd_initrd): Likewise.
15152 (grub_cmd_payload): Likewise.
15153 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15154 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15155 (grub_cmd_module): Likewise.
15156 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15157 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15158 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15159 (grub_cmd_xnu_mkext): Likewise.
15160 (grub_cmd_xnu_ramdisk): Likewise.
15161 (grub_xnu_check_os_bundle_required): Likewise.
15162 (grub_xnu_load_kext_from_dir): Likewise.
15163 (grub_cmd_xnu_kextdir): Likewise.
15164 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15165
15166 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15169 as 1024 in block size field. Found on one of my test images.
15170 Small optimisation while on it.
15171
15172 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15175 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15176 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15177 performance fixes while on it.
15178 (grub_sfs_close): Fix memory leak while on it.
15179 (grub_sfs_label): Convert Latin1 to UTF-8.
15180
15181 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15184 space to avoid overflows.
15185 (grub_hfs_label): Convert from macroman to UTF-8.
15186
15187 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15190
15191 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15194
15195 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15196
15197 * unicode: Import Unicode 6.0 data.
15198
15199 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15200
15201 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15202 outside of range.
15203
15204 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15205
15206 Avoid cutting in the middle of UTF-8 character.
15207
15208 * include/grub/charset.h (grub_getend): New function.
15209 * grub-core/script/function.c (grub_script_function_find): Use
15210 grub_getend.
15211 * grub-core/normal/completion.c (add_completion): Likewise.
15212
15213 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15216 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15217 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15218 (GRUB_UNICODE_TAG_END): Likewise.
15219 (GRUB_UNICODE_LAST_VALID): Likewise.
15220
15221 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15222
15223 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15224 len and make it smaller. All users updated.
15225 * util/import_unicode.py: Put length and not end character.
15226 Check length.
15227
15228 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15229
15230 Make better Unicode-compliant and unify some UTF-8 code pathes.
15231
15232 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15233 valid character.
15234 (grub_is_valid_utf8): Use grub_utf8_process.
15235 Check resulting code range.
15236 (grub_utf8_to_ucs4): Use grub_utf8_process.
15237 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15238 valid character.
15239
15240 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15241
15242 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15243
15244 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * docs/grub.texi (Filesystems): Mention AFS.
15247
15248 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * docs/grub.texi (Filesystems): Clarify restrictions.
15251 (Regexp): Mention non-Unicode regexp behaviour.
15252 (Other): Mention non-Unicode matching behaviour.
15253
15254 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15255
15256 Make HFS implementation use MacRoman.
15257
15258 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15259 (macroman): New const array.
15260 (macroman_to_utf8): New function.
15261 (utf8_to_macroman): Likewise.
15262 (grub_hfs_find_dir): Use utf8_to_macroman.
15263 (grub_hfs_dir): Use macroman_to_utf8.
15264 Set case_insensitive.
15265
15266 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15267
15268 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15269
15270 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 Integrate hints into autogeneration scripts.
15273
15274 * docs/grub.texi (Filesystems): Add a hostdisk example.
15275 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15276 (grub-probe): Add ofpath.
15277 * gentpl.py: Remove group nosparc64.
15278 * grub-core/commands/search.c (cache_entry): New struct.
15279 (cache): New var.
15280 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15281 * grub-core/commands/search_wrap.c (options): Add platform-specific
15282 hint options.
15283 (grub_cmd_search): Handle platform-specific hints.
15284 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15285 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15286 (grub_util_biosdisk_data): Likewise.
15287 (grub_util_biosdisk_open): Set device_map.
15288 (read_device_map): Handle "" as indication of no map.
15289 Set device_map.
15290 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15291 (grub_util_biosdisk_get_compatibility_hint): New function.
15292 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15293 * include/grub/emu/hostdisk.h
15294 (grub_util_biosdisk_get_compatibility_hint): New proto.
15295 * util/grub-install.in: Don't call grub-mkdevicemap.
15296 Add platform-specific hint to load.cfg.
15297 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15298 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15299 hints. Set root preliminary to compatibility hint, not to OS name.
15300 * util/grub-probe.c (PRINT_*): Add hints.
15301 (print): Make static.
15302 (escape_of_path): New function.
15303 (guess_bios_drive): Likewise.
15304 (guess_efi_drive): Likewise.
15305 (guess_baremetal_drive): Likewise.
15306 (print_full_name): Likewise.
15307 (probe): Handle hints.
15308 (main): Likewise.
15309 * util/ieee1275/devicemap.c: Removed.
15310 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15311 updated.
15312 (grub_util_devname_to_ofpath): Return NULL on failure.
15313
15314 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15315 resource leak.
15316 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15317
15318 * po/POTFILES.in: Regenerated.
15319
15320 Allow purely long options
15321
15322 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15323 (SHORT_ARG_USAGE): Likewise.
15324 (grub_arg_show_help): Compare opt with help_options.
15325 (parse_option): Receive opt as argument. If makes big simplificatons.
15326 All users updated
15327
15328 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15331 Restructure to avoid warning.
15332
15333 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15334
15335 * util/grub-install.in: Account for possible escaped comma in device
15336 name.
15337
15338 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15339
15340 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15341 channel.
15342
15343 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15344
15345 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15346 allocation and zero-setting.
15347 (grub_ieee1275_get_devname): Check that alias is complete.
15348
15349 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15352 unaligned segments.
15353
15354 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15355
15356 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15357 prefix.
15358 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15359 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15360 Add ieee1275 prefix.
15361
15362 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15363
15364 * docs/grub.texi (Filesystems): Update.
15365
15366 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 Support odc, newc and bigendian cpio formats.
15369
15370 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15371 * grub-core/Makefile.core.def (newc): New module.
15372 (odc): Likewise.
15373 (cpio_be): Likewise.
15374 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15375 (MAGIC): Likewise.
15376 (MAGIC2): Likewise.
15377 (head) [MODE_ODC]: Adapt for the format.
15378 (head) [MODE_NEWC]: Likewise.
15379 (head) [!MODE_*]: Write fields of interest as arrays.
15380 (MAGIC_USTAR): Removed.
15381 (read_number) [MODE_NEWC]: Change to hex.
15382 (read_number) [!MODE_*]: Parse binary arrays.
15383 (grub_cpio_find_file): Factor out the code for better structure and
15384 always use read_number.
15385 (grub_cpio_mount): Use MAGIC and MAGIC2.
15386 (grub_cpio_dir): Exit on first hook non-0 return.
15387 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15388 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15389 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15390 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15391 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15392 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15393 * grub-core/fs/newc.c: New file.
15394 * grub-core/fs/odc.c: Likewise.
15395 * grub-core/fs/cpio_be.c: Likewise.
15396
15397 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15398
15399 Fix handling of tar numbers occupying the whole field.
15400
15401 * grub-core/fs/cpio.c (read_number): New function.
15402 (grub_cpio_find_file): Use read_number instead of strtoull.
15403
15404 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15405
15406 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15407 occupying the whole field size.
15408
15409 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15410
15411 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15412
15413 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15416
15417 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15418
15419 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15420 TARGET_IMG_LDFLAGS.
15421
15422 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15423
15424 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15425 (mountinfo_entry): Increase the field size to take escaping into
15426 account.
15427 (find_root_device_from_libzfs): Add one byte to size of strings for
15428 security.
15429
15430 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15433 an assert.
15434 * util/grub-setup.c (setup): Likewise.
15435
15436 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15439 _LzmaDecodeA.
15440
15441 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15442
15443 * docs/grub.texi (Internationalisation): New section.
15444
15445 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15446
15447 * docs/grub.texi (Loopback booting): New section.
15448
15449 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15450
15451 * util/grub-mkstandalone.in: Fix minor typo errors.
15452
15453 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15456
15457 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15458 net/icmp.c and net/icmp6.c.
15459 (http): New module.
15460 (priority_queue): Likewise.
15461 * grub-core/io/bufio.c: Rewritten.
15462 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15463 TYPE_WITH_CONFIGFILE_OPTION.
15464 (legacy_commands): Add bootp and dhcp.
15465 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15466 (grub_legacy_parse): Likewise.
15467 * grub-core/lib/priority_queue.c: New file.
15468 * grub-core/net/arp.c: Add missing license header.
15469 (arp_find_entry): Removed.
15470 (arp_find_entry): Likewise.
15471 (grub_net_arp_resolve): Rename to ...
15472 (grub_net_arp_send_request): ...this.
15473 (grub_net_arp_receive): New card argument.
15474 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15475 Set router and DNS server.
15476 (grub_net_configure_by_dhcp_ack): Handle routing information.
15477 (grub_cmd_bootp): Set checksum.
15478 (grub_bootp_init): Remove net_dhcp.
15479 * grub-core/net/dns.c: New file.
15480 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15481 completion.
15482 (get_card_packet): Handle allocation.
15483 (grub_efinet_findcards): Set mtu.
15484 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15485 (get_card_packet): Handle allocation.
15486 (emucard): Set mtu.
15487 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15488 (GRUB_MOD_INIT): Set mtu.
15489 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15490 mtu.
15491 (get_card_packet): Handle allocation.
15492 (grub_ofnet_findcards): Set mtu.
15493 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15494 assert.
15495 (grub_net_recv_ethernet_packet): Handle IPv6.
15496 * grub-core/net/http.c: New file.
15497 * grub-core/net/icmp.c: Likewise.
15498 * grub-core/net/icmp6.c: Likewise.
15499 * grub-core/net/ip.c (ip6addr): New type.
15500 (ip6hdr): Likewise.
15501 (reassemble): Likewise.
15502 (cmp): New function.
15503 (reassembles): New variable.
15504 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15505 (id): New variable.
15506 (send_fragmented): New function.
15507 (grub_net_send_ip_packet): Rename to ...
15508 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15509 Handle non-UDP.
15510 (grub_net_recv_ip_packets): Rename to ...
15511 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15512 (free_rsm): New function.
15513 (free_old_fragments): Likewise.
15514 (grub_net_recv_ip4_packets): New function.
15515 (grub_net_send_ip6_packet): Likewise.
15516 (grub_net_send_ip_packet): Likewise.
15517 (grub_net_recv_ip6_packets): Likewise.
15518 (grub_net_recv_ip_packets): Likewise.
15519 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15520 (LINK_LAYER_CACHE_SIZE): New const.
15521 (link_layer_find_entry): New function.
15522 (grub_net_link_layer_add_address): Likewise.
15523 (grub_net_link_layer_resolve_check): Likewise.
15524 (grub_net_link_layer_resolve): Likewise.
15525 (grub_net_ipv6_get_slaac): Likewise.
15526 (grub_net_ipv6_get_link_local): Likewise.
15527 (grub_cmd_ipv6_autoconf): Likewise.
15528 (parse_ip): Handle one number representation.
15529 (parse_ip6): New functoion.
15530 (match_net): Handle IPv6.
15531 (grub_net_resolve_address): Handle IPv6 and DNS.
15532 (grub_net_resolve_net_address): Handle IPv6.
15533 (route_cmp): New function.
15534 (grub_net_route_address): Find best route.
15535 (grub_net_addr_to_str): Handle IPv6.
15536 (grub_net_addr_cmp): New function.
15537 (grub_net_add_addr): Register local route.
15538 (print_net_address): Handle net address.
15539 (grub_net_poll_cards): Retransmit TCP.
15540 (grub_net_poll_cards_idle_real): Likewise.
15541 (have_ahead): New function.
15542 (grub_net_seek_real): Use underlying seek.
15543 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15544 * grub-core/net/tcp.c: New file.
15545 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15546 (cmp): New function.
15547 (ack): Likewise.
15548 (tftp_receive): Handle unordered input.
15549 (destroy_pq): New function.
15550 (tftp_close): Close pq.
15551 * grub-core/net/udp.c: Put missing license header.
15552 (grub_net_udp_socket): New function.
15553 (udp_socket_register): Likewise.
15554 (grub_net_udp_close): Likewise.
15555 (grub_net_recv_udp_packet): Check checksum.
15556 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15557 * include/grub/misc.h (grub_memchr): New function.
15558 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15559 (grub_net_card_driver): Return buf in recv.
15560 (grub_net_slaac_mac_list): New struct.
15561 (grub_network_level_protocol_id): Add ipv6.
15562 (grub_net_network_level_addr): Likewise.
15563 (grub_net_network_level_net_addr): Likewise.
15564 (grub_net_app_protocol): Add seek.
15565 (grub_net_socket): Removed.
15566 (grub_net_sockets): Likewise.
15567 (grub_net_socket_register): Likewise.
15568 (grub_net_socket_unregister): Likewise.
15569 (FOR_NET_SOCKETS): Likewise.
15570 (grub_net_add_addr): Add const.
15571 (GRUB_NET_BOOTP_*): New enum.
15572 (grub_net_addr_cmp): New proto.
15573 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15574 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15575 (grub_net_hwaddr_to_str): NEw proto.
15576 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15577 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15578 (grub_dns_init): New proto.
15579 (grub_dns_fini): Likewise.
15580 (grub_net_tcp_retransmit): Likewise.
15581 (grub_net_link_layer_add_address): Likewise.
15582 (grub_net_link_layer_resolve_check): Likewise.
15583 (grub_net_link_layer_resolve): Likewise.
15584 (grub_net_dns_lookup): Likewise.
15585 (grub_net_add_dns_server): Likewise.
15586 (grub_net_remove_dns_server): Likewise.
15587 (GRUB_NET_TRIES): New const.
15588 (GRUB_NET_INTERVAL): Likewise.
15589 * include/grub/net/arp.h: Mostly rewritten.
15590 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15591 * include/grub/net/ip.h: Mostly rewritten.
15592 * include/grub/net/netbuff.h: Indent.
15593 * include/grub/net/tcp.h: New file.
15594 * include/grub/net/udp.h: Mostly rewritten.
15595 * include/grub/priority_queue.h: New file.
15596 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15597 (grub_swap_bytes64_compile_time): Likewise.
15598 (grub_cpu_to_be16_compile_time): Likewise.
15599 (grub_cpu_to_be32_compile_time): Likewise.
15600 (grub_cpu_to_be64_compile_time): Likewise.
15601 (grub_be_to_cpu64_compile_time): Likewise.
15602
15603 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15606 UINT_TO_PTR with cast.
15607
15608 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15611 don't use them.
15612
15613 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15614
15615 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15616 already there.
15617
15618 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15619
15620 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15621 confusing ipxe.
15622
15623 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15624
15625 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15626 Add missing const attribute.
15627 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15628 Likewise.
15629 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15630 Likewise.
15631
15632 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15635 misaligned access.
15636 (serpent_setkey): Likewise.
15637 (serpent_encrypt_internal): Likewise.
15638 (serpent_decrypt_internal): Likewise.
15639 (serpent_encrypt): Don't put an alignment-increasing cast.
15640 (serpent_decrypt): Likewise.
15641 (serpent_test): Likewise.
15642
15643 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15644
15645 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15646
15647 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15650
15651 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15652 grub_addr_t casts.
15653 (PTR_TO_UINT64): Likewise.
15654 (PTR_TO_UINT32): Likewise.
15655
15656 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15659 because of stack.
15660 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15661 limit.
15662
15663 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15664
15665 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15666 text_width > available width a bit more gracefully.
15667
15668 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15671 current address calculation.
15672
15673 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15676 stack.
15677 (encode_block): Likewise.
15678
15679 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15680
15681 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15682 certainety.
15683
15684 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15685
15686 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15687 non-RS part to avoid RS messing with GDT.
15688 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15689 Increase to suit in realmode routines.
15690
15691 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15692
15693 * grub-core/kern/i386/realmode.S: Increase alignment.
15694 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15695
15696 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15697
15698 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15699 be deterministic.
15700 (syndroms): Compute 0 syndrom.
15701 (rs_recover): Use 0 syndrom.
15702
15703 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15704
15705 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15706
15707 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15708
15709 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15710 brackets.
15711
15712 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15713
15714 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15715 account.
15716 (get_top_pad): Likewise.
15717 (get_right_pad): Likewise.
15718 (get_bottom_pad): Likewise.
15719
15720 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15721
15722 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15723
15724 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15725
15726 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15727 attribute as the structure isn't guaranteed to be properly aligned.
15728 (grub_efi_pci_device_path): Likewise.
15729 (grub_efi_pccard_device_path): Likewise.
15730 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15731 specify the size of `memory_type'.
15732 (grub_efi_vendor_device_path): Likewise.
15733 (grub_efi_controller_device_path): Likewise.
15734 (grub_efi_acpi_device_path): Likewise.
15735 (grub_efi_expanded_acpi_device_path): Likewise.
15736 (grub_efi_atapi_device_path): Likewise.
15737 (grub_efi_scsi_device_path): Likewise.
15738 (grub_efi_fibre_channel_device_path): Likewise.
15739 (grub_efi_1394_device_path): Likewise.
15740 (grub_efi_usb_device_path): Likewise.
15741 (grub_efi_usb_class_device_path): Likewise.
15742 (grub_efi_i2o_device_path): Likewise.
15743 (grub_efi_mac_address_device_path): Likewise.
15744 (grub_efi_ipv4_device_path): Likewise.
15745 (grub_efi_ipv6_device_path): Likewise.
15746 (grub_efi_infiniband_device_path): Likewise.
15747 (grub_efi_uart_device_path): Likewise.
15748 (grub_efi_vendor_messaging_device_path): Likewise.
15749 (grub_efi_hard_drive_device_path): Likewise.
15750 (grub_efi_cdrom_device_path): Likewise.
15751 (grub_efi_vendor_media_device_path): Likewise.
15752 (grub_efi_file_path_device_path): Likewise.
15753 (grub_efi_protocol_device_path): Likewise.
15754 (grub_efi_piwg_device_path): Likewise.
15755 (grub_efi_bios_device_path): Likewise.
15756
15757 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15758
15759 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15760 (grub_ucs4_to_utf8_alloc): Likewise.
15761 (grub_ucs4_to_utf8): Likewise.
15762 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15763 (grub_ucs4_to_utf8_alloc): Likewise.
15764
15765 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15766
15767 AFFS never uses unicode.
15768
15769 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15770 (grub_latin1_to_utf8): New inline function.
15771 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15772
15773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15774
15775 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15776 overflow.
15777
15778 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15779
15780 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15781 (grub_squash_dirent_header): Likewise.
15782 (read_chunk): Don't double swap.
15783 (grub_squash_iterate_dir): Fix swap sizes.
15784
15785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15788
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15792 (grub_hfs_iterate_dir): Likewise.
15793
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 Fix video on platforms where unaligned access is forbidden.
15797 Make several optimisations while on it.
15798
15799 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15800 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15801 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15802 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15803 Disable.
15804 (grub_video_fbblit_replace_16bit_1bit):
15805 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15806 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15807 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15808 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15809 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15810 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15811 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15812 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15813 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15814 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15815 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15816 (grub_video_fbblit_replace_index_RGB888): Likewise.
15817 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15818 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15819 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15820 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15821 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15822 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15823 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15824 Disable.
15825 (grub_video_fbblit_blend_XXX565_1bit):
15826 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15827 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15828 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15829 void *.
15830 * grub-core/video/fb/video_fb.c (common_blitter)
15831 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15832 (grub_video_fb_create_render_target_from_pointer)
15833 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15834 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15835 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15836 definition.
15837 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15838
15839 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15840
15841 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15842 HH22 and HM10 relocations.
15843
15844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15847
15848 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15851 allocation succeeded.
15852
15853 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15856 argument a u8 pointer. All users updated.
15857 Handle unaligned buffers.
15858
15859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15860
15861 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15862 add_part to workaround compiler bug.
15863
15864 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15865
15866 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15867
15868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15871 Reserve alignment invariants.
15872 (grub_multiboot_load): Likewise.
15873 (retrieve_video_parameters): Likewise.
15874 (grub_multiboot_make_mbi): Likewise.
15875
15876 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15879 incorrect pointer.
15880
15881 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15882
15883 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15884 (grub_pata_pio_write): Likewise.
15885
15886 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15887
15888 Add noreturn attributes and remove unreachable code.
15889
15890 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15891 code.
15892 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15893 code. Mark as noreturn.
15894 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15895 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15896 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15897 unreachable code.
15898 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15899 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15900 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15901 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15902 * include/grub/kernel.h (grub_main): Mark as noreturn.
15903 * include/grub/reader.h (grub_rescue_run): Likewise.
15904
15905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15906
15907 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15908 redundant declaration.
15909
15910 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15911
15912 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15913 redundant declaration.
15914 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15915
15916 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15919 to ensure alignment.
15920 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15921 alignment. Ensure tmp alignment.
15922 (grub_cmd_hdparm): Ensure buf alignment.
15923 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15924 to ensure alignment.
15925 (grub_ata_dumpinfo): Ensure text alignment.
15926 (grub_atapi_identify): Preserve alignment invariant.
15927 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15928
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15930
15931 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15932 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15933 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15934 * include/grub/misc.h (grub_reboot)
15935 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15936 (grub_halt) [__mips__]: Likewise.
15937
15938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15941 Remove redundant declaration.
15942 (grub_mmap_get_post64): Likewise.
15943 (grub_mmap_get_upper): Likewise.
15944 (grub_mmap_get_lower): Likewise.
15945
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15949 uint32_t * to ensure alignment.
15950 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15951
15952 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15955 uint16_t * to ensure alignment.
15956 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15957 alignment.
15958
15959 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15962 to ensure alignment.
15963 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15964
15965 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15966
15967 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15968 Handle unaligned pointers.
15969 (u32at): Likewise.
15970 (u64at): Likewise.
15971 (fixup): Use byte access instead of v16at.
15972 (find_attr): Fix imporper usage of v32at.
15973 (read_data): Likewise.
15974 (list_file): Handle byte-swapping and unaligned strings.
15975 (grub_ntfs_label): Likewise.
15976
15977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15980 as it's not necessarily aligned.
15981
15982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15983
15984 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15985 redundant declaration.
15986 (grub_serial_init): Likewise.
15987 (grub_terminfo_init): Likewise.
15988
15989 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15990
15991 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15992 function.
15993 (ZAP_HASH_IDX): Likewise.
15994 (ZAP_LEAF_HASH_SHIFT): Likewise.
15995 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15996 (LEAF_HASH): Likewise.
15997 (ZAP_LEAF_NUMCHUNKS): Likewise.
15998 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15999 alignment invariants. Return pointer. All users updated.
16000 (ZAP_LEAF_ENTRY): Make into inline function.
16001 (NBBY): Removed.
16002 (xor): LIkewise.
16003 (xor_out): Use grub_crypto_xor.
16004 (dnode_get_path): Use grub_get_unaligned.
16005 (nvlist_find_value): Likewise.
16006 (grub_zfs_nvlist_lookup_uint64): Likewise.
16007 (grub_zfs_nvlist_lookup_string): Likewise.
16008 (get_nvlist_size): Likewise.
16009 (grub_zfs_open): Likewise.
16010 (fill_fs_info): Likewise.
16011 (grub_zfs_dir): Likewise.
16012 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16013 alignment invariants.
16014 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16015 necessarily aligned.
16016
16017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16020
16021 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16024 arithmetic to conserve alignment invariants.
16025
16026 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16027
16028 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16029 redundant declaration.
16030 (grub_efiemu_mm_obtain_request): Likewise.
16031 (grub_efiemu_prepare): Likewise.
16032
16033 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16034
16035 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16036 to match types.
16037
16038 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16039
16040 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16041 case of aunaligned recptr.
16042 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16043 alignment.
16044 (grub_hfsplus_btree_search): Handle unaligned index.
16045
16046 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16047
16048 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16049 to get freetag and skip.
16050
16051 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16052
16053 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16054 array.
16055 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16056 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16057
16058 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16061 name for checksum and fix allocation algorithm.
16062
16063 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * include/grub/types.h (grub_properly_aligned_t): New type.
16066 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16067 (grub_get_unaligned16): Add explicit casts.
16068 (grub_get_unaligned32): Likewise.
16069 (grub_get_unaligned64): Likewise.
16070 (grub_set_unaligned16): New function.
16071 (grub_set_unaligned32): Likewise.
16072
16073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16076
16077 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16080 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16081 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16082
16083 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16084
16085 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16086 conditionals.
16087
16088 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16089
16090 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16091 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16092
16093 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16094
16095 Unify and improve RAID and crypto xor.
16096
16097 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16098 changed to grub_crypto_xor
16099 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16100 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16101 Use bigger types when possible.
16102
16103 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16104
16105 * grub-core/disk/raid.c (scan_devices): Fix condition.
16106
16107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108
16109 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16110 Make name a const ptr.
16111
16112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16115 first argument a const pointer.
16116 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16118 proto.
16119 (grub_children_iterate): Likewise.
16120 (grub_machine_mmap_iterate): Remove redundant declaration.
16121
16122 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16123
16124 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16125 (grub_cmd_acpi) [!x86]: Disable EBDA.
16126
16127 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16128
16129 Enable UTF8 in gnulib regexp.
16130
16131 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16132 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16133 (isupper): Use grub_isupper.
16134 (isascii): New inline function.
16135 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16136 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16137 * grub-core/normal/charset.c (grub_utf8_process): New function.
16138 (grub_utf8_to_utf16): Use grub_utf8_process.
16139 (grub_encode_utf8_character): New function.
16140 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16141 * include/grub/charset.h (grub_utf8_process): New declaration.
16142 (grub_encode_utf8_character): Likewise.
16143 * include/grub/misc.h (grub_islower): New inline function.
16144 (grub_isupper): Likewise.
16145 (grub_strchrsub): Moved down to fix the definitions.
16146
16147 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16148
16149 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16150 specification.
16151
16152 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * include/grub/loader.h (grub_loader_register_preboot_hook):
16155 Use struct preboot * and not void * for handle. All users updated.
16156 (grub_loader_unregister_preboot_hook): Likewise.
16157
16158 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16159
16160 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16161 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16162 UTF-16-BE. All users updated.
16163 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16164 (grub_hfsplus_iterate_dir): Likewise.
16165 (grub_hfsplus_label): Likewise.
16166
16167 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16170
16171 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 Add missing const qualifiers.
16174
16175 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16176 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16177 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16178 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16179 (grub_lvm_check_flag): Likewise.
16180 * grub-core/efiemu/i386/coredetect.c
16181 (grub_efiemu_get_default_core_name): Likewise
16182 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16183 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16184 * grub-core/fs/ntfs.c (fixup): Likewise.
16185 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16186 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16187 (fzap_lookup): Likewise.
16188 (zap_lookup): Likewise.
16189 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16190 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16191 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16192 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16193 (grub_freebsd_add_meta_module): Likewise.
16194 (grub_cmd_freebsd_module): Likewise.
16195 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16196 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16197 (grub_xnu_writetree_get_size): Likewise.
16198 (grub_xnu_writetree_toheap_real): Likewise.
16199 (grub_xnu_find_key): Likewise.
16200 (grub_xnu_create_key): Likewise.
16201 (grub_xnu_create_value): Likewise.
16202 (grub_xnu_register_memory): Likewise.
16203 (grub_xnu_check_os_bundle_required): Likewise.
16204 (grub_xnu_scan_dir_for_kexts): Likewise.
16205 (grub_xnu_load_kext_from_dir): Likewise.
16206 * grub-core/normal/color.c (color_list): Likewise.
16207 * grub-core/normal/completion.c (current_word): Likewise.
16208 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16209 * grub-core/term/serial.c (grub_serial_find): Likewise.
16210 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16211 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16212 Likewise.
16213 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16214 (grub_freebsd_add_meta_module): Likewise.
16215 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16216 * include/grub/net.h (grub_net_card_driver): Likewise.
16217 (grub_net_card): Likewise.
16218 (grub_net_app_protocol): Likewise.
16219 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16220 * include/grub/serial.h (grub_serial_find): Likewise.
16221 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16222 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16223 (grub_xnu_create_value): Likewise.
16224 (grub_xnu_find_key): Likewise.
16225 (grub_xnu_scan_dir_for_kexts): Likewise.
16226 (grub_xnu_load_kext_from_dir): Likewise.
16227
16228 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16229 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16230 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16231 Moved from here ...
16232 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16233
16234 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16235
16236 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16237
16238 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16241 (read_device): Fix size calculation.
16242
16243 2011-11-25 Robert Millan <rmh@gnu.org>
16244
16245 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16246 (find_root_device_from_libzfs): Add zpool output parser to be used
16247 as fallback when libzfs isn't available.
16248
16249 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16250
16251 * po/Makefile.in.in: Add missing escape-continuation.
16252
16253 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16254
16255 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16256
16257 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16260
16261 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16262
16263 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16264
16265 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16268
16269 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16270
16271 * grub-core/lib/adler32.c: Add missing license specification.
16272 * grub-core/lib/crc64.c: Likewise.
16273 * grub-core/loader/i386/pc/plan9.c: Likewise.
16274 * grub-core/partmap/plan.c: Likewise.
16275
16276 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16277
16278 Add facility to debug GRUB with gdb under qemu.
16279
16280 * grub-core/gdb_grub.in: New file.
16281 * grub-core/gmodule.pl.in: Likewise.
16282 * grub-core/Makefile.core.def (gmodule.pl): New script.
16283 (gdb_grub): Likewise.
16284
16285 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16286
16287 * util/grub-mount.c (argp_parser): Accept relative pathes.
16288 * util/grub-fstest.c (argp_parser): Likewise.
16289
16290 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16291
16292 Plan9 support.
16293
16294 * Makefile.util.def (libgrubmods): Add
16295 grub-core/partmap/plan.c.
16296 * docs/grub.texi: Notice Plan9 support.
16297 * grub-core/Makefile.core.def (plan9): New module.
16298 (part_plan): Likewise.
16299 * grub-core/loader/i386/pc/plan9.c: New file.
16300 * grub-core/partmap/plan.c: Likewise.
16301 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16302 define.
16303 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16304 * include/grub/mm.h (grub_extend_alloc): New inline function.
16305
16306 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16307
16308 Make Reed-Solomon faster by using power of generator representation of
16309 GF(256)*.
16310
16311 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16312 (gf_double_t): Likewise.
16313 (gf_invert): Removed.
16314 (gf_powx): New array.
16315 (gf_powx_inv): Likewise.
16316 (scratch): Move higher.
16317 (gf_reduce): Removed.
16318 (gf_mul): Use powx.
16319 (gf_invert): Likewise.
16320 (init_inverts): Replaced with ...
16321 (init_powx): ...this. All users updated.
16322 (pol_evaluate): Replace multiplications with additions.
16323 (rs_encode): Likewise.
16324 (gauss_eliminate): Call gf_invert.
16325 (grub_reed_solomon_add_redundancy): Call init_powx.
16326 (grub_reed_solomon_recover): Call init_powx unconditionally.
16327
16328 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16331
16332 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16335 disk->partiton for safety.
16336
16337 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16338
16339 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16340 Fix a memory leak.
16341 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16342
16343 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16346
16347 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16348
16349 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16350
16351 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16352
16353 Fix spaces handling in proc/self/mountinfo.
16354
16355 * util/getroot.c (unescape): New function.
16356 (grub_find_root_device_from_mountinfo): Use unescape.
16357
16358 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16359
16360 Support ZFS embedding.
16361
16362 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16363 (grub_zfs_fs): Register grub_zfs_embed.
16364
16365 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 Fix MIPS compilation.
16368
16369 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16370 * include/grub/offsets.h: Rename decompressor fields from
16371 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16372 * util/grub-mkimage.c (image_targets): Use new names.
16373
16374 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16375
16376 Defer multiboot device parsing until we're in compressed part.
16377
16378 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16379 bsd_part. setdevice has fallen into disuse.
16380 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16381 (bsd_part): Likewise.
16382 (boot_dev): New variable.
16383 (multiboot_trampoline): Don't parse multiboot device.
16384 Pass multiboot device in %edx.
16385 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16386 grub_boot_device.
16387 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16388 Likewise.
16389 * grub-core/kern/i386/pc/startup.S: Save edx.
16390 (grub_boot_drive): Removed.
16391 (grub_install_dos_part): Likewise.
16392 (grub_install_bsd_part): Likewise.
16393 (grub_boot_device): New variable.
16394 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16395 (grub_install_bsd_part): Likewise.
16396 (grub_boot_drive): Likewise.
16397 (grub_boot_device): New variable.
16398 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16399 Removed.
16400 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16401 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16402 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16403 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16404 * util/grub-install.in: Remove redundant condition.
16405
16406 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16407
16408 Fix bug introduced by previous commit.
16409
16410 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16411
16412 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16413
16414 Use decompressors framework on i386-pc. It increases core size
16415 by 46 bytes but improves compatibility and maintainability.
16416
16417 * grub-core/Makefile.core.def (lzma_decompress): New image.
16418 (kernel): Add i386_pc_ldflags.
16419 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16420 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16421 to real_to_prot, prot_to_real and device info.
16422 * include/grub/offsets.h: Renamed decompressor offsets.
16423 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16424 (image_target_desc): Remove raw_size and rename decompressor fields.
16425 (compress_kernel): Handle lzma.
16426 (generate_image): Handle decompressors on i386-pc.
16427
16428 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16429
16430 * configure.ac: Add -fno-asynchronous-unwind-tables.
16431
16432 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16433
16434 Move assembly code to C by using intwrap. It increases core size
16435 by 88 bytes but improves compatibility and maintainability.
16436
16437 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16438 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16439 ... here. Translated to C.
16440 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16441 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16442 ... here. Translated to C.
16443 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16444 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16445 ... here. Translated to C.
16446 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16447 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16448 ... here. Translated to C.
16449 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16450 * grub-core/term/i386/pc/console.c (grub_console_cls):
16451 ... here. Translated to C.
16452 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16453 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16454 ... here. Translated to C.
16455 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16456 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16457 Translated to C.
16458 * grub-core/term/i386/pc/console.c (int10_9): New function.
16459 (grub_console_putchar): Likewise.
16460 * include/grub/i386/pc/console.h: Removed the not anymore shared
16461 functions.
16462
16463 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16464
16465 Move grub_chainloader_real_boot out of the kernel.
16466
16467 * grub-core/Makefile.am: Remove machine/loader.h.
16468 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16469 Removed.
16470 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16471 variable.
16472 (grub_relocator16_keep_a20_enabled): Likewise.
16473 (grub_relocator16_boot): Fill new variables.
16474 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16475 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16476 relocator.
16477 (grub_chainloader_unload): Likewise.
16478 (grub_chainloader_cmd): Likewise.
16479 * include/grub/i386/pc/loader.h: Removed.
16480 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16481 and esi. All initialisers updated.
16482
16483 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16484 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16485
16486 * Makefile.util.def (grub-mount): New util.
16487 * .bzrignore: Add grub-mount.
16488 * configure.ac: Check for fuse and enable grub-mount if available.
16489 * docs/man/grub-mount.h2m: New file.
16490 * util/grub-mount.c: Likewise.
16491
16492 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16493
16494 * grub-core/commands/efi/fixvideo.c: Gettextize.
16495 * grub-core/commands/hashsum.c: Likewise.
16496 * grub-core/commands/i386/cmostest.c: Likewise.
16497 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16498 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16499 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16500 * grub-core/commands/lsmmap.c: Likewise.
16501 * grub-core/commands/menuentry.c: Likewise.
16502 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16503 * grub-core/commands/setpci.c: Likewise.
16504 * grub-core/loader/i386/bsd.c: Likewise.
16505 * grub-core/loader/i386/linux.c: Likewise.
16506 * util/getroot.c: Likewise.
16507 * util/grub-editenv.c: Likewise.
16508 * util/grub-fstest.c: Likewise.
16509 * util/grub-mkfont.c: Likewise.
16510 * util/grub-mkimage.c: Likewise.
16511 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16512 * util/grub-pe2elf.c: Likewise.
16513 * util/grub-probe.c: Likewise.
16514 * util/grub-setup.c: Likewise.
16515 * util/ieee1275/ofpath.c: Likewise.
16516 * util/misc.c: Likewise.
16517 * util/raid.c: Likewise.
16518
16519 2011-11-11 Robert Millan <rmh@gnu.org>
16520
16521 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16522 __attribute__((unused)) from `os_dev', which *is* being used.
16523
16524 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16525
16526 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16527 forgotten define.
16528 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16529 GRUB_IA64_DL_GOT_ALIGN.
16530 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16531 GRUB_IA64_DL_TRAMP_ALIGN.
16532
16533 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16534
16535 Replace grub_fatal with normal errors in i386 linux loader.
16536
16537 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16538 (allocate_pages): Check find_efi_mmap_size return value.
16539 (grub_e820_add_region): Return error.
16540 (grub_linux_boot): Check mmap return value.
16541
16542 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16543
16544 * grub-core/commands/acpihalt.c: Gettextized.
16545 * grub-core/commands/cacheinfo.c: Likewise.
16546 * grub-core/commands/cmp.c: Likewise.
16547 * grub-core/commands/efi/loadbios.c: Likewise.
16548 * grub-core/commands/gptsync.c: Likewise.
16549 * grub-core/commands/ieee1275/suspend.c: Likewise.
16550 * grub-core/commands/legacycfg.c: Likewise.
16551 * grub-core/commands/memrw.c: Likewise.
16552 * grub-core/commands/minicmd.c: Likewise.
16553 * grub-core/commands/parttool.c: Likewise.
16554 * grub-core/commands/time.c: Likewise.
16555 * grub-core/commands/videoinfo.c: Likewise.
16556 * grub-core/disk/geli.c: Likewise.
16557 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16558 * grub-core/disk/luks.c: Likewise.
16559 * grub-core/disk/lvm.c: Likewise.
16560 * grub-core/font/font_cmd.c: Likewise.
16561 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16562 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16563 * grub-core/gfxmenu/view.c: Likewise.
16564 * grub-core/kern/emu/hostdisk.c: Likewise.
16565 * grub-core/kern/emu/main.c: Likewise.
16566 * grub-core/kern/emu/misc.c: Likewise.
16567 * grub-core/kern/emu/mm.c: Likewise.
16568 * grub-core/kern/mips/arc/init.c: Likewise.
16569 * grub-core/kern/mips/loongson/init.c: Likewise.
16570 * grub-core/kern/partition.c: Likewise.
16571 * grub-core/lib/i386/halt.c: Likewise.
16572 * grub-core/lib/mips/arc/reboot.c: Likewise.
16573 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16574 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16575 * grub-core/loader/i386/xnu.c: Likewise.
16576 * grub-core/loader/multiboot.c: Likewise.
16577 * grub-core/net/bootp.c: Likewise.
16578 * grub-core/net/net.c: Likewise.
16579 * grub-core/normal/term.c: Likewise.
16580 * grub-core/partmap/bsdlabel.c: Likewise.
16581 * grub-core/parttool/msdospart.c: Likewise.
16582 * grub-core/term/gfxterm.c: Likewise.
16583 * grub-core/term/terminfo.c: Likewise.
16584 * grub-core/video/i386/pc/vbe.c: Likewise.
16585 * util/grub-menulst2cfg.c: Likewise.
16586 * util/grub-mkdevicemap.c: Likewise.
16587 * util/grub-mklayout.c: Likewise.
16588 * util/grub-mkrelpath.c: Likewise.
16589 * util/grub-script-check.c: Likewise.
16590 * util/ieee1275/grub-ofpathname.c: Likewise.
16591 * util/resolve.c: Likewise.
16592
16593 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 Support %1$d syntax.
16596
16597 * tests/printf_unit_test.c: New file.
16598 * Makefile.util.def (printf_test): New test.
16599 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16600
16601 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16602
16603 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16604 fix.
16605
16606 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16609 dprintf.
16610 * grub-core/font/font.c (grub_font_load): Likewise.
16611
16612 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16613
16614 * util/grub-macho2img.c: Add comment concerning gettext.
16615 * grub-core/lib/legacy_parse.c: Likewise.
16616
16617 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16618
16619 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16620 (grub_xvasprintf): Likewise.
16621
16622 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16623
16624 Add const keyword to grub_env_get and gettextize week days.
16625
16626 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16627 (grub_read_hook_datetime): Return const char *.
16628 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16629 updated.
16630 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16631 Mark for gettext.
16632 (grub_get_weekday_name): Return const char *. Call gettext.
16633 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16634 char * and len as the argument. All users updated.
16635 (grub_script_argv_split_append): Receive const char *.
16636 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16637 * include/grub/env.h (grub_env_get): Likewise.
16638 (grub_env_read_hook_t): Return const char *.
16639 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16640 (grub_script_argv_split_append): Likewise.
16641
16642 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16645
16646 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16649 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16650
16651 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16654 Fix prototype.
16655
16656 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 Fix mips compilation.
16659
16660 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16661 normal decoder.
16662 (hashes): Use in embed decoder as well (for sizes).
16663 (dec_stream_header): Fix embed decompressor logic.
16664 (dec_stream_footer): Likewise.
16665
16666 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16669 an error and not a fatal on unrecognised relocation types.
16670
16671 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16674 Issue error rather than printf on unknown arguments.
16675
16676 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16679 Make buf a const.
16680
16681 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16684 Fix module name.
16685
16686 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16689 leftover debug printf.
16690
16691 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16694
16695 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16698 A stylistic fix.
16699
16700 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16701
16702 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16703
16704 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16705
16706 Allow all modules to perform serial IO
16707
16708 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16709 * include/grub/serial.h (grub_serial_port_configure): New inline
16710 function.
16711 (grub_serial_port_fetch): Likewise.
16712 (grub_serial_port_put): Likewise.
16713 (grub_serial_port_fini): Likewise.
16714 (grub_serial_find): New proto.
16715
16716 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 Put symlink at the end of the node and fix a potential
16719 memory corruption.
16720
16721 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16722 Make symlink into an array.
16723 (set_rockridge): Set have_symlink and alloc_dirents.
16724 (grub_iso9660_read_symlink): Use new layout.
16725 (grub_iso9660_iterate_dir): Fix memory corruption.
16726 Use new layout.
16727 (grub_iso9660_dir): Set have_symlink.
16728 (grub_iso9660_open): Likewise.
16729
16730 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16731
16732 Remove local keyword.
16733
16734 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16735 (version_test_gt): Likewise.
16736 (version_find_latest): Likewise.
16737 (gettext_printf): Likewise.
16738 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16739
16740 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16741
16742 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16743
16744 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16745
16746 Fix ZFS memory and resource leaks.
16747
16748 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16749 All users updated.
16750 Free type on exit.
16751 (fill_vdev_info): New parameter inserted. All users updated.
16752 (check_pool_label): Likewise.
16753 (scan_disk): Likewise.
16754 (scan_devices): Close non-inserted disks.
16755 (fzap_iterate): Free l.
16756 (unmount_device): Free children descripto memory.
16757
16758 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16761 argument (access out of bounds).
16762
16763 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16766 >= 6 drives.
16767
16768 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16769
16770 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16771 Fix declaration.
16772
16773 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16774
16775 Fix several memory leaks.
16776
16777 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16778 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16779 (grub_cpio_dir): Likewise.
16780 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16781 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16782 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16783 (grub_romfs_label): Likewise.
16784 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16785 (squash_unmount): New function.
16786 (grub_squash_dir): Fix memory leak.
16787 (grub_squash_open): Likewise.
16788 (grub_squash_read): Likewise.
16789 (grub_squash_mtime): Likewise.
16790 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16791 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16792 * util/grub-fstest.c (fstest): Likewise.
16793
16794 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16795
16796 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16797 avoid accessing beyond the array.
16798
16799 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16802
16803 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 Several AFFS fixes.
16806
16807 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16808 (GRUB_AFFS_FLAG_FFS): Removed.
16809 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16810 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16811 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16812 (grub_fshelp_node): Make block 32-bit.
16813 Add block_cache and last_block_cache.
16814 (grub_affs_read_block): Fill and use block cache.
16815 (grub_affs_read_file): Removed.
16816 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16817 boot block.
16818 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16819 safety.
16820 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16821 space.
16822 (grub_affs_close): Free block cache.
16823 (grub_affs_read): Use grub_fshelp_read_file directly.
16824
16825 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16826
16827 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16828 with no error set.
16829
16830 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16831
16832 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16833 used variable.
16834 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16835 Likewise.
16836
16837 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16840
16841 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16842 byteswap when needed.
16843
16844 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16845
16846 Fix FreeBSD compilation.
16847
16848 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16849 to avoid circular dependency.
16850 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16851 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16852 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16853
16854 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16855
16856 Fix ZFS crypto error types.
16857
16858 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16859 (grub_gcm_decrypt): Likewise.
16860 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16861 from PBKDF2.
16862
16863 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16864
16865 Illumos support.
16866
16867 * Makefile.util.def (10_illumos): New script.
16868 * configure.ac: Set COND_HOST_ILLUMOS.
16869 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16870 Support Illumos calls.
16871 (find_partition_start) [__sun__]: Likewise.
16872 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16873 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16874 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16875 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16876 device.
16877 * util/grub-probe.c (probe) [__sun__]: Do character check.
16878 * util/grub.d/10_illumos.in: New file.
16879
16880 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16881
16882 Support escaped commas in hostdisk.
16883
16884 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16885 (find_grub_drive): Use unescape_cmp.
16886 (make_device_name): Escape commas.
16887
16888 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16891
16892 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16895 variable.
16896
16897 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16898
16899 Support trampoline jumps on powerpc.
16900
16901 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16902 __ia64__ path.
16903 (grub_dl_load_segments): Set mod->sz.
16904 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16905 segments.
16906 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16907 (jump): Likewise.
16908 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16909 function.
16910 (trampoline): New struct.
16911 (trampoline_template): New const.
16912 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16913 * include/grub/dl.h (grub_dl): Add sz element.
16914 [__powerpc__]: Follow __ia64__.
16915 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16916 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16917 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16918 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16919
16920 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 ZFS crypto support.
16923
16924 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16925 * grub-core/Makefile.core.def (zfscrypt): New module.
16926 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16927 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16928 it. All users updated.
16929 (grub_zfs_decrypt): New var.
16930 (grub_zfs_load_key): Likewise.
16931 (zio_checksum_functions): Add SHA256+MAC.
16932 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16933 (zio_read): Handle encrypted blocks.
16934 (zap_verify): Remove incorrect check.
16935 (fzap_iterate): Handle non-standard fzap.
16936 (zap_iterate): Likewise.
16937 (zap_iterate_u64): New function.
16938 (dnode_get_fullpath): Load keys.
16939 * grub-core/fs/zfs/zfscrypt.c: New file.
16940 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16941 (grub_crypto_ecb_encrypt): Make input const.
16942 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16943 (grub_crypto_ecb_encrypt): Make input const.
16944 (GRUB_CIPHER_AES): New macro.
16945 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16946 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16947 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16948 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16949 prefix. All users updated.
16950 (grub_zfs_add_key): New proto.
16951 (grub_zfs_decrypt): Likewise.
16952 (grub_zfs_load_key): Likewise.
16953 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16954 * util/grub-fstest.c (options): Add -K option.
16955 (argp_parser): Likewise.
16956
16957 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16958
16959 Support zle compression on ZFS.
16960
16961 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16962 (decomp_table): Add zle.
16963 * include/grub/zfs/zio.h (zio_compress): Add zle.
16964
16965 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 Support BtrFS embedding.
16968
16969 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16970 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16971 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16972 * util/grub-setup.c (setup): Use fs embedding if available.
16973 Add additional sanity check.
16974
16975 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16976
16977 * util/grub-install.in: Fix condition for config_opt.
16978
16979 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Support third redundancy strip on raidz3.
16982
16983 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16984 Return error on singularity. All users updated.
16985 (read_device): Don't stop on 3rd failure on raidz3.
16986
16987 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 Support case-insensitive ZFS subvolumes.
16990
16991 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16992 All users updated.
16993 (zap_hash): Likewise.
16994 (name_cmp): New function.
16995 (zap_leaf_array_equal): New parameter case_insensitive.
16996 All users updated.
16997 (zap_leaf_lookup): Likewise.
16998 (fzap_lookup): Likewise.
16999 (zap_lookup): Likewise.
17000 (dnode_get_path): New parameter case_insensitive. Retrieve case
17001 sensitiviness of a volume. All users updated.
17002 (dnode_get_fullpath): New parameter case_insensitive.
17003 All users updated.
17004 (grub_zfs_dir): Set info.case_insensitiveness.
17005
17006 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17007
17008 Support second redundancy strip on raidz(2,3).
17009
17010 * grub-core/fs/zfs/zfs.c (powx): New array.
17011 (powx_inv): Likewise.
17012 (poly): New const.
17013 (xor_out): New function.
17014 (gf_mul): Likewise.
17015 (recovery): Likewise.
17016 (read_device): Use second redundancy strip.
17017
17018 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 Use a power of generator representation of GF(256) multiplication group
17021 to save space time and complexity.
17022
17023 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17024 (raid6_table2): Likewise.
17025 (powx): New array.
17026 (powx_inv): Likewise.
17027 (poly): New const.
17028 (grub_raid_block_mul): Replace with ...
17029 (grub_raid_block_mulx): ...this.
17030 (grub_raid6_init_table): Rewritten.
17031 (grub_raid6_recover): Use power of generator representation.
17032
17033 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17034
17035 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17036 for the right device.
17037
17038 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17041 expected by grub-mkimage and it's more clear since there is no implicit
17042 padding.
17043
17044 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17045
17046 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17047 disk.
17048 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17049
17050 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17051
17052 * util/grub-mkrescue.in: Fix handling xorriso option.
17053
17054 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17057 NULL.
17058
17059 2011-11-03 crocket <crockabiscuit@gmail.com>
17060
17061 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17062
17063 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 XZ CRC64 and SHA256 support.
17066
17067 * Makefile.util.def (libgrubmods): Add crc64.c.
17068 * grub-core/Makefile.core.def (crc64): New module.
17069 * grub-core/lib/crc64.c: New file.
17070 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17071 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17072 Fix the type.
17073 (MAX_HASH_SIZE): New define.
17074 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17075 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17076 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17077 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17078 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17079 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17080 Handle non-crc32 hashes.
17081 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17082 (dec_stream_header): Handle non-crc32 hashes.
17083 (dec_stream_footer): Likewise.
17084 (dec_block_header): Likewise.
17085 (dec_main): Likewise.
17086 (xz_dec_init): Likewise.
17087 (xz_dec_reset): Likewise.
17088 (xz_dec_end): Likewise.
17089 * util/import_gcry.py: Add CRC64 line.
17090
17091 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17094 as well.
17095
17096 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17097
17098 Make reiserfs label retrieval similar to other *_label functions.
17099
17100 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17101 (REISERFS_MAX_LABEL_LENGTH): Removed.
17102 (REISERFS_LABEL_OFFSET): Likewise.
17103 (grub_reiserfs_label): Rewritten.
17104
17105 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17106
17107 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17108 field.
17109
17110 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17113
17114 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17115
17116 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17117 drive failure on both raidz and raidz2.
17118
17119 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17120
17121 Fix RAIDZ(2) for >= 5 devices.
17122
17123 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17124 asize argument. All users updated.
17125
17126 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17127
17128 Fix RAIDZ(2).
17129
17130 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17131 (fill_vdev_info_real): Set ashift.
17132 (read_device): Rewrite RAIDZ part based on reverse engineering.
17133
17134 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17135
17136 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17137 don't report potentially unavialiable fields in debug output.
17138 (find_path): Fix double-free and memory leak.
17139
17140 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17141
17142 Read label on UFS1.
17143
17144 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17145 (grub_ufs_fs): Always set .label.
17146
17147 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17148
17149 Use shifts in UFS.
17150
17151 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17152 (grub_ufs_data): New field log2_blksz.
17153 (grub_ufs_read_file): Use shifts.
17154 (grub_ufs_mount): Check block size and logarithm it.
17155
17156 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17157
17158 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17159 long symlinks.
17160
17161 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17162
17163 Handle symlinks and long names on tar and cpio.
17164
17165 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17166 (ATTR_FILE): Likewise.
17167 (ATTR_DIR): Likewise.
17168 (ATTR_LNK): Likewise.
17169 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17170 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17171 L and K entries.
17172 (grub_cpio_mount): Zero-fill data.
17173 (handle_symlink): New function.
17174 (grub_cpio_dir): Handle symlinks.
17175 (grub_cpio_open): Likewise.
17176 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17177
17178 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17179
17180 Fix iso9660 filename limitations and fix memory leaks.
17181
17182 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17183 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17184
17185 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17186
17187 Fix JFS file name length limitations.
17188
17189 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17190 (grub_jfs_diropen): Fix maximum filename length.
17191 (grub_jfs_getent): Fix filename length.
17192 (grub_jfs_lookup_symlink): Fix size checks.
17193
17194 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17195
17196 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17197 string.
17198
17199 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 Leverage BFS implementation to read AFS.
17202
17203 * Makefile.util.def (libgrubmods): Add afs.c.
17204 * grub-core/Makefile.core.def (afs): New module
17205 * grub-core/fs/afs.c: New file.
17206 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17207
17208 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17209
17210 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17211
17212 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17213
17214 * grub-core/fs/bfs.c: Run indent.
17215
17216 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17217
17218 BFS implementation based on the specification.
17219
17220 * grub-core/fs/bfs.c: New file.
17221 * Makefile.util.def (libgrubmods): Add bfs.c.
17222 * grub-core/Makefile.core.def (bfs): New module.
17223
17224 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17225
17226 * util/grub-fstest.c (cmd_cp): Clarify error message.
17227 (cmd_cmp): Likewise.
17228
17229 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17230
17231 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17232 and befs_be.
17233
17234 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17235
17236 Remove afs and befs because of copyright problem.
17237
17238 * grub-core/fs/afs.c: Removed.
17239 * grub-core/fs/afs_be.c: Removed.
17240 * grub-core/fs/befs.c: Removed.
17241 * grub-core/fs/befs_be.c: Removed.
17242 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17243 * grub-core/Makefile.core.def (afs): Removed.
17244 (afs_be): Likewise.
17245 (befs): Likewise.
17246 (befs_be): Likewise.
17247
17248 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Prefer rockridge over Joliet.
17251
17252 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17253 to ...
17254 (set_rockridge): ... here.
17255 (grub_iso9660_mount): Check rockridge on the primary label when
17256 discovering. Ignore Joliet if Rockridge is present.
17257
17258 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 Use shifts in nilfs2.
17261
17262 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17263 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17264 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17265 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17266 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17267 (grub_nilfs2_entries_per_block): Replaced with ...
17268 (grub_nilfs2_log_entries_per_block_log): ... this.
17269 (grub_nilfs2_blocks_per_group): Replaced with ...
17270 (grub_nilfs2_blocks_per_group_log): ... this.
17271 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17272 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17273 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17274 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17275 (grub_nilfs2_palloc_entry_offset): Replaced ...
17276 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17277 (grub_nilfs2_dat_translate): Use shifts.
17278 (grub_nilfs2_read_inode): Likewise.
17279 (GRUB_MOD_INIT): Ensure that logs are correct.
17280
17281 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17282
17283 Use shifts in minix filesystem.
17284
17285 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17286 (GRUB_MINIX_ZONE2SECT): Likewise.
17287 (grub_minix_data): Replace block_size with log_block_size.
17288 (grub_minix_read_file): Use shifts.
17289 (grub_minix_mount): Check block size and take a logarithm.
17290
17291 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17292
17293 Use shifts in squash4.
17294
17295 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17296 (squash_mount): Check block size and take logarithm.
17297 (direct_read): Use shifts.
17298
17299 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17300
17301 Correct befs block counting logic.
17302
17303 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17304 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17305 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17306 (grub_afs_read_inode): Use block_shift.
17307 (RANGE_SHIFT): New definition.
17308 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17309 unexpected conditions, use shifts and appropriate types.
17310 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17311
17312 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 * grub-core/disk/raid.c (scan_devices): Check partition.
17315 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17316
17317 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17318
17319 Support BFS (befs) UUID.
17320
17321 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17322 (grub_afs_small_data_element_header): New struct.
17323 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17324 (grub_afs_read_attribute) [MODE_BFS]: New function.
17325 (grub_afs_iterate_dir): Allocate for complete inode.
17326 (grub_afs_mount): Likewise.
17327 (grub_afs_uuid) [MODE_BFS]: New function.
17328 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17329
17330 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17333 (zfs_unmount): Fix memory leak.
17334
17335 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17336
17337 Support NTFS reparse points.
17338
17339 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17340 (symlink_descriptor): New struct.
17341 (grub_ntfs_read_symlink): New function.
17342 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17343 (grub_ntfs_open): Likewise.
17344
17345 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17346
17347 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17348
17349 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 fstest xnu_uuid subcommand.
17352
17353 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17354 grub-core/commands/xnu_uuid.c.
17355 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17356 (fstest): Handle xnu_uuid.
17357 (options): Document xnu_uuid.
17358 (argp_parser): Parse xnu_uuid.
17359
17360 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17361
17362 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17363 -l argument. Add newline at the end if printing.
17364 (GRUB_MOD_INIT): Document -l.
17365
17366 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17367
17368 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17369
17370 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 ZFS multi-device and version 33 support.
17373
17374 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17375 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17376 (grub_zfs_data): Add multidev-ice-related fields.
17377 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17378 (dva_get_offset): Make dva const.
17379 (zfs_fetch_nvlist): New function.
17380 (fill_vdev_info_real): Likewise.
17381 (fill_vdev_info): Likewise.
17382 (check_pool_label): Likewise.
17383 (scan_disk): Likewise.
17384 (scan_devices): Likewise.
17385 (read_device): Likewise.
17386 (read_dva): Likewise.
17387 (zio_read_gang): Use read_dva.
17388 (zio_read_data): Likewise.
17389 (zap_leaf_lookup): Add missing endian conversion.
17390 (zap_verify): Add missing endian conversion. All users updated.
17391 (fzap_lookup): Likewise.
17392 (fzap_iterate): Likewise.
17393 (dnode_get_path): Handle SA bonus.
17394 (nvlist_find_value): Make input const. All users updated.
17395 (unmount_device): New function.
17396 (zfs_unmount): Use unmount_device.
17397 (zfs_mount): Use scan_disk.
17398 (zfs_mtime): New function.
17399 (grub_zfs_open): Handle system attributes.
17400 (fill_fs_info): Likewise.
17401 (grub_zfs_dir): Likewise.
17402 (grub_zfs_fs): Add mtime.
17403 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17404 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17405 (SA_MTIME_OFFSET): Likewise.
17406 (SA_SYMLINK_OFFSET): Likewise.
17407 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17408 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17409 (fstest): Support zfsinfo.
17410 (argp_parser): Likewise.
17411
17412 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17413
17414 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17415 error.
17416
17417 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17418
17419 ZFS fixes.
17420
17421 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17422 sharing the same block. Iterate over correct number of indices.
17423 (dnode_get_path): Handle symlinks correctly.
17424
17425 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17428
17429 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17430
17431 Read label on HFS+.
17432
17433 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17434 (grub_hfsplus_btree_search): Fix types.
17435 (grub_hfsplus_label): Implement.
17436
17437 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17438
17439 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17440
17441 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17442
17443 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17444
17445 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17446
17447 Fix symlink handling on iso9660.
17448
17449 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17450 All users updated.
17451 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17452 (grub_iso9660_read_symlink): Moved most of code ...
17453 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17454
17455 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17456
17457 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17458 Use union to avoid breaking strict-aliasing rules.
17459
17460 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 Support multi-extent iso files.
17463
17464 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17465 Add node.
17466 (grub_fshelp_node): Revamp. All users updated.
17467 (FLAG_*): New enum.
17468 (read_node): New function.
17469 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17470 All users updated.
17471 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17472 (get_node_size): New function.
17473 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17474 entries.
17475 Fix memory leak on . and ..
17476 (grub_iso9660_read): Use read_node.
17477 (grub_iso9660_close): Free node.
17478
17479 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17480
17481 Fix tar 4G limit and handle paths containing dot.
17482
17483 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17484 (canonicalize): New function.
17485 (grub_cpio_find_file): Use canonicalize. Store offs in
17486 grub_disk_addr_t.
17487 (grub_cpio_dir): Use grub_disk_addr_t.
17488 (grub_cpio_open): Likewise.
17489
17490 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17491
17492 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17493
17494 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17495 unused flags.
17496 (grub_squash_inode): Add long_file and block_size.
17497 (grub_squash_cache_inode): New struct.
17498 (grub_squash_dirent): Make types into enum.
17499 (SQUASH_TYPE_LONG_REGULAR): New type.
17500 (grub_squash_frag_desc): Add field size.
17501 (SQUASH_BLOCK_FLAGS): New enum.
17502 (grub_squash_data): Use grub_squash_cache_inode.
17503 (grub_fshelp_node): Make ino_chunk 64-bit.
17504 (read_chunk): Minor argument change. All users updated.
17505 (squash_mount): Use correct le_to_cpu.
17506 (grub_squash_open): Handle LONG_REGULAR.
17507 (direct_read): New function.
17508 (grub_squash_read_data): Handle blocks correctly.
17509
17510 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17511
17512 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17513
17514 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17515
17516 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17517
17518 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17519
17520 Fix 2G limit on ZFS.
17521
17522 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17523 types.
17524 (uberblock_verify): Likewise.
17525 (dmu_read): Likewise.
17526 (grub_zfs_read): Likewise. Remove invalid cast.
17527
17528 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17531 (grub_jfs_blkno): Fix incorrect shift.
17532 (grub_jfs_read_file): Use more appropriate types.
17533
17534 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 Support triple indirect on minix2 and minix3.
17537
17538 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17539 Declare triple_indir_zone.
17540 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17541 indirect.
17542
17543 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17544
17545 Minix FS fixes.
17546
17547 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17548 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17549 Rename ctime to mtime. All users updated.
17550 (grub_minix_get_file_block): Fix types and double indirect computations.
17551
17552 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17553
17554 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17555 if no label is found.
17556 (grub_fat_iterate_dir): Fix file size type.
17557 (grub_fat_iterate_dir): Likewise.
17558
17559 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17560
17561 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17562 save some space.
17563 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17564 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17565
17566 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17567
17568 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17569
17570 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * util/import_gcry.py: Accept space between # and include.
17573
17574 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17575
17576 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17577
17578 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17581
17582 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17583 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17584 yylex_strncpy.
17585 * grub-core/script/yylex.l: Add fine-grained #pragma.
17586
17587 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17590 New inline function.
17591 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17592 Likewise.
17593 (memset) [GRUB_UTIL]: Likewise.
17594 (memcmp) [GRUB_UTIL]: Likewise.
17595
17596 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17597
17598 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17599 inline function rather than a define.
17600
17601 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 * util/grub-setup.c: Add missing include.
17604
17605 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * util/ieee1275/grub-ofpathname.c: Add missing include.
17608
17609 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17610
17611 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17612 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17613 Likewise.
17614
17615 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17616
17617 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17618 grub_memcmp usage.
17619
17620 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17621
17622 * util/grub-install.in: Add datarootdir as per automake manual
17623 suggestion.
17624 * util/grub-mknetdir.in: Likewise.
17625
17626 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17627
17628 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17629 suggestion.
17630 * util/grub.d/10_kfreebsd.in: Likewise.
17631 * util/grub.d/10_linux.in: Likewise.
17632 * util/grub.d/10_netbsd.in: Likewise.
17633 * util/grub.d/10_windows.in: Likewise.
17634 * util/grub.d/20_linux_xen.in: Likewise.
17635
17636 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17637
17638 Remove redundant grub_kernel_image_size.
17639
17640 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17641 _edata and _start.
17642 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17643 the small code. It moves it only by few bytes but simplifies the code.
17644 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17645 _start.
17646 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17647 (grub_kernel_image_size): Removed.
17648 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17649 (grub_kernel_image_size): Removed.
17650 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17651 compiled with Apple toolchain.
17652 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17653 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17654 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17655 (grub_total_module_size): Likewise.
17656 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17657 Removed.
17658 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17659 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17660 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17661 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17662 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17663 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17664 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17665 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17666 Removed.
17667 (grub_total_module_size): Removed.
17668 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17669 (image_targets): Likewise.
17670 Set .compressed_size to no field on sparc.
17671 (generate_image): Remove kernel_image_size handling.
17672
17673 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17674
17675 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17676 NULL pointer dereference.
17677
17678 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17679
17680 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17681 done with a dedicated section.
17682
17683 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17684 Ensure the correct position of boot_path.
17685 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17686 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17687 other fields.
17688 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17689 * include/grub/boot.h: Removed. All references removed.
17690 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17691 Removed.
17692 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17693
17694 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17695
17696 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17697 name.
17698
17699 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17700
17701 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17702
17703 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17704
17705 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17706 Don't add the bogus brackets.
17707
17708 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17709
17710 ExFAT support.
17711
17712 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17713 * grub-core/Makefile.core.def (exfat): New module.
17714 * grub-core/fs/exfat.c: New file.
17715 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17716 (GRUB_FAT_ATTR_*): Make into an enum.
17717 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17718 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17719 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17720 (GRUB_FAT_MAXFILE): Removed.
17721 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17722 (grub_current_fat_bpb_t): New type.
17723 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17724 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17725 (grub_fat_dir_node_t): New type.
17726 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17727 (fat_log2) [MODE_EXFAT]: Removed.
17728 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17729 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17730 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17731 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17732 (grub_fat_label) [MODE_EXFAT]: New function.
17733 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17734 reserved_first_sector to 0.
17735
17736 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17737
17738 Move grub_reboot out of the kernel.
17739
17740 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17741 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17742 * grub-core/lib/efi/reboot.c: ... here.
17743 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17744 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17745 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17746 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17747 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17748 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17749 * grub-core/lib/ieee1275/reboot.c: ... here.
17750 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17751 * grub-core/lib/mips/arc/reboot.c: ... here.
17752 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17753 * grub-core/lib/mips/loongson/reboot.c: ...here.
17754 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17755 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17756 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17757 * include/grub/i386/reboot.h: New file.
17758 * include/grub/mips/loongson/ec.h: Fix includes.
17759 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17760 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17761 * grub-core/lib/i386/reboot.c: New file.
17762
17763 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17764
17765 Make grub_prefix into module to fix the arbitrary limit and save
17766 some space.
17767
17768 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17769 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17770 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17771 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17772 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17773 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17774 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17775 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17776 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17777 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17778 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17779 * include/grub/ia64/efi/kernel.h: Removed.
17780 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17781 (grub_prefix): Removed.
17782 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17783 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17784 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17785 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17786 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17787 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17788 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17789 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17790 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17791 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17792 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17793 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17794 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17795 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17796 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17797 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17798 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17799 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17800 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17801 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17802 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17803 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17804 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17805 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17806 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17807 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17808 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17809 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17810 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17811 from module.
17812 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17813 prefix_end.
17814 (image_targets): Likewise.
17815 (generate_image): Put prefix as a module.
17816
17817 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17818
17819 Replace grub_module_iterate with FOR_MODULES.
17820
17821 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17822 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17823 (grub_efi_modules_addr): ...this.
17824 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17825 (grub_efi_init): Set grub_modbase.
17826 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17827 (grub_modbase): New variable.
17828 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17829 (grub_modbase): New variable.
17830 (grub_machine_init): Set grub_modbase.
17831 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17832 (grub_modbase): New variable.
17833 (grub_machine_init): Set grub_modbase.
17834 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17835 (grub_modbase): New variable.
17836 (grub_machine_init): Set grub_modbase.
17837 * grub-core/kern/main.c (grub_module_iterate): Remove.
17838 (grub_modules_get_end): Use grub_modbase.
17839 (grub_load_modules): Use FOR_MODULES.
17840 (grub_load_config): Likewise.
17841 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17842 (grub_modbase): New variable.
17843 (grub_machine_init): Set grub_modbase.
17844 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17845 (grub_modbase): New variable.
17846 (grub_machine_init): Set grub_modbase.
17847 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17848 Removed.
17849 (grub_modbase): New variable.
17850 (grub_machine_init): Set grub_modbase.
17851 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17852 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17853 (grub_module_iterate): Likewise.
17854 (grub_modbase): New variable declaration.
17855 (FOR_MODULES): New macro.
17856
17857 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17858
17859 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17860 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17861
17862 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 Fix few obvious type discrepancies.
17865
17866 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17867 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17868 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17869 variable.
17870 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17871 and connected types.
17872 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17873 offset.
17874 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17875 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17876 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17877 and connected types.
17878
17879 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17880
17881 Fix python 3.x incompatibilities.
17882
17883 * gentpl.py: Put brackets around print strings.
17884 * util/import_gcry.py: Open explicitly as utf-8.
17885 Use in instead of has_key.
17886
17887 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17888
17889 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17890 (GRUB_XFS_INO_AGBITS): Make into inline function.
17891 (GRUB_XFS_INO_INOINAG): Likewise.
17892 (GRUB_XFS_INO_AG): Likewise.
17893 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17894 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17895 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17896 (GRUB_XFS_EXTENT_SIZE): Likewise.
17897 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17898 (GRUB_XFS_NEXT_DIRENT): Likewise.
17899 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17900 (grub_xfs_read_file): Fix offset type.
17901
17902 2011-10-15 Robert Millan <rmh@gnu.org>
17903
17904 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17905
17906 2011-10-15 Robert Millan <rmh@gnu.org>
17907
17908 Fix build problem on FreeBSD and GNU/kFreeBSD.
17909
17910 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17911
17912 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17913
17914 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17915
17916 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17917 types.
17918 (grub_hfsplus_btree_recoffset): Likewise.
17919 (grub_hfsplus_btree_recptr): Likewise.
17920 (grub_hfsplus_find_block): Likewise.
17921 (grub_hfsplus_btree_search): Likewise.
17922 (grub_hfsplus_read_block): Likewise.
17923 (grub_hfsplus_read_file): Likewise.
17924 (grub_hfsplus_mount): Likewise.
17925 (grub_hfsplus_btree_iterate_node): Likewise.
17926 (grub_hfsplus_btree_search): Likewise.
17927 (grub_hfsplus_iterate_dir): Likewise.
17928 (grub_hfsplus_read): A small code simplification.
17929
17930 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17931
17932 * grub-core/kern/emu/hostdisk.c
17933 (convert_system_partition_to_system_disk): Don't assume that children
17934 of mapper nodes are mapper nodes.
17935
17936 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17937
17938 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17939 * include/grub/misc.h (grub_isxdigit): New function.
17940 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17941 switched to grub_isxdigit.
17942 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17943 number starting with a letter.
17944
17945 2011-10-09 Robert Millan <rmh@gnu.org>
17946
17947 LVM support for FreeBSD and GNU/kFreeBSD.
17948
17949 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17950 GNU/kFreeBSD.
17951 (LVM_DEV_MAPPER_STRING): Move from here ...
17952 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17953 * util/getroot.c: Include `<grub/util/lvm.h>'.
17954 (grub_util_get_dev_abstraction): Enable
17955 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17956 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17957 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17958 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17959 support it.
17960 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17961 GNU/kFreeBSD.
17962 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17963 when LVM abstraction is required for ${GRUB_DEVICE}.
17964
17965 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17966
17967 Add support for LZO compression in GRUB:
17968 - import of minilzo library,
17969 - LZO decompression for btrfs,
17970 - lzop files decompression.
17971
17972 * grub-core/io/lzopio.c: New file.
17973 * grub-core/lib/adler32.c: Likewise.
17974 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17975 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17976 * grub-core/lib/minilzo/minilzo.c: Likewise.
17977 * grub-core/lib/minilzo/minilzo.h: Likewise.
17978 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17979 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17980 grub-core/lib/minilzo/minilzo.c to common.
17981 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17982 cflags in cppflags.
17983 * grub-core/Makefile.core.def (btrfs): Likewise.
17984 * grub-core/Makefile.core.def (lzopio): New module.
17985 (adler32): Likewise.
17986 * grub-core/fs/btrfs.c: Include minilzo.h.
17987 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17988 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17989 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17990 (grub_btrfs_lzo_decompress): New function.
17991 (grub_btrfs_extent_read): Add support for LZO compression type.
17992 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17993 (GRUB_USHRT_MAX): Likewise.
17994 (GRUB_UINT_MAX): Likewise.
17995 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17996 (UINT_MAX): Likewise.
17997 (CHAR_BIT): Likewise.
17998 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17999 grub-core/lib/posix_wrap/limits.h
18000 (UCHAR_MAX): Likewise.
18001 * include/grub/file.h (grub_file_filter_id): New compression filter
18002 GRUB_FILE_FILTER_LZOPIO.
18003 * include/grub/file.h (grub_file_filter_id): Set
18004 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18005 * include/grub/types.h (grub_get_unaligned16): New function.
18006 (grub_get_unaligned32): Likewise.
18007 (grub_get_unaligned64): Likewise.
18008 * util/import_gcry.py (cryptolist): Add adler32.
18009
18010 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
18011
18012 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18013 in perspective decreases the complexity of build system and fixes
18014 compilation right now.
18015
18016 2011-10-01 Ales Nesrsta <starous@volny.cz>
18017
18018 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18019 (fixed problem related to using UHCI with coreboot).
18020
18021 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18022
18023 * gentpl.py: Use Autogen macros so that the output template file
18024 (Makefile.tpl) size is reduced.
18025
18026 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
18027
18028 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18029 extra_dist.
18030
18031 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18032
18033 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18034 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18035
18036 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18037
18038 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18039 _fullpath.
18040
18041 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18042
18043 Remove extra declaration of sleep for mingw32.
18044
18045 * util/misc.c (sleep) [__MINGW32__]: Removed.
18046 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18047
18048 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18049
18050 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18051 type and packname.
18052 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18053 Resurrected.
18054 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18055 (grub_netbsd_btinfo_bootwedge): New struct.
18056 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18057 New function.
18058 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18059
18060 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18061
18062 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18063 loader.
18064
18065 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18066
18067 Fix incorrect identifiers in bash-completion.
18068
18069 * util/bash-completion.d/grub-completion.bash.in
18070 (_grub_mkpasswd-pbkdf2): Rename to ...
18071 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18072 (_grub_script-check): Rename to ...
18073 (_grub_script_check): ... this. All users updated.
18074
18075 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18076
18077 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18078 Return 0 if disk isn't biosdisk.
18079
18080 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18081
18082 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18083 on NetBSD.
18084 * Makefile.util.def (grub-fstest): Likewise.
18085
18086 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18087
18088 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18089 Get sector size from disk label.
18090
18091 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18092
18093 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18094 */README* as well as README*.
18095 Reported by: Axel Beckert.
18096
18097 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18098
18099 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18100 case of less than 256 MiB of RAM.
18101
18102 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18103
18104 * grub-core/commands/wildcard.c (make_regex): Handle @.
18105
18106 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18107
18108 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18109
18110 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18111
18112 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18113 AC_LANG_CONFTEST macros.
18114
18115 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18116
18117 Add grub-fstest option to uncompress data for commands.
18118
18119 * util/grub-fstest.c (uncompress): New var.
18120 (options): New option -u.
18121
18122 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18123
18124 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18125 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18126
18127 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18128
18129 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18130 file type was not recognized correctly (not gzip or corrupted).
18131
18132 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18133
18134 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18135 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18136
18137 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18138
18139 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18140 loongson.
18141 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18142 video_radeon_fuloong2e.
18143 * grub-core/video/radeon_fuloong2e.c: New file.
18144 * include/grub/video.h (grub_video_id_t): Add new ID
18145 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18146
18147 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18150 define.
18151 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18152 that PRID matches the detected subplatform and reset the subplatform
18153 if it doesn't.
18154
18155 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18156
18157 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18158
18159 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 Fix PCI iterating on functions >= 4.
18162
18163 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18164 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18165 Removed.
18166 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18167 (grub_pci_read): Fix bitmask.
18168 (grub_pci_read_word): Likewise.
18169 (grub_pci_read_byte): Likewise.
18170 (grub_pci_write): Likewise.
18171 (grub_pci_write_word): Likewise.
18172 (grub_pci_write_byte): Likewise.
18173
18174 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18175
18176 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18177 can still be specified in TARGET_CFLAGS)
18178
18179 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18180
18181 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18182
18183 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18184 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18185 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18186 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18187 (FULOONG): Rename to ...
18188 (FULOONG2F): ... this. All users updated.
18189 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18190 (machtype_fuloong2f_str): ... this.
18191 (machtype_fuloong2e_str): New string.
18192 Check for machtype_fuloong2e_str.
18193 * grub-core/loader/mips/linux.c (loongson_machtypes)
18194 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18195 * grub-core/term/serial.c (loongson_defserial)
18196 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18197 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18198 loongson_defserial.
18199 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18200 Rename to ...
18201 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18202 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18203 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18204 to IMAGE_FULOONG2F_FLASH. All users updated.
18205 (image_targets): Rename images.
18206 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18207
18208 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18209
18210 Make enable of disk cache statistics code configurable.
18211
18212 * configure.ac: --enable-cache-stats added.
18213 * config.h.in (DISK_CACHE_STATS): New define.
18214 * grub-core/Makefile.core.def (cacheinfo): New command.
18215 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18216 * grub-core/commands/cacheinfo.c: New file.
18217 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18218 moved to cacheinfo.c.
18219 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18220 debug code.
18221 * include/grub/disk.h: Likewise.
18222
18223 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18224
18225 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18226 * grub-core/Makefile.am: Likewise.
18227
18228 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18229
18230 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18231 non-zero pull.
18232
18233 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18234
18235 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18236 All users updated.
18237 (grub_jfs_lookup_symlink): Use correct starting inode.
18238
18239 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18240
18241 * util/grub-setup.c (main): Add missing gcry initialisation.
18242
18243 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18244
18245 Don't accept text modes on EFI when booting Linux.
18246
18247 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18248 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18249
18250 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18251 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18252
18253 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18254 use of "/path/.." as in grub-install for EFI as well as handling
18255 symlinks correctly.
18256 Fixes Debian bug #637768.
18257
18258 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18259
18260 * util/grub-probe.c: Remove duplicate #include.
18261
18262 2011-08-10 Robert Millan <rmh@gnu.org>
18263
18264 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18265
18266 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18267 function.
18268 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18269 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18270
18271 2011-08-03 Robert Millan <rmh@gnu.org>
18272
18273 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18274 la_array as packed.
18275 Reported by: Zachary Bedell
18276
18277 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18278
18279 * configure.ac: The Loongson port requires grub-mkfont due to its
18280 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18281 be built.
18282
18283 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18284
18285 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18286 processing arguments (otherwise help2man fails when GRUB has not yet
18287 been installed).
18288
18289 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18290
18291 New script grub-mkstandalone.
18292
18293 * Makefile.util.def (grub-mkstandalone): New script.
18294 * docs/man/grub-mkstandalone.h2m: New file.
18295 * util/grub-mkstandalone.in: Likewise.
18296
18297 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18298
18299 Support ATA disks with 4K sectors.
18300
18301 * include/grub/ata.h (grub_ata): New member log_sector_size.
18302 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18303 (grub_ata_identify): Read sector size.
18304 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18305
18306 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18307
18308 * util/grub-install.in: Don't use uhci outside of x86.
18309
18310 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18311
18312 * util/grub-mkrescue.in: Add missing quotes.
18313
18314 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18315
18316 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18317 dereference.
18318
18319 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18320
18321 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18322
18323 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18324
18325 * include/grub/video.h: add missing EXPORT_FUND on
18326 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18327
18328 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18329
18330 * include/grub/mips/kernel.h: Fix define conflict.
18331
18332 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18333
18334 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18335 all four ways.
18336
18337 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18338
18339 Preferred resolution detection for VBE.
18340
18341 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18342 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18343 the Flat Panel extension, in line with the X.org VESA driver.
18344 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18345 New function.
18346 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18347 (grub_vbe_bios_read_edid): Likewise.
18348 (grub_vbe_get_preferred_mode): Likewise.
18349 (grub_video_vbe_setup): When the mode is "auto", try to get the
18350 preferred mode from VBE, and use the largest mode that is no larger
18351 than the preferred mode (some BIOSes expose a preferred mode that is
18352 not in their mode list!). If this fails, fall back to 640x480 as a
18353 safe conservative choice.
18354 (grub_video_vbe_get_edid): New function.
18355 (grub_video_vbe_adapter): Add get_edid.
18356 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18357 (struct grub_video_adapter): Add get_edid.
18358 (grub_video_edid_checksum): Add prototype.
18359 (grub_video_edid_preferred_mode): Likewise.
18360 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18361 structure.
18362
18363 * grub-core/commands/videoinfo.c (print_edid): New function.
18364 (grub_cmd_videoinfo): Print EDID if available.
18365
18366 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18367 is more appropriate on a wider range of platforms than 640x480.
18368 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18369 documentation.
18370
18371 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18372
18373 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18374
18375 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18376
18377 * po/POTFILES.in: Regenerate.
18378
18379 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18380
18381 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18382 incorrect memory usage.
18383
18384 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18385
18386 * util/grub-install.in: Source grub-mkconfig_lib.
18387
18388 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18389
18390 Remove getroot.c from core on emu platform.
18391
18392 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18393 kern/emu/raid.c.
18394 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18395 useless.
18396 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18397 * util/getroot.c (get_win32_path): ... here.
18398 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18399 * util/getroot.c (fini_libzfs): ... here.
18400 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18401 * util/getroot.c (grub_get_libzfs_handle): ... here.
18402 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18403 Moved from here...
18404 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18405 * grub-core/kern/emu/misc.c
18406 (grub_make_system_path_relative_to_its_root): Moved from here...
18407 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18408 * grub-core/kern/emu/getroot.c: Moved from here ...
18409 * util/getroot.c: ... here. All users updated.
18410 * grub-core/kern/emu/raid.c: Moved from here ...
18411 * util/raid.c: ... here. All users updated.
18412
18413 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18414
18415 * po/POTFILES.in: Regenerate.
18416
18417 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18418
18419 Fix compilation on GNU/Linux.
18420
18421 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18422 Disable geli.
18423 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18424 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18425 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18426
18427 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18428 2011-07-07 Michael Gorven <michael@gorven.za.net>
18429 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18430
18431 LUKS and GELI support.
18432
18433 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18434 grub-core/disk/luks.c, grub-core/disk/geli.c,
18435 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18436 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18437 grub-core/lib/arg.c.
18438 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18439 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18440 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18441 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18442 (grub-bin2h): Add libgcry.a.
18443 (grub-mkimage): Likewise.
18444 (grub-mkrelpath): Likewise.
18445 (grub-script-check): Likewise.
18446 (grub-editenv): Likewise.
18447 (grub-mkpasswd-pbkdf2): Likewise.
18448 (grub-pe2elf): Likewise.
18449 (grub-fstest): Likewise.
18450 (grub-mkfont): Likewise.
18451 (grub-mkdevicemap): Likewise.
18452 (grub-probe): Likewise.
18453 (grub-ofpath): Likewise.
18454 (grub-mklayout): Likewise.
18455 (example_unit_test): Likewise.
18456 (grub-menulst2cfg): Likewise.
18457 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18458 * grub-core/Makefile.core.def (cryptodisk): New module.
18459 (luks): Likewise.
18460 (geli): Likewise.
18461 * grub-core/disk/AFSplitter.c: New file.
18462 * grub-core/disk/cryptodisk.c: Likewise.
18463 * grub-core/disk/geli.c: Likewise.
18464 * grub-core/disk/luks.c: Likewise.
18465 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18466 grub_util_is_lvm.
18467 (grub_util_get_dm_abstraction): New function.
18468 (grub_util_follow_gpart_up): Likewise.
18469 (grub_util_get_geom_abstraction): Likewise.
18470 (grub_util_get_dev_abstraction): Use new functions.
18471 (grub_util_pull_device): Pull GELI and LUKS.
18472 (grub_util_get_grub_dev): Handle LUKS and GELI.
18473 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18474 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18475 (follow_geom_up): Removed.
18476 (grub_util_fd_seek): New function.
18477 (open_device): Use grub_util_fd_seek.
18478 (nread): Rename to ..
18479 (grub_util_fd_read): ... this. All users updated.
18480 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18481 (grub_crypto_cbc_decrypt): Likewise.
18482 (grub_crypto_hmac_write): Likewise.
18483 (grub_crypto_hmac_buffer): Likewise.
18484 (grub_password_get): Extend to util.
18485 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18486 New member modname.
18487 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18488 * include/grub/cryptodisk.h: New file.
18489 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18490 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18491 LUKS and GELI.
18492 (grub_util_follow_gpart_up): New proto.
18493 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18494 (grub_util_fd_read): Likewise.
18495 (grub_cryptodisk_cheat_mount): Likewise.
18496 (grub_util_cryptodisk_print_uuid): Likewise.
18497 (grub_util_get_fd_sectors): Likewise.
18498 * util/grub-fstest.c (mount_crypt): New var.
18499 (fstest): Mount crypto if requested.
18500 (options): New option -C.
18501 (argp_parser): Parse -C.
18502 (main): Init and fini gcry.
18503 * util/grub-install.in: Support cryptodisk install.
18504 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18505 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18506 cryptodisk.
18507 (prepare_grub_to_access_device): Likewise.
18508 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18509 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18510 (probe_cryptodisk_uuid): New function.
18511 (probe_abstraction): Likewise.
18512 (probe): Use new functions.
18513 * util/import_gcry.py: Create Makefile.utilgcry.def.
18514 Add modname member.
18515
18516 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18517
18518 Lazy device scanning.
18519
18520 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18521 (grub-setup): Remove util/raid.c.
18522 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18523 * grub-core/disk/lvm.c (scan_depth): New variable.
18524 (grub_lvm_iterate): Rescan if necessary.
18525 (find_lv): New function based on grub_lvm_open.
18526 (grub_lvm_open): Use find_lv. Rescan on error.
18527 (is_node_readable): New function.
18528 (is_lv_readable): Likewise.
18529 (grub_lvm_scan_device): Skip already found disks.
18530 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18531 Stop if searched device is found and readable.
18532 * grub-core/disk/raid.c (inscnt): New variable.
18533 (scan_depth): Likewise.
18534 (scan_devices): New function based on grub_raid_register. Abort if
18535 looked for device is found.
18536 (grub_raid_iterate): Rescan if needed.
18537 (find_array): NEw function based on -grub_raid_open.
18538 (grub_raid_open): Use find_array and rescan.
18539 (insert_array): Set became_readable_at.
18540 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18541 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18542 New function.
18543 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18544 (grub_util_pull_device): New function.
18545 (grub_util_get_grub_dev): Call grub_util_pull_device.
18546 * util/raid.c: Moved to ..
18547 * grub-core/kern/emu/raid.c: ... here.
18548 (grub_util_raid_getmembers): New parameter "bootable".
18549 All users updated. Support 1.x.
18550 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18551 All users updated.
18552 * include/grub/disk.h (grub_disk_pull_t): New enum.
18553 (grub_disk_dev): Change iterate prototype.
18554 All users updated.
18555 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18556 New proto.
18557 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18558 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18559 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18560 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18561 All users updated.
18562 * include/grub/util/raid.h: Removed.
18563
18564 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18565
18566 * po/POTFILES.in: Regenerate.
18567
18568 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18569
18570 Unify sparc init with other ieee1275.
18571
18572 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18573 instead of kern/sparc64/ieee1275/init.c.
18574 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18575 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18576 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18577 grub/machine/kernel.h.
18578 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18579 (grub_claim_heap) [__sparc__]: Use sparc version.
18580 (grub_machine_init): Moved args parsing to
18581 (grub_parse_cmdline): ...this.
18582 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18583 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18584 New definition.
18585 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18586
18587 Move BOOTP to separate file.
18588
18589 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18590 * grub-core/net/net.c: Move all BOOTP functions to
18591 * grub-core/net/bootp.c: ... here.
18592
18593 Use frame interface on PXE.
18594
18595 * grub-core/Makefile.core.def (pxecmd): Removed.
18596 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18597 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18598 * grub-core/i386/pc/pxe.c: Moved from here ...
18599 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18600 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18601 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18602
18603 EFI network support.
18604
18605 * grub-core/Makefile.core.def (efinet): New module.
18606 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18607 here...
18608 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18609 All users updated.
18610 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18611 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18612 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18613 * grub-core/net/drivers/efi/efinet.c: New file.
18614 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18615 (grub_efi_net_config): New extern var.
18616
18617 Various cleanups and bugfixes.
18618
18619 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18620 error.
18621 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18622 disk declared as partition.
18623 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18624 leak on failure.
18625 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18626 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18627 (grub_debug_zalloc): Likewise.
18628 (grub_debug_realloc): Likewise.
18629 (grub_debug_memalign): Likewise.
18630 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18631 Check that target is IPv4.
18632 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18633 local-mac-address as fallback.
18634 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18635 memory leak.
18636 * grub-core/net/ip.c (ipchksum): Rename to ...
18637 (grub_net_ip_chksum): ... this. All users updated.
18638 (grub_net_recv_ip_packets): Special handling for DHCP.
18639 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18640
18641 Unify prefix handling
18642
18643 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18644 (grub_machine_get_bootlocation): ... this.
18645 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18646 (grub_machine_get_bootlocation): ... this.
18647 (grub_prefix): New variable.
18648 (prefix): Removed.
18649 (root_dev): New variable.
18650 (dir): Likewise.
18651 (main): Use new variables.
18652 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18653 Revamped into ...
18654 (grub_machine_get_bootlocation): ... this.
18655 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18656 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18657 (grub_machine_get_bootlocation): ... this.
18658 (grub_machine_set_prefix): Removed.
18659 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18660 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18661 Revamped into ...
18662 (grub_machine_get_bootlocation): ... this.
18663 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18664 (grub_set_prefix_and_root): ... this. All users updated.
18665 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18666 Revamped into ...
18667 (grub_machine_get_bootlocation): ... this.
18668 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18669 (grub_machine_get_bootlocation): New proto.
18670 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18671
18672 Less intrusive and more reliable seek on network implementation.
18673
18674 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18675 (grub_file_seek): Don't call grub_file_net_seek.
18676 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18677 (grub_net_fs_read_real): .. this.
18678 (grub_net_seek_real): Use net->offset.
18679 (grub_net_fs_read): Seek if necessary.
18680
18681 Unify IEEE1275 netwotk config with the other platforms.
18682
18683 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18684 New variable.
18685 (grub_machine_get_bootlocation): Support network.
18686 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18687 Support type and device parsing.
18688 (grub_ieee1275_get_device_type): New function.
18689 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18690 into ...
18691 (grub_ieee1275_net_config_real): ... this.
18692 (grub_ofnet_probecards): Removed.
18693 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18694 * include/grub/ieee1275/ofnet.h: Removed.
18695 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18696 extern var.
18697 (grub_ieee1275_get_device_type): New function.
18698
18699 Unify network device closing across platforms and make more robust.
18700
18701 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18702 grub_grubnet_fini.
18703 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18704 already.
18705 * grub-core/net/net.c (grub_net_network_level_interface_register):
18706 Update num_ifaces.
18707 (grub_net_card_unregister): Close all interfaces.
18708 (receive_packets): Don't poll if no iterfaces are registered.
18709 Open if necessary.
18710 (grub_net_fini_hw): New function.
18711 (grub_net_restore_hw): Likewise.
18712 (fini_hnd): New variable.
18713 (GRUB_MOD_INIT): Register preboot hook.
18714 (GRUB_MOD_FINI): Run and unregister preboot hook.
18715
18716 Poll network cards when idle.
18717
18718 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18719 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18720 * grub-core/net/net.c (receive_packets): Save last poll time.
18721 (grub_net_poll_cards_idle_real): New function.
18722 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18723 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18724 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18725
18726 Rename ofnet interfaces.
18727
18728 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18729 (grub_ofnet_findcards): Use ofnet_%s names.
18730
18731 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18732
18733 Cleanup socket opening.
18734
18735 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18736 (grub_net_fs_close): Likewise.
18737 (grub_net_fs_read_real): Use eof member.
18738 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18739 (+grub_net_udp_close): New inline function.
18740
18741 * include/grub/net/tftp.h: Moved to the top of ...
18742 * grub-core/net/tftp.c: ... here.
18743 * include/grub/net/ip.h: Moved mostly to the top of ...
18744 * grub-core/net/ip.c: ... here.
18745 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18746 * grub-core/net/ethernet.c: ... here.
18747
18748 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18749
18750 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18751 FS name.
18752
18753 * include/grub/net/ip.h (ipv4_ini): Removed.
18754 (ipv4_fini): Likewise.
18755
18756 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18757 (grub_net_send_ip_packets): Likewise.
18758
18759 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18762 grub_read_cmos prototype.
18763
18764 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 VGA text support in qemu-mips
18767
18768 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18769 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18770 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18771 text.
18772 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18773 * grub-core/kern/vga_init.c: ... this.
18774 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18775 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18776 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18777 Adjust.
18778 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18779 GRUB_MACHINE_PCI_IO_BASE.
18780
18781 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 MIPS qemu flash support.
18784
18785 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18786 magic.
18787 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18788 (grub_machine_init): Probe memory if its size isn't known.
18789 * util/grub-mkimage.c (image_targets): Add flash targets.
18790 (generate_image): Handle flash targets.
18791
18792 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18793
18794 MIPS qemu at_keyboard support.
18795
18796 * gentpl.py (videoinkernel): Add qemu-mips.
18797 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18798 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18799 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18800 modules.
18801 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18802 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18803 * grub-core/term/serial.c (grub_serial_register)
18804 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18805
18806 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18807
18808 CMOS support on sparc.
18809
18810 * gentpl.py (cmos): Add powerpc and sparc.
18811 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18812 powerpc and sparc.
18813 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18814 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18815 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18816 grub_set_datetime_cmos.
18817 * grub-core/lib/ieee1275/cmos.c: New file.
18818 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18819 (find_rtc): Set no_ieee1275_rtc on error.
18820 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18821 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18822 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18823 fail. Move value to argument. All users updated
18824 (grub_cmos_write): Likewise.
18825 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18826 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18827 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18828 grub_get_datetime_cmos and grub_set_datetime_cmos.
18829
18830 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18831
18832 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18833 sourcing grub-mkconfig_lib.
18834 * util/update-grub_lib.in: Likewise.
18835 * util/grub.d/00_header.in: Likewise.
18836 * util/grub.d/10_hurd.in: Likewise.
18837 * util/grub.d/10_kfreebsd.in: Likewise.
18838 * util/grub.d/10_linux.in: Likewise.
18839 * util/grub.d/10_netbsd.in: Likewise.
18840 * util/grub.d/10_windows.in: Likewise.
18841 * util/grub.d/20_linux_xen.in: Likewise.
18842 * util/grub.d/30_os-prober.in: Likewise.
18843
18844 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18845
18846 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18847 default_bg_color rather than black.
18848 (grub_gfxterm_fullscreen): Likewise.
18849 (grub_gfxterm_background_color_cmd): Save new background color in
18850 default_bg_color.
18851
18852 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18853
18854 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18855
18856 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18857
18858 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18859 mismerge.
18860
18861 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18862
18863 Chainloading on coreboot support.
18864
18865 * grub-core/Makefile.core.def (chain): Add coreboot.
18866 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18867
18868 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18869
18870 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18871 if it happens.
18872
18873 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18874
18875 Implement time command.
18876
18877 * grub-core/Makefile.core.def (time): New module.
18878 * grub-core/commands/time.c: New file.
18879 * grub-core/script/parser.y: Remove "time" keyword.
18880 * grub-core/script/yylex.l: Likewise.
18881
18882 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18883
18884 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18885
18886 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18887
18888 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18889 when handling leftovers.
18890
18891 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18892
18893 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18894 so that help2man doesn't fail.
18895
18896 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18899 type in pointers on sparc64.
18900 (get_card_packet): Likewise.
18901
18902 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18903
18904 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18905 with `*'.
18906 (grub_cmd_videoinfo): Fetch current video mode.
18907
18908 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18911 because of underlying system restrictions.
18912
18913 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18914
18915 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18916 necessary.
18917
18918 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18919
18920 Coreboot video support.
18921
18922 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18923 (vbe): Likewise.
18924 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18925 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18926 here ...
18927 * grub-core/kern/i386/int.S: ... here.
18928 * grub-core/video/i386/pc/vbe.c: Updated includes.
18929 * grub-core/video/i386/pc/vga.c: Likewise.
18930 * include/grub/i386/coreboot/memory.h
18931 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18932 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18933 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18934 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18935 Disable interrupts.
18936 * include/grub/i386/pc/vga.h: Removed. All users updated.
18937
18938 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18939
18940 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18941 definitions for dprintf.
18942 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18943
18944 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18945
18946 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18947 prototype.
18948 (get_card_packet): Likewise.
18949
18950 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18951
18952 Display the path of the file when file is not found
18953
18954 * grub-core/fs/fat.c: Display the filename when file is not found.
18955 * grub-core/fs/fshelp.c: Likewise.
18956 * grub-core/fs/hfs.c: Likewise.
18957 * grub-core/fs/jfs.c: Likewise.
18958 * grub-core/fs/minix.c: Likewise.
18959 * grub-core/fs/ufs.c: Likewise.
18960 * grub-core/fs/btrfs.c: Likewise.
18961 * grub-core/commands/i386/pc/play.c: Likewise.
18962
18963 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18964
18965 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18966 pointer checks before calling grub_free().
18967 * grub-core/commands/wildcard.c (match_devices): Likewise.
18968 * grub-core/commands/wildcard.c (match_files): Likewise.
18969 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18970 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18971 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18972 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18973 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18974 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18975 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18976 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18977 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18978
18979 2011-06-25 Patrick <p55@mailinator.com>
18980
18981 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18982
18983 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18984
18985 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18986 (grub_pxe_send): Likewise.
18987 (GRUB_MOD_INIT): Fix types.
18988
18989 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18990
18991 * grub-core/io/xzio.c: Fix code style issues
18992
18993 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18994 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18995
18996 Network infrastructure.
18997 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18998
18999 * include/grub/net/arp.h: New file.
19000 * include/grub/net/device.h: Likewise.
19001 * include/grub/net/ethernet.h: Likewise.
19002 * include/grub/net/ip.h: Likewise.
19003 * include/grub/net/netbuff.h: Likewise.
19004 * include/grub/net/tftp.h: Likewise.
19005 * include/grub/net/udp.h: Likewise.
19006 * include/grub/ieee1275/ofnet.h: Likewise.
19007 * include/grub/emu/export.h: Likewise.
19008 * include/grub/net.h: Likewise.
19009 * grub-core/net/arp.c: Likewise.
19010 * grub-core/net/ethernet.c: Likewise.
19011 * grub-core/net/ip.c: Likewise.
19012 * grub-core/net/udp.c: Likewise.
19013 * grub-core/net/tftp.c: Likewise.
19014 * grub-core/net/netbuff.c: Likewise.
19015 * grub-core/net/net.c: Likewise.
19016 * grub-core/net/drivers/emu/emunet.c: Likewise.
19017 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19018 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19019 export.h.
19020 * grub-core/Makefile.core.def (net): New module.
19021 (tftp): Likewise.
19022 (ofnet): Likewise.
19023 (emunet): Likewise.
19024 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19025 network protocols.
19026 * grub-core/kern/device.c (grub_net_open) : New variable.
19027 (grub_device_open): Handle network device.
19028 (grub_device_close): Likewise.
19029 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19030 (grub_grubnet_fini): Likewise.
19031 (grub_file_seek): Seek in network device.
19032 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19033 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19034 network root.
19035 (grub_machine_fini): Call grub_grubnet_fini.
19036 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19037 network.
19038 (grub_ieee1275_get_aliasdevname): New function.
19039 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19040 Add unofficial Solaris network info.
19041 (grub_multiboot_make_mbi): Likewise.
19042 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19043 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19044 * include/grub/device.h (grub_fs): Removed.
19045 * include/grub/err.h (grub_err_t): Add network-related values.
19046 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19047 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19048 (grub_ieee1275_get_aliasdevname): New proto.
19049 * include/grub/net.h: Rewritten.
19050
19051 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19052
19053 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19054 names.
19055
19056 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19059 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19060 it truncates the output.
19061 Reported by: Ximin Luo.
19062
19063 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19064
19065 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19066
19067 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19070 partmap before abstraction.
19071
19072 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19073
19074 * util/grub-mkconfig_lib.in: Add missing quotes.
19075
19076 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19077
19078 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19079 old method if mountinfo would return /dev/root and /dev/root doesn't
19080 exist.
19081
19082 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19083
19084 ZFS zlib support
19085
19086 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19087 (decomp_table): Add zlib entries.
19088 (zio_read): USe 8 bits for compression function rather than 3.
19089 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19090
19091 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19092
19093 * grub-core/disk/ahci.c: Add missing license statements.
19094 * grub-core/fs/romfs.c: Likewise.
19095 * grub-core/lib/ia64/setjmp.S: Likewise.
19096 * grub-core/loader/i386/pc/freedos.c: Likewise.
19097 * grub-core/loader/ia64/efi/linux.c: Likewise.
19098 * grub-core/video/colors.c: Likewise.
19099 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19100
19101 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19102
19103 AHCI support.
19104
19105 * grub-core/Makefile.core.def (ata_pthru): Removed.
19106 (ahci): New module.
19107 (pata): Likewise.
19108 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19109 on unload.
19110 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19111 readwrite.
19112 (grub_hdparm_do_check_powermode_cmd): Likewise.
19113 (grub_hdparm_do_smart_cmd): Likewise.
19114 (grub_hdparm_set_val_cmd): Likewise.
19115 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19116 * grub-core/disk/ahci.c: New file.
19117 * grub-core/disk/ata.c: Factor out the low-level part into ...
19118 * grub-core/disk/pata.c: ... here.
19119 * grub-core/disk/ata_pthru.c: Contents moved to ...
19120 * grub-core/disk/pata.c: ... here.
19121 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19122 (grub_scsi_iterate): Use grub_scsi_names.
19123 (grub_scsi_open): Likewise.
19124 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19125 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19126 (grub_ata_regs_t): New struct.
19127 (grub_disk_ata_pass_through_parms): Likewise.
19128 (grub_ata_device): Renamed to ...
19129 (grub_ata): ... this.
19130 (grub_ata_dev): New struct.
19131 Removed all low-level inline functions.
19132 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19133 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19134 iterate hooks and open. All users updated.
19135 * util/grub-install.in: Handle AHCI disk module.
19136
19137 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19138
19139 Add support for DRI and RSTn markers in JPEG files.
19140
19141 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19142 (JPEG_MARKER_RST0): Likewise.
19143 (JPEG_MARKER_RST1): Likewise.
19144 (JPEG_MARKER_RST2): Likewise.
19145 (JPEG_MARKER_RST3): Likewise.
19146 (JPEG_MARKER_RST4): Likewise.
19147 (JPEG_MARKER_RST5): Likewise.
19148 (JPEG_MARKER_RST6): Likewise.
19149 (JPEG_MARKER_RST7): Likewise.
19150 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19151 (grub_jpeg_decode_dri): New function.
19152 (grub_jpeg_decode_sos): Move image data related part into
19153 grub_jpeg_decode_data function.
19154 (grub_jpeg_decode_data): New function.
19155 (grub_jpeg_reset): New function.
19156 (grub_jpeg_decode_jpeg): Handle new markers.
19157
19158 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19159
19160 * util/ieee1275/ofpath.c (check_sas): Close fd.
19161 (main): Free of_path.
19162 Reported by: David Volgyes <dvolgyes>.
19163
19164 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19165
19166 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19167 Reported by: David Volgyes <dvolgyes>.
19168
19169 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19170
19171 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19172 file after stat.
19173 Reported by: David Volgyes <dvolgyes>.
19174
19175 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19176
19177 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19178
19179 Reported by: David Volgyes <dvolgyes>.
19180
19181 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19182
19183 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19184 Prevent memory leak.
19185
19186 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19187
19188 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19189 (main): Close file.
19190 Reported by: David Volgyes <dvolgyes>.
19191
19192 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19193
19194 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19195 to continue if allocation is failed.
19196
19197 Reported by: David Volgyes <dvolgyes>.
19198
19199 2011-06-23 David Volgyes <dvolgyes>
19200
19201 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19202 dereference.
19203
19204 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19205
19206 Fix spurious warning.
19207
19208 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19209 (acorn_partition_map_find): Use .bin member.
19210
19211 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19212
19213 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19214 /dev/root as a valid device.
19215
19216 2011-06-23 Jim Meyering <meyering@redhat.com>
19217
19218 Avoid NULL deref in grub_device_open.
19219
19220 * grub-core/kern/device.c (grub_device_open): Don't dereference
19221 a NULL pointer upon failed grub_env_get.
19222
19223 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19224
19225 Support non-512B sectors and agglomerate reads.
19226
19227 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19228 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19229 (disk_io_guid): Removed.
19230 (make_devices): Locate solely by BlockIO.
19231 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19232 (grub_efidisk_read): Use read_blocks.
19233 (grub_efidisk_write): Use write_blocks.
19234 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19235 log_sector_size.
19236 (get_safe_sectors): Handle non-512B sectors.
19237 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19238 sectors.
19239 (grub_biosdisk_write): Handle non-512B sectors.
19240 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19241 (grub_scsi_read): Remove special non-512B block handling (now handled
19242 one level up).
19243 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19244 and do sanity checks.
19245 (grub_disk_adjust_range): Handle non-512B sectors.
19246 (transform_sector): New function.
19247 (grub_disk_read_small): Likewise.
19248 (grub_disk_read): Rewritten.
19249 (grub_disk_write): Handle non-512B sectors.
19250 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19251 log_sector_size.
19252 (open_device): Use log_sector_size.
19253 (grub_util_biosdisk_read): Likewise.
19254 (grub_util_biosdisk_write): Likewise.
19255 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19256 non-512B sectors.
19257 (pc_partition_map_embed): Likewise.
19258 * include/grub/disk.h (grub_disk): New field log_sector_size.
19259 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19260 (GRUB_DISK_CACHE_BITS): Increased to 6.
19261 * util/grub-fstest.c (fstest): New command testload.
19262 (argp_parser): Likewise.
19263
19264 2011-06-16 Robert Millan <rmh@gnu.org>
19265
19266 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19267 `ata' driver on kernel of FreeBSD 9.
19268
19269 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19270 (get_ataraid_disk_name): New functions.
19271 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19272 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19273 get_ataraid_disk_name() and get_ada_disk_name().
19274
19275 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19276
19277 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19278 input format.
19279
19280 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19281
19282 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19283 `ftp.gnu.org' for `alpha.gnu.org'.
19284
19285 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19286
19287 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19288 partitions under /dev/disk/by-id/.
19289
19290 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19291
19292 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19293 after ten consecutive open failures. Scanning all the way up to
19294 10000 is excessive and can cause serious performance problems in
19295 some configurations.
19296 Fixes Ubuntu bug #787461.
19297
19298 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19299
19300 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19301 opening new one.
19302
19303 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19304 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19305
19306 Don't stat devices unless we have to.
19307
19308 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19309 dir == /dev/mapper.
19310 (grub_guess_root_device): Use already known os_dev if possible.
19311 * grub-core/kern/emu/hostdisk.c
19312 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19313 if device is known to be a dm one.
19314
19315 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19316
19317 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19318 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19319 Reported by: Pawel Tecza.
19320
19321 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19322
19323 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19324 (lsefisystab): Likewise.
19325 (lssal): Likewise.
19326 (lsefimmap): Likewise.
19327 (hdparm): Enable on qemu-mips.
19328 (setjmp): Add ia64 nodist.
19329 (serial): Simplify tags.
19330
19331 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19332
19333 * Makefile.util.def (grub-ofpathname): Install manual page.
19334
19335 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19336
19337 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19338
19339 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19340
19341 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19342
19343 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19344
19345 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19346 into dprintf.
19347
19348 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19349
19350 Use full 64-bit division.
19351
19352 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19353 (grub_divmod64): ... this.
19354 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19355 version.
19356
19357 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19358
19359 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19360 `source'.
19361
19362 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19363
19364 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19365 to avoid accidents when debugging with 'sh -x'.
19366 * grub-core/gensyminfo.sh.in: Likewise.
19367 * tests/example_scripted_test.in: Likewise.
19368 * tests/grub_cmd_regexp.in: Likewise.
19369 * tests/grub_script_blanklines.in: Likewise.
19370 * tests/grub_script_dollar.in: Likewise.
19371 * tests/grub_script_expansion.in: Likewise.
19372 * tests/grub_script_final_semicolon.in: Likewise.
19373 * tests/partmap_test.in: Likewise.
19374 * tests/util/grub-shell-tester.in: Likewise.
19375 * tests/util/grub-shell.in: Likewise.
19376
19377 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19378
19379 Move gfxmenu color handling to video, so that gfxterm can use it
19380 too.
19381
19382 * grub-core/gfxmenu/named_colors.c: Move to ...
19383 * grub-core/video/colors.c: ... here. Rename
19384 grub_gui_get_named_color to grub_video_get_named_color.
19385 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19386 * grub-core/video/colors.c (my_isxdigit): ... here.
19387 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19388 Move to ...
19389 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19390 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19391 to ...
19392 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19393
19394 * include/grub/gui.h (grub_gui_color_t): Move to ...
19395 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19396 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19397 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19398 * include/grub/gui.h (grub_gui_map_color): Move to ...
19399 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19400 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19401 to ...
19402 * include/grub/video.h (grub_video_get_named_color): ... here.
19403 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19404 * include/grub/video.h (grub_video_parse_color): ... here.
19405
19406 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19407 video/colors.c.
19408 (gfxmenu): Remove gfxmenu/named_colors.c.
19409 (video) [videomodules]: Add video/colors.c.
19410
19411 Add a background_color command.
19412
19413 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19414 function.
19415 (GRUB_MOD_INIT): Register background_color command.
19416 (GRUB_MOD_FINI): Unregister background_color command.
19417 (redraw_screen_rect): Allow blend/replace of text layer to be
19418 controlled independently from whether there is a background bitmap.
19419 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19420 changing bitmap.
19421
19422 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19423
19424 Patch BPB in ntldr and chainloader --bpb.
19425
19426 * grub-core/fs/fat.c: Include grub/fat.h.
19427 (grub_fat_bpb): Moved to ...
19428 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19429 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19430 grub/ntfs.h.
19431 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19432 Moved from here...
19433 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19434 here.
19435 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19436 New function.
19437 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19438 (GRUB_MOD_INIT): Show --bpb.
19439 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19440 * grub-core/normal/main.c (features): New variable.
19441 (GRUB_MOD_INIT): Set feature_* variables.
19442 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19443 proto.
19444 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19445
19446 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19447
19448 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19449 for cleanness.
19450
19451 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19452
19453 FreeDOS direct loading support.
19454
19455 * docs/grub.texi (Supported OS): Add FreeDOS.
19456 * grub-core/Makefile.core.def (freedos): New module.
19457 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19458 variable.
19459 (grub_relocator16_boot): Handle %ebx.
19460 * grub-core/lib/i386/relocator16.S: Likewise.
19461 * grub-core/loader/i386/pc/freedos.c: New file.
19462
19463 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19464
19465 Long Linux command line support.
19466
19467 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19468 (maximal_cmdline_size): New variable.
19469 (allocate_pages): Use maximal_cmdline_size.
19470 (grub_cmd_linux): Set and use maximal_cmdline_size.
19471 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19472 (allocate_pages): Use maximal_cmdline_size.
19473 (grub_cmd_linux): Set and use maximal_cmdline_size.
19474 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19475 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19476 and cmdline_size.
19477
19478 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19479 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19480
19481 Improve devmapper support
19482
19483 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19484 (grub_util_is_lvm): New function.
19485 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19486 than lvm if not dmraid.
19487 Handle mapped md nodes.
19488 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19489 (grub_util_device_is_mapped): ... this. Make always available. All users
19490 updated.
19491 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19492 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19493 dmraid nodes.
19494 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19495
19496 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19497
19498 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19499
19500 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19501 * grub-core/modinfo.sh.in: New file.
19502 * grub-core/Makefile.core.def (modinfo.sh): New script.
19503 * util/grub-mknetdir.in: Use modinfo.sh.
19504 * util/grub-mkrescue.in: Likewise.
19505
19506 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19507
19508 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19509 Fix potential usage of Elf32 instead of Elf64 when compiling on
19510 32-bit architecture. Add endianness macros while on it.
19511
19512 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19513
19514 Use mipsel- rather than mips- in directories involving mipsel ports to
19515 allow both endiannesses coexist.
19516
19517 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19518 mips. All conditions adjusted.
19519 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19520 variable.
19521 * util/grub-install.in: Adjust conditions to take renaming into account.
19522 * util/grub-mkimage.c (image_targets): Likewise. New target
19523 mips-qemu_mips-elf for bigendian mips.
19524
19525 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19526
19527 Avoid unnecessary copying on MIPS.
19528
19529 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19530 early if src == dest.
19531 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19532 compression is none.
19533
19534 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 Reduce memory footprint on SGI by putting modules before the kernel
19537 as opposed to after.
19538
19539 * grub-core/Makefile.core.def (kernel): Increase linking address.
19540 (none_decompress): Likewise.
19541 (xz_decompress): Likewise.
19542 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19543 address.
19544 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19545 layout change.
19546 (grub_arch_modules_addr): New function.
19547 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19548 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19549 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19550 here.
19551 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19552 (grub_total_modules_size): ... this. Make global.
19553 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19554 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19555 New definition.
19556 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19557 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19558 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19559 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19560 * util/grub-mkimage.c (image_target_desc): New flag
19561 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19562 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19563 (generate_image): Handle images with modules before kernel.
19564
19565 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19566
19567 Prevent potential loss of memory map by overwrite on qemu-mips.
19568
19569 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19570 Save ram size in $s4.
19571 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19572 All users changed to grub_arch_memsize.
19573 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19574 Loongson.
19575 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19576 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19577 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19578 external variable.
19579
19580 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19581
19582 * .bzrignore: Remove grub-dumpbios.
19583
19584 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19585
19586 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19587 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19588 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19589 existing options which append).
19590 * docs/grub.texi (Simple configuration): Document new options.
19591 Reported by: Ian Jackson. Fixes Debian bug #617538.
19592
19593 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19594
19595 * util/grub-fstest.c (cmd_cat): New function.
19596 (fstest): Handle CMD_CAT.
19597 (options): Add cat.
19598 (argp_parser): Handle cat.
19599
19600 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19601
19602 * Makefile.util.def (grub-bin2h): Don't install.
19603 * docs/man/grub-bin2h.h2m: Remove.
19604
19605 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19606
19607 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19608 place.
19609
19610 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19611
19612 Reenable qemu-mips port.
19613
19614 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19615 Fix small arc bug while on it.
19616 * gentpl.py: Handle qemu_mips.
19617 * grub-core/Makefile.am: Likewise.
19618 * grub-core/Makefile.core.def: Likewise.
19619 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19620 inappropriate includes.
19621 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19622 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19623 * grub-core/kern/main.c (grub_modules_get_end)
19624 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19625 * grub-core/kern/mips/qemu-mips: Moved to ..
19626 * grub-core/kern/mips/qemu_mips: ... this.
19627 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19628 (grub_machine_init): Call terminfo_init and serial_init.
19629 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19630 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19631 New variable.
19632 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19633 parameter passing.
19634 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19635 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19636 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19637 * include/grub/mips/qemu_mips/cmos.h: New file.
19638 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19639 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19640 Removed.
19641 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19642 Use correct mips-style address.
19643 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19644 (GRUB_TICKS_PER_SECOND): Removed.
19645 (grub_get_rtc): Likewise.
19646 (grub_cpu_idle): Likewise.
19647 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19648 New definition.
19649 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19650 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19651 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19652 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19653 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19654 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19655 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19656 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19657
19658 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19659
19660 SGI ARCS port.
19661
19662 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19663 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19664 platforms.
19665 * configure.ac: New target mips-arc.
19666 * gentpl.py: Likewise.
19667 * grub-core/Makefile.am: Likewise.
19668 * grub-core/Makefile.core.def: Likewise.
19669 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19670 (none_decompress): Likewise.
19671 (lsdev): New module.
19672 (datetime): Use lib/arc/datetime.c on ARC.
19673 (part_dvh): New module.
19674 * grub-core/commands/arc/lsdev.c: New file.
19675 * grub-core/disk/arc/arcdisk.c: Likewise.
19676 * grub-core/kern/mips/arc/init.c: Likewise.
19677 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19678 aligned addresses.
19679 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19680 support.
19681 (grub_arch_dl_relocate_symbols): Likewise.
19682 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19683 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19684 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19685 platforms.
19686 * grub-core/lib/arc/datetime.c: New file.
19687 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19688 pci.h on non-loongson.
19689 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19690 (grub_linux_boot): Set unused registers to 0.
19691 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19692 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19693 * grub-core/mmap/mips/uppermem.c: ...here.
19694 * grub-core/partmap/dvh.c: New file.
19695 * grub-core/term/arc/console.c: Likewise.
19696 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19697 (grub_terminfo_set_current): Add terminal "arc".
19698 (grub_terminfo_readkey): Support ARC sequences.
19699 * include/grub/arc/arc.h: New file.
19700 * include/grub/arc/console.h: Likewise.
19701 * include/grub/disk.h (grub_disk_dev_id): Add
19702 GRUB_DISK_DEVICE_ARCDISK_ID.
19703 * include/grub/mips/arc/kernel.h: New file.
19704 * include/grub/mips/arc/memory.h: Likewise.
19705 * include/grub/mips/arc/time.h: Likewise.
19706 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19707 * include/grub/mips/kernel.h (grub_halt): ... here.
19708 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19709 here...
19710 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19711 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19712 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19713 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19714 proto.
19715 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19716 from here ...
19717 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19718 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19719 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19720 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19721 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19722 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19723 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19724 (grub_phys_addr_t): Moved from here ...
19725 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19726 (grub_vtop): Moved from here ...
19727 * include/grub/mips/memory.h (grub_vtop): ... here.
19728 (grub_map_memory): Moved from here ...
19729 * include/grub/mips/memory.h (grub_map_memory): ... here.
19730 (grub_unmap_memory): Moved from here ...
19731 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19732 (grub_machine_mmap_iterate): Moved from here ...
19733 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19734 (grub_mmap_get_lower): Moved from here ...
19735 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19736 (grub_mmap_get_upper): Moved from here ...
19737 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19738 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19739 here ...
19740 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19741 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19742 here ...
19743 * include/grub/mips/time.h (grub_get_rtc): ... here.
19744 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19745 here ...
19746 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19747 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19748 here ...
19749 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19750 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19751 definition.
19752 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19753 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19754 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19755 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19756 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19757 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19758 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19759 (GRUB_MACHINE_LINK_ADDR): Likewise.
19760 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19761 to 6.
19762 * util/grub-install.in: Run dvhtool on ARC.
19763 * util/grub-mkimage.c (image_targets): Add mips-arc.
19764 (generate_image): Handle ECOFF output for mips-arc.
19765
19766 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19767
19768 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19769 blocks.
19770
19771 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19772
19773 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19774 after enabling port.
19775
19776 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19777
19778 Skip incorrect USB devices.
19779
19780 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19781 configcnt == 0.
19782 * include/grub/usb.h (grub_usb_err_t): New enum value
19783 GRUB_USB_ERR_BADDEVICE.
19784
19785 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19786
19787 Fuloong video init support.
19788
19789 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19790 well.
19791 (grub_vga_read_arx): New function.
19792 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19793 definition.
19794 (framebuffer): New members io, mmioptr and mmiobase.
19795 (read_sis_cmd): New function.
19796 (write_sis_cmd): Likewise.
19797 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19798 rather than 640x400.
19799 * grub-core/video/sis315_init.c: New file.
19800
19801 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19802
19803 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19804 non-loongson.
19805 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19806 to grub_dl_register_symbol.
19807
19808 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19809
19810 Fix compilation errors.
19811
19812 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19813 potentially unused.
19814 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19815 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19816 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19817 to loongson machines.
19818
19819 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19820
19821 Several FS mtime support.
19822
19823 * grub-core/fs/affs.c (grub_affs_time): New struct.
19824 (grub_affs_file): New field mtime.
19825 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19826 type. Removed 'size'. New field 'di'. All users updated.
19827 (grub_affs_mount): Simplify checsum checking.
19828 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19829 (grub_affs_dir): Handle mtime.
19830 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19831 (grub_cpio_dir): Likewise.
19832 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19833 (grub_hfs_filerec): New field mtime.
19834 (grub_hfs_dir): Handle mtime.
19835 (grub_hfs_mtime): New function.
19836 (grub_hfs_fs): Register grub_hfs_mtime.
19837 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19838 (grub_iso9660_dir): New field mtime.
19839 (grub_fshelp_node): New field dirent.
19840 (iso9660_to_unixtime): New function.
19841 (iso9660_to_unixtime2): Likewise.
19842 (grub_iso9660_read_symlink): Use node->dirent.
19843 (grub_iso9660_iterate_dir): Likewise.
19844 (grub_iso9660_dir): Set mtime.
19845 (grub_iso9660_mtime): New function.
19846 (grub_iso9660_fs): Register grub_iso9660_mtime.
19847 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19848 (grub_jfs_inode): New fields atime, ctime and mtime.
19849 (grub_jfs_dir): Set mtime.
19850 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19851 * grub-core/fs/ntfs.c (list_file): Set mtime.
19852 (grub_ntfs_dir): Likewise.
19853 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19854 (grub_reiserfs_iterate_dir): Set mtime.
19855 (grub_reiserfs_dir): Likewise.
19856 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19857 (grub_fshelp_node): Likewise.
19858 (grub_sfs_iterate_dir): Set mtime.
19859 (grub_sfs_dir): Likewise.
19860 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19861 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19862 (grub_xfs_inode): New fields atime, mtime, ctime.
19863 (grub_xfs_dir): Set mtime.
19864 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19865 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19866 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19867
19868 Support UDF symlinks.
19869
19870 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19871 (grub_ufs_read_symlink): New function. All users updated.
19872
19873 Check amiga partmap checksum.
19874
19875 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19876 (grub_amiga_partition): Likewise.
19877 (amiga_partition_map_checksum): New function.
19878 (amiga_partition_map_iterate): Check checksum.
19879
19880 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19881
19882 ROMFS support.
19883
19884 * Makefile.util.def (libgrubmods.a): Add romfs.
19885 * grub-core/Makefile.core.def (romfs): New module.
19886 * grub-core/fs/romfs.c: New file.
19887
19888 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19889
19890 Squashfs v4 support.
19891
19892 * Makefile.util.def (libgrubmods.a): Add squash4.
19893 * grub-core/Makefile.core.def (squash4): New module.
19894 * grub-core/fs/squash4.c: New file.
19895 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19896 disk_input_start, disk_input.
19897 (get_byte): Handle disk_input.
19898 (grub_zlib_disk_read): New function.
19899 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19900
19901 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19902 2011-05-15 Feiran Zheng <famcool@gmail.com>
19903
19904 * Makefile.util.def (libgrubmods.a): Add minix3.
19905 * grub-core/Makefile.core.def (minix3): New module.
19906 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19907 (GRUB_MINIX_BSIZE): Removed.
19908 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19909 (grub_minix_ino_t): New type.
19910 (grub_minix_le_to_cpu_ino): New macro.
19911 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19912 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19913 (grub_minix_data): New field block_size.
19914 (grub_minix_read_file): Handle 64-bit correctly.
19915 * grub-core/fs/minix3.c: New file.
19916
19917 2011-05-15 Tristan Gingold <gingold@free.fr>
19918 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19919 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19920
19921 IA64 support.
19922
19923 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19924 * configure.ac: Add ia64-efi target.
19925 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19926 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19927 * gentpl.py: Add ia64_efi platform.
19928 Rename x86_efi to efi and Add ia64-efi. All users updated.
19929 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19930 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19931 Remove kern/generic/rtc_get_time_ms.c on EFI.
19932 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19933 kern/ia64/dl_helper.c on ia64-efi.
19934 Add kern/emu/cache.c on emu.
19935 (linux): Use on loader/ia64/efi/linux.c on ia64.
19936 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19937 whether symbol is a function.
19938 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19939 (grub_symbol): New field 'isfunc'.
19940 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19941 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19942 (grub_dl_load_segments): Place all sections into the same region.
19943 [__ia64__]: Create trampolines and got.
19944 [GRUB_MACHINE_EMU]: Call mprotect.
19945 (grub_dl_resolve_symbols): Resolve symbol type as well.
19946 [__ia64__]: Create function descriptors.
19947 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19948 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19949 (grub_get_rtc): New function.
19950 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19951 * grub-core/kern/emu/cache.S: Renamed to ...
19952 * grub-core/kern/emu/cache_s.S: ... this.
19953 [__ia64__]: Add a nop.
19954 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19955 [__ia64__]: New function.
19956 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19957 * grub-core/kern/ia64/dl.c: New file.
19958 * grub-core/kern/ia64/dl_helper.c: Likewise.
19959 * grub-core/kern/ia64/efi/init.c: New file.
19960 * grub-core/kern/ia64/efi/startup.S: Likewise.
19961 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19962 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19963 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19964 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19965 * grub-core/loader/ia64/efi/linux.c: New file.
19966 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19967 (GRUB_MOD_DEP): Likewise.
19968 (grub_dl) [__ia64__]: New fields got and tramp.
19969 (grub_dl): New field 'base'.
19970 (grub_dl_register_symbol): New argument isfunc. All users updated.
19971 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19972 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19973 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19974 (grub_ia64_dl_get_tramp_got_size): New proto.
19975 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19976 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19977 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19978 * include/grub/efi/api.h: Skip call wrappers on ia64.
19979 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19980 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19981 * include/grub/elf.h (ELF_ST_INFO): New definition.
19982 * include/grub/ia64/efi/kernel.h: New file.
19983 * include/grub/ia64/efi/memory.h: Likewise.
19984 * include/grub/ia64/efi/time.h: Likewise.
19985 * include/grub/ia64/kernel.h: Likewise.
19986 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19987 * include/grub/ia64/time.h: New file.
19988 * include/grub/ia64/types.h: Likewise.
19989 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19990 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19991 New protos.
19992 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19993 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19994 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19995 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19996 All users updated.
19997 (EFI64_HEADER_SIZE): New definition. All users updated.
19998 (image_targets): Add ia64-efi.
19999 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20000 jumpers_addr. All users updated.
20001 Create function descriptors.
20002 (count_funcs): New function.
20003 (unaligned_uint32): New struct.
20004 (MASK20): New definition.
20005 (MASK19): Likewise.
20006 (MASKF21): Likewise.
20007 (add_value_to_slot_20b): New function.
20008 (add_value_to_slot_21_real): Likewise.
20009 (add_value_to_slot_21): Likewise.
20010 (ia64_kernel_trampoline): New struct.
20011 (nopm): New variable.
20012 (jump): Likewise.
20013 (make_trampoline): New function.
20014 (relocate_addresses): Handle ia64.
20015 (make_reloc_section): Likewise.
20016 (load_image): Likewise.
20017
20018 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20021 warning. Move variables before code while on it.
20022
20023 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20024
20025 Fuloong support.
20026
20027 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20028 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20029 * grub-core/boot/mips/loongson/fuloong.S: New file.
20030 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20031 Explicitly init CS5536.
20032 [FULOONG]: Don't use serial until CS5536 is available.
20033 Set GPIO based on dumps.
20034 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20035 [FULOONG]: Handle GPIO and memory controller differences.
20036 Parse machine type in $a2.
20037 * grub-core/boot/mips/startup_raw.S: Determine and save the
20038 architecture.
20039 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20040 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20041 init on architecture type.
20042 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20043 SIS315E. Don't init at_keyboard on fuloong.
20044 (grub_halt): Support Fuloong.
20045 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20046 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20047 (loongson_machtypes): New array.
20048 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20049 type.
20050 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20051 config. All users updated. Handle CS5536 serial.
20052 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20053 default port on machine type. Register serial as inactive.
20054 * grub-core/video/sis315pro.c: New file.
20055 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20056 definition.
20057 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20058 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20059 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20060 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20061 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20062 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20063 to ...
20064 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20065 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20066 definition.
20067 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20068 (grub_arch_machine): New extern var.
20069 * include/grub/mips/loongson/serial.h
20070 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20071 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20072 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20073 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20074 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20075 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20076 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20077 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20078 * include/grub/term.h (grub_term_register_input_inactive): New inline
20079 function.
20080 (grub_term_register_output_inactive): Likewise.
20081 * include/grub/video.h (grub_video_driver_id): New value
20082 GRUB_VIDEO_DRIVER_SIS315PRO.
20083 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20084 New field "names". All users updated.
20085 New field value IMAGE_FULOONG_FLASH.
20086 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20087
20088 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20089
20090 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20091 and add some clarification.
20092
20093 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20094
20095 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20096 platforms if kernel is compressed.
20097
20098 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20099
20100 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20101 unused modules since currently referrence counter isn't reliable and
20102 there isn't much memory to recover there anyway.
20103
20104 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20105
20106 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20107 rather than resetting it to allow modules to reference themselves
20108 in init.
20109
20110 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20113 counter on dependencies since grub_dl_unref already handles this.
20114
20115 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20118 on error if not already done.
20119
20120 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 Fix few potential memory misusage.
20123
20124 * grub-core/font/font.c (load_font_index): Don't free char_index to
20125 avoid double free.
20126 (grub_font_load): Zero-fill font at alloc for safety.
20127 Close file on error.
20128 (free_font): Free bmp_idx.
20129
20130 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20131
20132 * docs/grub.texi (Installation): Fix several outdated claims.
20133
20134 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 Handle module_license on windows.
20137
20138 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20139 sections shifted.
20140 (insert_string): Make argument const char * instead of char *.
20141 (write_section_data): Handle long section names.
20142 Handle module_license.
20143
20144 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20145
20146 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20147 handle class-free menuentries.
20148 (grub_normal_add_menu_entry): Add a check to be sure.
20149
20150 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20151
20152 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20153 PgUp and PgDown.
20154
20155 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * configure.ac: Bump version to 1.99.
20158
20159 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 Give ATA device a bit more time on first try in order to allow disks
20162 to spin up.
20163
20164 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20165 if dev->present is 1. Reset dev->present on failure.
20166 (grub_ata_device_initialize): Set dev->present to 1.
20167 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20168 (grub_ata_device): New member 'present'.
20169
20170 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * util/grub-mkimage.c (generate_image): Update hash.
20173
20174 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20175
20176 Flush caches on DMA memory.
20177
20178 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20179 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20180 (grub_dma_free): Likewise.
20181 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20182
20183 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20184
20185 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20186 to avoid asm treating ld and sd as macros.
20187
20188 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20189
20190 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20191 decompressor.
20192
20193 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20196 grub_decompress_core since later would fail if grub_decompress_core
20197 is too far.
20198
20199 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20200
20201 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20202 R_MIPS_JALR since it's used by newer compiler.
20203
20204 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20205
20206 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20207
20208 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20209
20210 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20211 file_path to 0 for surety.
20212 (grub_chainloader_boot): Set exit_data to NULL.
20213 Unset the loader once done.
20214 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20215
20216 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20219 unknown key into a dprintf.
20220
20221 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20222
20223 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20224 on first non-existant partition.
20225
20226 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20227
20228 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20229 openning fails.
20230 Reported by: Mark Korenberg.
20231
20232 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20235 overflow.
20236
20237 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20238
20239 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20240 before closing to ensure that it will be readable by grub-setup.
20241
20242 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20245 (devpath_1): Use MAKE_PIWG_PATH.
20246 (devpath_2): Likewise.
20247 (devpath_3): Likewise.
20248 (devpath_4): Likewise.
20249 (devpath_5): Likewise.
20250 (devpath_6): Likewise.
20251
20252 The appleldr.mod was checked that to be binary identical to previous
20253 version.
20254
20255 2011-05-05 Zach <mikezackles>
20256
20257 Support 2010 Macbooks.
20258
20259 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20260 (devs): Add devpath_6.
20261
20262 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20263
20264 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20265 /dev/random. /dev/urandom is good enough for our purposes (salting).
20266
20267 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20268
20269 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20270
20271 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20274 hexadecimal.
20275
20276 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20277
20278 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20279 and not 0 on failure.
20280
20281 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20282
20283 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20284 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20285 disk; otherwise grub_fs_probe will not fall back to the next
20286 filesystem.
20287 (grub_pxefs_open): Likewise, for consistency.
20288 Reported and tested by: Ezekiel Grave.
20289
20290 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20291
20292 * tests/partmap_test.in: Don't hardcode path to parted.
20293 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20294
20295 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20296
20297 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20298 of `ls' to find out which devices are available.
20299
20300 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20301
20302 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20303 than source address for efi mmap buffer.
20304
20305 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20306
20307 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20308 wrong action on non-detecting the magic.
20309
20310 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20311
20312 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20313 already supplied by another part of the module (fixes compilation on
20314 FreeBSD).
20315
20316 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20317
20318 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20319 match the one used by mdadm.
20320
20321 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20322
20323 * po/README: Add instructions for creating po/LINGUAS.
20324
20325 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20326
20327 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20328 #551428.
20329
20330 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20331 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20332 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20333 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20334 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20335 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20336 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20337 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20338 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20339 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20340 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20341 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20342 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20343 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20344 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20345 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20346 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20347 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20348 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20349 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20350 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20351 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20352
20353 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20354
20355 * grub-core/kern/emu/getroot.c
20356 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20357 test that was incorrectly reintroduced in r3214.
20358 Reported by: Ian Dall. Fixes Savannah bug #33133.
20359
20360 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20361
20362 Fix stack pointer handling in 16-bit relocator.
20363
20364 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20365 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20366 Fixes Ubuntu bug #683904.
20367
20368 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20369
20370 * configure.ac: Bump version to 1.99~rc2.
20371
20372 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20373
20374 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20375 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20376 * grub-core/lib/x86_64/setjmp.S: Likewise.
20377 * grub-core/lib/mips/setjmp.S: Likewise.
20378 * grub-core/lib/powerpc/setjmp.S: Likewise.
20379 * grub-core/lib/sparc64/setjmp.S: Likewise.
20380
20381 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20382
20383 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20384 * grub-core/lib/efi/datetime.c: Likewise.
20385
20386 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20387
20388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20389 New function.
20390 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20391 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20392 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20393
20394 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20395
20396 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20397 bitmap.
20398 (grub_gfxterm_term_init): Likewise.
20399
20400 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20401
20402 Take into account the decorations the computing menu entry width.
20403
20404 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20405 (grub_gfxmenu_create_box): Register get_border_width.
20406 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20407 if available.
20408 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20409 get_border_width.
20410
20411 2011-04-18 Endres Puschner <code@e7p.de>
20412
20413 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20414 Don't skip first class.
20415
20416 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20417
20418 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20419 chunks.
20420 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20421
20422 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20423
20424 Complete 64-bit division support.
20425
20426 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20427 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20428 * include/grub/misc.h (grub_divmod64): Rename to ...
20429 (grub_divmod64_full): ... this.
20430 (grub_divmod64): New inline function.
20431
20432 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20433
20434 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20435
20436 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20439 performing the necessary test.
20440
20441 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20442
20443 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20444 (kfreebsd.elf): Likewise.
20445 (pc-chainloader.elf): Likewise.
20446 (ntldr.elf): Likewise.
20447
20448 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20449
20450 Identify RAID by its UUID rather than (guessed) name.
20451
20452 * grub-core/disk/raid.c (ascii2hex): New function.
20453 (grub_raid_open): Accept mduuid/%s specification.
20454 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20455 (get_mdadm_uuid): ... this.
20456 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20457
20458 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20459
20460 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20461 to negative size.
20462
20463 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20464
20465 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20466 btrfs subvolume.
20467 * util/grub.d/20_linux_xen.in: Likewise.
20468
20469 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20470
20471 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20472 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20473
20474 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20475 Build a list of relevant visible mounts using the mnt_id and
20476 parent_mnt_id fields, and then scan that list at the end.
20477
20478 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20479
20480 * docs/grub.texi (normal): New section.
20481 (normal_exit): New section.
20482 (Embedded configuration): Add reference to normal.
20483 (GRUB only offers a rescue shell): Likewise.
20484 * docs/grub-dev.texi (Error Handling): Fix typo.
20485
20486 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20487
20488 * NEWS: Drop obsolete entry about probe-only btrfs support.
20489
20490 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20491
20492 * util/import_gcry.py: Fix typo.
20493
20494 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20495
20496 * NEWS: Add btrfs support.
20497
20498 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20499 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20500
20501 BtrFS support. Written by me (Vladimir) with important bugfixes and
20502 even more important testing by Colin.
20503
20504 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20505 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20506 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20507 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20508 mem_input_off and mem_input. All users updated to accept in-RAM input.
20509 (gzio_seek): New function.
20510 (test_zlib_header): Likewise.
20511 (grub_gzio_read): Likewise.
20512 (grub_zlib_decompress): Likewise.
20513 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20514 Accept partial and non-virtual mounts.
20515 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20516 avoid receiving /dev/dm-X as device.
20517 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20518 Handle bind and partial mounts.
20519 * grub-core/lib/crc.c: New file.
20520 * include/grub/deflate.h: Likewise.
20521 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20522 proto.
20523 * include/grub/lib/crc.h: New file.
20524
20525 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20526
20527 Implement automatic module license checking according to new GNU
20528 guidelines.
20529
20530 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20531 (grub_dl_load_core): Use grub_dl_check_license.
20532 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20533 (GRUB_MOD_LICENSE): Likewise.
20534 (GRUB_MOD_DUAL_LICENSE): Likewise.
20535 All modules updated.
20536
20537 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20540 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20541 loaders.
20542 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20543
20544 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20545
20546 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20547
20548 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20549
20550 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20551 failed.
20552
20553 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20554
20555 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20556 parenthesis in the middle of the filename.
20557
20558 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20559
20560 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20561 rather than trying to put initrd way too high.
20562 Reported by: Ryan Lortie <desrt@desrt.ca>
20563
20564 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20565
20566 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20567 improperly removed string.
20568
20569 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20570
20571 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20572 is_disk.
20573 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20574 (open_device) Likewise.
20575 (grub_util_biosdisk_close): Likewise.
20576 Reported by: Mark Korenberg.
20577
20578 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20579
20580 * util/grub-mkconfig_lib.in: Add missing quotes.
20581
20582 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20583
20584 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20585 is NULL.
20586
20587 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20588
20589 Dynamically count the number of lines for the lower banner.
20590
20591 * grub-core/normal/menu_entry.c (per_term_screen): New member
20592 num_entries.
20593 (print_down): Use num_entries.
20594 (update_screen): Likewise.
20595 (grub_menu_entry_run): Set num_entries.
20596 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20597 num_entries.
20598 (grub_print_message_indented): Move real part to ...
20599 (grub_print_message_indented_real): ... here. Additional argument
20600 dry_run.
20601 (draw_border): Additional argument num_entries.
20602 (print_message): Additional argument dry_run.
20603 (print_entries): Receive menu viewer data.
20604 (grub_menu_init_page): New argment num_entries.
20605 (menu_text_set_chosen_entry): Use num_entries.
20606 (grub_menu_try_text): Likewise.
20607 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20608 All users updated.
20609 (grub_ucs4_count_lines): New function.
20610 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20611 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20612 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20613 (grub_term_border_height): Likewise.
20614 (grub_term_num_entries): Likewise.
20615
20616 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20617
20618 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20619 Remove now unused string.
20620
20621 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20622
20623 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20624 build system.
20625 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20626
20627 (Comment): Fix typo.
20628 (Getting started): General copy-editing.
20629 (Typical Development Experience): Likewise.
20630 (Error Handling): Likewise.
20631 (Video API): Likewise.
20632
20633 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20634
20635 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20636 throughout.
20637
20638 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20639
20640 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20641 directory.
20642
20643 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20644
20645 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20646 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20647 "development".
20648
20649 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20650
20651 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20652 grub_strcpy since the lines aren't necessarily 0-terminated.
20653
20654 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20655
20656 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20657 root on legacy.
20658
20659 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20660
20661 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20662 (GRUB_MOD_INIT): DEVICE isn't optional.
20663
20664 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20665
20666 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20667 word on new line if it's too long anyway. Fixes a hang.
20668
20669 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20670
20671 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20672 const.
20673 * util/grub-setup.c (main): Reuse md device name if available.
20674 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20675 not GRUB name as argument.
20676 Based on patch by: Florian Wagner <fwagner>.
20677
20678 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20679
20680 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20681 Place mbi on low memory for better compatibility.
20682
20683 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20684
20685 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20686
20687 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20688 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20689
20690 * autogen.sh: Ensure that collate and ctype locale is C.
20691 * conf/Makefile.common: Likewise.
20692
20693 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20694
20695 * grub-core/normal/menu.c: Add missing include.
20696
20697 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20698
20699 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20700
20701 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20702
20703 * util/grub-mkconfig.in: Ignore emacsen backup.
20704
20705 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20706
20707 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20708 on open.
20709 (grub_util_biosdisk_close): Likewise.
20710
20711 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20712
20713 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20714 const attribute and use grub_isdigit.
20715
20716 2011-04-06 Andrey <dev_null@ukr.net>
20717
20718 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20719 gcc warning.
20720
20721 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20722
20723 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20724 useful grub_dprintf's.
20725
20726 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20727
20728 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20729
20730 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20731
20732 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20733
20734 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20735
20736 Output errors if theme loading failed.
20737
20738 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20739 grub_gfxterm_fullscreen on error paths to ...
20740 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20741 theme loading error.
20742
20743 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20744
20745 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20746 space for older compilers.
20747 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20748
20749 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20750
20751 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20752 and report them as not RAID members since they are useless for GRUB.
20753 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20754
20755 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20756
20757 Increase LVM implementation robustness in order not to crash on
20758 configurations like pvmove. Previously code assumed that in some places
20759 only lvs or only pvs are used whereas it seems that they are used
20760 interchangeably.
20761
20762 * grub-core/disk/lvm.c (read_node): New function.
20763 (read_lv): Use read_node.
20764 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20765 Match volumes only at the end when all lvs are found. Take both
20766 pvs (first) and lvs (second) into account.
20767 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20768 mirror_* into node_*. All users updated.
20769 (grub_lvm_stripe): Merge this ...
20770 (grub_lvm_mirror): ... and this ...
20771 (grub_lvm_node): ... into this. All users updated.
20772
20773 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20776 of function to allow further scanning for LVMs.
20777
20778 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20779
20780 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20781 on failed seek as it breaks open fd reusage.
20782
20783 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20784
20785 * util/grub-install.in: Add a recommendation to use --recheck before
20786 reporting bugs.
20787
20788 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20789
20790 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20791 are obtained.
20792
20793 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20794
20795 GRUB developper manual based on existing Internals section and
20796 contributions by the various authors with active copyright assignment.
20797
20798 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20799 * docs/font_char_metrics.png: New file.
20800 * docs/font_char_metrics.txt: Likewise.
20801 * docs/grub-dev.texi: Likewise.
20802 * docs/grub.texi (Internals): Move from here ...
20803 * docs/grub-dev.texi: ... here.
20804
20805 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20806
20807 Store the loopback device as data on loopback grub_disk structures,
20808 rather than the file it points to. This fixes use of freed memory
20809 if an existing loopback device is replaced.
20810
20811 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20812 disk->data, not dev->file.
20813 (grub_loopback_read): Adjust file assignment to match.
20814 Fixes Ubuntu bug #742967.
20815
20816 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20817
20818 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20819 when replacing an existing device.
20820
20821 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20822
20823 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20824 memory corruptions.
20825
20826 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20827 unsigned.
20828 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20829 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20830 (grub_jfs_read_inode): Likewise.
20831 (grub_jfs_opendir): Likewise. Remove now useless casts.
20832 (grub_jfs_getent): Likewise.
20833 Make ino a grub_uint32_t rather than int.
20834 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20835 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20836 division and module with bit operations.
20837 (grub_jfs_find_file): Make ino a grub_uint32_t.
20838 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20839
20840 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20841
20842 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20843 warning. (This was in fact always initialised before use, but GCC
20844 wasn't smart enough to prove that.)
20845 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20846
20847 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20850 stack alignment.
20851 (efi_wrap_1): Likewise.
20852 (efi_wrap_2): Likewise.
20853 (efi_wrap_3): Likewise.
20854 (efi_wrap_4): Likewise.
20855 (efi_wrap_5): Likewise.
20856 (efi_wrap_6): Likewise.
20857 (efi_wrap_10): Likewise.
20858 Based on information by: Red Hat/Peter Jones.
20859
20860 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20861
20862 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20863 set-but-not-used variable.
20864
20865 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20866
20867 * docs/grub.texi (Simple configuration): Be more explicit about
20868 GRUB_DEFAULT, and add an example.
20869 Reported by: Leslie Rhorer.
20870
20871 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20872
20873 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20874 shell".
20875
20876 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20877
20878 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20879 * util/grub.d/20_linux_xen.in: Likewise.
20880
20881 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20882
20883 * util/grub.d/10_linux.in: Try alternative config filenames where
20884 we parse config file.
20885 * util/grub.d/20_linux_xen.in: Likewise.
20886
20887 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20888
20889 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20890 * util/grub.d/20_linux_xen.in: Likewise.
20891
20892 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20893
20894 * grub-core/disk/raid.c (insert_array): Add few potentially
20895 useful grub_util_info.
20896 (grub_raid_register): Likewise.
20897
20898 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20899
20900 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20901 Preserve partition number in mdadm code path.
20902
20903 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20904
20905 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20906 few potentially useful grub_util_info.
20907
20908 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20909
20910 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20911
20912 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20913
20914 * docs/grub.texi (default): Use @example rather than nested
20915 itemized lists to avoid breaking gendocs.
20916
20917 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20918
20919 * docs/grub.texi (Future): Update.
20920
20921 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20922
20923 * docs/grub.texi (Environment): New chapter.
20924 (Changes from GRUB Legacy): Link to "Environment block" section for
20925 details of limitations.
20926 (Simple configuration): Likewise. Link to documentation of gfxmode
20927 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20928 respectively.
20929 (Shell-like scripting): Note that normal variables are stored in the
20930 environment.
20931 (gettext): Link to documentation of lang and locale_dir.
20932 (list_env): New section.
20933 (load_env): New section.
20934 (save_env): New section.
20935
20936 (Reporting bugs): Fix typo.
20937
20938 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20941 the example.
20942
20943 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20944
20945 * grub-core/term/at_keyboard.c (set_scancodes)
20946 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20947
20948 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20949
20950 * docs/grub.texi (Menu-specific commands): Remove some semantics
20951 that were true in GRUB Legacy but not in GRUB 2.
20952 (submenu): New section.
20953 (false): New section.
20954 (read): New section.
20955 (true): New section.
20956
20957 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20958
20959 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20960
20961 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20962
20963 * docs/grub.texi (Simple configuration): Explain some of the
20964 current limitations of grub-mkconfig.
20965 Reported by: Leslie Rhorer.
20966
20967 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20968
20969 Old macs search for boot.efi rather than for bootia32.efi.
20970
20971 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20972 * util/grub-mkrescue.in: Likewise.
20973 Suggested by: Peter Jones.
20974
20975 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20976
20977 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20978
20979 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20980
20981 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20982 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20983 (grub_lvm_mirror): New struct.
20984 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20985 (grub_lvm_iterate): Iterate only visible volumes.
20986 (grub_lvm_read): Factor out to ..
20987 (read_lv): ... this. Support mirrors.
20988 (grub_lvm_read): New wrapper function.
20989 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20990 stripped or mirrored.
20991
20992 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20993
20994 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20995
20996 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20997
20998 * docs/grub.texi (loopback): New section.
20999
21000 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21001
21002 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21003 removed -p option.
21004
21005 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21006
21007 * docs/grub.texi (BIOS installation): New section, partly based on
21008 previous text in other sections.
21009 (Installing GRUB using grub-install): Replace BIOS discussion with a
21010 cross-reference.
21011 (Images): Likewise.
21012
21013 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21014
21015 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21016 [HAVE_DIOCGDINFO]: Add safety checks.
21017
21018 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21019
21020 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21021 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21022
21023 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21024
21025 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21026 real_sb->size is zero (e.g. RAID-0), get the disk size from
21027 real_sb->data_size instead.
21028 Fixes Ubuntu bug #743136.
21029
21030 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21031
21032 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21033 printf clauses for printing size and start.
21034
21035 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21036
21037 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21038 Reported and tested by: Timothy Nikkel.
21039
21040 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21041
21042 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21043 (dirty_region_add_real): ... this.
21044 (dirty_region_add): Don't discard margin refresh when performing
21045 scheduled repaint.
21046
21047 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21048
21049 * grub-core/lib/relocator.c (allocate_regstart)
21050 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21051 terminals are capabple of malloc-free operation.
21052 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21053 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21054
21055 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21056
21057 * util/grub-setup.c: Copy the partition table zone if floppy support
21058 is disabled, even if no partition table is found.
21059
21060 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21061 during POST if an invalid partition table is contained in the PBR
21062 of the active partition when GRUB is installed to a partition.
21063
21064 2011-03-28 Colin Watson <cjwatson@debian.org>
21065
21066 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21067 comment.
21068
21069 2011-03-28 Colin Watson <cjwatson@debian.org>
21070
21071 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21072 to be specific about what kind of RAID device we're scanning for.
21073
21074 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21075
21076 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21077 return freed string.
21078
21079 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21080
21081 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21082
21083 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21084
21085 Use libgeom on FreeBSD to detect partitions.
21086
21087 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21088 (grub-mkrelpath): Likewise.
21089 (grub-script-check): Likewise.
21090 (grub-editenv): Likewise.
21091 (grub-mkpasswd-pbkdf2): Likewise.
21092 (grub-fstest): Likewise.
21093 (grub-mkfont): Likewise.
21094 (grub-mkdevicemap): Likewise.
21095 (grub-probe): Likewise.
21096 (grub-setup): Likewise.
21097 (grub-ofpathname): Likewise.
21098 (grub-mklayout): Likewise.
21099 (example_unit_test): Likewise.
21100 (grub-menulst2cfg): Likewise.
21101 * grub-core/Makefile.core.def (grub-emu): Likewise.
21102 (grub-emu-lite): Likewise.
21103 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21104 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21105 define HAVE_DIOCGDINFO.
21106 (follow_geom_up) [FreeBSD]: New function.
21107 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21108 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21109 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21110 unconditionally of HAVE_DIOCGDINFO.
21111
21112 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21113
21114 Fix FreeBSD compilation problem.
21115
21116 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21117 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21118
21119 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21120
21121 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21122 Switch back to page zero before loading a kernel, since some kernel
21123 drivers expect that.
21124 Thanks to: Felix Kuehling.
21125
21126 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21127
21128 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21129 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21130 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21131
21132 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21133
21134 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21135 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21136
21137 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21138
21139 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21140 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21141 malloc is disabled.
21142
21143 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21144
21145 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21146 for modules headers when counting the needed allocation size.
21147
21148 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21149
21150 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21151 if no ASCII character is found to prevent crash.
21152
21153 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21154
21155 * grub-core/video/bitmap.c (match_extension): Ignore case.
21156
21157 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21158
21159 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21160
21161 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21162
21163 * grub-core/script/parser.y: Declare "time" as valid argument.
21164
21165 2011-03-23 Peter Jones <pjones@redhat.com>
21166
21167 Fix incorrect assert failure reporting.
21168
21169 * grub-core/tests/example_functional_test.c (example_test): Add
21170 a failure comment.
21171 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21172 (failure_start): ...this. Check that malloc succeeded.
21173 Don't call xvasprintf. Return failure struct.
21174 (failure_append_vtext): New function.
21175 (failure_append_text): Likewise.
21176 (add_failure): Likewise.
21177 (grub_test_assert_helper): Likewise.
21178 * include/grub/test.h (grub_test_assert_helper): New declaration.
21179 (grub_test_assert): Macro rewritten.
21180
21181 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21182
21183 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21184
21185 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21186
21187 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21188
21189 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21190
21191 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21192 into GRUB-style one.
21193
21194 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21195
21196 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21197 error and not grub_errno.
21198 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21199
21200 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21201
21202 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21203 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21204
21205 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21206
21207 * grub-core/efiemu/i386/pc/cfgtables.c
21208 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21209 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21210 (grub_xnu_unlock): Likewise.
21211 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21212
21213 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21214
21215 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21216 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21217 * grub-core/commands/hashsum.c (aliases): Likewise.
21218 * grub-core/commands/setpci.c (pci_registers): Likewise.
21219 * grub-core/disk/usbms.c (attach_hook): Likewise.
21220 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21221 (zio_checksum_table): Likewise.
21222 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21223 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21224 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21225 * grub-core/lib/relocator.c (leftovers): Likewise.
21226 (extra_blocks): Likewise.
21227 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21228 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21229 (modules_last): Likewise.
21230 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21231 (devices): Likewise.
21232 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21233 (modules_last): Likewise.
21234 * grub-core/normal/auth.c (users): Likewise.
21235 * grub-core/normal/context.c (initial_menu): Likewise.
21236 (current_menu): Likewise.
21237 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21238 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21239 (grub_serial_terminfo_input_template): Likewise.
21240 (grub_serial_terminfo_output_template): Likewise.
21241 (grub_serial_terminfo_input): Likewise.
21242 (grub_serial_terminfo_output): Likewise.
21243 (registered): Likewise.
21244 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21245
21246 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21247
21248 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21249 grub_video_mode_type_t.
21250 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21251 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21252 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21253
21254 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21255
21256 * util/grub-install.in: Correct the x86-64 name as x86_64.
21257
21258 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21259
21260 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21261 initial chunk read from the kernel always includes GRUB's multiboot
21262 header, which is now outside the first sector.
21263
21264 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21265
21266 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21267 cached mmap_size, so that this works correctly when called multiple
21268 times.
21269 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21270
21271 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21272
21273 * docs/grub.texi (Simple configuration): Tidy up formatting.
21274
21275 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21276
21277 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21278 Set-but-not-used variable removed.
21279
21280 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21281
21282 Workaround yet another IEEE1275 bug.
21283
21284 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21285 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21286 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21287 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21288 is set.
21289 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21290 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21291
21292 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21293
21294 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21295 error.
21296
21297 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21298
21299 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21300 empty, since in that case we can only generate either nothing or a
21301 syntactically invalid configuration file.
21302 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21303
21304 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21305
21306 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21307 (Making a GRUB bootable CD-ROM): Likewise.
21308 (Invoking grub-mkrescue): New section.
21309 Reported by: Yann Dirson. Fixes Debian bug #612585.
21310
21311 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21312
21313 * util/grub-install.in: Remove unnecessary brackets from tr
21314 arguments.
21315 * util/grub.d/10_hurd.in: Likewise.
21316 * util/grub.d/10_kfreebsd.in: Likewise.
21317 * util/grub.d/10_linux.in: Likewise.
21318 * util/grub.d/20_linux_xen.in: Likewise.
21319 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21320
21321 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21322
21323 * include/grub/file.h (not_easly_seekable): Rename to ...
21324 (not_easily_seekable): ... this. Update all users.
21325
21326 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21327
21328 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21329 grub-mkrescue.
21330
21331 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21332
21333 * util/grub-mkimage.c (generate_image): Refuse to create the images
21334 bigger than the actual flash (512K) in Loongson machines. 512K is also
21335 the biggest chip supported by them.
21336
21337 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21338
21339 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21340
21341 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21342
21343 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21344 super_offset field.
21345
21346 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21347
21348 * util/grub-install.in: Ignore install device on platforms
21349 where it doesn't make sense. Always use UUIDs except on pc, efi and
21350 sparc64.
21351 Reported by: Daniel Kahn Gillmor.
21352
21353 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21354
21355 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21356
21357 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21360 (iterate_real): Don't rely on partition being non-NULL.
21361
21362 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21363
21364 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21365 supported platforms. Put a compile time assert for this rather than
21366 generate a warning with 32-bit shift.
21367
21368 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21369
21370 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21371 logical expression more readable.
21372
21373 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21374
21375 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21376 even if some elements have a name.
21377 Reported by: Alexander GQ Gerasiov.
21378
21379 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21380
21381 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21382 path unreadable if `grub-probe -t abstraction' fails, for example if
21383 memberlist fails on an LVM volume group.
21384 Reported by: Darius Jahandarie.
21385
21386 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21387
21388 * docs/grub.texi (Simple configuration): Document
21389 GRUB_PRELOAD_MODULES.
21390
21391 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21392
21393 * .bzrignore: Remove nonexistent grub-pbkdf2.
21394
21395 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21396
21397 * configure.ac: Bump version to 1.99~rc1.
21398
21399 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21400
21401 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21402 for safety.
21403
21404 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21405
21406 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21407 module.
21408
21409 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21410
21411 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21412
21413 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21416 diskdevid.
21417
21418 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 Fix compilation on cygwin.
21421
21422 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21423 -R .drectve on cygwin.
21424 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21425 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21426 (COND_CYGWIN): New condition.
21427 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21428 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21429 not @TARGET_OBJ2ELF@.
21430 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21431 type to determine whether aux is to be used.
21432
21433 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21434
21435 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21436 realpath'ed device string.
21437 Handle floppy (somewhat).
21438 Issue error in unknown case rather than garbage.
21439 Reported by: Axel Beckert.
21440
21441 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21442
21443 * util/grub.d/00_header.in (load_video): Handle the case when no video
21444 drivers available.
21445 Thanks to: Axel Beckert.
21446
21447 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21448
21449 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21450 variable. Fixes problem on big endian platforms.
21451
21452 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21453
21454 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21455 It doesn't work well there.
21456
21457 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21458
21459 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21460 warning.
21461 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21462 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21463 counter.
21464
21465 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21466
21467 Use alias->path rather than buggy "canon".
21468
21469 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21470 (ofdisk_hash_add): New argument curcan. All users updated.
21471
21472 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21473
21474 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21475
21476 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21477
21478 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21479 loadmask before doing any calculations. Use correct type for offset.
21480 (grub_linux_load64): Likewise.
21481
21482 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21483
21484 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21485 with NULL.
21486 (console_grub_equivalences_unshift): Likewise.
21487 Reported by: Daniel Dehennin.
21488
21489 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21490
21491 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21492 (set_env_limn_ro): Likewise.
21493 (GRUB_MOD_INIT): Likewise.
21494 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21495 ARRAY_SIZE while on it.
21496 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21497 * grub-core/normal/context.c (grub_env_export): Move from here ...
21498 * grub-core/kern/env.c (grub_env_export): ... here.
21499 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21500 prefix.
21501 * grub-core/kern/main.c (grub_main): Export root and prefix.
21502 * include/grub/env.h (grub_env_export): Export.
21503 Reported by: Seth Goldberg.
21504
21505 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21508 Take into account space used by ELF sections and multiboot palette.
21509 Reported by: Grégoire Sutre.
21510
21511 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * BUGS: New file.
21514
21515 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 Pass more appropriate video id to Linux.
21518
21519 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21520 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21521 fill have_vga.
21522 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21523 shift params->lfb_size.
21524 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21525
21526 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21529
21530 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21533 separator and pass bootpath/devid even if only one of them is available.
21534 Reported by: Seth Goldberg.
21535
21536 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21537
21538 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21539 implementations bug on them.
21540
21541 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21542 memory.
21543 (filter_memory_map): Likewise.
21544
21545 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21546
21547 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21548 Reported by: nebuchadnezzar.
21549
21550 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21553 Reported by: nebuchadnezzar.
21554
21555 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21556
21557 Submenu default support.
21558
21559 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21560 auto_boot. All users updated.
21561 Declared static.
21562 Handle chosen and default with submenus.
21563 (grub_menu_execute_with_fallback): Declared static.
21564 Don't notify failure if autobooted. Upper level does it.
21565 (menuentry_eq): New function.
21566 (get_entry_number): Use menuentry_eq.
21567 (show_menu): New parameter "autobooted". All users updated.
21568 (grub_show_menu): Likewise.
21569 * include/grub/normal.h (grub_show_menu): Likewise.
21570 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21571 (grub_menu_execute_with_fallback): Likewise.
21572
21573 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21574
21575 * util/grub-mklayout.c (usage): Update help text.
21576
21577 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21580
21581 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21582
21583 * util/grub-menulst2cfg.c (main): Trim the line.
21584
21585 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21586
21587 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21588 (grub_machine_init): Don't check amount of low memory as reportedly
21589 INT 12h can be broken and if low memory is too low we wouldn't have
21590 gotten into grub_machine_init anyway.
21591
21592 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21593
21594 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21595 (grub_machine_mmap_iterate): Take low memory into account
21596
21597 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21598
21599 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21600 badfs.
21601 Reported by: TiCPU.
21602
21603 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21606 members errors.
21607
21608 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21609
21610 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21611 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21612
21613 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21614
21615 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21616 openbsd and netbsd types being in part_bsd module.
21617
21618 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21619
21620 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21621 (_FILE_OFFSET_BITS): Likewise.
21622 Reported by: Seth Goldberg.
21623
21624 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21625
21626 * configure.ac: Check for libdevmapper header.
21627
21628 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21629
21630 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21631 avoid aliasing.
21632 (fzap_lookup): Likewise.
21633 (dnode_get): Likewise.
21634 (make_mdn): Likewise.
21635 (zfs_mount): Likewise.
21636 (fzap_iterate): Use temporary pointer to avoid aliasing.
21637 (grub_zfs_read): Likewise.
21638 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21639 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21640 pointers to avoid aliasing.
21641 (grub_cmd_xnu_kernel64): Likewise.
21642 (grub_xnu_load_driver): Likewise.
21643
21644 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21645
21646 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21647 aliasing warning.
21648 (grub_cmd_terminal_output): Likewise.
21649 Reported and tested by: Grégoire Sutre.
21650
21651 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21652
21653 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21654 warning.
21655 Reported and tested by: Grégoire Sutre.
21656
21657 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21658
21659 * configure.ac: Do CPU substitution even if it's specified explicitly.
21660 Reported and tested by: Alain Greppin.
21661
21662 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21665 Reported and tested by: Alain Greppin.
21666
21667 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 Satisfy some bison versions need for inttypes.h.
21670
21671 * grub-core/lib/posix_wrap/inttypes.h: New file.
21672 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21673 (int16_t): Likewise.
21674 (int32_t): Likewise.
21675 (int64_t): Likewise.
21676 Reported and tested by: Alain Greppin.
21677
21678 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21681 Silence spurious warning.
21682 Reported and tested by: Alain Greppin.
21683
21684 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21685
21686 * docs/grub.texi (Support automatic decompression): Update with xz
21687 decompression support.
21688
21689 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21690
21691 Improve loaders' kernel command line handling.
21692
21693 * grub-core/lib/cmdline.c: New file.
21694 * include/grub/lib/cmdline.h: Likewise.
21695 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21696 grub_create_loader_cmdline to create kernel command line.
21697 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21698 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21699 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21700 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21701 (linux): Add lib/cmdline.c on common.
21702
21703 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21704
21705 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21706 inopos might be unaligned.
21707
21708 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21709
21710 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21711 endian transformations.
21712 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21713 Based on report by: Doug Nazar.
21714
21715 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21716
21717 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21718 array->members[i].start_sector.
21719 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21720
21721 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21722
21723 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21724 Reported and tested by: Grégoire Sutre.
21725
21726 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21727
21728 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21729 avoid causing test failures by clearing the screen.
21730
21731 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21732
21733 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21734 Fix prefix check to handle the case where dir ends with a slash
21735 (most significantly, "/" itself).
21736 Reported by: Michael Vogt.
21737
21738 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 Run terminfo_cls on initing terminfo output to clear the screen and
21741 move the cursor to (0,0).
21742
21743 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21744 Call grub_terminfo_output_init.
21745 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21746 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21747 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21748
21749 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21750
21751 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21752 only when needed.
21753
21754 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21757 CTRL.
21758
21759 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21760
21761 The E820 type 5 is BADRAM, not EXEC_CODE.
21762
21763 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21764 (GRUB_E820_BADRAM): New define.
21765 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21766 into reserved. Propagate BADRAM.
21767 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21768 (GRUB_E820_BADRAM): New define.
21769
21770 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21771
21772 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21773 Ignore the memory post-4G.
21774 (grub_relocator_firmware_alloc_region): Additional debug statement.
21775
21776 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21777
21778 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21779 names.
21780 Reported by: David Pravec.
21781
21782 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21783
21784 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21785 BIOSes.
21786
21787 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21788
21789 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21790 Prevent overflow.
21791 (grub_reed_solomon_recover): Likewise.
21792
21793 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21794
21795 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21796
21797 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21800 variable.
21801
21802 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21803
21804 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21805 descriptions of extract_legacy_entries_source and
21806 extract_legacy_entries_configfile.
21807 Reported by: Seung Soo, Ha.
21808
21809 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21810
21811 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21812 on devices that do not implement function 0.
21813
21814 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21815
21816 * grub-core/fs/hfsplus.c: Make parent unsigned.
21817 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21818 overflows.
21819 (grub_hfsplus_cmp_extkey): Likewise
21820
21821 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21822
21823 * util/grub-install.in: Correctly use bootloader_id and not
21824 GRUB_DISTRIBUTOR on efibootmgr line.
21825
21826 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21829
21830 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21831
21832 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21833 Xen and reorder menu item wording to make it clearer that this entry
21834 will launch Xen. Print separate messages when loading Xen and
21835 Linux.
21836
21837 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21838
21839 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21840 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21841 loop in case of incorrect amiga partmap.
21842
21843 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21846 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21847 Reported by:EHeM.
21848
21849 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21850
21851 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21852 spurious warning.
21853 Reported by: crocket
21854
21855 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21856
21857 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21858 Preload EFIemu.
21859 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21860
21861 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21862
21863 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21864 is loaded
21865 (grub_cmd_xnu_kextdir): Likewise.
21866 (grub_cmd_xnu_splash): Likewise.
21867
21868 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21869
21870 Avoid using Reed-Solomon with 0 redundancy.
21871
21872 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21873 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21874 or 0 redundancy.
21875 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21876 (grub_reed_solomon_recover): Likewise.
21877
21878 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21879
21880 Don't use disk subsystem in freebsd_boot.
21881
21882 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21883 (freebsd_biosdev): Likewise.
21884 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21885 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21886
21887 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21888
21889 Handling of files of unknown size is currently limited. They can't be
21890 used e.g. for initrd or modules. Moreover gzip handling of not
21891 easily seekable files is buggy. Disable unknown file size for now. May
21892 be inefficient but works.
21893
21894 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21895 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21896
21897 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21898
21899 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21900 floppy probe.
21901
21902 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21903
21904 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21905
21906 2010-12-25 Shea Levy <shlevy>
21907
21908 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21909
21910 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21911
21912 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21913 Windows Server 2008.
21914 Reported by: Devin Giddings.
21915
21916 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21917
21918 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21919 writing an error message because of async power management.
21920 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21921 (grub_reboot): Likewise.
21922
21923 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21924
21925 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21926 keep unit tests from failing when they shouldn't.
21927
21928 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21929
21930 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21931 previous patch increased the size of the RS code by 20 bytes (at
21932 least with gcc-4.4), so increase this by 20 bytes to match.
21933 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21934
21935 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21936
21937 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21938 scratch area. Make sure to initialise chosen in standalone mode as
21939 well as non-standalone.
21940 Reported by: Robert Hooker and Andy Whitcroft.
21941 Tested by: Andy Whitcroft.
21942
21943 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21944
21945 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21946 constructing a new unescaped string and passing it to grub_xputs in
21947 one go, rather than passing characters to grub_printf one at a time.
21948
21949 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21950
21951 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21952 initialising utf16.
21953
21954 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21955
21956 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21957 comment. Add an extra layer of quotation, requiring the output of
21958 this function to be used in a printf format string.
21959 (gettext_printf): New function.
21960 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21961 Extract translatable strings from here-documents and use a temporary
21962 variable instead, so that xgettext can find them.
21963 * util/grub.d/10_kfreebsd.in: Likewise.
21964 * util/grub.d/10_linux.in: Likewise.
21965 * util/grub.d/20_linux_xen.in: Likewise.
21966
21967 * po/grub.d.sed: New file.
21968 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21969 arguments. Set c-format flags on all strings extracted from
21970 util/grub.d/ (xgettext refuses to include these itself for strings
21971 it extracted from a shell file, but these really are c-format).
21972
21973 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21974
21975 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21976 Avoid next pointing to nowhere.
21977
21978 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21979
21980 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21981 rather than assuming than rootblock is exactly in the middle.
21982 (grub_affs_label): Likewise.
21983
21984 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21985
21986 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21987 reserved_first_sector to 0.
21988 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21989 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21990 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21991
21992 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21993
21994 Fix handling of UTF-16 UDF labels.
21995
21996 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21997 (read_string): .. here.
21998 (grub_udf_label): Use read_string.
21999
22000 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
22001
22002 * grub-core/normal/menu_entry.c (run): Execute commands from menu
22003 editor under argument scope.
22004 Reported by: Jordan Uggla
22005
22006 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22007
22008 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22009
22010 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
22011
22012 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22013 line, and other keys scroll an entire page (previous handling was
22014 for \r and \n to scroll a page and other keys to scroll two lines).
22015
22016 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22017
22018 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22019 Set ptrdest to correct get_physical_target_address rather than
22020 incorrect get_virtual_current_address.
22021
22022 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22023
22024 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22025 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22026
22027 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22028
22029 * .bzrignore: Ignore grub-core/rs_decoder.S.
22030
22031 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22032
22033 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22034 .mo/.mo.gz opening sequence to ...
22035 (grub_mofile_open_lang): ... here.
22036 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22037 * util/grub.d/00_header.in (grub_lang): Include country part of
22038 locale.
22039 Reported by: Mario Limonciello.
22040
22041 2010-12-09 Robert Millan <rmh@gnu.org>
22042
22043 * NEWS: Document addition of ZFS support.
22044
22045 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22046
22047 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22048 rather than `/ 2', as the latter requires -Wa,--divide which would
22049 require bumping our minimum binutils version.
22050
22051 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22052
22053 * util/grub-script-check.c (main): Print script line number on
22054 error.
22055
22056 2010-12-01 Robert Millan <rmh@gnu.org>
22057
22058 * grub-core/fs/zfs/zfs.c: New file.
22059 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22060 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22061 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22062 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22063
22064 * include/grub/zfs/dmu.h: Likewise.
22065 * include/grub/zfs/dmu_objset.h: Likewise.
22066 * include/grub/zfs/dnode.h: Likewise.
22067 * include/grub/zfs/dsl_dataset.h: Likewise.
22068 * include/grub/zfs/dsl_dir.h: Likewise.
22069 * include/grub/zfs/sa_impl.h: Likewise.
22070 * include/grub/zfs/spa.h: Likewise.
22071 * include/grub/zfs/uberblock_impl.h: Likewise.
22072 * include/grub/zfs/vdev_impl.h: Likewise.
22073 * include/grub/zfs/zap_impl.h: Likewise.
22074 * include/grub/zfs/zap_leaf.h: Likewise.
22075 * include/grub/zfs/zfs.h: Likewise.
22076 * include/grub/zfs/zfs_acl.h: Likewise.
22077 * include/grub/zfs/zfs_znode.h: Likewise.
22078 * include/grub/zfs/zil.h: Likewise.
22079 * include/grub/zfs/zio.h: Likewise.
22080 * include/grub/zfs/zio_checksum.h: Likewise.
22081
22082 * Makefile.util.def: Build ZFS into libgrubmods.
22083 * grub-core/Makefile.core.def: Build zfs.mod.
22084
22085 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22086
22087 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22088 variable.
22089 * grub-core/commands/wildcard.c (match_files): Likewise.
22090
22091 2010-11-30 Robert Millan <rmh@gnu.org>
22092
22093 * grub-core/loader/i386/bsd.c
22094 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22095 whether kernel is loaded using grub_loader_is_loaded(), rather
22096 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22097 certain error conditions.
22098
22099 2010-11-30 Robert Millan <rmh@gnu.org>
22100
22101 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22102 (grub_cmd_echo): Call grub_refresh() after printing a message.
22103
22104 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22105
22106 Avoid using tricks for initialising endian variables.
22107
22108 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22109 Make const.
22110 (GRUB_MOD_INIT): Don't byte-swap.
22111 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22112 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22113 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22114 (grub_swap_bytes32_compile_time): Likewise.
22115 (grub_cpu_to_le32_compile_time): Likewise.
22116 (grub_cpu_to_le16_compile_time): Likewise.
22117
22118 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22119
22120 * util/grub-setup.c (setup): Stop recommending --force. People who
22121 understand the dangers of blocklists are able to find this option
22122 anyway and the ones who don't shouldn't use it anyway.
22123
22124 2010-11-26 Robert Millan <rmh@gnu.org>
22125
22126 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22127 Update all users.
22128
22129 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22130
22131 Fix LVM-on-RAID probing.
22132
22133 * util/grub-probe.c (probe): Remember which disk was detected as
22134 RAID (perhaps an LVM physical volume). Use that disk's raidname
22135 rather than that of the top-level disk.
22136
22137 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22138
22139 Fix cmdline argument quotes for setparams command of menuentry
22140 definitions.
22141
22142 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22143 quotes for arguments.
22144 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22145 grub_strchrsub function instead.
22146
22147 * include/grub/misc.h (grub_strchrsub): New function.
22148
22149 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22150
22151 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22152 effort by skipping "." and ".." entries up-front.
22153 Suggested by: Michael Lazarev.
22154
22155 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22156
22157 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22158 ldflags to ldadd, to fix link line ordering.
22159 (none_decompress): Likewise.
22160
22161 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22162
22163 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22164 platforms.
22165 (grub-emu-lite): Remove kern/emu/cache.S.
22166
22167 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22168
22169 * util/deviceiter.c (compare_devices): If the by-id link for a
22170 device couldn't be resolved, fall back to sorting by the by-id link
22171 rather than segfaulting.
22172 Reported and tested by: Daniel Mierswa.
22173
22174 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22175
22176 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22177 ldflags, to fix link line ordering.
22178
22179 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22180
22181 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22182 linkers are picky about this.
22183
22184 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22185
22186 * grub-core/Makefile.am (command.lst): Adjust sed expression
22187 ordering so that extended and priority commands aren't treated as
22188 ordinary commands.
22189
22190 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22191
22192 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22193 Remove byte-swapping function calls, which are not valid in
22194 structure initialisers.
22195 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22196 non-const.
22197 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22198 grub_gpt_partition_type_bios_boot.
22199
22200 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22201
22202 Fix test program build on GNU/kFreeBSD.
22203
22204 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22205 $(LIBNVPAIR)' library dependencies.
22206
22207 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22208
22209 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22210
22211 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22212
22213 * util/grub-install.in: Remove excessive quoting that broke
22214 installations to RAID devices.
22215
22216 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22217
22218 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22219 bootloader version instead of 0.
22220
22221 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22222
22223 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22224 warning.
22225
22226 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22227
22228 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22229 retrieve the metadat sector if size isn't known.
22230 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22231
22232 2010-11-18 Robert Millan <rmh@gnu.org>
22233
22234 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22235 with grub_memcmp().
22236
22237 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22238
22239 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22240 arrow.
22241 Reported by: Jordan Uggla.
22242
22243 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22244
22245 Make better UTF compliant.
22246
22247 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22248 sequences as incorrect.
22249 (grub_is_valid_utf8): Likewise.
22250 (grub_utf8_to_ucs4): Likewise.
22251 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22252 (grub_ucs4_to_utf8_alloc): Likewise.
22253 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22254
22255 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22256
22257 Make legacy_source behave like source.
22258
22259 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22260 grub_show_menu.
22261 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22262
22263 2010-11-16 Colin Watson <cjwatson@debian.org>
22264
22265 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22266 (-Wunused implies -Wunused-parameter, but not vice versa).
22267
22268 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22269
22270 * configure.ac: Make error messages less confusing by testing for
22271 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22272 accepted, but produces a diagnostic if something else is wrong).
22273
22274 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22277 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22278 (now unused).
22279 (grub_keyboard_controller_init)
22280 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22281 read the initial state since controller isn't inited yet.
22282
22283 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22284
22285 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22286 allocate_regbeg may need to create new chunk header.
22287
22288 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 Fix quoting in legacy parser.
22291
22292 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22293 single quotes.
22294 (grub_legacy_parse): Likewise.
22295 Reported by: Jordan Uggla.
22296 Tested by: Jordan Uggla.
22297
22298 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22299
22300 Don't add -lgcc on i386 and x86_64.
22301
22302 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22303 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22304 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22305
22306 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22307
22308 * configure.ac: Add -Wno-trampolines when supported.
22309
22310 2010-11-14 Modestas Vainius <modax@debian.org>
22311
22312 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22313 fakeraid.
22314
22315 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22316
22317 Add generic logical block size support for UDF.
22318
22319 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22320 (GRUB_UDF_BLKSZ): Removed.
22321 (struct grub_udf_data): New field "lbshift" to hold the logical block
22322 size of the file system in log2 format. All users updated.
22323 (sblocklist): Change type to unsigned.
22324 (grub_udf_mount): Change type of "sblklist" to unsigned.
22325 Move AVDP search before VRS recognition, because the latter requires
22326 knowledge of the logical block size, which is detected during the
22327 former.
22328 Detect and validate logical block size during AVDP search, adding
22329 support for block sizes 512, 1024 and 4096.
22330 Make VRS recognition independent of block size.
22331
22332 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22333
22334 Properly handle deleted files on UDF.
22335
22336 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22337 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22338 set.
22339
22340 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22341
22342 Support reading files larger than 2 GiB.
22343
22344 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22345 "offset" to grub_off_t.
22346 (grub_udf_read_file): Likewise for parameter "pos".
22347
22348 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22349
22350 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22351 unavailable.
22352 (Simple configuration): Refer to Changes from GRUB Legacy about
22353 save_env availability.
22354
22355 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22356
22357 * util/grub-install.in: Ignore empty partition table detection
22358 instead of trying to include part_ module.
22359
22360 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22361
22362 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22363 LVM on RAID support.
22364
22365 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 Properly define WORDS_BIGENDIAN in wrapped environments.
22368
22369 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22370 definition.
22371 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22372
22373 Reported by: Manoel Rebelo Abranches.
22374 Tested by: Manoel Rebelo Abranches.
22375
22376 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * util/grub-mkconfig.in: Fix quoting.
22379
22380 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 Support big ext2 files.
22383
22384 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22385 (grub_ext2_read_block): Support triple indirect blocks.
22386 (grub_ext2_read_file): Use 64-bit types and read size_high.
22387 (grub_ext2_open): Read size_high.
22388 Reported by: Ximin Luo.
22389 Tested by: Manoel Rebelo Abranches.
22390
22391 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22392
22393 * util/grub-install.in: Handle filenames containing spaces.
22394 Reported by: Jordan Uggla.
22395 Tested by: Jordan Uggla.
22396
22397 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22398
22399 * util/grub-mkconfig.in (grub_script_check): New variable.
22400 Use grub_script_check instead of grub-script-check.
22401 Reported by: Barry Jackson.
22402
22403 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 * docs/grub.texi (menu): Correct the order.
22406 Reported by: D. Hugh Redelmeier.
22407
22408 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22411 jump.
22412
22413 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22414
22415 * include/grub/elfload.h (grub_elf32_size): New parameter.
22416 All users updated.
22417 Return maximum segments alignment.
22418 (grub_elf64_size): Likewise.
22419 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22420 Return maximum segments alignment.
22421 (grub_elf64_size): Likewise.
22422 * grub-core/loader/powerpc/ieee1275/linux.c:
22423 (grub_linux_claimmap_iterate): New function. Uses the
22424 "available" property in the "memory" node for memory allocation
22425 for kernel in the PowerPC loader.
22426 (grub_linux_load32): Correctly find linux entry point offset.
22427 (grub_linux_load64): Likewise.
22428
22429 2010-11-07 Robert Millan <rmh@gnu.org>
22430
22431 On mips-yeeloong, build with -march=loongson2f when this flag is
22432 available (GCC >= 4.4).
22433 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22434 `-march=mips3'.
22435 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22436 or otherwise add -march=mips3.
22437
22438 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22439
22440 Suppress shell expansion on echo '*' and echo "*" like cases.
22441 Reported by: Jordan Uggla.
22442
22443 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22444 string arguments before shell expansion.
22445 * tests/grub_cmd_echo.in: New testcases.
22446
22447 2010-11-07 Robert Millan <rmh@gnu.org>
22448
22449 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22450 transition.
22451
22452 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22453
22454 * grub-core/kern/emu/hostdisk.c
22455 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22456
22457 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22458
22459 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22460 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22461 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22462
22463 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22466
22467 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22468
22469 * util/grub-install.in: Replace useless recomendation to pass
22470 --modules with a recomendation to report a bug.
22471
22472 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22473
22474 Properly register serial terminfo.
22475 Reported by: Jordan Uggla
22476
22477 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22478 const.
22479 (grub_serial_terminfo_output_template): Likewise.
22480 (grub_cmd_serial): Register "serial" with terminfo.
22481 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22482 grub_serial_terminfo_output.
22483
22484 2010-11-05 Robert Millan <rmh@gnu.org>
22485
22486 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22487 needed).
22488
22489 2010-11-05 Robert Millan <rmh@gnu.org>
22490
22491 On Yeeloong, pass machine type information to Linux.
22492
22493 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22494 (LOONGSON_MACHTYPE): New macro, set to
22495 "machtype=lemote-yeeloong-2f-8.9inches".
22496 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22497 additional argument to Linux.
22498
22499 2010-11-04 Robert Millan <rmh@gnu.org>
22500
22501 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22502 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22503 (its SATA disks are detected as slaveless IDE master drives on
22504 kFreeBSD).
22505 Reported by Carsten Aulbert.
22506
22507 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22508
22509 * util/bin2h.c (main): Fix spelling error in generated output.
22510
22511 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22512
22513 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22514
22515 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22516
22517 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22518 vga= option is supplied.
22519
22520 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22521
22522 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22523 * util/grub.d/10_kfreebsd.in: Likewise.
22524 * util/grub.d/10_linux.in: Likewise.
22525 * util/grub.d/20_linux_xen.in: Likewise.
22526
22527 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22528
22529 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22530 argument as an argument to no-argument option.
22531
22532 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 * util/grub.d/10_linux.in: Add missing load_video with explicit
22535 GRUB_GFXPAYLOAD_LINUX.
22536
22537 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22538
22539 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22540
22541 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22542
22543 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22544 elements with invlid index.
22545 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22546 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22547 members.
22548 * include/grub/raid.h (grub_raid_member): New struct.
22549 (grub_raid_array): Transform devices and start_sector into usage of
22550 grub_raid_member. All users updated
22551 (allocated_devs): New member.
22552
22553 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22556 is modified
22557
22558 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22559
22560 NetBSD build fix for getline function conflict from gnulib.
22561
22562 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22563 components that depend on gnulib headers.
22564 (libgrubmods.a): Renamed from earlier libgrub.a.
22565 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22566
22567 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22568
22569 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22570 install rather than creating a broken install.
22571
22572 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * util/grub-setup.c (argp): Remove misleading example of installing to
22575 a partition.
22576
22577 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * util/grub-setup.c (setup): Clarify the error message.
22580
22581 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22584
22585 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22586
22587 * grub-core/kern/emu/misc.c
22588 (grub_make_system_path_relative_to_its_root)
22589 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22590
22591 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22592
22593 * grub-core/kern/emu/misc.c
22594 (grub_make_system_path_relative_to_its_root): Revert r2882.
22595
22596 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22599 useless field head. All users updated.
22600 (free_subchunk): Correct handling of IN_REGION subchunk.
22601
22602 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22603
22604 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22605 (Supported kernels): Likewise.
22606
22607 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22608
22609 Make mktemp invocations portable.
22610
22611 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22612 exit if mktemp fails.
22613 * tests/grub_script_blockarg.in: Likewise.
22614 * tests/partmap_test.in: Likewise.
22615 * tests/util/grub-shell-tester.in: Likewise.
22616 * tests/util/grub-shell.in: Likewise.
22617 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22618 * Makefile.am: Likewise, and chain shell commands with `&&'
22619 instead of ';'.
22620 * util/grub-mkrescue.in: Use the same explicit template as above, and
22621 exit if mktemp fails.
22622
22623 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22624
22625 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22626 Linux kernel, reported by Dennis Schridde.
22627
22628 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22629
22630 * grub-core/normal/auth.c (grub_auth_check_authentication):
22631 Set-but-not-used variable removed.
22632
22633 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22634
22635 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22636 32-bit linux protocol.
22637
22638 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22641 cursor shape for sanity.
22642
22643 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22644
22645 * docs/grub.texi (Installation): Document buggy BIOS install.
22646
22647 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 * docs/grub.texi (Installation): Indent.
22650
22651 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * util/grub-setup.c (setup): New parameter allow_floppy.
22654 (arguments): New member allow_floppy.
22655 (argp_parser): Handle --allow-floppy.
22656 (main): Pass allow_floppy.
22657 * util/grub-install.in: New option --allow-floppy passed though to
22658 grub-setup.
22659
22660 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 * util/grub-install.in: Handle partitionless disks.
22663
22664 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * util/grub-setup.c (setup): Don't clean blocklists before readability
22667 verfification.
22668
22669 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22670
22671 * docs/grub.texi (Installation): Document embedding zone. Remove
22672 obsolete grub-install example.
22673
22674 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22675
22676 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22677 Set-but-not-used variable ifdef'ed.
22678 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22679 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22680 variable removed.
22681 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22682 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22683 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22684 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22685 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22686 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22687 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22688 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22689 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22690 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22691 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22692 Likewise.
22693
22694 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22695
22696 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22697 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22698 enum value.
22699
22700 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22703 synonym to _S5_. Needed for some DSDTs.
22704
22705 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22706
22707 Userspace ACPI parser debugging.
22708
22709 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22710 headers and add relevant defines. Don't include standard headers.
22711 (main) [GRUB_DSDT_TEST]: New function.
22712 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22713 Don't declare functions.
22714
22715 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22716
22717 Remove dead grub_efi_mm_fini.
22718
22719 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22720 (ALLOCATED_PAGES_SIZE): Likewise.
22721 (MAX_ALLOCATED_PAGES): Likewise.
22722 (allocated_pages): Likewise.
22723 (grub_efi_allocate_pages): Don't record allocated pages.
22724 (grub_efi_free_pages): Likewise.
22725 (grub_efi_mm_init): Likewise.
22726 (grub_efi_mm_fini): Removed.
22727
22728 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22729
22730 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22731 (grub_efi_mm_init): Take into account the memory map size increase.
22732
22733 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22734
22735 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22736 (serial_hw_put): Wait based on real time rather than port reads. Don't
22737 roken ports.
22738 * include/grub/serial.h (grub_serial_port): New field broken.
22739
22740 2010-10-16 Robert Millan <rmh@gnu.org>
22741
22742 * grub-core/kern/emu/misc.c
22743 (grub_make_system_path_relative_to_its_root): Fix premature return
22744 when processing non-root ZFS filesystems.
22745 Reported by Sergio Talens-Oliag.
22746
22747 2010-10-15 Robert Millan <rmh@gnu.org>
22748
22749 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22750 guarantee compressed ones are processed first.
22751
22752 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22753
22754 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22755 grub_efiemu_autocore.
22756
22757 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22758
22759 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22760 rather than 0x1b.
22761 (grub_console_getkey): Use correct jae opcode rather than ja.
22762
22763 2010-10-12 Robert Millan <rmh@gnu.org>
22764
22765 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22766 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22767 variable. All references updated.
22768
22769 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22770
22771 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22772
22773 Correctly distinguish mdraid flavours.
22774
22775 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22776 (insert_array): New argument raid.
22777 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22778 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22779 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22780
22781 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22782
22783 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22784 handling of special keys.
22785
22786 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22787
22788 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22789 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22790
22791 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22792
22793 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22794 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22795 users updated.
22796 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22797 Use right endpoint when querying descriptor.
22798
22799 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22800
22801 Clear out 0x80 color bit on EFI.
22802 Tested by: decoder
22803 Reported by: decoder and meta tech.
22804
22805 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22806 (grub_console_setcolorstate): Clear out 0x80 bit.
22807 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22808 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22809 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22810
22811 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22812
22813 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22814 Set to "auto".
22815
22816 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22819 mo_file after freeing.
22820
22821 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22822
22823 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22824
22825 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22828 flags.
22829
22830 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22831
22832 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22833 usage.
22834
22835 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22836
22837 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22838
22839 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22840 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22841 and terminfo.h when needed.
22842 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22843 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22844 (terminfo): Enable only on terminfokernel.
22845 (extcmd): Likewise.
22846 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22847 * include/grub/lib/arg.h: Likewise.
22848 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22849 incorrect usage of ->.
22850
22851 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22852
22853 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22854 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22855
22856 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22857
22858 Fix coreboot compilation.
22859
22860 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22861 Take VBE info into account even if only text is supported.
22862 (fill_vbe_info): Take into account the case when only VGA text
22863 is supported.
22864 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22865 on coreboot, multiboot and qemu.
22866
22867 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22868
22869 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22870 debug messages.
22871 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22872
22873 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22874
22875 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22876 parameters.
22877
22878 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22879
22880 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22881 if they were BSD-style.
22882
22883 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22884
22885 * grub-core/boot/i386/pc/lnxboot.S: Replace
22886 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22887 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22888
22889 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22890
22891 Write embedding zone using Reed-Solomon.
22892
22893 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22894 * grub-core/Makefile.am (rs_decoder.S): New target.
22895 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22896 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22897 (multiboot): Move to RS part.
22898 (post_reed_solomon): New label.
22899 (grub_boot_drive): Move to non-RS part since it's modified in memory
22900 on boot.
22901 Include rs_decoder.S.
22902 * grub-core/lib/reed_solomon.c: New file.
22903 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22904 New definition.
22905 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22906 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22907 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22908 * include/grub/partition.h (grub_partition_map): Change prototype of
22909 embed to allow returning additional sectors.
22910 * include/grub/reed_solomon.h: New file.
22911 * util/grub-setup.c (setup): Handle Reed-Solomon.
22912
22913 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22914
22915 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22916 i386 and x86-64 definedness tests.
22917
22918 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22919
22920 Fix generation of kernel_syms.lst
22921
22922 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22923 ASM_PREFIX
22924
22925 2010-09-26 Robert Millan <rmh@gnu.org>
22926
22927 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22928
22929 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22930 the pool is an array of devices, iterate through it and return the
22931 first device that passes a stat() test (instead of blindly returning
22932 the first one).
22933
22934 2010-09-26 Robert Millan <rmh@gnu.org>
22935
22936 Build fixes for GNU/kFreeBSD.
22937
22938 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22939 to programs that require ZFS conversion.
22940 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22941 kernels that don't have FLOPPY_MAJOR.
22942
22943 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22944
22945 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22946
22947 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22948
22949 Fix grub-emu build.
22950
22951 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22952 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22953 mdraid09 and mdraid1x.
22954
22955 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22956
22957 Re-enable grub-extras.
22958
22959 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22960 avoid confusing Automake. Run autogen only twice, once for the top
22961 level and once for grub-core. Add Makefile.util.def and
22962 Makefile.core.def from extra modules to the appropriate autogen
22963 invocations. If Makefile.common exists in an extra module, include
22964 it in both Makefile.util.am and grub-core/Makefile.core.am;
22965 similarly, include any Makefile.util.common file in Makefile.util.am
22966 and any Makefile.core.common file in grub-core/Makefile.core.am.
22967 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22968 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22969 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22970 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22971
22972 * gentpl.py (gvar_add): Turn GVARS into a set.
22973 (global_variable_initializers): Sort global variables on output.
22974 (vars_init): New function.
22975 (first_time): Likewise.
22976 (library): Ensure that non-global variable initialisations are
22977 emitted before the first time we emit code for a library block.
22978 Append to variables rather than setting them. Only emit
22979 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22980 each conditional path.
22981 (program): installdir() emits an Autogen macro, so must be passed to
22982 var_add rather than gvar_add.
22983 (data): Likewise.
22984 (script): Likewise.
22985 (rules): New function, centralising handling for different target
22986 types. Set up Guile association lists for first_time and vars_init,
22987 and send most output to a diversion so that variable initialisations
22988 can be emitted first.
22989 (module_rules): Use new rules function.
22990 (kernel_rules): Likewise.
22991 (image_rules): Likewise.
22992 (library_rules): Likewise.
22993 (program_rules): Likewise.
22994 (script_rules): Likewise.
22995 (data_rules): Likewise.
22996
22997 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22998
22999 * .bzrignore: Add contrib and grub-core/contrib. Remove
23000 grub-core/Makefile.gcry.am.
23001
23002 2010-09-24 Yves Blusseau <blusseau@zetam.org>
23003
23004 * grub-core/lib/LzFind.c: Add missing include.
23005 * grub-core/lib/LzmaEnc.c: Likewise.
23006 * grub-core/script/lexer.c: Likewise.
23007 * grub-core/script/yylex.l: Likewise.
23008 * util/grub-macho2img.c: Likewise.
23009 * util/grub-menulst2cfg.c: Likewise.
23010 * util/grub-mklayout.c: Likewise.
23011 * util/grub-mkpasswd-pbkdf2.c
23012 * util/grub-mkrelpath.c: Likewise.
23013 * util/resolve.c: Likewise.
23014
23015 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23016
23017 * Makefile.util.def (example_unit_test): Add
23018 grub-core/gnulib/libgnu.a.
23019
23020 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23021
23022 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23023
23024 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23025
23026 Support xz compression on yeeloong.
23027
23028 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23029 * configure.ac: Check for LZMA.
23030 * grub-core/Makefile.core.def (xz_decompress): New target.
23031 (none_decompress): Likewise.
23032 * grub-core/boot/decompressor/minilib.c: New file.
23033 * grub-core/boot/decompressor/none.c: Likewise.
23034 * grub-core/boot/decompressor/xz.c: Likewise.
23035 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23036 * grub-core/kern/mips/cache_flush.S: Likewise.
23037 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23038 * grub-core/kern/mips/startup.S: Move first stage to ...
23039 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23040 nomacro.
23041 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23042 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23043 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23044 Allocate statically.
23045 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23046 Allocate statically or use scratch. Don't check CRC32.
23047 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23048 Allocate statically. Don't check CRC32.
23049 * include/grub/decompressor.h: New file.
23050 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23051 Removed.
23052 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23053 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23054 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23055 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23056 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23057 * util/grub-mkimage.c (grub_compression_t): New type.
23058 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23059 (image_target_desc): New field default_compression.
23060 (image_targets): Adjust yeeloong targets.
23061 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23062 (compress_kernel): New parameter comp.
23063 (generate_image): Likewise. Handle new compression case.
23064 (options): New option --compression
23065 (help): Likewise.
23066 (main): Handle new option.
23067
23068 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23069
23070 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23071
23072 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23073
23074 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23075 typo in __i386__ conditional.
23076
23077 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23080 include.
23081
23082 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 Implement EFI and ACPI multiboot2 extensions.
23085
23086 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23087 new tags as supported.
23088 (acpiv2_size): New function.
23089 (grub_multiboot_get_mbi_size): Take new tags into account.
23090 (grub_multiboot_make_mbi): Add new tags.
23091 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23092
23093 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23094
23095 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23096 Added missing configuration of USB device.
23097
23098 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23099
23100 * grub-core/normal/menu_entry.c (run): Make sure we always return
23101 a value.
23102
23103 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23104
23105 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23106 NumberOfPages is UINT64 according to the UEFI specification, not
23107 UINTN. Fix printf format.
23108
23109 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23110
23111 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23112 `err' to grub_usb_err_t.
23113 Reported and tested by: KESHAV P.R.
23114
23115 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23116
23117 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23118 tpart non-const, so that we can assign to it. (Since this is a
23119 typedef, the constness refers to the pointer rather than what it
23120 points to.)
23121
23122 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23123
23124 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23125 $(top_srcdir)/grub-core/gnulib as well as
23126 $(top_builddir)/grub-core/gnulib.
23127 Reported by: KESHAV P.R.
23128
23129 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23130
23131 * util/grub-install.in: Fix the bootloader ID option to be
23132 consistently --bootloader-id, not --bootloader_id.
23133 Reported by: KESHAV P.R.
23134
23135 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23136
23137 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23138 check hash checksum." consistently translatable.
23139
23140 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23141
23142 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23143 $(top_builddir).
23144
23145 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23146
23147 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23148 (GRUB_MOD_INIT): Register sha1sum command.
23149 (GRUB_MOD_FINI): Unregister sha1sum command.
23150
23151 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23152
23153 Keep boot and grub directory names in sync with utils scripts
23154
23155 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23156 * config.h.in: Add previous macros.
23157 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23158 * util/grub-install.in: Use $bootdir and $grubdir variables.
23159
23160 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23161
23162 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23163 convert partition names to disk names if the new `convert' parameter
23164 is set.
23165 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23166 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23167 disk in its own right. This can happen with Xen disk images.
23168
23169 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23170
23171 * util/grub-editenv.c: Update strings to avoid warnings when generating
23172 grub.pot file.
23173 * util/grub-setup.c: Likewise.
23174
23175 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23176
23177 * configure.ac: Change version to 1.99~beta0.
23178
23179 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23182 Add BADRAM.
23183 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23184 Likewise.
23185 * include/multiboot.h: Resynced with specification.
23186 * include/multiboot2.h: Likewise.
23187
23188 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23189
23190 Fix po directory handling.
23191
23192 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23193 * grub-core/gnulib/Makefile.am: Import gettext module.
23194 * m4/gnulib-cache.m4: Likewise.
23195 * m4/gnulib-comp.m4: Likewise.
23196 * m4/gettext.m4: New file, from gnulib.
23197 * m4/glibc2.m4: Likewise.
23198 * m4/iconv.m4: Likewise.
23199 * m4/intdiv0.m4: Likewise.
23200 * m4/intl.m4: Likewise.
23201 * m4/intldir.m4: Likewise.
23202 * m4/intlmacosx.m4: Likewise.
23203 * m4/intmax.m4: Likewise.
23204 * m4/inttypes-pri.m4: Likewise.
23205 * m4/lcmessage.m4: Likewise.
23206 * m4/lib-ld.m4: Likewise.
23207 * m4/lib-link.m4: Likewise.
23208 * m4/lib-prefix.m4: Likewise.
23209 * m4/lock.m4: Likewise.
23210 * m4/nls.m4: Likewise.
23211 * m4/po.m4: Likewise.
23212 * m4/printf-posix.m4: Likewise.
23213 * m4/progtest.m4: Likewise.
23214 * m4/threadlib.m4: Likewise.
23215 * m4/uintmax_t.m4: Likewise.
23216 * m4/visibility.m4: Likewise.
23217 * po/Makefile.am: Remove.
23218 * po/Makefile.in.in: New file, from gettext.
23219 ($(DOMAIN).pot-update): Support POTFILES-shell.
23220 * po/Makevars: New file.
23221 * po/POTFILES-shell: Rename to ...
23222 * po/POTFILES-shell.in: ... this. Update.
23223 * po/POTFILES: Rename to ...
23224 * po/POTFILES.in: ... this. Update.
23225 * po/Rules-quot: New file, from gettext.
23226 * po/boldquot.sed: Likewise.
23227 * po/en@boldquot.header: Likewise.
23228 * po/en@quot.header: Likewise.
23229 * po/insert-header.sin: Likewise.
23230 * po/quot.sed: Likewise.
23231 * po/remove-potcdate.sin: Likewise.
23232
23233 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23234
23235 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23236
23237 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23238
23239 * util/grub.d/20_linux_xen.in: Use submenus.
23240
23241 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23242
23243 Support submenus.
23244
23245 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23246 parameter submenu. All users updated.
23247 * grub-core/normal/main.c (free_menu): Rename to ...
23248 (grub_normal_free_menu): ... this. Made global.
23249 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23250 if requested.
23251 * grub-core/normal/menu_entry.c (screen): New field submenu.
23252 (make_screen): Set submenu.
23253 (run): Open new context if requested.
23254 * include/grub/menu.h (grub_menu_entry): New field submenu.
23255 * include/grub/normal.h (grub_normal_free_menu): New proto.
23256
23257 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23258
23259 Menu entries extractor.
23260
23261 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23262 variants.
23263 (GRUB_MOD_INIT): Register new variants.
23264 (GRUB_MOD_FINI): Unregister new variants.
23265 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23266 into grub_cmd_legacy_source.
23267 (grub_cmd_legacy_source): Implement extractor variants.
23268 (GRUB_MOD_INIT): Register new variants.
23269 (GRUB_MOD_FINI): Unregister new variants.
23270 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23271 as an extractor.
23272 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23273 search as an extractor.
23274 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23275 test as an extractor.
23276 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23277 as an extractor.
23278 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23279 (grub_env_new_context): New function.
23280 (grub_env_context_open): Likewise.
23281 (grub_env_extractor_open): Likewise.
23282 (grub_env_extractor_close): Likewise.
23283 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23284 grub_extractor_level.
23285 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23286 * include/grub/env.h (grub_env_extractor_open): New proto.
23287 (grub_env_extractor_close): Likewise.
23288 * include/grub/normal.h (grub_extractor_level): New external variable.
23289
23290 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23291
23292 Make cutmem accept a region specification.
23293 Suggested by: Samuel Thibault
23294
23295 * grub-core/mmap/mmap.c (parsemem): New function.
23296 (grub_cmd_cutmem): Handle new arguments.
23297
23298 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23299
23300 New command cutmem.
23301
23302 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23303 (GRUB_MOD_INIT): Register new command.
23304 (GRUB_MOD_FINI): Unregister new command.
23305
23306 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23307
23308 Support some annoying BSD and Minix subpartitions.
23309
23310 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23311 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23312 Properly handle concatenation.
23313 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23314 * grub-core/normal/completion.c (iterate_partition): Likewise.
23315 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23316 contain partition. All users updated.
23317 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23318 struct.
23319 (grub_openbsdlabel_partition_map): Likewise.
23320 (bsdlabel_partition_map_iterate): Rename to ..
23321 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23322 (bsdlabel_partition_map_iterate): New function.
23323 (netopenbsdlabel_partition_map_iterate): Likewise.
23324 (netbsdlabel_partition_map_iterate): Likewise.
23325 (openbsdlabel_partition_map_iterate): Likewise.
23326 (GRUB_MOD_INIT): Register new partmaps.
23327 (GRUB_MOD_FINI): Unregister new partmaps.
23328 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23329 (grub_partition_msdos_iterate): ... this. All users updated.
23330 Don't support embedding other than in a minix partition.
23331 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23332 proto.
23333 * include/grub/partition.h (grub_partition): New field msdostype.
23334 * util/grub-install.in: Handle openbsd and netbsd types being in
23335 part_bsd module.
23336
23337 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23340
23341 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23342 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23343 (mdraid09): ... this.
23344 (mdraid1x): New module.
23345 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23346 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23347
23348 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23349
23350 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23351 vsprintf.
23352
23353 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23354
23355 * grub-core/commands/efi/lsefimmap.c: Correct header.
23356 * NEWS: Update.
23357
23358 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23359
23360 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23361 as printf format strings; the translations might contain '%' which
23362 could cause a crash.
23363 (main): Likewise.
23364 * util/grub-fstest.c (argp_parser): Likewise.
23365 * util/grub-setup.c (argp_parser): Likewise.
23366 (main): Likewise.
23367
23368 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23369
23370 Use argp in grub-fstest.
23371
23372 * util/grub-fstest.c: Don't include getopt.h.
23373 Include argp.h.
23374 (root): New variable.
23375 (args_count): Likewise.
23376 (nparm): Likewise.
23377 (num_disks): Likewise.
23378 (images): Likewise.
23379 (cmd): Likewise.
23380 (debug_str): Likewise.
23381 (args): Likewise.
23382 (options): Transformed to argp.
23383 (usage): Removed.
23384 (main): Split argument parsing into ...
23385 (argp_parser): ... this. Changed to argp format.
23386 (argp): New variable.
23387 (main): Use argp_parse.
23388
23389 2010-09-20 Tristan Gingold <gingold@free.fr>
23390 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23391 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23392
23393 * grub-core/commands/efi/lsefimmap.c: New file.
23394 * grub-core/Makefile.core.def (lsefimmap): New module.
23395 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23396
23397 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23398
23399 Pause the execution (10s max) if any errors are displayed so the user
23400 has a chance to see them.
23401
23402 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23403 (grub_print_error): Increment grub_err_printed_errors.
23404 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23405 execution if any errors were displayed.
23406 (show_menu): Remove old code for pause.
23407 * grub-core/normal/menu_entry.c (run): Likewise.
23408 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23409 users updated.
23410 (grub_normal_get_char_counter): Likewise.
23411 * include/grub/err.h (grub_err_printed_errors): New external variable.
23412 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23413
23414 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23415
23416 Support multiboot VBE info.
23417
23418 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23419 Take VBE info into account.
23420 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23421 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23422 Call fill_vbe_info when appropriate.
23423 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23424 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23425 as supported.
23426 (grub_multiboot_get_mbi_size): Take new tags into account.
23427 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23428 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23429 Call fill_vbe_tag when appropriate.
23430 (grub_multiboot_make_mbi): Properly align tags.
23431 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23432 function.
23433 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23434 proto.
23435 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23436
23437 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23438
23439 Suport manual terminal geometry specification.
23440
23441 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23442 Save state in grub_ofconsole_terminfo_output.
23443 (grub_ofconsole_term): Use grub_terminfo_getwh.
23444 (grub_ofconsole_getwh): Removed.
23445 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23446 (grub_serial_term): Use grub_terminfo_getwh.
23447 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23448 (options): New struct.
23449 (OPTION_*): New enum.
23450 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23451 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23452 width and height.
23453 (grub_terminfo_getwh): New proto.
23454 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23455
23456 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23457
23458 Handle legacy "terminal" command.
23459
23460 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23461 and FLAG_TERMINAL.
23462 (legacy_commands): Add terminal and title.
23463 (grub_legacy_parse): Handle terminal. Simplify title handling.
23464
23465 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23466
23467 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23468 parameters overflow.
23469
23470 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23471
23472 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23473 widthspec.h.
23474
23475 * docs/grub.texi (Shell-like scripting): Document `!'.
23476 (Network): Simplify using new i386-pc-pxe format. Mention
23477 grub-mknetdir.
23478
23479 * NEWS: Update.
23480
23481 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23482
23483 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23484 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23485 when needed.
23486
23487 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23488
23489 * grub-core/commands/efi/lsefisystab.c: Correct header.
23490 * grub-core/commands/efi/lssal.c: Likewise.
23491 * grub-core/commands/testload.c: Likewise.
23492
23493 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23494
23495 * util/grub-mkrescue.in: Add explicit root argument to --set to
23496 prevent the UUID being interpreted as an argument to --set (matches
23497 previous change to prepare_grub_to_access_device).
23498
23499 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23500
23501 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23502 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23503 the verbosity of later #ifs.
23504 (find_partition_start): Define this function on FreeBSD too.
23505 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23506 function.
23507 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23508 on FreeBSD.
23509
23510 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23511
23512 * util/grub-editenv.c: Use argp instead of getopt.
23513
23514 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23515
23516 * util/grub-setup.c: Use argp instead of getopt.
23517
23518 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23519
23520 Use gnulib-tool to create gnulib source files.
23521
23522 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23523 grub-core/gnulib directories
23524 * .bzignore: Add **/.deps and autogenerated gnulib files
23525 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23526 of gnulib macros, add grub-core/gnulib/Makefile
23527 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23528 include m4 directory to aclocal.
23529 * Makefile.util.def: Remove direct compilation of gnulib source files
23530 and use the new grub-core/gnulib/libgnu.a.
23531 * build-aux/config.rpath: move config.rpath from top directory to
23532 build-aux
23533 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23534 in gnulib headers
23535 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23536 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23537 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23538 header.
23539 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23540 string.
23541
23542 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23543
23544 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23545 grub-core/genmod.sh and grub-core/gensyminfo.sh
23546
23547 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23548
23549 Add a test for echo command options.
23550
23551 * tests/grub_cmd_echo.in: New test.
23552 * Makefile.util.def: Rules for new test.
23553
23554 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23555
23556 Remove crc.mod and move crc command to hashsum.mod.
23557 Remove lib/crc.c - users updated to use gcrypt implementation.
23558
23559 * grub-core/commands/crc.c: Removed.
23560 * grub-core/Makefile.core.def (crc): Module removed.
23561 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23562 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23563 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23564 * grub-core/lib/crc.c: Removed.
23565 * include/grub/lib/crc.h: Removed.
23566 * Makefile.util.def (crc): Remove lib/crc.c
23567 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23568 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23569 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23570 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23571 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23572 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23573
23574 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23575
23576 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23577
23578 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23579
23580 Split config.h for util and core.
23581
23582 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23583 (ADDR32): Likewise.
23584 (DATA32): Likewise.
23585 (BSS_START_SYMBOL): Likewise.
23586 (END_SYMBOL): Likewise.
23587 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23588 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23589 * config.h.in: New file.
23590 * configure.ac: Use config-util.h as config define file.
23591 Rename MACHINE into GRUB_MACHINE. All users updated.
23592 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23593 updated.
23594 (NESTED_FUNC_ATTR): Likewise.
23595 Substitue new variables.
23596 (COND_HAVE_ASM_USCORE): New conditional.
23597 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23598 (kernel_syms.lst): Use ASM_PREFIX.
23599 * grub-core/kern/emu/console.c: Include config-util.h.
23600 * grub-core/kern/emu/misc.c: Likewise.
23601 * grub-core/kern/emu/mm.c: Likewise.
23602 * include/grub/emu/misc.h: Likewise.
23603 * include/grub/libgcc.h: Likewise.
23604
23605 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23608 constants usage.
23609 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23610 Fix GRUB_TERM_KEY_* constants usage.
23611 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23612
23613 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23614
23615 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23616 print pointer.
23617 * grub-core/bus/usb/uhci.c: Remove empty define.
23618 (grub_uhci_check_transfer): Add missing cast.
23619 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23620 print pointer.
23621 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23622 PRIuGRUB_SIZE.
23623 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23624
23625 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23626
23627 * grub-core/Makefile.core.def (legacycfg): Add
23628 lib/i386/pc/vesa_modes_table.c on emu.
23629
23630 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23631
23632 Reduce number of temporary files generated by build system.
23633
23634 * grub-core/gencmdlist.sh: Removed.
23635 * grub-core/genfslist.sh: Removed.
23636 * grub-core/genhandlerlist.sh: Removed.
23637 * grub-core/genmodsrc.sh: Removed.
23638 * grub-core/genpartmaplist.sh: Removed.
23639 * grub-core/genparttoollist.sh: Removed.
23640 * grub-core/gentermiinallist.sh: Removed.
23641 * grub-core/genvideolist.sh: Removed.
23642
23643 * grub-core/genmod.sh.in: New file.
23644 * grub-core/gensyminfo.sh.in: New file.
23645
23646 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23647 * conf/Makefile.extra-dist: Update with new files.
23648 * gentpl.py: Remove rules related to unnecessary temporary files.
23649 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23650 and und-* files.
23651 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23652 genmod.sh scripts.
23653 * grub-core/bus/usb/uhci.c: Remove empty #define.
23654 * grub-core/genmoddep.awk: Updated with new syminfo format.
23655 * util/bash-completion.d/Makefile.am: Add config.log to
23656 CLEANFILES.
23657
23658 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23659
23660 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23661
23662 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23663
23664 * util/grub-mkconfig.in: Check the config script for syntax errors
23665 before saving.
23666
23667 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23668 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23669
23670 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23671 platforms.
23672 * util/grub-install.in: Add EFI and IEEE1275 support.
23673 * util/i386/efi/grub-install.in: Removed.
23674 * util/ieee1275/grub-install.in: Likewise.
23675
23676 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23677
23678 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23679 (grub_cmd_cmosclean): Likewise.
23680 (GRUB_MOD_INIT): Register command cmosclean.
23681 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23682 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23683
23684 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23685 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23686 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23687
23688 Add keyboard layouts support.
23689
23690 * Makefile.util.def (grub-mklayout): New file.
23691 (grub-kbdcomp): New script.
23692 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23693 Add keyboard_layouts.h.
23694 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23695 commands/boot.c on yeeloong.
23696 (keylayouts): New module.
23697 * grub-core/bus/usb/ohci.c
23698 * grub-core/bus/usb/uhci.c
23699 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23700 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23701 (attach_root_port): Likewise.
23702 (poll_nonroot_hub): Likewise.
23703 (grub_usb_poll_devices): Likewise.
23704 (detach_device): Close transfer.
23705 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23706 function.
23707 (grub_usb_bulk_setup_readwrite): Likewise.
23708 (grub_usb_bulk_finish_readwrite): Likewise.
23709 * grub-core/commands/keylayouts.c: New file.
23710 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23711 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23712 aliases.
23713 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23714 support scancode 2.
23715 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23716 * include/grub/keyboard_layouts.h: New file.
23717 * util/grub-mklayout.c: New file.
23718 * util/grub-kbdcomp.in: Likewise.
23719
23720 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 Unify memory types.
23723
23724 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23725 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23726 types.
23727 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23728 (grub_upper_mem): Likewise.
23729 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23730 * include/grub/memory.h (grub_memory_type_t): New enum.
23731 All users updated.
23732
23733 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23734
23735 * grub-core/Makefile.core.def (lsapm): New module.
23736 * grub-core/commands/i386/pc/lsapm.c: New file.
23737 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23738 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23739 Likewise.
23740 * include/grub/i386/pc/apm.h: New file.
23741 * include/multiboot.h (multiboot_apm_info): New struct.
23742
23743 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23744
23745 GRUB-legacy configuration file support.
23746
23747 * Makefile.util.def (grub-menulst2cfg): New util.
23748 * docs/man/grub-menulst2cfg.h2m: New file.
23749 * grub-core/Makefile.core.def (legacycfg): New module.
23750 * grub-core/commands/legacycfg.c: New file.
23751 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23752 (grub_normal_add_menu_entry): ... this.
23753 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23754 (grub_normal_set_password): ...this.
23755 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23756 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23757 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23758 * grub-core/lib/legacy_parse.c: New file.
23759 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23760 * include/grub/i386/pc/vesa_modes_table.h: New file.
23761 * include/grub/legacy_parse.h: Likewise.
23762 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23763 * util/grub-menulst2cfg.c: New file.
23764
23765 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23766
23767 * grub-core/kern/emu/hostdisk.c
23768 (convert_system_partition_to_system_disk): Initialise node.
23769
23770 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23771
23772 * grub-core/kern/emu/hostdisk.c
23773 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23774 leak.
23775 Reported and based on patch by: Modestas Vainius.
23776
23777 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23778
23779 Fix DM-RAID probing with recent versions of device-mapper udev
23780 rules.
23781
23782 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23783 canonicalise device paths under /dev/mapper/.
23784 (convert_system_partition_to_system_disk): Compare the
23785 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23786 path, since device nodes under /dev/mapper/ are often symlinks.
23787
23788 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23789
23790 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23791
23792 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23793
23794 * configure.ac: Avoid some annoying error messages if freetype-config
23795 program is not found.
23796
23797 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23798
23799 Support RAID on virtio devices, and others.
23800
23801 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23802 Rename to ...
23803 [__MINGW32__] (grub_find_device): ... this.
23804 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23805 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23806 reasonable default if dir is NULL.
23807 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23808 ...
23809 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23810 (grub_guess_root_device): Update callers.
23811 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23812
23813 * util/raid.c (grub_util_getdiskname): Remove.
23814 (grub_util_raid_getmembers): Use grub_find_device rather than
23815 grub_util_getdiskname.
23816
23817 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23818
23819 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23820 needing to be compiled with serial support.
23821 (ls): Indicate that multiple files are accepted.
23822 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23823 indicate that multiple files are accepted.
23824
23825 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23826
23827 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23828 libgrub_a_init.c, and util/bash-completion.d/grub.
23829
23830 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23831
23832 * util/grub-setup.c (setup): Fix incorrect container semantics.
23833
23834 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23837 misusage.
23838 Reported by: J. Nick Terry
23839
23840 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23841
23842 Move embedding routines to partmap sources files.
23843
23844 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23845 [GRUB_UTIL]: New variable.
23846 (gpt_partition_map_iterate): Set part.parent.
23847 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23848 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23849 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23850 New function.
23851 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23852 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23853 (grub_partition_map) [GRUB_UTIL]: New field embed.
23854 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23855 (setup): Use ->embed.
23856
23857 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23858
23859 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23860 function.
23861 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23862 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23863
23864 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23865
23866 Add function to get completions from usage.
23867
23868 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23869 completions from usage. Use LC_ALL=C to get options properly.
23870
23871 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23872
23873 * grub-core/gnulib/basename-lgpl.c: Imported.
23874 * grub-core/gnulib/basename.c: Likewise.
23875 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23876 * grub-core/gnulib/dirname.c: Likewise.
23877 * grub-core/gnulib/dirname.h: Likewise.
23878 * grub-core/gnulib/stripslash.c: Likewise.
23879
23880 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23881
23882 * grub-core/gnulib/error.c: Resynced.
23883 * grub-core/gnulib/getopt.c: Likewise.
23884 * grub-core/gnulib/getopt_int.h: Likewise.
23885 * grub-core/gnulib/regex.h: Likewise.
23886 * grub-core/gnulib/regex_internal.c: Likewise.
23887 * grub-core/gnulib/regex_internal.h: Likewise.
23888
23889 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23890
23891 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23892 CRC calculations and validity checks.
23893 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23894 calculations.
23895
23896 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23897
23898 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23899
23900 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23901
23902 Fix incorrect echo options handling.
23903 Reported by: Yves Blusseau.
23904
23905 * include/grub/command.h (grub_command_flags_t): New flags
23906 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23907 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23908 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23909
23910 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23911
23912 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23913 users updated.
23914 (GRUB_COMMAND_FLAG_MENU): Likewise.
23915 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23916 (GRUB_COMMAND_FLAG_TITLE): Removed.
23917 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23918 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23919 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23920 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23921 (grub_command_flags_t): New enum. All users updated.
23922
23923 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23924
23925 Fix solaris compilation.
23926
23927 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23928 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23929 (grub-emu-list): Likewise.
23930
23931 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23932
23933 Remove deprecated root command.
23934
23935 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23936 updated.
23937
23938 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23939
23940 * util/i386/pc/grub-setup.c: Merge this ...
23941 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23942 * util/grub-setup.c: ... into this.
23943 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23944 New struct.
23945
23946 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23947
23948 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23949 possible.
23950
23951 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23954 allocate p.
23955
23956 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23957
23958 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23959 explicit root argument to set to prevent UUID to be interpreted as
23960 argument to set.
23961
23962 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23963
23964 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23965
23966 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23967
23968 Don't export grub_gate_a20.
23969
23970 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23971 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23972 to ...
23973 (grub_gate_a20): ... this. All users updated.
23974 * include/grub/i386/pc/init.h: Removed. All users updated.
23975
23976 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23977
23978 Create euro.pf2 which supports most European languages.
23979
23980 * Makefile.am (grubdata_DATA): Add euro.pf2.
23981 (euro.pf2): New target.
23982 (CLEANFILES): Add euro.pf2.
23983
23984 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 * configure.ac: Disable emu-usb by default to prevent inadvertent
23987 device takeover.
23988
23989 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23990
23991 Disable usbserial on grub-emu since our libusb code isn't good enough
23992 yet.
23993
23994 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23995 (usbserial_pl2303): Likewise.
23996 (usbserial_ftdi): Likewise.
23997
23998 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23999
24000 * include/grub/disk.h (grub_disk): Remove has_partitions.
24001 All users updated.
24002 * disk/loopback.c (grub_loopback): Remove has_partitions.
24003 All users updated.
24004 (options): Remove partitions. All users updated.
24005 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24006 * util/i386/pc/grub-setup.c (setup): copy partition table only when
24007 actual partition table is found.
24008
24009 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24010
24011 Remove readability checks (too many false negatives).
24012
24013 * util/grub-install.in: Remove readability checks.
24014 * util/grub-mkconfig.in: Likewise.
24015 * util/grub.d/10_hurd.in: Likewise.
24016 * util/grub.d/10_kfreebsd.in: Likewise.
24017 * util/grub.d/10_linux.in: Likewise.
24018 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24019 way.
24020
24021 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24022
24023 Enable acpi shutdown on all ACPI platforms.
24024
24025 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24026 on coreboo, multiboot and EFI.
24027 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24028 (grub_acpi_halt): Likewise.
24029 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24030 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24031 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24032 * grub-core/lib/i386/halt.c (grub_halt)
24033 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24034
24035 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24036
24037 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24038 context.
24039
24040 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24041
24042 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24043 * grub-core/video/efi_uga.c: Likewise.
24044
24045 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24046
24047 Filter devaliases and never open same device twice.
24048
24049 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24050 (last_ihandle): Likewise.
24051 (ofdisk_hash_ent): New member shortest.
24052 (ofdisk_hash_add): Add canonical path too.
24053 (scan): New function.
24054 (grub_ofdisk_iterate): Iterate over hashed entries.
24055 (compute_dev_path): Don't add :0.
24056 (grub_ofdisk_open): Don't really open the disk.
24057 (grub_ofdisk_close): Avoid closing unrelated disk.
24058 (grub_ofdisk_read): Implement reopen logic.
24059 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24060 New function.
24061 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24062 New proto.
24063
24064 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24065
24066 Fix sparc64.
24067
24068 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24069 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24070 right address. Add sparc64_ieee1275_ldflags.
24071 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24072 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24073 to grub_host_to_target_addr
24074 (load_image): Likewise.
24075
24076 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24077
24078 * grub-core/normal/completion.c (complete_file): Handle device
24079 containing slash.
24080 Fix based on patch by Doug Nazar.
24081
24082 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24083
24084 grub-mknetdir script.
24085
24086 * Makefile.util.def (grub-mknetdir): New module.
24087 * tests/util/grub-shell.in: Support boot=net
24088 * util/grub-mknetdir.in: New file.
24089
24090 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24091
24092 videoinfo on non-vbe.
24093
24094 * grub-core/Makefile.core.def (vbeinfo): Removed.
24095 (vbetest): Removed.
24096 (videoinfo): New module.
24097 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24098 * grub-core/commands/i386/pc/vbetest.c: Removed.
24099 * grub-core/commands/videoinfo.c: New file.
24100 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24101 specification.
24102 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24103 as vbetest.
24104 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24105 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24106 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24107 mode_number. New parameter mode. All users updated.
24108 (grub_video_gop_iterate): New function.
24109 (grub_video_efi_gop): New member iterate.
24110 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24111 (grub_vbe_set_video_mode): Remove setting useless fields.
24112 (vbe2videoinfo): New function.
24113 (grub_video_vbe_iterate): Likewise.
24114 (grub_video_vbe_setup): Use vbe2videoinfo.
24115 (grub_video_vbe_print_adapter_specific_info): New function.
24116 (grub_video_vbe_adapter): New fields iterate and
24117 print_adapter_specific_info.
24118 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24119 All users updated.
24120 (grub_video_mode_info): New field mode_number.
24121 (grub_video_adapter): New fields iterate and
24122 print_adapter_specific_info.
24123
24124 2010-09-13 Tristan Gingold <gingold@free.fr>
24125 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24126 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24127
24128 * grub-core/commands/efi/lsefisystab.c: New file.
24129 * grub-core/commands/efi/lssal.c: Likewise.
24130 * grub-core/Makefile.core.def (lsacpi): New module.
24131 (lsefisystab): Likewise.
24132 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24133 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24134 (grub_efi_sal_system_table): New struct.
24135 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24136 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24137 (grub_efi_sal_system_table_platform_features): Likewise.
24138 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24139 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24140 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24141 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24142
24143 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24144
24145 Support explicit user claim that a device is BIOS-visible.
24146
24147 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24148 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24149 * grub-core/kern/emu/hostdisk.c
24150 (convert_system_partition_to_system_disk): Support mdX.
24151 (find_system_device): New parameter add. All users updated.
24152 (grub_util_biosdisk_is_present): New function.
24153 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24154 proto.
24155
24156 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24157
24158 Search hints support.
24159
24160 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24161 All users updated.
24162
24163 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24164
24165 Bash completion script for util commands
24166
24167 * Makefile.am: Add util/bash-completion.d directory
24168 * configure.ac: Likewise.
24169 * util/bash-completion.d/Makefile.am: New file.
24170 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24171
24172 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24173
24174 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24175 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24176 Reported by: Yves Blusseau.
24177
24178 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24179
24180 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24181 partition size and offset.
24182
24183 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24184
24185 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24186
24187 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24190
24191 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24192
24193 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24194 (grub_xvasprintf): Likewise.
24195
24196 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24197
24198 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24199
24200 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24201
24202 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24203 args ending with NULL.
24204
24205 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24208 pointer.
24209
24210 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24211
24212 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24213
24214 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24215
24216 Shutdown using ACPI.
24217
24218 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24219 * grub-core/commands/acpihalt.c: New file.
24220 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24221 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24222 (grub_acpi_halt): New proto.
24223 (GRUB_ACPI_SLP_EN): New const.
24224 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24225 (GRUB_ACPI_OPCODE_*): New enum.
24226 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24227
24228 2010-09-11 Tristan Gingold <gingold@free.fr>
24229 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24230 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24231
24232 * commands/lsacpi.c: New file.
24233 * grub-core/Makefile.core.def (lsacpi): New module.
24234 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24235 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24236 (grub_acpi_madt_entry_header): New struct.
24237 (grub_acpi_madt): Likewise.
24238 (grub_acpi_madt_entry_interrupt_override): Likewise.
24239 (grub_acpi_madt_entry_sapic): Likewise.
24240 (grub_acpi_madt_entry_lsapic): Likewise.
24241 (grub_acpi_madt_entry_platform_int_source): Likewise.
24242 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24243 (PRIuGRUB_UINT32_T): Likewise.
24244 (PRIxGRUB_UINT64_T): Likewise.
24245
24246 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24247
24248 Implement loading palette on ieee1275_fb.
24249
24250 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24251 (have_setcolors): Likewise.
24252 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24253 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24254 (grub_video_ieee1275_set_palette): Implement.
24255
24256 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24257 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24258
24259 * util/grub-install.in (grub_partition): New variable.
24260 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24261 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24262 Fixes a bug reported by Yves Blusseau.
24263
24264 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24265
24266 Fix emu on mipsel.
24267
24268 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24269 =grub_cpu_flush_cache on all mips and not only yeeloong.
24270 * configure.ac (COND_mips): New conditional.
24271 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24272 platforms.
24273 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24274 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24275 [GRUB_LINKER_HAVE_INIT]: New function.
24276 (grub_emu_post_init): Likewise.
24277 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24278 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24279 * include/grub/cache.h (_mips): Include mips/cache.h.
24280 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24281 LVM and RAID prototypes.
24282 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24283 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24284 function.
24285
24286 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24287
24288 * util/grub-install.in: Don't try to verify core.img until after
24289 running grub-mkimage to create it.
24290
24291 2010-09-10 Robert Millan <rmh@gnu.org>
24292
24293 * util/grub.d/10_hurd.in: Add misc readability checks.
24294 * util/grub.d/10_kfreebsd.in: Likewise.
24295 * util/grub.d/10_linux.in: Likewise.
24296
24297 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24298
24299 * util/grub-install.in: ${imgext} won't be defined here until the
24300 install branch is merged. For the meantime, only verify core.img on
24301 i386-pc and sparc64-ieee1275 platforms.
24302
24303 2010-09-10 Robert Millan <rmh@gnu.org>
24304
24305 Solaris support in grub_find_zpool_from_dir(). Thanks
24306 Seth Goldberg for referring to getextmntent() facility.
24307
24308 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24309 `sys/mkdev.h'.
24310 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24311 `<sys/mnttab.h>'.
24312 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24313 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24314 method for finding zpool name.
24315
24316 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24317
24318 grub-fstest needs the host and hostfs modules while other utilities
24319 actively require those modules to be absent, so grub-fstest needs
24320 its own initialisation and finalisation code.
24321
24322 * Makefile.am (grub_fstest.pp): New target.
24323 (grub_fstest_init.lst): Likewise.
24324 (grub_fstest_init.c): Likewise.
24325 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24326
24327 2010-09-10 Robert Millan <rmh@gnu.org>
24328
24329 * configure.ac: Check for `struct statfs.f_fstypename' and
24330 `struct statfs.f_mntfromname'.
24331
24332 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24333 kFreeBSD-specific code.
24334
24335 2010-09-10 Robert Millan <rmh@gnu.org>
24336
24337 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24338 on ZFS. Now non-main filesystems are supported as / too.
24339
24340 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24341
24342 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24343 and grub-core/disk/host.c to ...
24344 (grub-fstest): ... here. Having the host disk implementation
24345 present confuses grub-probe and other utility programs.
24346
24347 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24348 when writing to a file, not when writing to stdout.
24349
24350 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24351
24352 * tests/partmap_test.in: New test for partitions.
24353 * Makefile.util.def: Rules for new test.
24354
24355 2010-09-09 Robert Millan <rmh@gnu.org>
24356
24357 * util/grub-probe.c (probe): Fix a pair of unhandled error
24358 conditions.
24359
24360 2010-09-09 Robert Millan <rmh@gnu.org>
24361
24362 Basic Btrfs support (detection and UUID).
24363
24364 * grub-core/fs/btrfs.c: New file.
24365 * Makefile.util.def (library): Register btrfs.c.
24366 * grub-core/Makefile.core.def: Likewise.
24367
24368 2010-09-08 Robert Millan <rmh@gnu.org>
24369
24370 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24371 with (optional) parameters to specify device and relative path.
24372 * util/grub-install.in: Use is_path_readable_by_grub() to
24373 verify readability of a few critical files.
24374 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24375 verify readability of grub.cfg.new.
24376
24377 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24378
24379 Split minix.mod into minix.mod and minix2.mod.
24380
24381 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24382 * grub-core/Makefile.core.def (minix2): New module.
24383 * grub-core/fs/minix.c: Use definitions instead of runtime version
24384 checking.
24385 * grub-core/fs/minix2.c: New file.
24386
24387 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24388
24389 Add new --boot-directory option to replace --root-directory
24390
24391 * util/grub-install.in: Add new --boot-directory option
24392 * util/grub-reboot.in: Likewise.
24393 * util/grub-set-default.in: Likewise.
24394
24395 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24396
24397 * util/grub-mkconfig.in: Use new variable.
24398
24399 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24400
24401 * configure.ac: Define some useful variables.
24402
24403 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24404
24405 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24406 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24407 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24408 Use terminfo and don't use cursor-on/cursor-off unless it's known
24409 to work.
24410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24411 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24412
24413 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24414
24415 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24416 starts with "(,", fill the drive containing the loaded image in
24417 between those two characters, but expect that a full partition
24418 specification including partition map names will follow.
24419
24420 2010-09-08 Robert Millan <rmh@gnu.org>
24421
24422 * configure.ac: Remove `--enable-grub-fstest' option.
24423 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24424
24425 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24426 `grub-fstest' instead of `grub-probe' for readability verification.
24427 * util/grub-probe.c (probe): Remove readability verification kludge.
24428
24429 2010-09-08 Robert Millan <rmh@gnu.org>
24430
24431 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24432 initializing `GRUB_FS'.
24433
24434 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24435
24436 Not command (!) support to GRUB script.
24437
24438 * tests/grub_script_not.in: New test.
24439 * Makefile.util.def: Rules for new test.
24440
24441 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24442 ! command as a special case.
24443 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24444
24445 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24446
24447 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24448 grub_free.
24449
24450 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24451
24452 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24453
24454 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24455
24456 * docs/grub.texi (Shell-like scripting): Documentation for break,
24457 continue, shift and return commands.
24458
24459 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24460
24461 Rename CD-ROM to cd on BIOS.
24462
24463 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24464 "cd".
24465 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24466
24467 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24468
24469 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24470 * util/grub-probe.c (main): Likewise.
24471 * util/i386/pc/grub-setup.c (main): Likewise.
24472 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24473 Reported and debugged by: alexxy
24474
24475 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24476
24477 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24478 diagnostic info.
24479
24480 2010-09-05 Jo Shields <directhex@apebox.org>
24481
24482 * util/grub.d/30_os-prober.in: Add missing classes.
24483
24484 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24485
24486 * docs/grub.texi (Theme file format): Document new position format.
24487
24488 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24489
24490 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24491 a table. Use @code instead of @verbatim.
24492
24493 2010-09-05 Colin D Bennett <colin@gibibit.com>
24494
24495 Gfxmenu documentation.
24496
24497 * docs/grub.texi (Theme file format): New chapter.
24498
24499 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24500
24501 * grub-core/Makefile.core.def (xzio): New module.
24502 * grub-core/io/xzio.c: New file.
24503 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24504 * grub-core/lib/xzembed/xz_config.h: Likewise.
24505 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24506 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24507 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24508 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24509 * grub-core/lib/xzembed/xz_private.h: Likewise.
24510 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24511 * include/grub/file.h (grub_file_filter_id): New compression filter
24512 GRUB_FILE_FILTER_XZIO.
24513
24514 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24515
24516 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24517 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24518 size.
24519
24520 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24521
24522 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24523 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24524
24525 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24526
24527 Uncompressed checksum support.
24528
24529 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24530 (check_list): New parameter uncompress.
24531 (grub_cmd_hashsum): Handle --uncompress.
24532
24533 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24534
24535 Reintroduce testload.
24536
24537 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24538 from here ...
24539 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24540 (GRUB_MOD_INIT): New function.
24541 (GRUB_MOD_FINI): Likewise.
24542 * grub-core/Makefile.core.def (testload): New module.
24543
24544 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24545
24546 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24547 (uint8_t): New type.
24548 (uint16_t): Likewise.
24549 (uint32_t): Likewise.
24550 (uint64_t): Likewise.
24551
24552 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24553
24554 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24555
24556 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24557
24558 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24559 Made static.
24560 (grub_gzfile_open): Removed. All users updated.
24561 (GRUB_MOD_INIT): New function.
24562 (GRUB_MOD_FINI): Likewise.
24563 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24564 (grub_file_filters_enabled): Likewise.
24565 (grub_file_open): Handle filters.
24566 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24567 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24568 * include/grub/file.h (grub_file_filter_id_t): New type.
24569 (grub_file_filter_t): Likewise.
24570 (grub_file_filters_all): New extern variable.
24571 (grub_file_filters_enabled): Likewise.
24572 (grub_file_filter_register): New inline function.
24573 (grub_file_filter_unregister): Likewise.
24574 (grub_file_filter_disable): Likewise.
24575 (grub_file_filter_disable_compression): Likewise.
24576 * include/grub/gzio.h: Removed.
24577
24578 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24579
24580 Filename expansion support for wildcards in GRUB script.
24581
24582 * tests/grub_script_expansion.in: New test.
24583 * Makefile.util.def: Rule for new test.
24584
24585 * grub-core/commands/wildcard.c: New file, implements filename
24586 expansion support for GRUB script.
24587 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24588 * grub-core/script/argv.c: Cosmetic changes.
24589 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24590 Refactored to perform wildcard expansion on arguments.
24591 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24592 struct.
24593
24594 * tests/util/grub-shell.in: Fix quoting for read input.
24595
24596 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24597
24598 Support for updating environment variables with matched substrings
24599 of regexp.
24600
24601 * tests/grub_cmd_regexp.in: New test.
24602 * Makefile.util.def: Rule for new test.
24603
24604 * grub-core/commands/regexp.c: New option -s to update environment
24605 variables with regexp matches.
24606
24607 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24608
24609 * include/grub/file.h (grub_file): New member not_easly_seekable.
24610 (grub_file_seekable): New inline function.
24611 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24612 easily seekable.
24613 (grub_gzio_open): Set not_easly_seekable.
24614 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24615 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24616
24617 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24618
24619 Support for options to appear multiple times on cmdline.
24620
24621 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24622 * grub-core/commands/extcmd.c: Support for repeatable option.
24623 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24624 repeatable option support.
24625
24626 Refactor menuentry into a regular command.
24627
24628 * grub-core/commands/menuentry.c: New file, menuentry command
24629 implementation.
24630 * grub-core/Makefile.core.def: Rule update for normal.mod.
24631 * grub-core/normal/main.c: Moved menuentry creation to
24632 grub-core/commands/menuentry.c.
24633 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24634 (grub_menu_execute_entry_real): Removed.
24635 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24636 function.
24637 (grub_script_execute_menuentry): Removed.
24638 * grub-core/script/parser.y (menuentry): Removed.
24639 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24640 * grub-core/script/yylex.l (menuentry): Removed.
24641 * include/grub/menu.h (grub_menu_init): New prototype.
24642 (grub_menu_fini): New prototype.
24643 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24644 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24645 (grub_script_execute_sourcecode): New prototype.
24646
24647 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24648
24649 "return" command for GRUB script functions.
24650
24651 * tests/grub_script_return.in: New test.
24652 * Makefile.util.def: Rules for new test.
24653
24654 * grub-core/script/execute.c (grub_script_return): New function.
24655 * grub-core/script/main.c: Register/unregister return commaond.
24656 * include/grub/script_sh.h (grub_script_return): New prototype.
24657
24658 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24659
24660 "setparams" command to update positional parameters.
24661
24662 * tests/grub_script_setparams.in: New test.
24663 * Makefile.util.def: Rules for new test.
24664
24665 * grub-core/script/argv.c (grub_script_argv_make): New function.
24666 * grub-core/script/execute.c (replace_scope): New function.
24667 (grub_script_setparams): New function.
24668 * grub-core/script/lexer.c: Remove unused variables.
24669 * grub-core/script/main.c: Register/unregister setparams command.
24670 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24671 (grub_script_setparams): New prototype.
24672
24673 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24674
24675 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24676 grub_free order.
24677
24678 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24679
24680 Support for passing block of commands as an argument to extcmds.
24681
24682 * Makefile.util.def: Rules for new test.
24683 * tests/grub_script_blockarg.in: New test.
24684 * grub-core/tests/test_blockarg.c: New file, block argument
24685 command used in the test.
24686
24687 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24688 (grub_register_extcmd_prio): New function prototype.
24689 (grub_extcmd_dispatcher): New function prototype.
24690 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24691 type.
24692 * include/grub/script_sh.h (struct grub_script): New members
24693 `children', `next_siblings' and `refcnt' for block arguments and
24694 reference counting.
24695 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24696 (grub_script_arg): New member `script' for block argument.
24697 (grub_script_argv): New member `script' for block argument.
24698 (grub_parser_param): New member `scripts' for block argument.
24699 (grub_script_mem_free): New extern function prototype.
24700 (grub_script_ref): New function prototype.
24701 (grub_script_unref): New function prototype.
24702
24703 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24704 extcmd form to support block arguments.
24705 * grub-core/script/argv.c: Block arguments support.
24706 * grub-core/script/execute.c: Likewise.
24707 * grub-core/script/lexer.c: Likewise.
24708 * grub-core/script/main.c: Likewise.
24709 * grub-core/script/script.c: Likewise.
24710 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24711 non-terminals.
24712
24713 * grub-core/commands/acpi.c: Update extcmd implementations with
24714 grub_extcmd_context_t.
24715 * grub-core/commands/cat.c: Likewise.
24716 * grub-core/commands/echo.c: Likewise.
24717 * grub-core/commands/extcmd.c: Likewise.
24718 * grub-core/commands/hashsum.c: Likewise.
24719 * grub-core/commands/hdparm.c: Likewise.
24720 * grub-core/commands/help.c: Likewise.
24721 * grub-core/commands/hexdump.c: Likewise.
24722 * grub-core/commands/i386/cpuid.c: Likewise.
24723 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24724 * grub-core/commands/i386/pc/halt.c: Likewise.
24725 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24726 * grub-core/commands/iorw.c: Likewise.
24727 * grub-core/commands/keystatus.c: Likewise.
24728 * grub-core/commands/loadenv.c: Likewise.
24729 * grub-core/commands/ls.c: Likewise.
24730 * grub-core/commands/lspci.c: Likewise.
24731 * grub-core/commands/memrw.c: Likewise.
24732 * grub-core/commands/probe.c: Likewise.
24733 * grub-core/commands/search_wrap.c: Likewise.
24734 * grub-core/commands/setpci.c: Likewise.
24735 * grub-core/commands/sleep.c: Likewise.
24736 * grub-core/disk/loopback.c: Likewise.
24737 * grub-core/hello/hello.c: Likewise.
24738 * grub-core/loader/i386/bsd.c: Likewise.
24739 * grub-core/loader/xnu.c: Likewise.
24740 * grub-core/term/gfxterm.c: Likewise.
24741 * grub-core/term/serial.c: Likewise.
24742 * grub-core/tests/lib/functional_test.c: Likewise.
24743
24744 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24745
24746 Multi-line quoted strings support.
24747
24748 * grub-core/script/lexer.c (append_newline): Removed.
24749 (grub_script_lexer_yywrap): Refactored.
24750 (grub_script_lexer_init): Refactored.
24751 * grub-core/script/yylex.l (yywrap): New function.
24752 (grub_lexer_resplit): New function.
24753 (grub_lexer_unput): New function.
24754 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24755 and resplit.
24756 * tests/grub_script_echo1.in: Added few more testcases.
24757
24758 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24759
24760 * grub-core/kern/misc.c: Don't add abort alias in utils.
24761 Reported by: echoline.
24762
24763 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24764
24765 Add missing files into "make dist" tarball for other platforms.
24766
24767 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24768 * conf/Makefile.common (dist_noinst_DATA): New variable.
24769 * conf/Makefile.extra-dist: Added missing make dist files.
24770 * grub-core/Makefile.core.def: Likewise.
24771
24772 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24773
24774 Compress grub_prefix.
24775
24776 * grub-core/boot/i386/pc/lnxboot.S: Use
24777 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24778 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24779 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24780 GRUB_MACHINE_PREFIX_END. All users updated.
24781 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24782 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24783 + 0x40.
24784 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24785 * util/grub-mkimage.c (image_target_desc): Change data_end to
24786 prefix_end. All users updated.
24787
24788 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24789
24790 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24791 value.
24792 (grub_openbsd_boot): Likewise.
24793 (grub_netbsd_boot): Likewise.
24794 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24795 (grub_xnu_boot): Likewise.
24796
24797 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24798
24799 * configure.ac: Clean LIBS variable after tests.
24800
24801 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24802
24803 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24804
24805 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24806
24807 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24808 echo if libdevmapper will be used.
24809
24810 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24811
24812 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24813 constant for the same file.
24814
24815 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24816
24817 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24818
24819 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24820
24821 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24822 grub-core/*.pp.
24823
24824 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24825
24826 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24827 required by the boot protocol.
24828
24829 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24830 ebp and edi members.
24831 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24832 state.ebp and state.edi.
24833 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24834 %ebp and %edi according to grub_relocator32_ebp and
24835 grub_relocator32_edi respectively.
24836 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24837 and state.edi.
24838
24839 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24840
24841 Add i386-pc-pxe image target.
24842
24843 * util/grub-mkimage.c (image_target_desc): New enum value
24844 IMAGE_I386_PC_PXE.
24845 (image_targets): New target i386-pc-pxe.
24846 (generate_image): Handle i386-pc-pxe image.
24847
24848 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24849
24850 Fix grub_pxe_scan.
24851
24852 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24853 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24854 All users updated.
24855 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24856 (grub_pxe_pxenv): Correct type.
24857
24858 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24859
24860 * NEWS: Document most of the important changes since 1.98.
24861
24862 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24863
24864 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24865 generated manual page) a little.
24866
24867 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24868
24869 * docs/grub.texi: Add myself as an author.
24870
24871 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24872
24873 * Makefile.util.def (libgrub.a): Add missing sunpc.
24874 Reported by: Seth Goldberg.
24875
24876 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24877
24878 Interrupt wrapping and code simplifications.
24879
24880 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24881 x86_noieee1275 which are functionaly equivalent in this case.
24882 (grub-install): Make source on each platform explicit. Enable on
24883 all noemu.
24884 * gentpl.py (x86_efi_pc): Removed group.
24885 (x86_noefi): Likewise.
24886 (i386_noefi): Likewise.
24887 (x86_noieee1275): Likewise.
24888 (i386_noieee1275): Likewise.
24889 (i386_noefi_noieee1275): Likewise.
24890 (i386_pc_qemu_coreboot): Likewise.
24891 (i386_coreboot_multiboot): Likewise.
24892 (i386_pc_coreboot_multiboot_qemu): Likewise.
24893 (x86_noefi_mips): Likewise.
24894 (noieee1275): Likewise.
24895 (ieee1275_mips): Likewise.
24896 (noemu_noieee1275): Likewise.
24897 (cmos): New group.
24898 (usb): Likewise.
24899 (videoinkernel): Likewise.
24900 (videomodules): Likewise.
24901 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24902 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24903 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24904 include/grub/loader.h, include/grub/msdos_partition.h,
24905 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24906 include/grub/machine/console.h, include/grub/machine/vga.h,
24907 include/grub/machine/vbe.h, include/grub/machine/init.h,
24908 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24909 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24910 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24911 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24912 * grub-core/Makefile.core.def (kernel): Explicit the source for
24913 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24914 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24915 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24916 Use videoinkernel tag.
24917 (usb): Enable on all usb.
24918 (usbserial_common): Likewise.
24919 (usbserial_pl2303): Likewise.
24920 (usbserial_ftdi): Likewise.
24921 (uhci): Enable on all x86.
24922 (ohci): Enable on all pci.
24923 (cmostest): Enable on all CMOS.
24924 (acpi): Include commands/acpi.c on all platforms.
24925 (halt): Add relevant lib/*/halt.c.
24926 (hdparm): Enable on all pci.
24927 (lspci): Likewise.
24928 (usbtest): Enable on all usb.
24929 (ata): Enable on all pci.
24930 (ata_pthru): Likewise.
24931 (usbms): Enable on all usb.
24932 (usb_keyboard): Likewise.
24933 (font): Use tag videomodules.
24934 (bufio): Likewise.
24935 (datetime): Use tag cmos. Enable on all noemu.
24936 (mmap): Use tags common and x86.
24937 (gfxterm): Use tag videomodules.
24938 (bitmap): Likewise.
24939 (bitmap_scale): Likewise.
24940 (video_fb): Likewise.
24941 (video): Likewise.
24942 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24943 adjust padding accordingly. All users updated.
24944 (grub_ohci_transaction): Fix bad format specification.
24945 (GRUB_MOD_INIT): Add asserts for struct size.
24946 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24947 (grub_alloc_td): Likewise.
24948 (grub_free_queue): Likewise.
24949 (grub_uhci_transfer): Likewise.
24950 (grub_uhci_transaction): Fix bad format specification.
24951 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24952 (grub_usb_bulk_readwrite): Likewise.
24953 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24954 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24955 Made static.
24956 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24957 Made static.
24958 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24959 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24960 Transformed into C.
24961 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24962 Moved from here ...
24963 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24964 ... here. Transformed into C. Made static.
24965 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24966 Moved from here ...
24967 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24968 ... here. Transformed into C. Made static.
24969 * grub-core/kern/i386/pc/startup.S
24970 (grub_biosdisk_check_int13_extensions): Moved from here ...
24971 * grub-core/disk/i386/pc/biosdisk.c
24972 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24973 Made static.
24974 * grub-core/kern/i386/pc/startup.S
24975 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24976 * grub-core/disk/i386/pc/biosdisk.c
24977 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24978 Transformed into C. Made static.
24979 * grub-core/kern/i386/pc/startup.S
24980 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24981 * grub-core/disk/i386/pc/biosdisk.c
24982 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24983 Transformed into C. Made static.
24984 * grub-core/kern/i386/pc/startup.S
24985 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24986 * grub-core/disk/i386/pc/biosdisk.c
24987 (grub_biosdisk_get_diskinfo_standard): ... here.
24988 Transformed into C. Made static.
24989 * grub-core/kern/i386/pc/startup.S
24990 (grub_biosdisk_get_num_floppies): Moved from here ...
24991 * grub-core/disk/i386/pc/biosdisk.c
24992 (grub_biosdisk_get_num_floppies): ... here.
24993 Transformed into C. Made static.
24994 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24995 New function.
24996 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24997 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24998 Transformed into C. Made static.
24999 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25000 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25001 Transformed into C. Made static.
25002 * grub-core/kern/i386/ieee1275/init.c: Removed.
25003 * grub-core/kern/i386/misc.S: Likewise.
25004 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25005 Splitted from here ...
25006 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25007 Transformed into C. Made static. All users updated.
25008 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25009 Transformed into C. Made static. All users updated.
25010 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25011 Moved from here...
25012 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25013 Transformed into C. Made static. All users updated.
25014 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25015 Moved from here...
25016 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25017 Transformed into C. Made static. All users updated.
25018 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25019 Removed (replaced by C version).
25020 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25021 Moved from here...
25022 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25023 Transformed into C. Made static.
25024 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25025 Moved from here...
25026 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25027 ... here. Transformed into C.
25028 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25029 Moved from here...
25030 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25031 ... here. Transformed into C.
25032 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25033 Moved from here...
25034 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25035 ... here. Transformed into C. Made static.
25036 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25037 Moved from here...
25038 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25039 ... here. Transformed into C.
25040 * grub-core/kern/i386/pc/startup.S
25041 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25042 * grub-core/video/i386/pc/vbe.c
25043 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25044 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25045 Moved from here...
25046 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25047 ... here. Transformed into C.
25048 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25049 Moved from here...
25050 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25051 ... here. Transformed into C.
25052 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25053 Moved from here...
25054 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25055 ... here. Transformed into C.
25056 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25057 Moved from here...
25058 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25059 ... here. Transformed into C.
25060 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25061 Moved from here...
25062 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25063 ... here. Transformed into C. Made static.
25064 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25065 Moved from here...
25066 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25067 ... here. Transformed into C. Made static.
25068 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25069 Moved from here...
25070 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25071 ... here. Transformed into C. Made static.
25072 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25073 pxe_rm_entry as third argument.
25074 (grub_bios_interrupt): New function.
25075 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25076 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25077 of calling grub_stop.
25078 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25079 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25080 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25081 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25082 * grub-core/lib/i386/halt.c: Moved from here ...
25083 * grub-core/lib/i386/halt.c: ... here.
25084 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25085 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25086 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25087 grub_stop_floppy.
25088 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25089 * include/grub/i386/coreboot/init.h: Removed.
25090 * include/grub/i386/multiboot/init.h: Likewise.
25091 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25092 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25093 * include/grub/i386/pc/int.h: New file.
25094 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25095 (grub_pxe_scan): Removed.
25096 (grub_pxe_call): Update prototype.
25097 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25098 prototypes.
25099 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25100 * include/grub/i386/qemu/init.h: Removed.
25101 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25102 noreturn.
25103 (grub_halt): Likewise.
25104 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25105 (grub_reboot): Likewise.
25106 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25107 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25108 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25109
25110 2010-08-30 Robert Millan <rmh@gnu.org>
25111
25112 * NEWS: Document addition of ZFS support in `grub-install' and
25113 `grub-mkconfig'.
25114
25115 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25116
25117 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25118 dprintf output.
25119
25120 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25121
25122 Remove leftover embedding of font objects.
25123
25124 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25125 * util/grub-install.in (font): Removed.
25126 * util/grub-mkimage.c (generate_image): Remove font support. All users
25127 updated.
25128
25129 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25130
25131 Remove leftover embedding of font objects.
25132
25133 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25134 * util/grub-install.in (font): Removed.
25135 * util/grub-mkimage.c (generate_image): Remove font support. All users
25136 updated.
25137
25138 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25139
25140 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25141 Reported by: Ian Turner
25142
25143 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25144
25145 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25146 timeout to avoid indefinite boot stalling.
25147
25148 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25149
25150 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25151 (grub_env_write_color_highlight): Likewise.
25152
25153 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25154
25155 * grub-core/normal/term.c (print_more): Return to normal and not
25156 to standard state after printing "---MORE---".
25157
25158 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25159
25160 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25161 Mask out the bit 0x80 since it has other meaning that specifiing color.
25162
25163 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25164
25165 New relocator. Allows for more kernel support and more straightforward
25166 loader writing.
25167
25168 * Makefile.am (BOOTTARGET): New variable.
25169 (QEMU32): Likewise.
25170 (linux.init.x86_64): New target.
25171 (linux.init.i386): Likewise.
25172 (multiboot.elf): Likewise.
25173 (kfreebsd.elf): Likewise.
25174 (kfreebsd.aout): Likewise.
25175 (pc-chainloader.elf): Likewise.
25176 (pc-chainloader.bin): Likewise.
25177 (ntldr.elf): Likewise.
25178 (ntldr.bin): Likewise.
25179 (multiboot2.elf): Likewise.
25180 (kfreebsd.init.x86_64): Likewise.
25181 (kfreebsd.init.i386): Likewise.
25182 (knetbsd.init.i386): Likewise.
25183 (kopenbsd.init.i386): Likewise.
25184 (knetbsd.init.x86_64): Likewise.
25185 (kopenbsd.init.x86_64): Likewise.
25186 (linux-initramfs.i386): Likewise.
25187 (linux-initramfs.x86_64): Likewise.
25188 (kfreebsd-mfsroot.i386.img): Likewise.
25189 (knetbsd.image.i386): Likewise.
25190 (kopenbsd.image.i386): Likewise.
25191 (kopenbsd.image.x86_64): Likewise.
25192 (knetbsd.miniroot-image.i386.img): Likewise.
25193 (kfreebsd-mfsroot.x86_64.img): Likewise.
25194 (knetbsd.image.x86_64): Likewise.
25195 (knetbsd.miniroot-image.x86_64.img): Likewise.
25196 (kfreebsd-mfsroot.i386.gz): Likewise.
25197 (bootcheck-kfreebsd-i386): Likewise.
25198 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25199 (bootcheck-kfreebsd-x86_64): Likewise.
25200 (knetbsd.miniroot-image.i386.gz): Likewise.
25201 (bootcheck-knetbsd-i386): Likewise.
25202 (bootcheck-kopenbsd-i386): Likewise.
25203 (bootcheck-kopenbsd-x86_64): Likewise.
25204 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25205 (bootcheck-knetbsd-x86_64): Likewise.
25206 (bootcheck-linux-i386): Likewise.
25207 (bootcheck-linux-x86_64): Likewise.
25208 (bootcheck-linux16-i386): Likewise.
25209 (bootcheck-linux16-x86_64): Likewise.
25210 (bootcheck-multiboot): Likewise.
25211 (bootcheck-multiboot2): Likewise.
25212 (bootcheck-kfreebsd-aout): Likewise.
25213 (bootcheck-pc-chainloader): Likewise.
25214 (bootcheck-ntldr): Likewise.
25215 (CLEANFILES): Add new targets.
25216 (BOOTCHECKS): New variable.
25217 (.PHONY): Add bootchecks.
25218 (SUCCESSFUL_BOOT_STRING): New variable.
25219 (BOOTCHECK_TIMEOUT): Likewise.
25220 (bootcheck): New target
25221 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25222 * configure.ac: Correct efiemu excuse.
25223 * docs/grub.texi (Supported kernels): New chapter.
25224 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25225 include/grub/mm_private.h. Simplify inclusion of
25226 include/grub/boot.h, include/grub/loader.h
25227 and include/grub/msdos_partition.h
25228 (KERNEL_HEADER_FILES) [i386_coreboot]:
25229 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25230 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25231 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25232 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25233 include/grub/machine/loader.h.
25234 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25235 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25236 extra_dist.
25237 (pci.mod): Enable on i386-multiboot.
25238 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25239 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25240 i386-qemu.
25241 (relocator.mod): Rewritten.
25242 (aout.mod): Enable on all x86.
25243 (bsd.mod): Likewise.
25244 (ntldr.mod): New module.
25245 (linux.mod): Use loader/i386/linux.c on all x86.
25246 (xnu.mod): Enable on all x86.
25247 (vga_text.mod): disable on EFI and QEMU.
25248 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25249 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25250 * grub-core/efiemu/loadcore.c: Likewise.
25251 * grub-core/efiemu/main.c: Likewise.
25252 (grub_efiemu_exit_boot_services): Removed.
25253 (grub_efiemu_finish_boot_services): Likewise.
25254 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25255 function.
25256 * grub-core/efiemu/i386/nocfgtables.c: New file.
25257 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25258 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25259 (grub_efi_finish_boot_services): Moved from here ...
25260 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25261 Fille finish memory map and related data.
25262 (finish_mmap_buf): New variable.
25263 (grub_efi_uintn_t finish_mmap_size): Likewise.
25264 (grub_efi_uintn_t finish_key): Likewise.
25265 (grub_efi_uintn_t finish_desc_size): Likewise.
25266 (grub_efi_uint32_t finish_desc_version): Likewise.
25267 (grub_efi_is_finished): Likewise.
25268 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25269 finished.
25270 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25271 (grub_elf64_phdr_iterate): Likewise.
25272 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25273 (grub_os_area_size): Likewise.
25274 (grub_machine_init): Don't reserve os area.
25275 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25276 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25277 * grub-core/kern/i386/loader.S: Removed.
25278 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25279 (grub_os_area_size): Likewise.
25280 (grub_machine_init): Don't reserve os area.
25281 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25282 Don't call grub_dl_unload_all.
25283 Don't include loader.S.
25284 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25285 Declare the memory after _end as available.
25286 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25287 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25288 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25289 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25290 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25291 * include/grub/mm_private.h (grub_mm_header): ... here.
25292 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25293 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25294 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25295 (grub_mm_region): ..here. Removed addr. Added pre_size.
25296 All users updated.
25297 * grub-core/kern/mm.c (base): Renamed to ...
25298 (grub_mm_base): ... this. Made global.
25299 (grub_real_malloc): Alloc from end of region.
25300 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25301 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25302 * grub-core/kern/powerpc/cache_flush.S: ... here.
25303 * grub-core/lib/efi/relocator.c: New file.
25304 * grub-core/lib/i386/relocator.c: Rewritten.
25305 * grub-core/lib/i386/relocator16.S: New file.
25306 * grub-core/lib/i386/relocator32.S: Likewise.
25307 * grub-core/lib/i386/relocator64.S: Likewise.
25308 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25309 * grub-core/lib/i386/relocator_common.S: New file.
25310 * grub-core/lib/ieee1275/relocator.c: Likewise.
25311 * grub-core/lib/mips/relocator.c: Rewritten.
25312 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25313 stylistic adjustments.
25314 * grub-core/lib/powerpc/relocator.c: New file.
25315 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25316 * grub-core/lib/relocator.c: Rewritten.
25317 * grub-core/lib/x86_64/relocator_asm.S: New file.
25318 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25319 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25320 (bsd_tag): New struct.
25321 (tags): New variable.
25322 (tags_last): Likewise.
25323 (netbsd_module): New struct.
25324 (netbsd_mods): New variable.
25325 (netbsd_mods_last): Likewise.
25326 (openbsd_opts): New parameter "serial".
25327 (OPENBSD_SERIAL_ARG): New definition.
25328 (netbsd_opts): New parameter "serial".
25329 (NETBSD_SERIAL_ARG): New definition.
25330 (grub_freebsd_add_meta): Reorganised into ...
25331 (grub_bsd_add_meta): ...this. All users updated.
25332 (grub_freebsd_add_mmap): Reorganised into ...
25333 (generate_e820_mmap): ...this...
25334 (grub_bsd_add_mmap): ...and this. All users updated.
25335 (grub_freebsd_list_modules): Use tags.
25336 (grub_netbsd_add_meta_module): New function.
25337 (grub_netbsd_list_modules): Likewise.
25338 (grub_freebsd_boot): Use relocator and finish EFI.
25339 (grub_openbsd_boot): Likewise.
25340 (grub_netbsd_setup_video): New function.
25341 (grub_netbsd_add_modules): Likewise.
25342 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25343 and finish EFI.
25344 (grub_bsd_unload): Unload tags.
25345 (grub_bsd_load_aout): Use relocator.
25346 (grub_bsd_elf32_size_hook): New function.
25347 (grub_bsd_elf32_hook): Use relocator.
25348 (grub_bsd_elf64_size_hook): New function.
25349 (grub_bsd_elf64_hook): Use relocator.
25350 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25351 (grub_bsd_load): Zero-out openbsd_ramdisk.
25352 (grub_bsd_load): Use relocator.
25353 (grub_cmd_openbsd): Support serial.
25354 (grub_cmd_netbsd): Support modules.
25355 (grub_cmd_freebsd_module): Use relocator.
25356 (grub_netbsd_module_load): New function.
25357 (grub_cmd_netbsd_module): Likewise.
25358 (grub_cmd_openbsd_ramdisk): Likewise.
25359 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25360 kopenbsd_ramdisk.
25361 (GRUB_MOD_FINI): Unregister new commands.
25362 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25363 (grub_freebsd_load_elfmodule_obj): Use relocator.
25364 (grub_freebsd_load_elfmodule): Likewise.
25365 (grub_freebsd_load_elf_meta): Likewise.
25366 (grub_netbsd_load_elf_meta): New function.
25367 (grub_openbsd_find_ramdisk): Likewise.
25368 * grub-core/loader/i386/bsd_helper.S: Removed.
25369 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25370 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25371 * grub-core/loader/i386/efi/linux.c: Likewise.
25372 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25373 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25374 (DEFAULT_VIDEO_MODE): Likewise.
25375 (real_mode_target): New variable.
25376 (prot_mode_target): Likewise.
25377 (initrd_mem_target): Likewise.
25378 (relocator): Likewise.
25379 (efi_mmap_buf): Likewise.
25380 (efi_mmap_size): Likewise.
25381 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25382 (free_pages): Use relocator.
25383 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25384 (grub_linux_setup_video): Return error.
25385 (grub_linux_trampoline_start): Removed.
25386 (grub_linux_trampoline_end): Likewise.
25387 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25388 andd video parameters depending on firmware.
25389 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25390 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25391 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25392 (grub_cmd_initrd): Use relocator.
25393 * grub-core/loader/i386/linux_trampoline.S: Removed.
25394 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25395 (elf_sec_entsize): Likewise.
25396 (elf_sec_shstrndx): Likewise.
25397 (elf_sections): Likewise.
25398 (grub_multiboot_load): Use relocator.
25399 (grub_multiboot_get_mbi_size): Account for sections.
25400 (grub_multiboot_make_mbi): Use relocator and support sections.
25401 (grub_multiboot_add_elfsyms): New function.
25402 (grub_multiboot_free_mbi): Free sections.
25403 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25404 (grub_linux_real_target): Likewise.
25405 (grub_linux_real_chunk): Likewise.
25406 (grub_linux16_prot_size): Likewise.
25407 (grub_linux16_boot): Use relocator.
25408 (grub_linux_unload): Unload relocator.
25409 (grub_cmd_linux): Use relocator.
25410 (grub_cmd_initrd): Likewise.
25411 * grub-core/loader/i386/pc/ntldr.c: New file.
25412 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25413 Don't try to guess CPU frequency.
25414 (grub_xnu_set_video): Stretch bitmap.
25415 (grub_xnu_boot): Use relocator.
25416 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25417 (grub_linux_unload): Free relocator.
25418 (grub_linux_load32): Use relocator.
25419 (grub_linux_load64): Likewise.
25420 (grub_cmd_initrd): Likewise.
25421 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25422 (grub_multiboot_unload): Unload relocator.
25423 (grub_cmd_multiboot): Use relocator.
25424 (grub_cmd_module): Likewise.
25425 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25426 Use relocator and support sections.
25427 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25428 (elf_sec_entsize): Likewise.
25429 (elf_sec_shstrndx): Likewise.
25430 (elf_sections): Likewise.
25431 (grub_multiboot_load): Use relocator.
25432 (grub_multiboot_get_mbi_size): Account for sections.
25433 (grub_multiboot_make_mbi): Use relocator and support sections.
25434 (grub_multiboot_add_elfsyms): New function.
25435 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25436 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25437 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25438 Prototype changed. All users updated.
25439 (grub_xnu_align_heap): Simplified.
25440 (grub_xnu_writetree_toheap): Likewise.
25441 (grub_xnu_unload): Unload relocator.
25442 (grub_cmd_xnu_kernel): Use relocator.
25443 (grub_cmd_xnu_kernel64): Likewise.
25444 (grub_xnu_register_memory): Simplified.
25445 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25446 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25447 EFI is finished.
25448 (grub_console_checkkey): Likewise.
25449 (grub_console_getkey): Likewise.
25450 (grub_console_getwh): Likewise.
25451 (grub_console_getxy): Likewise.
25452 (grub_console_gotoxy): Likewise.
25453 (grub_console_cls): Likewise.
25454 (grub_console_setcolorstate): Likewise.
25455 (grub_console_setcursor): Likewise.
25456 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25457 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25458 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25459 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25460 * grub-core/tests/boot/kernel-8086.S: Likewise.
25461 * grub-core/tests/boot/kernel-i386.S: Likewise.
25462 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25463 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25464 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25465 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25466 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25467 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25468 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25469 * grub-core/tests/boot/linux.cfg: Likewise.
25470 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25471 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25472 * grub-core/tests/boot/linux16.cfg: Likewise.
25473 * grub-core/tests/boot/multiboot.cfg: Likewise.
25474 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25475 * grub-core/tests/boot/ntldr.cfg: Likewise.
25476 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25477 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25478 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25479 New definition.
25480 * include/grub/dl.h (grub_dl_unload_all): Removed.
25481 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25482 (grub_efi_finish_boot_services): Change prototype.
25483 (grub_efi_is_finished): New variable.
25484 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25485 Changed prototype.
25486 (grub_efiemu_finish_boot_services): Removed.
25487 (grub_machine_efiemu_init_tables): New prototype.
25488 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25489 (grub_elf64_phdr_iterate): Likewise.
25490 * include/grub/i386/bsd.h: Include relocator.h.
25491 (freebsd_tag_header): New struct.
25492 (grub_openbsd_bios_mmap): Removed.
25493 (grub_unix_real_boot): Removed.
25494 (grub_freebsd_load_elfmodule32): Changed prototype.
25495 (grub_freebsd_load_elfmodule_obj64): Likewise.
25496 (grub_freebsd_load_elf_meta32): Likewise.
25497 (grub_freebsd_load_elf_meta64): Likewise.
25498 (grub_freebsd_add_meta): Removed.
25499 (grub_netbsd_load_elf_meta32): New prototype.
25500 (grub_netbsd_load_elf_meta64): Likewise.
25501 (grub_bsd_add_meta): Likewise.
25502 (grub_openbsd_ramdisk_descriptor): New struct.
25503 (grub_openbsd_find_ramdisk32): New prototype.
25504 (grub_openbsd_find_ramdisk64): Likewise.
25505 * include/grub/i386/coreboot/loader.h: Removed.
25506 * include/grub/i386/efi/loader.h: Likewise.
25507 * include/grub/i386/ieee1275/loader.h: Likewise.
25508 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25509 to grub_uint32_t.
25510 * include/grub/i386/loader.h: Removed.
25511 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25512 value.
25513 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25514 (grub_phys_addr_t): New type.
25515 (grub_vtop): New inline function.
25516 (grub_map_memory): Likewise.
25517 (grub_unmap_memory): Likewise.
25518 * include/grub/i386/multiboot/loader.h: Removed.
25519 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25520 (NETBSD_BTINFO_CONSOLE): New definition.
25521 (NETBSD_BTINFO_SYMTAB): Likewise.
25522 (NETBSD_BTINFO_MODULES): Likewise.
25523 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25524 (grub_netbsd_bootinfo): New struct.
25525 (grub_netbsd_btinfo_common): Use explicit bitsize.
25526 (grub_netbsd_btinfo_mmap_entry): Removed.
25527 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25528 (grub_netbsd_btinfo_bootdisk): New struct.
25529 (grub_netbsd_btinfo_symtab): Likewise.
25530 (grub_netbsd_btinfo_serial): Likewise.
25531 (grub_netbsd_btinfo_modules): Likewise.
25532 (grub_netbsd_btinfo_framebuf): Likewise.
25533 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25534 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25535 Likewise.
25536 (grub_openbsd_bootargs): Use explicit bitsize.
25537 (grub_openbsd_bootarg_console): New struct.
25538 (GRUB_OPENBSD_COM_MAJOR): New definition.
25539 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25540 * include/grub/i386/pc/efiemu.h: Removed.
25541 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25542 * include/grub/i386/qemu/loader.h: Removed.
25543 * include/grub/i386/relocator.h: Rewritten.
25544 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25545 * include/grub/mips/memory.h: New file.
25546 * include/grub/mips/multiboot.h: Rewritten.
25547 * include/grub/mips/relocator.h: Rewritten.
25548 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25549 (grub_vtop): New function.
25550 (grub_map_memory): Likewise.
25551 (grub_unmap_memory): Likewise.
25552 * include/grub/misc.h (ALIGN_DOWN): New definition.
25553 * include/grub/mm.h (grub_mm_check_real): New proto.
25554 (GRUB_MM_CHECK): New definition.
25555 * include/grub/mm_private.h: New file.
25556 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25557 (grub_multiboot_get_mbi_size): Removed.
25558 (grub_multiboot_make_mbi): Change prottype.
25559 (grub_multiboot_set_accepts_video): New proto.
25560 (grub_multiboot_add_elfsyms): Likewise.
25561 (grub_multiboot_payload_eip): New variable.
25562 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25563 New prototype.
25564 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25565 New definition.
25566 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25567 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25568 * include/grub/powerpc/ieee1275/loader.h: Removed.
25569 * include/grub/powerpc/memory.h: New file.
25570 * include/grub/powerpc/relocator.h: Likewise.
25571 * include/grub/relocator.h: Likewise.
25572 * include/grub/relocator_private.h: Likewise.
25573 * include/grub/sparc64/ieee1275/loader.h: Removed.
25574 * include/grub/x86_64/memory.h: New file.
25575 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25576 (grub_xnu_heap_malloc): Likewise.
25577 (grub_xnu_heap_real_start): Removed.
25578 (grub_xnu_heap_start): Likewise.
25579 (grub_xnu_relocator): New variable.
25580 (grub_xnu_heap_target_start): Likewise.
25581 * tests/util/grub-shell.in: Support non-pc.
25582 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25583
25584 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25585
25586 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25587 on malloc error.
25588 (grub_bidi_logical_to_visual): Check that malloc succeded.
25589 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25590 puts.
25591 (grub_xputs_normal): Likewise.
25592
25593 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25594
25595 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25596 extra_dist.
25597
25598 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25599
25600 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25601
25602 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25603
25604 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25605
25606 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25607
25608 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25609 dprintf.
25610
25611 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25612
25613 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25614
25615 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25616
25617 * grub-core/normal/term.c (print_more): Fix a memory leak.
25618 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25619 (grub_xputs_normal): Likewise.
25620
25621 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25622
25623 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25624 the begining of the string
25625
25626 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25627
25628 * grub-core/script/script.c (grub_script_parse): Free parsed on
25629 failure.
25630
25631 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25632
25633 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25634 on failure.
25635
25636 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25637
25638 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25639 return.
25640
25641 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25642
25643 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25644 (scroll_up): Fix a memory leak.
25645
25646 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25647
25648 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25649 errors.
25650
25651 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25652
25653 Handle USB pendrives exposed as floppies.
25654
25655 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25656 floppy.
25657 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25658 Check for partitions on all devices.
25659
25660 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25661
25662 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25663 (readkey): Likewise.
25664
25665 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25666
25667 Multiple variable names support to "export" command.
25668
25669 * normal/context.c (grub_cmd_export): "export" command supports
25670 multiple variable names.
25671
25672 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25673
25674 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25675 --target=drive output to Mach device name.
25676
25677 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25678
25679 New Automake based build system for GRUB.
25680
25681 * ABOUT-NLS: New file.
25682 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25683 in Makefile.util.def file.
25684 * Makefile.util.def: New file. Autogen build definitions file for
25685 GRUB host utils.
25686 * conf/Makefile.common: New file. Common variables for GRUB host
25687 utils and target modules.
25688 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25689 * docs/Makefile.am: New file. Automake file for docs.
25690 * gentpl.py: New file. Python script to generate Autogen
25691 template.
25692 * grub-core/Makefile.am: New file. GRUB target modules' rules
25693 that doesn't fit in Makefile.core.def file.
25694 * grub-core/Makefile.core.def: New file. Autogen build
25695 definitions file for GRUB target modules.
25696 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25697 specific setjmp.S file.
25698 * po/Makefile.am: New file.
25699
25700 * .bzrignore: New ignores.
25701 * INSTALL: New requirements, without Ruby.
25702 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25703 * autogen.sh: Updated to invoke autogen as necessary.
25704 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25705 and defines for Automake conditionals.
25706 * geninit.sh: Refactoring.
25707
25708 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25709 necessary.
25710 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25711 New prototype.
25712
25713 * include/grub/test.h: Fix functional test modules' naming.
25714 * grub-core/tests/example_functional_test.c: Fix test module name.
25715
25716 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25717 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25718 * util/grub-editenv.c: Likewise.
25719 * util/grub-fstest.c: Likewise.
25720 * util/grub-mkdevicemap.c: Likewise.
25721 * util/grub-mkfont.c: Likewise.
25722 * util/grub-mkimage.c: Likewise.
25723 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25724 * util/grub-probe.c: Likewise.
25725 * util/grub-script-check.c: Likewise.
25726 * util/i386/pc/grub-setup.c: Likewise.
25727 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25728
25729 * tests/util/grub-shell.in: Fix override directory path.
25730 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25731 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25732
25733 * util/lvm.c: Update #includes.
25734 * util/raid.c: Likewise.
25735 * util/resolve.c: Likewise.
25736 * grub-core/bus/emu/pci.c: Likewise.
25737 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25738 * grub-core/lib/posix_wrap/string.h: Likewise.
25739 * grub-core/kern/emu/main.c: Likewise.
25740
25741 * grub-core/gensymlist.sh: New file. Script for generating kernel
25742 symbols file.
25743 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25744
25745 * grub-core/gentrigtables.c: Fix unused variable warnings.
25746
25747 * Makefile.in: Removed.
25748 * conf/any-emu.rmk: Removed.
25749 * conf/common.rmk: Removed.
25750 * conf/i386-coreboot.rmk: Removed.
25751 * conf/i386-efi.rmk: Removed.
25752 * conf/i386-ieee1275.rmk: Removed.
25753 * conf/i386-multiboot.rmk: Removed.
25754 * conf/i386-pc.rmk: Removed.
25755 * conf/i386-qemu.rmk: Removed.
25756 * conf/i386.rmk: Removed.
25757 * conf/mips-yeeloong.rmk: Removed.
25758 * conf/mips.rmk: Removed.
25759 * conf/powerpc-ieee1275.rmk: Removed.
25760 * conf/sparc64-ieee1275.rmk: Removed.
25761 * conf/tests.rmk: Removed.
25762 * conf/x86-efi.rmk: Removed.
25763 * conf/x86_64-efi.rmk: Removed.
25764 * gendistlist.sh: Removed.
25765 * geninitheader.sh: Removed.
25766 * genkernsyms.sh.in: Removed.
25767 * genmk.rb: Removed.
25768 * gensymlist.sh.in: Removed.
25769 * mkinstalldirs: Removed.
25770 * boot: Moved ...
25771 * grub-core/boot: ... to here.
25772 * bus: Moved ...
25773 * grub-core/bus: ... to here.
25774 * commands: Moved ...
25775 * grub-core/commands: ... to here.
25776 * disk: Moved ...
25777 * grub-core/disk: ... to here.
25778 * efiemu: Moved ...
25779 * grub-core/efiemu: ... to here.
25780 * font: Moved ...
25781 * grub-core/font: ... to here.
25782 * fs: Moved ...
25783 * grub-core/fs: ... to here.
25784 * gencmdlist.sh: Moved ...
25785 * grub-core/gencmdlist.sh: ... to here.
25786 * genemuinit.sh: Moved ...
25787 * grub-core/genemuinit.sh: ... to here.
25788 * genemuinitheader.sh: Moved ...
25789 * grub-core/genemuinitheader.sh: ... to here.
25790 * genfslist.sh: Moved ...
25791 * grub-core/genfslist.sh: ... to here.
25792 * genhandlerlist.sh: Moved ...
25793 * grub-core/genhandlerlist.sh: ... to here.
25794 * genmoddep.awk: Moved ...
25795 * grub-core/genmoddep.awk: ... to here.
25796 * genmodsrc.sh: Moved ...
25797 * grub-core/genmodsrc.sh: ... to here.
25798 * genpartmaplist.sh: Moved ...
25799 * grub-core/genpartmaplist.sh: ... to here.
25800 * genparttoollist.sh: Moved ...
25801 * grub-core/genparttoollist.sh: ... to here.
25802 * genterminallist.sh: Moved ...
25803 * grub-core/genterminallist.sh: ... to here.
25804 * gentrigtables.c: Moved ...
25805 * grub-core/gentrigtables.c: ... to here.
25806 * genvideolist.sh: Moved ...
25807 * grub-core/genvideolist.sh: ... to here.
25808 * gettext: Moved ...
25809 * grub-core/gettext: ... to here.
25810 * gfxmenu: Moved ...
25811 * grub-core/gfxmenu: ... to here.
25812 * gnulib: Moved ...
25813 * grub-core/gnulib: ... to here.
25814 * hello: Moved ...
25815 * grub-core/hello: ... to here.
25816 * hook: Moved ...
25817 * grub-core/hook: ... to here.
25818 * io: Moved ...
25819 * grub-core/io: ... to here.
25820 * kern: Moved ...
25821 * grub-core/kern: ... to here.
25822 * lib: Moved ...
25823 * grub-core/lib: ... to here.
25824 * loader: Moved ...
25825 * grub-core/loader: ... to here.
25826 * mmap: Moved ...
25827 * grub-core/mmap: ... to here.
25828 * normal: Moved ...
25829 * grub-core/normal: ... to here.
25830 * partmap: Moved ...
25831 * grub-core/partmap: ... to here.
25832 * parttool: Moved ...
25833 * grub-core/parttool: ... to here.
25834 * script: Moved ...
25835 * grub-core/script: ... to here.
25836 * term: Moved ...
25837 * grub-core/term: ... to here
25838 * tests/example_functional_test.c: Moved ...
25839 * grub-core/tests/example_functional_test.c: ... to here.
25840 * tests/lib/functional_test.c: Moved ...
25841 * grub-core/tests/lib/functional_test.c: ... to here.
25842 * tests/lib/test.c: Moved ...
25843 * grub-core/tests/lib/test.c: ... to here.
25844 * video: Moved ...
25845 * grub-core/video: ... to here.
25846
25847 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25848
25849 Replace --enable-grub-emu-modules with grub-emu-lite.
25850
25851 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25852 cache.S.
25853
25854 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25855 * kern/emu/full.c: New file. For grub-emu specific initialization.
25856 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25857 * kern/emu/main.c: Call initialization function grub_emu_init.
25858
25859 * Makefile.in: Include grub-emu-lite in install.
25860 * commands/parttool.c: Use grub_no_autoload to differentiate
25861 between grub-emu and grub-emu-lite.
25862 * include/grub/misc.h: New variable grub_no_autoload.
25863
25864 * conf/any-emu.rmk: New rules for grub-emu-lite.
25865 * configure.ac: Remove --enable-grub-emu-modules.
25866 * genmk.rb: Cleanup unnecessary rules.
25867 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25868
25869 * normal/main.c: Don't load list files on grub-emu-lite.
25870 * util/misc.c (grub_arch_sync_caches): Removed.
25871
25872 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25873
25874 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25875 grub-mkimage rather than grub-mkelfimage.
25876 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25877
25878 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25879
25880 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25881 a key after CapsLock or NumLock. It's just a qemu bug.
25882
25883 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25884
25885 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25886 needed by libusb wrapper.
25887
25888 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25889
25890 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25891
25892 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25893
25894 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25895 --nounzip is passed.
25896
25897 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25898
25899 USB hotunplugging and USB serial support.
25900
25901 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25902 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25903 (grub_uhci_transfer): Respect timeout and set *actual.
25904 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25905 non-standard length.
25906 (grub_usb_device_attach): Autoload modules.
25907 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25908 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25909 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25910 users updated.
25911 (grub_usb_add_hub): Fill nports and children.
25912 (attach_root_port): Receive hub instead of controller.
25913 All users updated. Fill hub->devices.
25914 (grub_usb_root_hub): Allocate hub->devices.
25915 (detach_device): New function.
25916 (poll_nonroot_hub): Fill children and detach devices.
25917 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25918 actual arguments. All users updated.
25919 (grub_usb_bulk_read_extended): New function.
25920 * bus/usb/serial/common.c: New file.
25921 * bus/usb/serial/ftdi.c: Likewise.
25922 * bus/usb/serial/pl2303.c: Likewise.
25923 * commands/terminal.c (handle_command): Support wildcard.
25924 * commands/usbtest.c: Output "Unknown" instead of empty string.
25925 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25926 (usbserial_common_mod_SOURCES): New variable.
25927 (usbserial_common_mod_CFLAGS): Likewise.
25928 (usbserial_common_mod_LDFLAGS): Likewise.
25929 (pkglib_MODULES): Add usbserial_pl2303.mod.
25930 (usbserial_pl2303_mod_SOURCES): New variable.
25931 (usbserial_pl2303_mod_CFLAGS): Likewise.
25932 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25933 (pkglib_MODULES): Add usbserial_ftdi.mod.
25934 (usbserial_ftdi_mod_SOURCES): New variable.
25935 (usbserial_ftdi_mod_CFLAGS): Likewise.
25936 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25937 (pkglib_MODULES): Add serial.mod.
25938 (serial_mod_SOURCES): New variable.
25939 (serial_mod_CFLAGS): Likewise.
25940 (serial_mod_LDFLAGS): Likewise.
25941 * conf/i386-pc.rmk: Likewise.
25942 * conf/mips-yeeloong.rmk: Likewise.
25943 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25944 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25945 * disk/usbms.c (first_available_slot): New variable.
25946 (grub_usbms_attach): Don't reuse free slots due to potential cache
25947 problems.
25948 * include/grub/serial.h: Moved to ..
25949 * include/grub/ns8250.h: ...this.
25950 * include/grub/serial.h: New file.
25951 * include/grub/term.h (grub_term_poll_usb): New variable.
25952 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25953 readkey. All users updated.
25954 (grub_terminfo_output_state): Pass term to put.
25955 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25956 (grub_usb_controller_dev): Add timeout and actual arguments to
25957 transfer. All users updated.
25958 (grub_usb_interface): New field detach_data.
25959 (grub_usb_device): New fields children and nports.
25960 (grub_usb_ep_type_t): New type.
25961 (grub_usb_get_ep_type): New function.
25962 (grub_usb_bulk_read_extended): Likewise.
25963 * include/grub/usbdesc.h (grub_usb_desc): New type.
25964 * include/grub/usbserial.h: New file.
25965 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25966 * kern/term.c (grub_term_poll_usb): New variable.
25967 (grub_getkey): Call grub_term_poll_usb if set.
25968 (grub_checkkey): Likewise.
25969 (grub_getkeystatus): Likewise.
25970 * term/serial.c: Moved controller-specific parts to ...
25971 * term/ns8250.c: ... here.
25972 * term/serial.c: Mostly rewritten.
25973 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25974 according to spec.
25975
25976 2010-08-20 Robert Millan <rmh@gnu.org>
25977
25978 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25979 a separate module and maybe other interesting combinations.
25980
25981 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25982 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25983 (kfreebsd_entry): Add generic filesystem module load routine.
25984 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25985
25986 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25987
25988 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25989 "numcenter" (I misunderstood the purpose of this entry).
25990 * docs/grub.texi (sendkey): Likewise.
25991
25992 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25993
25994 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25995 status flag options; simply omitting the option is equivalent and
25996 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25997 (keysym_table): Rename "num5numlock" to "numlock".
25998 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25999 can uniformly say that only the last of multiple `sendkey'
26000 invocations has any effect.
26001 * docs/grub.texi (sendkey): New section.
26002
26003 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
26004
26005 * commands/i386/pc/sendkey.c (options): Fix three typos.
26006
26007 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
26008
26009 Implement sendkey support.
26010
26011 * commands/i386/pc/sendkey.c: New file.
26012 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26013 (sendkey_mod_SOURCES): New variable.
26014 (sendkey_mod_CFLAGS): Likewise.
26015 (sendkey_mod_LDFLAGS): Likewise.
26016
26017 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26018
26019 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26020 fix warnings from Autoconf.
26021
26022 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26023
26024 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26025 to avoid false positives with some assemblers that output things
26026 like "someprefix_func" as part of their output.
26027
26028 2010-08-15 Robert Millan <rmh@gnu.org>
26029
26030 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26031 errors.
26032 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26033 grub_get_libzfs_handle() errors.
26034
26035 2010-08-14 Robert Millan <rmh@gnu.org>
26036
26037 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26038 filesystem is not ZFS.
26039
26040 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26041
26042 Fix for misspelled color names defaulting to black/black (bug
26043 reported by Doug Nazar)
26044
26045 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26046 status to prototype.
26047 * normal/color.c (grub_parse_color_name_pair): Return failure
26048 status.
26049 (grub_env_write_color_normal): Ignore bad color names.
26050 (grub_env_write_color_highlight): Likewise.
26051 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26052
26053 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26054
26055 "shift" command support to GRUB script.
26056
26057 * include/grub/script_sh.h (grub_script_shift): New prototype.
26058 * script/execute.c (grub_script_shift): New function.
26059 * script/main.c (grub_script_init): Register shift command.
26060 (grub_script_fini): Unregister shift command.
26061 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26062
26063 * tests/grub_script_shift.in: New testcase.
26064 * conf/tests.rmk: Rules for new testcase.
26065
26066 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26067
26068 "continue" command support to GRUB script.
26069
26070 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26071 (grub_script_break): Continue support.
26072 * script/main.c (grub_script_init): Register continue command.
26073 (grub_script_fini): Unregister continue command.
26074
26075 * tests/grub_script_continue.in: New testcase.
26076 * conf/tests.rmk: Rules for new testcase.
26077
26078 2010-08-12 BVK Chaitanya <bvk@dbook>
26079
26080 "break" command support to GRUB script.
26081
26082 * conf/common.rmk: Rule updates to grub-script-check.
26083 * include/grub/misc.h (grub_min): New function.
26084 * include/grub/script_sh.h (grub_script_init): New prototype.
26085 (grub_script_fini): New prototype.
26086 (grub_script_break): New prototype.
26087 * script/main.c (grub_script_init): New function.
26088 (grub_script_fini): New function.
26089 * script/execute.c (grub_script_break): New function.
26090 * normal/main.c: Calls to grub_script_{init,fini}.
26091 * util/grub-script-check.c (grub_script_break): New function.
26092
26093 * tests/grub_script_break.in: New testcase.
26094 * conf/tests.rmk: Rules for new test case.
26095
26096 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26097
26098 Function parameters support to GRUB script.
26099
26100 * script/yylex.l (VARIABLE): Regular expression update.
26101 * script/function.c (grub_script_function_call): Moved ...
26102 * script/execute.c (grub_script_function_call): ... to here.
26103 (grub_script_execute_arglist_to_argv): Removed.
26104 (grub_script_arglist_to_argv): New function.
26105 * script/argv.c: New file.
26106 (grub_script_argv_free): New function.
26107 (grub_script_argv_next): Likewise.
26108 (grub_script_argv_append): Likewise.
26109 (grub_script_argv_split_append): Likewise.
26110 * include/grub/script_sh.h (grub_script_argv): New struct.
26111 (grub_script_argv_free): New function.
26112 (grub_script_argv_next): Likewise.
26113 (grub_script_argv_append): Likewise.
26114 (grub_script_argv_split_append): Likewise.
26115
26116 * conf/common.rmk (normal.mod): New source script/argv.c.
26117
26118 * tests/grub_script_echo1.in: More tests.
26119 * tests/grub_script_vars1.in: Likewise.
26120 * tests/grub_script_functions.in: New test case.
26121 * conf/tests.rmk: Rules for new testcase.
26122
26123 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26124
26125 Remove grub_script_cmdblock struct.
26126
26127 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26128 * script/parser.y: Likewise.
26129 * script/execute.c: Rename cmdblock suffix to cmdlist.
26130 * script/script.c: Likewise.
26131 * util/grub-script-check.c: Likewise.
26132
26133 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26134
26135 * .bzrignore: add grub-macho2img
26136
26137 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26138
26139 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26140
26141 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26142
26143 Remove the dump of sm712 initialisation sequence.
26144
26145 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26146 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26147 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26148 (GRUB_VGA_CR_*): Added many registers.
26149 (GRUB_VGA_SR_*): Likewise.
26150 (GRUB_VGA_GR_*): Likewise.
26151 (grub_vga_write_arx): New function.
26152 (grub_video_hw_config): New struct.
26153 (grub_vga_set_geometry): New function.
26154 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26155 GRUB_PCI_CLASS_SUBCLASS_VGA.
26156 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26157 * video/sm712.c (grub_sm712_write_reg): New function
26158 (grub_sm712_read_reg): Likewise.
26159 (grub_sm712_sr_write): Likewise.
26160 (grub_sm712_gr_write): Likewise.
26161 (grub_sm712_cr_write): Likewise.
26162 (grub_sm712_write_arx): Likewise.
26163 (grub_sm712_cr_shadow_write): Likewise.
26164 (grub_sm712_write_dda_lookup): Likewise.
26165 (grub_video_sm712_setup): Initialise the video rather then
26166 blindly replay the dump.
26167 (main) [TEST]: Add a routine to be able to compile as standalone for
26168 tests.
26169 * video/sm712_init.c (sm712_init): Removed.
26170 (sm712_sr_seq1): New array.
26171 (sm712_sr_seq2): Likewise.
26172
26173 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26174
26175 * include/grub/vga.h: Add missing grub/pci.h include.
26176
26177 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26178
26179 * util/grub-macho2img.c (main): fix typo
26180
26181 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26182
26183 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26184 (grub_vga_gr_read): Likewise.
26185 (grub_vga_cr_write): Likewise.
26186 (grub_vga_cr_read): Likewise.
26187 (grub_vga_sr_write): Likewise.
26188 (grub_vga_sr_read): Likewise.
26189 (grub_vga_palette_read): Likewise.
26190 (grub_vga_palette_write): Likewise.
26191 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26192 (grub_sm712_sr_read): New function.
26193 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26194 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26195
26196 2010-08-09 Robert Millan <rmh@gnu.org>
26197
26198 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26199 out unused variables on non-ZFS build.
26200
26201 2010-08-08 Robert Millan <rmh@gnu.org>
26202
26203 Fix path generation for sub-filesystems in ZFS.
26204
26205 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26206 missing slash.
26207
26208 2010-08-08 Robert Millan <rmh@gnu.org>
26209
26210 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26211
26212 2010-08-08 Robert Millan <rmh@gnu.org>
26213
26214 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26215 exist, issue a proper error message (rely on `ls' for translated
26216 strings).
26217
26218 2010-08-08 Robert Millan <rmh@gnu.org>
26219
26220 Fix grub-probe invocation.
26221
26222 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26223
26224 2010-08-04 Robert Millan <rmh@gnu.org>
26225
26226 * configure.ac: Remove checks for getfsstat() and getmntany().
26227 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26228 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26229 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26230 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26231 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26232 function.
26233 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26234 via find_mount_point_from_dir() and getfsstat() / getmntany().
26235
26236 2010-08-04 Robert Millan <rmh@gnu.org>
26237
26238 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26239 (grub_find_zpool_from_mount_point): Merge into ...
26240 (grub_find_zpool_from_dir): ... this.
26241 * kern/emu/misc.c: Likewise.
26242
26243 * kern/emu/misc.c
26244 (grub_make_system_path_relative_to_its_root): Replace
26245 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26246 with grub_find_zpool_from_dir().
26247 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26248
26249 2010-08-04 Robert Millan <rmh@gnu.org>
26250
26251 Support OpenSolaris in ZFS device resolution.
26252
26253 * configure.ac: Check for getmntany().
26254 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26255 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26256 support.
26257
26258 2010-08-03 Robert Millan <rmh@gnu.org>
26259
26260 Fix grub-emu build.
26261
26262 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26263 * include/grub/emu/misc.h: ... here.
26264
26265 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26266 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26267
26268 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26269 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26270 (grub_get_libzfs_handle): Move to ...
26271 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26272 (grub_get_libzfs_handle): ... here.
26273
26274 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26275
26276 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26277 as command name case.
26278
26279 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26280
26281 * disk/raid.c (insert_array): Select unique numbers for named arrays
26282 as well, for use as keys in the disk cache.
26283
26284 2010-08-01 Robert Millan <rmh@gnu.org>
26285
26286 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26287 kFreeBSD device name, except on ZFS where the filesystem label is
26288 used.
26289 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26290 `/boot/zfs/zpool.cache'.
26291 Set mountfrom kernel variable using ${kfreebsd_device}.
26292
26293 2010-08-01 Robert Millan <rmh@gnu.org>
26294
26295 Make it even harder to use uninitialized `libzfs_handle' (and
26296 make the interface a bit simpler).
26297
26298 * include/grub/util/misc.h (grub_util_init_libzfs)
26299 (libzfs_handle): Remove.
26300 (grub_get_libzfs_handle): New prototype.
26301
26302 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26303 attribute.
26304 (grub_util_init_libzfs): Remove.
26305 (grub_get_libzfs_handle): New function.
26306
26307 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26308 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26309 accessing `libzfs_handle' directly.
26310
26311 2010-08-01 Robert Millan <rmh@gnu.org>
26312
26313 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26314 (grub_find_zpool_from_mount_point): New function prototypes.
26315
26316 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26317 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26318
26319 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26320 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26321 `static' attribute.
26322
26323 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26324 finding zpool from mount point into ...
26325 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26326
26327 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26328 requested path is part of a ZFS pool, use
26329 grub_find_zpool_from_mount_point() to detect its filesystem name,
26330 and generate a path with `/fsname@path' syntax.
26331
26332 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26333
26334 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26335 (void) rather than () so that this is a proper prototype.
26336
26337 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26338
26339 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26340
26341 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26342
26343 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26344 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26345
26346 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26347
26348 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26349
26350 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26351
26352 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26353
26354 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26355
26356 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26357 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26358 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26359 disable gfxpayload.
26360 (Shell-like scripting): Add real content.
26361 (Serial terminal): Suggest `terminal_input serial; terminal_output
26362 serial' rather than putting the two commands on separate lines,
26363 since console input will be inoperative after the first command.
26364 (menuentry): Document --class, --users, and --hotkey options.
26365 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26366 Vladimir Serbinenko).
26367
26368 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26369 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26370
26371 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26372
26373 2010-08-01 Robert Millan <rmh@gnu.org>
26374
26375 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26376 (grub_find_zpool_from_mount_point): New function prototypes.
26377
26378 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26379 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26380
26381 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26382 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26383 `static' attribute.
26384
26385 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26386 finding zpool from mount point into ...
26387 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26388
26389 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26390 requested path is part of a ZFS pool, use
26391 grub_find_zpool_from_mount_point() to detect its filesystem name,
26392 and generate a path with `/fsname@path' syntax.
26393
26394 2010-08-01 Robert Millan <rmh@gnu.org>
26395
26396 Prevent accidental use of uninitialized libzfs_handle.
26397
26398 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26399 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26400 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26401
26402 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26403
26404 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26405 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26406
26407 2010-08-01 Robert Millan <rmh@gnu.org>
26408
26409 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26410
26411 2010-07-31 Robert Millan <rmh@gnu.org>
26412
26413 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26414
26415 2010-07-31 Robert Millan <rmh@gnu.org>
26416
26417 * kern/emu/misc.c: Add missing license header.
26418
26419 2010-07-31 Robert Millan <rmh@gnu.org>
26420
26421 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26422
26423 * include/grub/util/libnvpair.h: Include `<config.h>'.
26424 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26425 declaring libnvpair prototypes ourselves.
26426 * include/grub/util/libzfs.h: Include `<config.h>'.
26427 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26428 declaring libzfs prototypes ourselves.
26429
26430 (libzfs_handle): Moved to ...
26431 * include/grub/util/misc.h (libzfs_handle): ... here.
26432 Include `<grub/util/libzfs.h>'.
26433
26434 2010-07-30 Robert Millan <rmh@gnu.org>
26435
26436 * include/grub/emu/misc.h: Add missing license header.
26437
26438 2010-07-30 Robert Millan <rmh@gnu.org>
26439
26440 Enable `grub-probe -t device' resolution on ZFS.
26441
26442 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26443 * include/grub/util/libnvpair.h: New file.
26444 * include/grub/util/libzfs.h: New file.
26445
26446 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26447 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26448 `<grub/util/libnvpair.h>'.
26449 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26450
26451 (find_mount_point_from_dir): New static function.
26452 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26453 function.
26454 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26455 find_root_device_from_libzfs() before ressorting to find_root_device().
26456
26457 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26458 prototype.
26459 * util/misc.c: Include `<grub/util/libzfs.h>'.
26460 (grub_util_init_libzfs): New function.
26461 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26462 [HAVE_LIBZFS] (fini_libzfs): New static function.
26463 (grub_util_init_libzfs): New function.
26464 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26465
26466 2010-07-30 Robert Millan <rmh@gnu.org>
26467
26468 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26469 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26470 `warn_unused_result' attribute.
26471 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26472 (grub_xasprintf, grub_xvasprintf): Likewise.
26473 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26474
26475 2010-07-29 Robert Millan <rmh@gnu.org>
26476
26477 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26478 (probe): Handle `PRINT_FS_LABEL'.
26479 (main): Handle `-t fs_label'.
26480
26481 2010-07-29 Robert Millan <rmh@gnu.org>
26482
26483 * configure.ac: Remove grub-mkisofs checks.
26484
26485 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26486
26487 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26488 Reported by: Lennart Sorensen.
26489
26490 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26491
26492 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26493 prior to terminal_input/terminal_output separation. It's been over 1.5
26494 years and those versions weren't widely deployed.
26495
26496 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26497
26498 * disk/raid.c (insert_array): Don't count named arrays when looking
26499 for unused array numbers.
26500 Reported and tested by: Michael Guntsche.
26501
26502 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26503
26504 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26505 implementation of this so that grub-emu links again, with a note
26506 that this should support hotplugging in the future.
26507
26508 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26509
26510 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26511
26512 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26513
26514 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26515 handle on failure.
26516 (grub_loopback_close): Remove empty function.
26517 (grub_loopback_dev): Remove close method.
26518
26519 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26520
26521 Disable EFI cursor when the EFI console becomes inactive.
26522
26523 * term/efi/console.c (grub_efi_console_init): New function.
26524 (grub_efi_console_fini): New function.
26525 (grub_console_term_output): Register init and fini methods.
26526
26527 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26528
26529 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26530 sh script.
26531
26532 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26533
26534 * disk/loopback.c (grub_loopback): Replace filename with file.
26535 (delete_loopback): Handle new semantics.
26536 (grub_cmd_loopback): Likewise.
26537 (grub_loopback_iterate): Likewise.
26538 (grub_loopback_close): Likewise.
26539
26540 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26541
26542 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26543 with -p "".
26544 Reported by: Tito Keitel.
26545
26546 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26547
26548 * docs/grub.texi (Naming convention): Document new naming convention.
26549
26550 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26551 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26552
26553 Generate device.map in something closer to the old ordering.
26554
26555 * util/deviceiter.c (struct device): New declaration.
26556 (compare_file_names): Rename to ...
26557 (compare_devices): ... this. Sort by kernel name in preference to
26558 the stable by-id name, but keep the latter as a fallback comparison.
26559 Update header comment.
26560 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26561 of `struct device' rather than of plain file names.
26562
26563 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26564
26565 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26566 on i386.
26567
26568 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26569
26570 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26571 hardcoding size.
26572 (setv1table): Likewise.
26573
26574 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26575
26576 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26577 removing the homehost if present.
26578 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26579 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26580 removing the homehost if present.
26581 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26582 if possible.
26583 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26584
26585 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26586 parameter. Set its pointer target to 0.
26587 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26588 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26589 `data_offset' value from the superblock for 1.x metadata.
26590 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26591 data on the device.
26592 (insert_array): Record the start sector of data on the device.
26593 (grub_raid_register): Pass start_sector parameters to
26594 grub_raid_list->detect and insert_array.
26595 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26596 member.
26597 (struct grub_raid): Add start_sector parameter to `detect'.
26598
26599 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26600 __attribute__ ((packed)), leaving a comment.
26601 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26602 (grub_mdraid_detect_09): ... here and ...
26603 (grub_mdraid_detect_1x): ... here.
26604
26605 2010-07-20 Peter Henn <peter.henn@web.de>
26606
26607 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26608 chunk size and disk size, which are already given as sector counts
26609 as distinct from the 0.90 units. Fetch the correct device number
26610 from the role table instead of using the table index.
26611
26612 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26613
26614 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26615 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26616 (WriteMostly1): New macro.
26617 Set array->name to NULL for metadata format 0.90. Add support for
26618 metadata 1.x. Fix some comments.
26619 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26620 few comments.
26621 * util/getroot.c (grub_util_get_grub_dev): Add support for
26622 /dev/md/name style devices.
26623
26624 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26625
26626 * .bzrignore: Ignore 20_linux_xen.
26627
26628 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26629
26630 * util/import_unicode.py: Remove unnecessary imports.
26631
26632 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26633
26634 Hotplugging and USB hub support.
26635
26636 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26637 (grub_ohci): Likewise.
26638 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26639 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26640 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26641 (GRUB_OHCI_CTRL_EDS): Likewise.
26642 (GRUB_OHCI_BULK_EDS): Likewise.
26643 (GRUB_OHCI_TDS): Likewise.
26644 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26645 (grub_ohci_ed_phys2virt): New function.
26646 (grub_ohci_virt_to_phys): Likewise.
26647 (grub_ohci_td_phys2virt): Likewise.
26648 (grub_ohci_td_virt2phys): Likewise.
26649 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26650 attachment.
26651 (grub_ohci_find_ed): New function.
26652 (grub_ohci_alloc_td): Likewise.
26653 (grub_ohci_free_td): Likewise.
26654 (grub_ohci_free_tds): Likewise.
26655 (grub_ohci_transfer): Use previously allocated memory.
26656 (grub_ohci_portstatus): Reset status changed bit.
26657 (grub_ohci_detect_dev): Supply status changed.
26658 (grub_ohci_fini_hw): Free memory.
26659 (grub_ohci_restore_hw): Reallocate memory.
26660 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26661 Reset status change.
26662 (grub_uhci_detect_dev): Supply status_change.
26663 * bus/usb/usb.c (attach_hooks): New var.
26664 (grub_usb_device_attach): New function.
26665 (grub_usb_register_attach_hook_class): Likewise.
26666 (grub_usb_unregister_attach_hook_class): Likewise.
26667 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26668 (grub_usb_add_hub): Reset connection changed bit.
26669 (attach_root_port): New function.
26670 (grub_usb_root_hub): Likewise.
26671 (poll_nonroot_hub): Likewise.
26672 (grub_usb_poll_devices): Likewise.
26673 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26674 * disk/usbms.c (grub_usbms_open): Use device hooks.
26675 (grub_usbms_iterate) :Poll devices.
26676 (grub_usbms_finddevs): Split into ...
26677 (grub_usbms_attach): ... this ...
26678 (grub_usbms_attach): ... and this.
26679 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26680 in detect_dev.
26681 (grub_usb_interface): New fields attached and detach_hook.
26682 (grub_usb_attach_hook_class): New type.
26683 (grub_usb_attach_desc): New struct.
26684 (grub_usb_register_attach_hook_class): New function.
26685 (grub_usb_unregister_attach_hook_class): Likewise.
26686 (grub_usb_poll_devices): Likewise.
26687 (grub_usb_device_attach): Likewise.
26688 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26689 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26690
26691 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26692
26693 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26694 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26695 delta determination style. Works with most NetBSD partitions too.
26696
26697 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26698
26699 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26700 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26701
26702 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26703
26704 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26705
26706 2010-07-14 Anton Blanchard <anton@samba.org>
26707
26708 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26709 ET_DYN files.
26710
26711 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26712
26713 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26714
26715 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26716
26717 * kern/partition.c (grub_partition_check_containment): New function to
26718 check that a partition is physically contained in a parent. Since
26719 offsets are relative (and non-negative), this reduces to checking that
26720 the partition ends before its parent.
26721 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26722 (grub_partition_iterate): Likewise.
26723 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26724 comments.
26725 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26726 partitions that start before their parent, and add debug printfs.
26727
26728 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26729
26730 * Makefile.in (.SUFFIX): Spell correctly, as ...
26731 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26732 bare module name without `.mod', e.g. `test') tried to invoke a
26733 Modula-2 compiler.
26734
26735 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26736
26737 * README: Point to the Info manual.
26738
26739 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26740
26741 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26742 2nd superblock position from partition size.
26743
26744 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26745
26746 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26747 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26748 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26749 outputs.
26750
26751 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26752
26753 Restructure SCSI .id handling.
26754 Reported and tested by: Aleš Nesrsta.
26755
26756 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26757 (grub_atapi_dev): Changed .name to "ata". New field .id.
26758 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26759 (grub_usbms_dev): New field .id.
26760 * disk/scsi.c (grub_scsi_iterate): Generate name.
26761 (grub_scsi_open): Parse name.
26762 * include/grub/scsi.h (grub_make_scsi_id): New function.
26763 (grub_scsi_dev): Change iterate and open to number instead of naming
26764 busses. All users updated.
26765 (grub_scsi): Remove name. Add .bus.
26766
26767 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26768
26769 * commands/help.c (grub_cmd_help): Fix a typo.
26770
26771 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26772
26773 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26774 Reported and tested by: Colin Watson.
26775
26776 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26777
26778 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26779 in this context.
26780
26781 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26782
26783 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26784
26785 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26786
26787 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26788 indentation.
26789
26790 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26791
26792 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26793 and disk/raid6_recover.c.
26794 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26795 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26796
26797 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26798
26799 * term/gfxterm.c (repaint_schedulded): Rename to ...
26800 (repaint_scheduled): ... this. Update all callers.
26801 (repaint_was_schedulded): Rename to ...
26802 (repaint_was_scheduled): ... this. Update all callers.
26803
26804 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26805
26806 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26807 which we expect to be handled by upper layers.
26808
26809 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26810
26811 * bus/usb/usbhub.c: #include time.h header.
26812
26813 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26814
26815 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26816 entry_name also for entries without stat blocks (e.g. ".."); fixes
26817 corruption of the first entry in a directory.
26818
26819 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26820
26821 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26822 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26823 doesn't work otherwise.
26824
26825 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26826
26827 * docs/grub.texi (Features): Update list of supported file systems.
26828 (GNU/Linux): Update for GRUB 2.
26829 (Serial terminal): Remove mention of --disable-serial, which was a
26830 GRUB Legacy configure option. Update instructions to use
26831 `terminal_input' and `terminal_output' rather than `terminal'.
26832 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26833 configuration' and `Installing GRUB using grub-install'.
26834 (Menu entry editor): Update for GRUB 2.
26835 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26836 Document new -a, -u, and -v options.
26837 (initrd): New section.
26838 (initrd16): New section.
26839 (linux): New section.
26840 (linux16): New section.
26841 (search): The `var' argument to `--set' is optional.
26842 (GRUB only offers a rescue shell): Go into a little more detail on
26843 drive ordering.
26844
26845 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26846
26847 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26848
26849 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26850
26851 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26852 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26853
26854 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26855
26856 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26857 install_prefix, in line with install_dos_part and install_bsd_part.
26858 Add new prefix variable, which is copied to install_prefix after
26859 comparing core.img in memory with the one read from disk in the
26860 no-embedding case, and use that rather than overwriting
26861 install_prefix immediately when installing to a partition.
26862 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26863 Bicakci.
26864
26865 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26866
26867 * configure.ac: Avoid == in test command, it's not portable.
26868 * util/grub.d/30_os-prober.in: Likewise.
26869
26870 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26871
26872 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26873
26874 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26875
26876 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26877 multiple (top-level) partmaps.
26878
26879 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26880
26881 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26882 Reported by: Tino Keitel.
26883
26884 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26885
26886 Bidi and diacritics support.
26887
26888 * Makefile.in (widthspec.bin): New target.
26889 (widthspec.h): Likewise.
26890 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26891 * autogen.sh: Generate unidata.c.
26892 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26893 * commands/ls.c (grub_ls_list_devices): Likewise.
26894 (grub_ls_list_files): Likewise.
26895 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26896 (grub_mini_cmd_lsmod): Likewise.
26897 * commands/read.c: Likewise.
26898 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26899 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26900 * lib/arg.c (grub_arg_show_help): Likewise.
26901 * lib/crypto.c (grub_password_get): Likewise.
26902 * normal/auth.c (grub_username_get): Likewise.
26903 * normal/misc.c (grub_normal_print_device_info): Likewise.
26904 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26905 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26906 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26907 (normal/charset.c_DEPENDENCIES): New variable.
26908 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26909 (pkglib_MODULES): Remove charset.mod.
26910 (charset_mod_SOURCES): Removed.
26911 (charset_mod_CFLAGS): Likewise.
26912 (charset_mod_LDFLAGS): Likewise.
26913 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26914 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26915 and term/tparm.c.
26916 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26917 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26918 (kernel_img_HEADERS): Add terminfo.h.
26919 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26920 Fill ->font. Reverse ascii bitmaps.
26921 (grub_font_get_xheight): New function.
26922 * font/font.c (grub_font_get_string_width): Moved from here ...
26923 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26924 * font/font.c (grub_font_draw_string): Moved from here ...
26925 * gfxmenu/font.c (grub_font_draw_string): ... here.
26926 * font/font.c (grub_font_dup_glyph): New function.
26927 (grub_font_blit_glyph): Likewise.
26928 (grub_font_blit_glyph_mirror): Likewise.
26929 (blit_comb): Likewise.
26930 (grub_font_construct_dry_run): Likewise.
26931 (grub_font_get_constructed_device_width): Likewise.
26932 (grub_font_construct_glyph): Likewise.
26933 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26934 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26935 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26936 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26937 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26938 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26939 (grub_font_get_xheight): New proto.
26940 (grub_font_get_constructed_device_width): Likewise.
26941 (grub_font_construct_glyph): Likewise.
26942 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26943 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26944 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26945 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26946 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26947 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26948 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26949 (grub_console_getcharwidth): Likewise.
26950 * include/grub/misc.h (grub_xputs): New proto.
26951 (grub_puts): Inlined.
26952 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26953 (grub_normal_get_line_counter): Removed.
26954 (grub_install_newline_hook): Likewise.
26955 (grub_normal_get_char_counter): New proto.
26956 (grub_normal_reset_more): Likewise.
26957 (grub_xputs_normal): Likewise.
26958 * include/grub/powerpc/ieee1275/console.h: Removed.
26959 * include/grub/sparc64/ieee1275/console.h: Likewise.
26960 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26961 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26962 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26963 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26964 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26965 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26966 (grub_term_input): Pass reference to self. All users updated.
26967 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26968 Pass reference to self. New fields normal_color, highlight_color and
26969 data. All users updated.
26970 (grub_putchar): Removed.
26971 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26972 (grub_unicode_estimate_width): New function.
26973 (grub_term_getcharwidth): Add defaults.
26974 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26975 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26976 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26977 (grub_cls): Remove EXPORT_FUNC.
26978 (grub_setcolorstate): Inline.
26979 (grub_newline_hook): Removed.
26980 * include/grub/terminfo.h: Rewritten. All users updated.
26981 * include/grub/unicode.h: New file.
26982 * include/grub/video.h (grub_video_signed_rect): New type.
26983 * kern/emu/console.c (grub_console_highlight_color): Removed.
26984 (grub_console_normal_color): Likewise.
26985 (grub_console_standard_color): Made static.
26986 (grub_ncurses_putchar): Remove mapping.
26987 (grub_ncurses_getcharwidth): Removed.
26988 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26989 (grub_ncurses_setcolor): Removed.
26990 (grub_ncurses_getcolor): Likewise.
26991 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26992 (grub_console_putchar): ... this.
26993 (grub_console_putchar): Handle argument difference.
26994 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26995 console_init_early and console_init_lately.
26996 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26997 * kern/misc.c (grub_puts): Removed.
26998 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26999 (grub_vsnprintf_real): Remove str = NULL support.
27000 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27001 * normal/charset.c (grub_utf8_to_ucs4): ... here.
27002 * kern/term.c (grub_putcode): Renamed to ...
27003 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27004 (grub_putchar): Removed.
27005 (grub_xputs_dumb): New function.
27006 (grub_xputs): New variable.
27007 * lib/charset.c: Move from here ...
27008 * normal/charset.c: ... to here.
27009 (grub_ucs4_to_utf8): New function.
27010 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27011 (join_types): New variable.
27012 (unpack_join): New function.
27013 (bidi_types): New variable.
27014 (unpack_bidi): New function.
27015 (get_bidi_type): Likewise.
27016 (get_join_type): Likewise.
27017 (is_mirrored): Likewise.
27018 (grub_unicode_get_comb_type): Likewise.
27019 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27020 (is_type_after): Likewise.
27021 (grub_unicode_aglomerate_comb): Likewise.
27022 (bidi_line_wrap): Likewise.
27023 (grub_bidi_line_logical_to_visual): Likewise.
27024 (grub_bidi_logical_to_visual): Likewise.
27025 (grub_unicode_mirror_code): Likewise.
27026 (grub_unicode_shape_code): Likewise.
27027 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27028 Don't use grub_putchar.
27029 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27030 (grub_normal_reader_init): Likewise.
27031 (grub_xputs_saved): New variable.
27032 (GRUB_MOD_INIT): Set grub_xputs.
27033 (GRUB_MOD_FINI): Restore grub_xputs.
27034 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27035 (menu_init): Avoid printing gfxmenu error.
27036 (show_menu): Use grub_normal_get_char_counter.
27037 * normal/menu_entry.c (update_screen): Fix out-of-array.
27038 (complete): Avoid NULL dereferencing.
27039 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27040 * normal/menu_text.c (print_spaces): Removed.
27041 (grub_print_ucs4): Likewise.
27042 (grub_print_message_indented): Use grub_print_ucs4.
27043 (print_message): Use grub_putcode.
27044 (print_entry): Hanlde diacritics.
27045 * normal/term.c (term_state): New type.
27046 (grub_more_lines): Removed.
27047 (term_states): New variable.
27048 (grub_normal_line_counter): Renamed to ..
27049 (grub_normal_char_counter): ...this. All users updated.
27050 (grub_normal_get_line_counter): Renamed to ...
27051 (grub_normal_get_char_counter): ... this.
27052 (grub_normal_reset_more): New function.
27053 (process_newline): Removed.
27054 (print_more): New function.
27055 (grub_install_newline_hook): Removed.
27056 (map_code): New function.
27057 (grub_puts_terminal): Use grub_print_ucs4.
27058 (putglyph): New function.
27059 (putcode_real): Likewise.
27060 (grub_putcode): Use putcode_real.
27061 (get_maxwidth): New function.
27062 (get_startwidth): Likewise.
27063 (print_ucs4_terminal): Likewise.
27064 (find_term_state): Likewise.
27065 (put_glyphs_terminal): Likewise.
27066 (print_backlog): Likewise.
27067 (print_ucs4_real): Likewise.
27068 (grub_print_ucs4): Likewise.
27069 (grub_xputs_normal): Likewise.
27070 * term/efi/console.c (grub_console_putchar): Output diacritics.
27071 (grub_console_getcharwidth): Removed.
27072 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27073 * term/gfxterm.c (clear_char): Free chars.
27074 (scroll_up): Avoid leaking memory.
27075 (grub_gfxterm_putchar): Support diacritics.
27076 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27077 * term/i386/pc/console.c (grub_console_term_output): Declare as
27078 GRUB_TERM_CODE_TYPE_VGA.
27079 * term/i386/pc/vga.c (grub_vga_term): Declare as
27080 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27081 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27082 GRUB_TERM_CODE_TYPE_VGA.
27083 * term/i386/vga_common.c (map_char): Removed.
27084 (grub_console_putchar): Likewise.
27085 (grub_console_getcharwidth): Likewise.
27086 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27087 (colors): Reordered to match terminfo.
27088 (grub_ofconsole_normal_color): Removed.
27089 (grub_ofconsole_writeesc): Likewise.
27090 (grub_ofconsole_highlight_color): Likewise.
27091 (grub_ofconsole_getcharwidth): Likewise.
27092 (grub_ofconsole_setcolorstate): Likewise.
27093 (grub_ofconsole_setcolor): Likewise.
27094 (grub_ofconsole_getcolor): Likewise.
27095 (grub_ofconsole_readkey): Renamed to ...
27096 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27097 key.
27098 (grub_ofconsole_checkkey): Removed.
27099 (grub_ofconsole_getkey): Likewise.
27100 (grub_ofconsole_getxy): Likewise.
27101 (grub_ofconsole_gotoxy): Likewise.
27102 (grub_ofconsole_cls): Likewise.
27103 (grub_ofconsole_refresh): Likewise.
27104 (grub_ofconsole_terminfo_input): New struct.
27105 (grub_ofconsole_terminfo_output): Likewise.
27106 (grub_ofconsole_term_input): Use terminfo.
27107 (grub_ofconsole_term_output): Likewise.
27108 (grub_console_init): Split into ...
27109 (grub_console_init_early): ...this and ...
27110 (grub_console_init_lately): ...this. Use terminfo.
27111 (grub_ofconsole_putchar): Renamed to ...
27112 (put): ... this. Remove mapping.
27113 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27114 * term/serial.c: Simplify using terminfo.
27115 (xpos): Removed.
27116 (ypos): Likewise.
27117 (keep_track): Likewise.
27118 (registered): Likewise.
27119 (input_buf): Likewise.
27120 (npending): Likewise.
27121 (serial_translate_key_sequence): Likewise.
27122 (fill_input_buf): Likewise.
27123 (grub_serial_checkkey): Likewise.
27124 (grub_serial_getkey): Likewise.
27125 (grub_serial_getxy): Likewise.
27126 (grub_serial_gotoxy): Likewise.
27127 (grub_serial_putchar): Likewise.
27128 (grub_serial_cls): Likewise.
27129 (grub_serial_setcolorstate): Likewise.
27130 (grub_serial_setcursor): Likewise.
27131 (serial_hw_init): Use serial_hw_fetch.
27132 (grub_serial_terminfo_input): New variable.
27133 (grub_serial_terminfo_output): Likewise.
27134 (grub_serial_term_input): Use terminfo.
27135 (grub_serial_term_output): Likewise.
27136 * term/terminfo.c (putstr): Use put.
27137 (grub_terminfo_all_free): New function
27138 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27139 (grub_terminfo_output_register): New function.
27140 (grub_terminfo_output_unregister): Likewise.
27141 (grub_terminfo_getxy): Likewise.
27142 (grub_terminfo_readkey): Likewise.
27143 (grub_terminfo_checkkey): Likewise.
27144 (grub_terminfo_getkey): Likewise.
27145 (grub_terminfo_input_init): Likewise.
27146 (print_terminfo): Likewise.
27147 (grub_cmd_terminfo): Handle encoding.
27148 (grub_terminfo_gotoxy): Track position.
27149 (grub_terminfo_cls): Likewise.
27150 (grub_terminfo_putchar): Likewise.
27151 (grub_terminfo_setcolorstate): Handle colors
27152 (grub_terminfo_cursor_on): This ...
27153 (grub_terminfo_cursor_off): ... and this merged into ...
27154 (grub_terminfo_setcursor): ... this.
27155 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27156 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27157 * unicode/BidiMirroring.txt: Likewise.
27158 * unicode/UnicodeData.txt: Likewise.
27159 * unicode/COPYING: Likewise.
27160 * util/grub-editenv.c (grub_putchar): Removed.
27161 (grub_xputs_real): New function.
27162 (grub_xputs): New variable.
27163 * util/grub-fstest.c (grub_putchar): Removed.
27164 (grub_xputs_real): New function.
27165 (grub_xputs): New variable.
27166 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27167 (grub_xputs_real): New function.
27168 (grub_xputs): New variable.
27169 * util/grub-probe.c (grub_putchar): Removed.
27170 (grub_xputs_real): New function.
27171 (grub_xputs): New variable.
27172 * util/grub-script-check.c (grub_putchar): Removed.
27173 (grub_xputs_real): New function.
27174 (grub_xputs): New variable.
27175 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27176 (grub_xputs_real): New function.
27177 (grub_xputs): New variable.
27178 * util/import_unicode.py: New file.
27179 * util/grub-mkfont.c (ft_errmsgs): New array.
27180 (grub_glyph_info): Make bitmap a pointer.
27181 (file_formats): New type WIDTH_SPEC.
27182 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27183 (options): Add width-spec.
27184 (help): Likewise.
27185 (add_char): Renamed to ...
27186 (add_glyph): ... this.
27187 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27188 (glyph_replace): New type.
27189 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27190 (add_char): New function.
27191 (add_subst): Likewise.
27192 (process_cursive): Likewise.
27193 (add_font): Handle GSUB.
27194 (write_font_width_spec): New function.
27195 (main): Sort glyphs.
27196 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27197 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27198 * kern/term.c (grub_cls): Moved from here...
27199 * normal/term.c (grub_cls): ... here.
27200
27201 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27202
27203 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27204 suitable for using within the format argument of printf when
27205 converting grub_size_t.
27206 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27207 "x" to convert grub_size_t arguments.
27208
27209 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27210
27211 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27212 too long captions.
27213 (list_get_minimal_size): Take selection box into account.
27214
27215 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27216
27217 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27218 NULL font.
27219
27220 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27221
27222 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27223 devices when iterating over /dev/disk/by-id; they will be handled
27224 later if appropriate, which they aren't always (e.g. LVM).
27225
27226 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27227
27228 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27229 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27230 fails.
27231 (grub_halt): Likewise.
27232 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27233 reset-all fails.
27234 (grub_halt): Don't return, even if all of shut-down, power-off, and
27235 poweroff fail.
27236
27237 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27238
27239 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27240 arguments, not three.
27241
27242 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27243
27244 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27245 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27246 LVM-on-RAID is handled correctly.
27247
27248 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27249
27250 * docs/grub.texi (Changes from GRUB Legacy): New section.
27251 (Future): Fix typo.
27252
27253 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27254
27255 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27256 grub.d/README accidentally ends up executable for one reason or
27257 another. Ignore it.
27258
27259 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27260
27261 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27262 (gpt_partition_map_iterate): Support non-512B sectors.
27263
27264 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27265
27266 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27267 Tested by: Seth Goldberg.
27268
27269 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27270
27271 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27272 Properly align mbi.
27273 Reported by: Seth Goldberg.
27274
27275 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27276
27277 * util/grub-mkrescue.in: Avoid module duplication.
27278
27279 2010-07-01 Sean Finney <seanius@seanius.net>
27280
27281 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27282
27283 2010-07-01 Sean Finney <seanius@seanius.net>
27284
27285 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27286
27287 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27288
27289 * disk/lvm.c (grub_lvm_checkvalue): New function.
27290 (grub_lvm_check_flag): Likewise.
27291
27292 2010-07-01 Robert Millan <rmh@gnu.org>
27293
27294 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27295 Support 'p' as partition separator on kernel of FreeBSD (used
27296 with GPT labels).
27297 (grub_util_biosdisk_get_grub_dev): Likewise.
27298
27299 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27300
27301 Yeeloong firmware port.
27302
27303 * boot/mips/yeeloong/fwstart.S: New file.
27304 * bus/cs5536.c (gpiodump): New const.
27305 (set_io_space): New function.
27306 (set_iod): Likewise.
27307 (set_p2d): Likewise.
27308 (grub_cs5536_init_geode): Likewise.
27309 * commands/mips/yeeloong/lsspd.c: New file.
27310 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27311 (serial_mod_SOURCES): New variable.
27312 (serial_mod_CFLAGS): Likewise.
27313 (serial_mod_LDFLAGS): Likewise.
27314 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27315 term/terminfo.c and term/tparm.c.
27316 (pkglib_IMAGES): Add fwstart.img.
27317 (fwstart_img_SOURCES): New variable.
27318 (fwstart_img_CFLAGS): Likewise.
27319 (fwstart_img_ASFLAGS): Likewise.
27320 (fwstart_img_LDFLAGS): Likewise.
27321 (fwstart_img_FORMAT): Likewise.
27322 (pkglib_MODULES): Add lsspd.mod.
27323 (lsspd_mod_SOURCES): New variable.
27324 (lsspd_mod_CFLAGS): Likewise.
27325 (lsspd_mod_LDFLAGS): Likewise.
27326 (pkglib_MODULES): Add halt.mod.
27327 (halt_mod_SOURCES): New variable.
27328 (halt_mod_CFLAGS): Likewise.
27329 (halt_mod_LDFLAGS): Likewise.
27330 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27331 (serial_mod_SOURCES): Removed.
27332 (serial_mod_CFLAGS): Likewise.
27333 (serial_mod_LDFLAGS): Likewise.
27334 * disk/ata.c (check_device): New function.
27335 (grub_ata_device_initialize): Use check_device.
27336 (grub_ata_iterate): Recheck devices.
27337 (grub_ata_open): Likewise.
27338 (grub_atapi_iterate): Likewise.
27339 (grub_atapi_open): Likewise.
27340 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27341 (GRUB_ATA_CH1_PORT1): Likewise.
27342 (GRUB_ATA_CH0_PORT2): Likewise.
27343 (GRUB_ATA_CH1_PORT2): Likewise.
27344 * include/grub/mips/loongson.h: New file.
27345 * include/grub/mips/yeeloong/ec.h: Likewise.
27346 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27347 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27348 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27349 * include/grub/misc.h (grub_halt): Declare as noreturn.
27350 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27351 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27352 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27353 (UART_ENABLE_DTRRTS): Likewise.
27354 (UART_ENABLE_MODEM): Removed.
27355 (UART_ENABLE_OUT2): New const.
27356 * include/grub/term.h (grub_term_register_input_active): New function.
27357 (grub_term_register_output_active): Likewise.
27358 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27359 argument.
27360 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27361 (init_pci): New function.
27362 (grub_machine_init): Execute platform init when firmware. Init serial.
27363 (grub_halt): Implement.
27364 (grub_exit): Likewise.
27365 (grub_reboot): Likewise.
27366 * term/serial.c (serial_hw_init): Update macros.
27367 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27368 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27369 (image_targets): New target mipsel-yeeloong-flash.
27370 (generate_image): Support IMAGE_YEELOONG_FLASH.
27371 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27372 (grub_video_sm712_setup): Init card.
27373 (grub_video_sm712_set_palette): Removed.
27374 * video/sm712_init.c: New file.
27375
27376 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27377
27378 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27379 PATH when running help2man and then run it on the unadorned
27380 executable names, rather than passing $(builddir)/* paths to
27381 help2man. This avoids the build directory ending up in generated
27382 manual pages.
27383
27384 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27385
27386 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27387 to avoid accidents when debugging with 'sh -x'.
27388 * util/grub-mkrescue.in: Likewise.
27389 * util/grub.d/00_header.in: Likewise.
27390 * util/grub.d/10_hurd.in: Likewise.
27391 * util/grub.d/10_kfreebsd.in: Likewise.
27392 * util/grub.d/10_linux.in: Likewise.
27393 * util/grub.d/10_netbsd.in: Likewise.
27394 * util/grub.d/10_windows.in: Likewise.
27395 * util/grub.d/20_linux_xen.in: Likewise.
27396 * util/grub.d/30_os-prober.in: Likewise.
27397 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27398
27399 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27400
27401 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27402 last character in the buffer.
27403 Reported by: Vladimir Serbinenko.
27404
27405 2010-06-29 Robert Millan <rmh@gnu.org>
27406
27407 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27408 (Command-line and menu entry commands): Document `badram' command.
27409
27410 2010-06-28 Robert Millan <rmh@gnu.org>
27411
27412 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27413 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27414 command using ${GRUB_BADRAM} as parameter.
27415
27416 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27417
27418 * docs/grub.texi (Device map): New section.
27419 (Themes): New section (stub).
27420 * Makefile.in (docs/grub.info): The info documentation now builds
27421 without errors. Make sure it stays that way.
27422
27423 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27424
27425 Use normal parser for menu entries.
27426 Reported by: Thomas Frauendorfer
27427
27428 * include/grub/parser.h (grub_parser_execute): Don't export.
27429 * normal/menu.c (grub_menu_execute_entry_real): New function.
27430 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27431
27432 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27433
27434 * docs/grub.texi (Embedded configuration): New section (replacing
27435 old "Preset Menu" stub).
27436 (Images): New section.
27437 (configfile): Note that any menu entries defined in `file' are shown
27438 immediately.
27439
27440 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27441
27442 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27443
27444 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27445
27446 * util/grub-install.in: Add --debug-image= option.
27447
27448 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27449
27450 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27451 possible on Linux.
27452
27453 * util/deviceiter.c (check_device): Rename to ...
27454 (check_device_readable_unique): ... this. Update all callers.
27455 Maintain and check a list of which devices (by canonicalized name)
27456 have already been seen.
27457 (clear_seen_devices): New function.
27458 (compare_file_names) [__linux__]: New function.
27459 (grub_util_iterate_devices): Clear the list of seen devices on exit
27460 and (just in case) on entry.
27461 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27462 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27463 seen-devices list, superseded by general code in check_device.
27464
27465 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27466
27467 * commands/cat.c (options): New variable.
27468 (grub_cmd_cat): Parse options. If the --dos option is given, print
27469 DOS-style "\r\n" line endings as simple newlines (Debian bug
27470 #586358).
27471 (GRUB_MOD_INIT): Use extcmd.
27472 (GRUB_MOD_FINI): Likewise.
27473 * docs/grub.texi (cat): Document --dos.
27474
27475 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27476
27477 XEN with Linux grub-mkconfig support.
27478
27479 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27480 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27481 GRUB_CMDLINE_XEN_DEFAULT.
27482 * util/grub.d/20_linux_xen.in: New file.
27483
27484 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27485
27486 Initialise VGA video on qemu ourselves.
27487
27488 * boot/i386/qemu/boot.S: Don't call 0xc000.
27489 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27490 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27491 (kernel_img_HEADERS): Add pci.h.
27492 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27493 * configure.ac: Force unifont on qemu and yeeloong.
27494 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27495 (grub_vga_palette_write): Use correct register.
27496 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27497 Call grub_qemu_init_cirrus.
27498 * kern/i386/qemu/init.c: New file.
27499 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27500
27501 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27502
27503 2010-06-26 Pavel Roskin <proski@gnu.org>
27504
27505 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27506 13.
27507
27508 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27509
27510 * docs/grub.texi (Simple configuration): Explain that
27511 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27512 set to `true' to disable their respective recovery entries, not
27513 merely set.
27514
27515 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27516
27517 Make the `source' command slightly faster.
27518
27519 * normal/main.c (grub_normal_execute): Don't re-read list files when
27520 nested.
27521
27522 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27523
27524 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27525 field position and mask size to red fields from mode_info, not
27526 green.
27527 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27528 Remove redundant tag->common.framebuffer_type assignment.
27529 Reported by: Seth Goldberg.
27530
27531 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27532
27533 Sync up other versions of the Linux loader with Robert Millan's
27534 change of 2010-01-09, "Make loader output a bit more user-friendly".
27535
27536 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27537 grub_dprintf().
27538 (grub_cmd_linux): Likewise.
27539 (grub_cmd_initrd): Likewise.
27540 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27541 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27542
27543 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27544
27545 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27546 larger than MEMORY_MAP_SIZE.
27547
27548 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27549
27550 Fix parallel build.
27551
27552 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27553 dependency.
27554 * script/parser.y: #include grub_script.tab.h header.
27555
27556 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27557
27558 Support >3GiB and <16MiB RAM in i386-qemu.
27559
27560 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27561 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27562 (grub_lower_mem): Removed.
27563 (grub_upper_mem): Likewise.
27564 (mem_size): Made static.
27565 (above_4g): New variable.
27566 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27567 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27568 support.
27569
27570 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27571
27572 Cirrus 5446 and Bochs video cards support.
27573
27574 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27575 video_bochs.mod
27576 (video_cirrus_mod_SOURCES): New variable.
27577 (video_cirrus_mod_CFLAGS): Likewise.
27578 (video_cirrus_mod_LDFLAGS): Likewise.
27579 (video_bochs_mod_SOURCES): Likewise.
27580 (video_bochs_mod_CFLAGS): Likewise.
27581 (video_bochs_mod_LDFLAGS): Likewise.
27582 * include/grub/vga.h: New file.
27583 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27584 (grub_video_fb_set_page_t): New type.
27585 (grub_video_fb_setup): New prototype.
27586 (grub_video_fb_swap_buffers): Likewise.
27587 (grub_video_fb_get_info_and_fini): Likewise.
27588 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27589 (CRTC_DATA_PORT): Likewise.
27590 (CRTC_CURSOR): Likewise.
27591 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27592 (CRTC_CURSOR_ADDR_LOW): Likewise.
27593 (CRTC_CURSOR_DISABLE): Likewise.
27594 (update_cursor): Use grub_vga_cr_write.
27595 (grub_vga_text_setcursor): Likewise.
27596 * video/bochs.c: New file.
27597 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27598 (palette): Likewise.
27599 (palette_size): Likewise.
27600 (framebuffer): New variable.
27601 (grub_video_fb_init): Use 'framebuffer'.
27602 (grub_video_fb_fini): Likewise.
27603 (grub_video_fb_get_info): Likewise.
27604 (grub_video_fb_get_palette): Likewise.
27605 (grub_video_fb_set_palette): Likewise.
27606 (grub_video_fb_set_viewport): Likewise.
27607 (grub_video_fb_get_viewport): Likewise.
27608 (grub_video_fb_map_color): Likewise.
27609 (grub_video_fb_map_rgb): Likewise.
27610 (grub_video_fb_map_rgba): Likewise.
27611 (grub_video_fb_unmap_color): Likewise.
27612 (grub_video_fb_unmap_color_int): Likewise.
27613 (grub_video_fb_fill_rect): Likewise.
27614 (grub_video_fb_blit_bitmap): Likewise.
27615 (grub_video_fb_blit_render_target): Likewise.
27616 (grub_video_fb_scroll): Likewise.
27617 (grub_video_fb_create_render_target): Likewise.
27618 (grub_video_fb_doublebuf_blit_init): Likewise.
27619 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27620 (doublebuf_pageflipping_update_screen): New function.
27621 (doublebuf_pageflipping_init): Likewise.
27622 (grub_video_fb_setup): Likewise.
27623 (grub_video_fb_swap_buffers): Likewise.
27624 (grub_video_fb_get_info_and_fini): Likewise.
27625 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27626 All users updated.
27627 (doublebuf_pageflipping_commit): Restructured into ...
27628 (doublebuf_pageflipping_set_page): ... this.
27629 (doublebuf_pageflipping_update_screen): Removed.
27630 (doublebuf_pageflipping_init): Likewise.
27631 (double_buffering_init): Likewise.
27632 (grub_video_vbe_setup): Use grub_video_fb_setup.
27633 (grub_video_vbe_swap_buffers): Removed.
27634 (grub_video_vbe_set_active_render_target): Likewise.
27635 (grub_video_vbe_get_active_render_target): Likewise.
27636 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27637 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27638 grub_video_fb_set_active_render_target and
27639 grub_video_fb_get_active_render_target.
27640 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27641 (SEQUENCER_DATA_PORT): Likewise.
27642 (MAP_MASK_REGISTER): Likewise.
27643 (CRTC_ADDR_PORT): Likewise.
27644 (CRTC_DATA_PORT): Likewise.
27645 (START_ADDR_HIGH_REGISTER): Likewise.
27646 (START_ADDR_LOW_REGISTER): Likewise.
27647 (GRAPHICS_ADDR_PORT): Likewise.
27648 (GRAPHICS_DATA_PORT): Likewise.
27649 (READ_MAP_REGISTER): Likewise.
27650 (INPUT_STATUS1_REGISTER): Likewise.
27651 (INPUT_STATUS1_VERTR_BIT): Likewise.
27652 (get_map_mask): Use grub_vga_sr_read.
27653 (set_map_mask): Use grub_vga_sr_write.
27654 (set_read_map): Use grub_vga_gr_write.
27655 (set_start_address): Use grub_vga_cr_write.
27656 * video/sm712.c (framebuffer): Remove leftover fields.
27657
27658 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27659
27660 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27661 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27662 instead. Replace the gfxterm backend check with a check that
27663 ${GRUB_PREFIX}/video.lst is non-empty.
27664 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27665 again.
27666 (load_video): New generated function. Call it before loading
27667 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27668 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27669 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27670 * docs/grub.texi (Simple configuration): Document
27671 GRUB_VIDEO_BACKEND.
27672
27673 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27674
27675 Use video functions in linux and xnu loaders.
27676
27677 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27678 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27679 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27680 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27681 loader/i386/pc/linux.c.
27682 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27683 (find_line_len): Removed.
27684 (find_framebuf): Likewise.
27685 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27686 * loader/i386/efi/xnu.c: Removed.
27687 * loader/i386/pc/xnu.c: Moved from here...
27688 * loader/i386/xnu.c: ...here.
27689
27690 Enable priorities in video drivers.
27691
27692 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27693 (grub_video_adapter): New field prio.
27694 (grub_video_register): Respect prio when inserting.
27695 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27696 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27697 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27698 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27699 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27700 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27701 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27702
27703 Fix SDL driver ID.
27704
27705 * include/grub/video.h (grub_video_driver_id_t): New value
27706 GRUB_VIDEO_DRIVER_SDL.
27707 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27708
27709 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27710
27711 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27712 argument to printf.
27713 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27714
27715 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27716
27717 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27718 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27719
27720 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27721
27722 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27723 directly, and recommend grub-install instead.
27724 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27725
27726 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27727
27728 Fix i386-pc prefix handling with nested partitions (Debian bug
27729 #585068). Note that the case where the core image is booted using
27730 multiboot and relocated from its original location still requires
27731 more work.
27732
27733 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27734 with "(,", fill the boot drive in between those two characters, but
27735 expect that a full partition specification including partition map
27736 names will follow.
27737 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27738 specified, write a prefix without the drive name but including a
27739 full partition specification.
27740
27741 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27742
27743 * util/grub-mkconfig.in: Ignore non-option arguments, for
27744 compatibility with older versions (before 2010-06-12) which did the
27745 same. In particular, this makes it easier to ship an update-grub
27746 wrapper which is compatible with that used with GRUB Legacy (Debian
27747 bug #586056).
27748
27749 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27750
27751 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27752 for manual page generation.
27753
27754 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27755
27756 * po/POTFILES: Remove leftover commands/handler.c.
27757
27758 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27759
27760 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27761 left this script non-functional.
27762
27763 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27764
27765 * docs/man/grub-emu.h2m: New file.
27766
27767 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27768
27769 * docs/grub.texi (Commands): Document reduced command set in rescue
27770 mode.
27771 (cpuid): New section.
27772
27773 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27774
27775 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27776 new partition naming style.
27777 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27778
27779 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27780
27781 Add "-o grub.iso" like cmdline options support.
27782
27783 * util/grub-install.in: Improve cmdline option parsing.
27784 * util/grub-mkconfig.in: Likewise.
27785 * util/grub-mkrescue.in: Likewise.
27786 * util/grub-reboot.in: Likewise.
27787 * util/grub-set-default.in: Likewise.
27788 * util/i386/efi/grub-install.in: Likewise.
27789 * util/ieee1275/grub-install.in: Likewise.
27790 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27791
27792 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27793
27794 * .bzrignore: Ignore 41_custom.
27795
27796 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27797
27798 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27799
27800 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27801
27802 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27803 prototype declarations.
27804
27805 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27806 generating fs, partmap, and video lists.
27807 * include/grub/fs.h (grub_fs_register): Omit prototype if
27808 GRUB_LST_GENERATOR is defined.
27809 * include/grub/partition.h (grub_partition_map_register): Likewise.
27810 * include/grub/video.h (grub_video_register): Likewise.
27811
27812 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27813
27814 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27815
27816 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27817
27818 * util/grub-mkrescue.in: Support --xorriso argument.
27819
27820 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27821
27822 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27823 Suggested by: Thomas Schmitt.
27824
27825 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27826
27827 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27828 Suggested by: Thomas Schmitt.
27829
27830 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27831
27832 custom.cfg support.
27833
27834 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27835 * util/grub.d/41_custom.in: New file.
27836
27837 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27838
27839 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27840 been merged back into normal.
27841
27842 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27843
27844 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27845 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27846
27847 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27848
27849 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27850 when generating manual pages.
27851 * docs/man/grub-bin2h.h2m: New file.
27852 * docs/man/grub-editenv.h2m: New file.
27853 * docs/man/grub-fstest.h2m: New file.
27854 * docs/man/grub-install.h2m: New file.
27855 * docs/man/grub-macho2img.h2m: New file.
27856 * docs/man/grub-mkconfig.h2m: New file.
27857 * docs/man/grub-mkdevicemap.h2m: New file.
27858 * docs/man/grub-mkfont.h2m: New file.
27859 * docs/man/grub-mkimage.h2m: New file.
27860 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27861 * docs/man/grub-mkrelpath.h2m: New file.
27862 * docs/man/grub-mkrescue.h2m: New file.
27863 * docs/man/grub-ofpathname.h2m: New file.
27864 * docs/man/grub-pe2elf.h2m: New file.
27865 * docs/man/grub-probe.h2m: New file.
27866 * docs/man/grub-reboot.h2m: New file.
27867 * docs/man/grub-script-check.h2m: New file.
27868 * docs/man/grub-set-default.h2m: New file.
27869 * docs/man/grub-setup.h2m: New file.
27870
27871 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27872
27873 Use FOR_* macros instead of *_iterate whenever possible.
27874
27875 * commands/handler.c: Removed.
27876 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27877 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27878 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27879 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27880 (grub_probe_SOURCES): Remove kern/parser.c.
27881 (util/grub-script-check.c_DEPENDENCIES): Removed.
27882 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27883 and grub_script_check_init.c.
27884 (grub_script_check_init.lst): Removed.
27885 (grub_script_check_init.h): Likewise.
27886 (grub_script_check_init.c): Likewise.
27887 (pkglib_MODULES): Remove handler.mod and sh.mod.
27888 (handler_mod_SOURCES): Removed.
27889 (handler_mod_CFLAGS): Likewise.
27890 (handler_mod_LDFLAGS): Likewise.
27891 (normal_mod_SOURCES): Remove normal/handler.c.
27892 Add script/main.c, script/script.c, script/execute.c,
27893 script/function.c, script/lexer.c, grub_script.tab.c
27894 and grub_script.yy.c.
27895 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27896 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27897 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27898 (grub_setup_SOURCES): Remove kern/parser.c.
27899 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27900 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27901 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27902 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27903 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27904 (grub_setup_SOURCES): Remove kern/parser.c.
27905 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27906 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27907 * include/grub/command.h (grub_command_iterate): Removed.
27908 (FOR_COMMANDS): New macro.
27909 * include/grub/dl.h (grub_dl): New member next.
27910 (grub_dl_iterate): Removed.
27911 (grub_dl_head): New variable declaration.
27912 (FOR_DL_MODULES): New macro.
27913 * include/grub/fs.h: Include list.h.
27914 (grub_fs): Make next first element.
27915 (grub_fs_list): New variable declaration.
27916 (grub_fs_register): Make inline.
27917 (grub_fs_unregister): Likewise.
27918 (grub_fs_iterate): Removed.
27919 (FOR_FILESYSTEMS): New macro.
27920 * include/grub/handler.h: Removed.
27921 * include/grub/list.h (grub_list_hook_t): Removed.
27922 (grub_list_test_t): Likewise.
27923 (grub_list_pop): Likewise.
27924 (grub_list_iterate): Likewise.
27925 (grub_list_insert): Likewise.
27926 (FOR_LIST_ELEMENTS): New macro.
27927 * include/grub/parser.h (grub_parser_class): Removed.
27928 (grub_parser_register): Likewise.
27929 (grub_parser_unregister): Likewise.
27930 (grub_parser_get_current): Likewise.
27931 (grub_parser_set_current): Likewise.
27932 (grub_register_rescue_parser): Likewise.
27933 (grub_rescue_parse_line): New function.
27934 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27935 * include/grub/script_sh.h (grub_script_function_list): New variable
27936 declaration.
27937 (FOR_SCRIPT_FUNCTIONS): New macro.
27938 (grub_script_function_iterate): Removed.
27939 (grub_normal_parse_line): New prototype.
27940 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27941 (FOR_DISABLED_TERM_INPUTS): Likewise.
27942 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27943 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27944 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27945 element.
27946 (grub_video_register): Inline.
27947 (grub_video_unregister): Likewise.
27948 (grub_video_adapter_list): New variable declaration.
27949 (grub_video_iterate): Removed.
27950 (FOR_VIDEO_ADAPTERS): New macro.
27951 * kern/dl.c (grub_dl_list): Removed. All users updated.
27952 (grub_dl_iterate): Removed.
27953 * kern/fs.c (grub_fs_list): Make global.
27954 (grub_fs_register): Removed.
27955 (grub_fs_unregister): Likewise.
27956 (grub_fs_iterate): Likewise.
27957 * kern/handler.c: Removed.
27958 * kern/list.c (grub_list_pop): Removed.
27959 (grub_list_iterate): Likewise.
27960 (grub_list_insert): Likewise.
27961 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27962 (grub_prio_list_insert): Don't use grub_list_insert.
27963 * kern/main.c (grub_register_rescue_parser): Don't call
27964 grub_register_rescue_parser.
27965 * kern/parser.c (grub_parser_class): Removed.
27966 (grub_parser_execute): Use grub_rescue_parse_line.
27967 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27968 (grub_rescue_parser): Removed.
27969 (grub_register_rescue_parser): Likewise.
27970 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27971 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27972 (grub_auth_check_authentication): Likewise.
27973 * normal/completion.c (iterate_command): Removed.
27974 (grub_normal_do_completion): Use FOR_COMMANDS.
27975 * normal/handler.c: Removed.
27976 * normal/main.c (read_config_file): Remove parser changing.
27977 (grub_normal_execute): Don't call read_handler_list.
27978 (grub_normal_read_line_real): Statically allocate prompt.
27979 (grub_cmdline_run): Use grub_normal_parse_line.
27980 (GRUB_MOD_FINI): Don't call free_handler_list.
27981 * normal/menu_entry.c (run): Likewise.
27982 * script/function.c (grub_script_function_list): Make global.
27983 (grub_script_function_iterate): Removed.
27984 * script/main.c (grub_normal_parse_line): Make global.
27985 (grub_sh_parser): Removed.
27986 (GRUB_MOD_INIT): Likewise.
27987 (GRUB_MOD_FINI): Likewise.
27988 * tests/lib/functional_test.c (grub_functional_test): Use
27989 FOR_LIST_ELEMENTS.
27990 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27991 (grub_test_run): Use FOR_LIST_ELEMENTS.
27992 * tests/lib/unit_test.c (main): Likewise.
27993 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27994 grub_list_pop.
27995 * util/grub-fstest.c (grub_term_input_class): Removed.
27996 (grub_term_output_class): Likewise.
27997 * util/grub-probe.c: Likewise.
27998 * util/i386/pc/grub-setup.c: Likewise.
27999 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28000 * util/grub-script-check.c (main): Don't call grub_init_all and
28001 grub_fini_all.
28002 * video/video.c (grub_video_adapter_list): Make global.
28003 (grub_video_register): Removed.
28004 (grub_video_unregister): Likewise.
28005 (grub_video_iterate): Likewise.
28006
28007 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
28008
28009 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28010 reported by Henrique Ferreiro.
28011
28012 2010-06-09 Robert Millan <rmh@gnu.org>
28013
28014 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28015 ones, when both are available.
28016
28017 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28018
28019 Make --version uniform and avoid hard-coded program name.
28020
28021 * util/grub-mkimage.c (main): Use `program_name' instead of
28022 hard-coded string.
28023 * util/i386/pc/grub-setup.c (main): Likewise.
28024 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28025 * util/grub-install.in: Save the basename of $0 in $self, and use the
28026 latter in informational messages. Use the same format for --version
28027 as the binary programs.
28028 * util/grub-mkconfig.in: Likewise.
28029 * util/grub-mkrescue.in: Likewise.
28030 * util/grub-reboot.in: Likewise.
28031 * util/grub-set-default.in: Likewise.
28032 * util/i386/efi/grub-install.in: Likewise.
28033 * util/ieee1275/grub-install.in: Likewise.
28034 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28035
28036 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28037
28038 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28039 embedding area. Use <= instead of == when checking for non-emptiness.
28040
28041 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28042
28043 * configure.ac: Add `.' to the directories searched for unifont.
28044
28045 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28046
28047 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28048 grub_script.yy.h.
28049
28050 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28051
28052 * docs/grub.texi (History): Expand to cover GRUB 2.
28053 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28054 commands, not `terminal'.
28055 (serial): Likewise.
28056 (terminal_input): New section.
28057 (terminal_output): New section.
28058 (uppermem): New section (stub).
28059 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28060
28061 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28062
28063 * docs/grub.texi (Security): Menu entries are unrestricted by
28064 default, not restricted to superusers as I had previously thought.
28065 Reword to account for this.
28066
28067 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28068
28069 * kern/emu/misc.c (device_mapper_null_log): New function.
28070 (grub_device_mapper_supported): New function.
28071 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28072 prototype.
28073 * kern/emu/hostdisk.c (find_partition_start): Check whether
28074 device-mapper is supported before trying to use it.
28075 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28076
28077 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28078
28079 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28080 (File name syntax): Likewise.
28081 (help): --all is no longer supported in GRUB 2. Be more precise
28082 about pattern matching.
28083
28084 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28085
28086 * normal/completion.c (grub_normal_do_completion): When completing
28087 arguments to "set" and the current word contains an equals sign,
28088 skip to after the equals sign before starting completion.
28089
28090 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28091
28092 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28093
28094 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28095
28096 * docs/grub.texi (Network): New section.
28097 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28098 `(nd)' as in GRUB Legacy.
28099 (pxe_unload): New section.
28100
28101 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28102
28103 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28104 in the rescue shell, so recommend using `set' instead. Thanks,
28105 Jordan Uggla.
28106
28107 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28108
28109 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28110 (password): New section.
28111 (password_pbkdf2): New section.
28112 (search): New section.
28113 (Security): New section.
28114 (Troubleshooting): New section, currently very incomplete.
28115 (Invoking grub-mkpasswd-pbkdf2): New section.
28116 (Internals): New section, currently very incomplete.
28117
28118 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28119
28120 * util/grub.d/00_header.in: Add some more quoting (of
28121 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28122 work again.
28123 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28124
28125 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28126
28127 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28128 to `count', fixing variable shadowing that broke the -c option.
28129
28130 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28131
28132 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28133 in case they contain spaces.
28134
28135 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28136
28137 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28138 "part_" to partmap module names, in line with grub-install.
28139 Reported by: Jindřich Makovička (Debian bug #584426).
28140
28141 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28142
28143 * util/grub-mkimage.c: Make target-related error messages slightly
28144 more helpful; -O talks about "format". Explicitly point to the use
28145 of -O if no target is specified.
28146 Reported by: Didier Raboud (Debian bug #584415).
28147
28148 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28149
28150 * INSTALL: Document several build requirements for optional features
28151 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28152
28153 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28154
28155 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28156 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28157 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28158
28159 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28160
28161 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28162 Thanks to Jordan Uggla for spotting this.
28163
28164 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28165
28166 Finally make USB usable.
28167
28168 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28169 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28170 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28171 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28172 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28173 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28174 (GRUB_OHCI_FSMPS): Likewise.
28175 (GRUB_OHCI_PERIODIC_START): Likewise.
28176 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28177 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28178 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28179 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28180 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28181 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28182 (grub_ohci_transaction): Likewise.
28183 (grub_ohci_transfer): Improve condition detection algorithms.
28184 Handle toggle property. Program the transactions correctly.
28185 Improve error handling. Various important fixups.
28186 (grub_ohci_portstatus): Put register writes in right order.
28187 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28188 (grub_uhci_transfer): Don't show "failed" message on success.
28189 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28190 array.
28191 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28192 determine its size.
28193 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28194 before initialization is completed. Use IN direction for empty
28195 transfers. Use last_trans and compute toggle.
28196 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28197 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28198 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28199 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28200 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28201 (grub_usb_device): Increase toggle to 256.
28202 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28203 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28204 GRUB_USBMS_SUBCLASS_SFF8070.
28205 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28206 (grub_scsi_inquiry): New member page and alloc_length.
28207 (grub_scsi_request_sense): New structure.
28208 (grub_scsi_request_sense_data): Likewise.
28209 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28210 control.
28211 * disk/scsi.c (grub_scsi_request_sense): New function.
28212 (grub_scsi_test_unit_ready): Likewise.
28213 (grub_scsi_inquiry): Fill new fields.
28214 (grub_scsi_read_capacity): Likewise.
28215 (grub_scsi_read10): Add request sense at the end.
28216 (grub_scsi_read12): Likewise.
28217 (grub_scsi_write10): Likewise.
28218 (grub_scsi_write12): Likewise.
28219 (grub_scsi_open): Add Test Unit Ready.
28220 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28221 Support additional subclasses. Con't clear halt yet. Activate the
28222 proper config. Calculate LUNs correctly.
28223 (grub_usbms_transfer): Various important fixups.
28224
28225 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28226
28227 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28228 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28229 (grub_ohci_fini_hw): New function.
28230 (grub_ohci_restore_hw): Likewise.
28231 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28232 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28233 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28234
28235 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 Dedicated DMA allocations.
28238
28239 * bus/pci.c (grub_memalign_dma32): New function
28240 (grub_dma_free): Likewise.
28241 (grub_dma_get_virt): Likewise.
28242 (grub_dma_get_phys): Likewise.
28243 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28244 (grub_ohci_pci_iter): Use dma32_alloc.
28245 (grub_ohci_transfer): Likewise.
28246 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28247 (grub_usb_bulk_readwrite): Likewise.
28248 * include/grub/pci.h: Add declarations.
28249
28250 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28251
28252 CS5536 support.
28253
28254 * bus/cs5536.c: New file.
28255 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28256 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28257 (cs5536_mod_SOURCES): New variable.
28258 (cs5536_mod_CFLAGS): Likewise.
28259 (cs5536_mod_LDFLAGS): Likewise.
28260 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28261 machine/pci.h.
28262 (kernel_img_SOURCES): Add bus/cs5536.c.
28263 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28264 usb_keyboard.mod.
28265 (usb_mod_SOURCES): New variable.
28266 (usb_mod_CFLAGS): New variable.
28267 (usb_mod_LDFLAGS): New variable.
28268 (usbtest_mod_SOURCES): New variable.
28269 (usbtest_mod_CFLAGS): New variable.
28270 (usbtest_mod_LDFLAGS): New variable.
28271 (ohci_mod_SOURCES): New variable.
28272 (ohci_mod_CFLAGS): New variable.
28273 (ohci_mod_LDFLAGS): New variable.
28274 (usbms_mod_SOURCES): New variable.
28275 (usbms_mod_CFLAGS): New variable.
28276 (usbms_mod_LDFLAGS): New variable.
28277 (usb_keyboard_mod_SOURCES): New variable.
28278 (usb_keyboard_mod_CFLAGS): New variable.
28279 (usb_keyboard_mod_LDFLAGS): New variable.
28280 * include/grub/smbus.h: New file.
28281 * include/grub/cs5536.h: New file.
28282
28283 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28284
28285 * util/grub.d/00_header.in: Add safety check to make sure that
28286 ${locale_dir} exists before trying to probe it.
28287
28288 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28289
28290 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28291 per the GNU Coding Standards; this is now too obscure to be worth
28292 documenting.
28293 (QNX): Likewise.
28294 (chainloader): Remove cross-reference to `SCO UnixWare'.
28295
28296 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28297
28298 * docs/grub.texi (Chain-loading): New section.
28299 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28300 adjusted for GRUB 2.
28301 (SCO UnixWare): Likewise.
28302 (QNX): Likewise.
28303 (chainloader): Add reference to `Block list syntax'.
28304 (drivemap): New section.
28305 (parttool): New section.
28306
28307 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28308
28309 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28310 the grub shell'.
28311 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28312 (Installing GRUB using grub-install): Remove reference to the grub
28313 shell; mention `grub-mkimage' and `grub-setup' instead.
28314 (Invoking grub-install): Likewise.
28315 (Interface): Add reference to `Menu entry editor'.
28316 (serial): Remove `--device' option.
28317
28318 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28319
28320 * docs/grub.texi (Configuration): New section, documenting
28321 configuration file generation using grub-mkconfig. I've left a slot
28322 for documenting the full shell scripting format but have not yet
28323 started on writing that up.
28324 (Invoking grub-mkconfig): New section.
28325
28326 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28327
28328 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28329 (GNU GRUB manual): Likewise.
28330 (General commands): Update description of `terminfo' for GRUB 2.
28331
28332 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28333
28334 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28335 (GRUB_MOD_INIT): Fix capitalisation.
28336 * docs/grub.texi (Command-line and menu entry commands): Document
28337 gettext and gptsync commands.
28338
28339 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28340
28341 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28342 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28343
28344 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28345
28346 Add btrfs probing support, currently only in the single-device case.
28347
28348 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28349 function.
28350 (grub_guess_root_device): Call find_root_device_from_mountinfo
28351 before looking in /dev.
28352
28353 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28354
28355 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28356 GRUB_DISK_SIZE_UNKNOWN.
28357 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28358
28359 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28360
28361 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28362 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28363 corrupted or not synced properly.
28364
28365 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28366
28367 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28368 Reported by: Seth Goldberg.
28369
28370 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28371
28372 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28373 addition of dest.
28374 Reported by: Seth Goldberg.
28375
28376 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28377
28378 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28379 Reported by: Seth Goldberg.
28380
28381 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28382
28383 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28384 64-bit address as signed on MIPS.
28385
28386 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28387
28388 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28389 to the empty string.
28390
28391 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28392
28393 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28394
28395 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28396 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28397 * kern/misc.c (__enable_execute_stack): Disable on
28398 GRUB_MACHINE_EMU.
28399
28400 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28401
28402 Make grub-probe work with symbolic links under /dev/mapper as well
28403 as with real block devices. The Linux world seems to be (at best)
28404 in transition here, and GRUB shouldn't get caught in the middle.
28405
28406 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28407 /dev/mapper.
28408
28409 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28410
28411 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28412 input files (in which case exit zero).
28413
28414 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28415
28416 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28417 return NULL for various reasons even if it has a maximum-length
28418 buffer: for example, there might be a symlink loop, or the path
28419 might exceed PATH_MAX. If this happens, return NULL.
28420
28421 2010-05-27 Robert Millan <rmh@gnu.org>
28422
28423 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28424 partmap module to handle cross-partmap setups.
28425 Reported by Orestes Mas. Gràcies!
28426
28427 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28428
28429 * util/grub-mkrescue.in: Initialise override_dir rather than
28430 assuming that it's unset or empty in the environment.
28431
28432 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28433
28434 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28435 variable index into p_index to suppress a warning with -Wshadow.
28436
28437 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28438
28439 * INSTALL: Added flex >= 2.5.35 requirement.
28440
28441 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28442
28443 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28444
28445 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28446
28447 cmostest support.
28448
28449 * commands/i386/cmostest.c: New file.
28450 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28451 (cmostest_mod_SOURCES): New variable.
28452 (cmostest_mod_CFLAGS): Likewise.
28453 (cmostest_mod_LDFLAGS): Likewise.
28454 * conf/i386-pc.rmk: Likewise.
28455 * docs/grub.texi (Vendor power-on keys): New section.
28456 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28457 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28458 and GRUB_BUTTON_CMOS_ADDRESS.
28459 * util/grub.d/00_header.in: Handle powering-on by separate button.
28460
28461 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28462
28463 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28464 Removed drawing_scrollbar argument. All users updated
28465 Fixes #29792.
28466 Reported by Jo Shields
28467
28468 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28469
28470 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28471 buffer since gfxterm handles double repaint.
28472
28473 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28474
28475 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28476 * term/gfxterm.c (real_scroll): Likewise.
28477
28478 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28479
28480 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28481 before calling BIOS.
28482
28483 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28484
28485 * include/grub/i18n.h: Always enable grub_gettext.
28486
28487 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28488
28489 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28490 partition naming style.
28491
28492 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28493
28494 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28495 not the first option.
28496
28497 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28498
28499 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28500
28501 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28502
28503 * util/misc.c: Move inclusion of <limits.h> to ...
28504 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28505
28506 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28507
28508 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28509 Fix merge error in NetBSD code.
28510 (find_partition_start) [__NetBSD__]: Likewise.
28511
28512 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28513
28514 Fix grub-mkrescue usage unit testing.
28515
28516 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28517
28518 2010-05-18 Christian Franke <franke@computer.org>
28519
28520 * util/grub.d/10_windows.in: Use path names instead of
28521 drive letters to prevent warning from Cygwin 1.7.
28522 Add drivemap command to menuentry if needed.
28523
28524 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28525
28526 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28527 gnumach and gnumach.gz.
28528
28529 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28530
28531 * include/grub/i18n.h (gettext): Inline instead of using #define.
28532 (grub_gettext): Likewise.
28533 (_): Likewise.
28534
28535 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28536
28537 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28538 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28539 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28540 (main): Add a slash after pkglibdirroot.
28541
28542 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28543
28544 * util/grub-install.in: Add missing "in" keyword.
28545
28546 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28547
28548 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28549 Reported by: Seth Goldberg.
28550
28551 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28552
28553 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28554
28555 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28556
28557 * configure.ac: Check for Linux device-mapper support.
28558
28559 * util/hostdisk.c (device_is_mapped): New function.
28560 (find_partition_start): New function, partly broken out from
28561 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28562 device-mapper support added.
28563 (linux_find_partition): Use find_partition_start.
28564 (convert_system_partition_to_system_disk): Add `st' argument.
28565 Support Linux /dev/mapper/* devices if device-mapper support is
28566 available; only DM-RAID devices are understood at present.
28567 (find_system_device): Add `st' argument. Pass it to
28568 convert_system_partition_to_system_disk.
28569 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28570 find_system_device and convert_system_partition_to_system_disk. Use
28571 find_partition_start.
28572
28573 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28574 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28575 * util/deviceiter.c [__linux__]: Define MINOR.
28576 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28577 * util/mkdevicemap.c (grub_putchar): New function.
28578 (grub_getkey): New function.
28579 (grub_refresh): New function.
28580 (main): Set debug=all if -v -v is used.
28581
28582 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28583
28584 Fix build with non-GNU libcs.
28585
28586 * util/misc.c (canonicalize_file_name): Move to ...
28587 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28588 grub_make_system_path_relative_to_its_root.
28589
28590 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28591
28592 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28593 we handle finding grub-mkimage. Default to finding grub-mkimage in
28594 ${bindir} with program_transform_name applied, and provide a
28595 --grub-mkimage option to override this.
28596
28597 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28598
28599 Remove grub-mkisofs.
28600
28601 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28602 (grub_mkisofs_SOURCES): Removed.
28603 (grub_mkisofs_CFLAGS): Removed.
28604 * util/mkisofs/defaults.h: Removed.
28605 * util/mkisofs/eltorito.c: Likewise.
28606 * util/mkisofs/exclude.h: Likewise.
28607 * util/mkisofs/hash.c: Likewise.
28608 * util/mkisofs/include/: Likewise.
28609 * util/mkisofs/include/fctldefs.h: Likewise.
28610 * util/mkisofs/include/mconfig.h: Likewise.
28611 * util/mkisofs/include/prototyp.h: Likewise.
28612 * util/mkisofs/include/statdefs.h: Likewise.
28613 * util/mkisofs/iso9660.h: Likewise.
28614 * util/mkisofs/joliet.c: Likewise.
28615 * util/mkisofs/match.c: Likewise.
28616 * util/mkisofs/match.h: Likewise.
28617 * util/mkisofs/mkisofs.c: Likewise.
28618 * util/mkisofs/mkisofs.h: Likewise.
28619 * util/mkisofs/msdos_partition.h: Likewise.
28620 * util/mkisofs/multi.c: Likewise.
28621 * util/mkisofs/name.c: Likewise.
28622 * util/mkisofs/rock.c: Likewise.
28623 * util/mkisofs/tree.c: Likewise.
28624 * util/mkisofs/write.c: Likewise.
28625
28626 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28627
28628 Unify grub-mkimage accross platforms.
28629
28630 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28631 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28632 (grub_mkelfimage_SOURCES): Removed.
28633 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28634 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28635 (bin_UTILITIES): Add grub-mkimage.
28636 (grub_mkimage_SOURCES): New variable.
28637 (kernel_img_HEADERS): Remove machine/kernel.h.
28638 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28639 (pkglib_PROGRAMS): Add kernel.img.
28640 (kernel_img_HEADERS): Add machine/kernel.h.
28641 (kernel_img_FORMAT): Removed.
28642 (bin_UTILITIES): Remove grub-mkimage.
28643 (grub_mkimage_SOURCES): Removed.
28644 (grub_mkimage_CFLAGS): Likewise.
28645 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28646 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28647 (pkglib_PROGRAMS): Add kernel.img.
28648 (bin_UTILITIES): Remove grub-mkimage.
28649 (grub_mkimage_SOURCES): Removed.
28650 (grub_mkimage_CFLAGS): Likewise.
28651 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28652 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28653 (pkglib_PROGRAMS): Add kernel.img.
28654 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28655 (pkglib_PROGRAMS): Add kernel.img.
28656 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28657 (grub_mkimage_SOURCES): Removed.
28658 (grub_mkimage_CFLAGS): Likewise.
28659 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28660 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28661 (pkglib_PROGRAMS): Add kernel.img.
28662 (bin_UTILITIES): Remove grub-mkimage.
28663 (grub_mkimage_SOURCES): Removed.
28664 (grub_mkimage_CFLAGS): Likewise.
28665 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28666 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28667 (grub_mkimage_SOURCES): Removed.
28668 (grub_mkimage_CFLAGS): Likewise.
28669 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28670 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28671 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28672 (grub_pe32_optional_header): ... this.
28673 (grub_pe64_optional_header): ... and this. All users updated.
28674 (GRUB_PE32_PE32_MAGIC): Split into ..
28675 (GRUB_PE32_PE32_MAGIC): .. this.
28676 (GRUB_PE32_PE64_MAGIC): .. and this.
28677 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28678 * include/grub/elf.h (PT_GNU_STACK): New definition.
28679 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28680 * include/grub/i386/efi/kernel.h: Likewise.
28681 * include/grub/i386/kernel.h: Likewise.
28682 * include/grub/i386/pc/kernel.h: Likewise.
28683 * include/grub/i386/qemu/boot.h: Likewise.
28684 * include/grub/mips/kernel.h: Likewise.
28685 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28686 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28687 * include/grub/powerpc/kernel.h: Likewise.
28688 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28689 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28690 * include/grub/sparc64/kernel.h: Likewise.
28691 * include/grub/x86_64/efi/kernel.h: Likewise.
28692 * include/grub/x86_64/kernel.h: Likewise.
28693 * include/grub/offsets.h: New file.
28694 * include/grub/kernel.h (grub_module_info): Split into ...
28695 (grub_module_info32): ... this.
28696 (grub_module_info64): ... and this.
28697 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28698 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28699 (grub_boot_blocklist): Moved from here ...
28700 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28701 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28702 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28703 * include/grub/types.h (grub_target_to_host16): Removed.
28704 (grub_target_to_host32): Likewise.
28705 (grub_target_to_host64): Likewise.
28706 (grub_host_to_target16): Likewise.
28707 (grub_host_to_target32): Likewise.
28708 (grub_host_to_target64): Likewise.
28709 (grub_host_to_target_addr): Likewise.
28710
28711 Support grub-mkrescue for efi, coreboot and qemu.
28712
28713 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28714 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28715 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28716 * util/grub-mkrawimage.c: Moved from here ...
28717 * util/grub-mkimage.c: ... here. All users updated.
28718 (ALIGN_ADDR): Use image_target.
28719 (TARGET_NO_FIELD): New const.
28720 (image_target_desc): New type.
28721 (image_targets): New array.
28722 (grub_target_to_host64): Use image_target.
28723 (grub_target_to_host32): Likewise.
28724 (grub_target_to_host16): Likewise.
28725 (grub_host_to_target64): Likewise.
28726 (grub_host_to_target32): Likewise.
28727 (grub_host_to_target16): Likewise.
28728 (grub_host_to_target_addr): Likewise.
28729 (generate_image): Handle multiimage.
28730 (main): Require -O parameter. All users updated.
28731 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28732 util/efi/grub-mkimage.c
28733 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28734 New option --rom-directory.
28735 Use xorriso.
28736 * util/i386/efi/grub-mkimage.c: Removed.
28737 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28738 (grub_target_to_host32): Likewise.
28739 (grub_target_to_host64): Likewise.
28740 (grub_host_to_target16): Likewise.
28741 (grub_host_to_target32): Likewise.
28742 (grub_host_to_target64): Likewise.
28743 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28744 (grub_target_to_host32): Likewise.
28745 (grub_target_to_host64): Likewise.
28746 (grub_host_to_target16): Likewise.
28747 (grub_host_to_target32): Likewise.
28748 (grub_host_to_target64): Likewise.
28749
28750 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28751
28752 Source tree is reorganized for emu build.
28753
28754 * include/grub/util/console.h: Move from here...
28755 * include/grub/emu/console.h: ...to here.
28756 * include/grub/util/getroot.h: Move from here...
28757 * include/grub/emu/getroot.h: ...to here.
28758 * include/grub/util/hostdisk.h: Move from here...
28759 * include/grub/emu/hostdisk.h: ...to here.
28760 * util/console.c: Move from here...
28761 * kern/emu/console.c: ...to here.
28762 * util/getroot.c: Move from here...
28763 * kern/emu/getroot.c: ...to here.
28764 * util/grub-emu.c: Move from here...
28765 * kern/emu/main.c: ...to here.
28766 * util/hostdisk.c: Move from here...
28767 * kern/emu/hostdisk.c: ...to here.
28768 * util/hostfs.c: Move from here...
28769 * kern/emu/hostfs.c: ...to here.
28770 * util/mm.c: Move from here...
28771 * kern/emu/mm.c: ...to here.
28772 * util/pci.c: Move from here...
28773 * bus/emu/pci.c: ...to here.
28774 * util/sdl.c: Move from here...
28775 * video/emu/sdl.c: ...to here.
28776 * util/time.c: Move from here...
28777 * kern/emu/time.c: ...to here.
28778 * util/usb.c: Move from here...
28779 * bus/usb/emu/usb.c: ...to here.
28780
28781 * include/grub/emu/misc.h: New header for grub-emu functions.
28782 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28783
28784 * conf/any-emu.rmk: Rule updates for above renames.
28785 * conf/common.rmk: Likewise.
28786 * conf/i386-pc.rmk: Likewise.
28787 * conf/i386-qemu.rmk: Likewise.
28788 * conf/mips.rmk: Likewise.
28789 * conf/sparc64-ieee1275.rmk: Likewise.
28790 * conf/x86-efi.rmk: Likewise.
28791
28792 * disk/lvm.h: #include updates for above renames.
28793 * util/grub-mkrelpath.c: Likewise.
28794 * util/grub-probe.c: Likewise.
28795 * util/i386/pc/grub-setup.c: Likewise.
28796 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28797 * kern/emu/console.c: Likewise.
28798 * kern/emu/getroot.c: Likewise.
28799 * kern/emu/hostdisk.c: Likewise.
28800 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28801
28802 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28803 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28804 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28805 * util/misc.c: Remove grub-emu functions.
28806
28807 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28808
28809 Fix gfxmenu crash.
28810 Reported by: Thorsten Grützmacher.
28811
28812 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28813 timeout hook.
28814 (circprog_set_property): Register and unregister timeout hook.
28815 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28816 (label_destroy): Free template. and unregister hook.
28817 (label_set_state): New function.
28818 (label_set_property): Handle templates and hooks.
28819 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28820 timeout hook.
28821 (progress_bar_set_property): Register and unregister timeout hook.
28822 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28823 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28824 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28825 (update_timeout_visit): Removed.
28826 (update_timeouts): New function.
28827 (redraw_timeouts): Likewise.
28828 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28829 (grub_gfxmenu_clear_timeout): Likewise.
28830 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28831 (grub_gfxmenu_timeout_notify): Likewise.
28832 (grub_gfxmenu_timeout_notifications): New external variable.
28833 (grub_gfxmenu_timeout_register): New function.
28834 (grub_gfxmenu_timeout_unregister): Likewise.
28835
28836 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28837
28838 Transform (broken) vga terminal into (working) vga video driver.
28839
28840 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28841 video/i386/pc/vga.c.
28842 * include/grub/video.h (grub_video_driver_id):
28843 Add GRUB_VIDEO_DRIVER_VGA.
28844 * term/i386/pc/vga.c: Renamed to ...
28845 * video/i386/pc/vga.c: ...this
28846 (DEBUG_VGA): Removed.
28847 (CHAR_WIDTH): Likewise.
28848 (CHAR_HEIGHT): Likewise.
28849 (TEXT_WIDTH): Likewise.
28850 (TEXT_HEIGHT): Likewise.
28851 (DEFAULT_FG_COLOR): Likewise.
28852 (DEFAULT_BG_COLOR): Likewise.
28853 (colored_char): Likewise.
28854 (xpos): Likewise.
28855 (ypos): Likewise.
28856 (cursor_state): Likewise.
28857 (fg_color): Likewise.
28858 (bg_color): Likewise.
28859 (text_buf): Likewise.
28860 (page): Likewise.
28861 (font): Likewise.
28862 (framebuffer): New variable.
28863 (set_read_map): Disabled.
28864 (setup): New variable.
28865 (is_target): Likewise.
28866 (grub_vga_mod_init): Likewise.
28867 (grub_vga_mod_fini): Likewise.
28868 (check_vga_mem): Likewise.
28869 (write_char): Likewise.
28870 (write_cursor): Likewise.
28871 (scroll_up): Likewise.
28872 (grub_vga_putchar): Likewise.
28873 (grub_vga_getcharwidth): Likewise.
28874 (grub_vga_getwh): Likewise.
28875 (grub_vga_getxy): Likewise.
28876 (grub_vga_gotoxy): Likewise.
28877 (grub_vga_cls): Likewise.
28878 (grub_vga_setcolorstate): Likewise.
28879 (grub_vga_setcursor): Likewise.
28880 (grub_video_vga_init): New function.
28881 (grub_video_vga_setup): Likewise.
28882 (grub_video_vga_fini): Likewise.
28883 (update_target): Likewise.
28884 (grub_video_vga_blit_bitmap): Likewise.
28885 (grub_video_vga_blit_render_target): Likewise.
28886 (grub_video_vga_set_active_render_target): Likewise.
28887 (grub_video_vga_get_active_render_target): Likewise.
28888 (grub_video_vga_swap_buffers): Likewise.
28889 (grub_video_vga_set_palette): Likewise.
28890 (grub_video_vga_get_info_and_fini): Likewise.
28891 (grub_vga_term): Removed.
28892 (grub_video_vga_adapter): New variable.
28893 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28894 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28895
28896 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28897
28898 * video/readers/jpeg.c: Indented.
28899
28900 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28901
28902 Various jpeg cleanups.
28903
28904 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28905 (grub_jpeg_decode_quan_table): Use sizeof.
28906 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28907
28908 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28909
28910 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28911 tables. Ignore non-last ac bit.
28912 (grub_jpeg_decode_quan_table): Likewise.
28913
28914 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28915
28916 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28917 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28918 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28919 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28920 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28921 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28922
28923 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28924
28925 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28926 error.
28927
28928 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28929
28930 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28931
28932 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28935 condition.
28936
28937 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28938
28939 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28940 part.
28941
28942 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28945 pointers.
28946
28947 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28948
28949 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28950
28951 2010-05-01 Christian Franke <franke@computer.org>
28952
28953 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28954 Remove broken Cygwin path conversion.
28955 * util/misc.c: [__CYGWIN__] Add include and define.
28956 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28957 for Cygwin 1.7.
28958 (make_system_path_relative_to_its_root): Simplify loop, replace early
28959 return by break.
28960 [__CYGWIN__] Add conversion to win32 path.
28961 Include "/" case in trailing slash removal.
28962
28963 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28964
28965 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28966 Reported by: Seth Goldberg
28967
28968 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * commands/help.c (grub_cmd_help): Fix a typo.
28971 Reported by: Seth Goldberg
28972
28973 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28974
28975 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28976 name and add N_.
28977 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28978 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28979 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28980 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28981 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28982 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28983 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28984 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28985 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28986 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28987 * normal/context.c (GRUB_MOD_INIT): Likewise.
28988 * normal/main.c (GRUB_MOD_INIT): Likewise.
28989 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28990 * term/serial.c (GRUB_MOD_INIT): Likewise.
28991 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28992
28993 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28994
28995 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28996 extra == 0.
28997
28998 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28999
29000 * commands/iorw.c: New file.
29001 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29002 (iorw_mod_SOURCES): New variable.
29003 (iorw_mod_CFLAGS): Likewise.
29004 (iorw_mod_LDFLAGS): Likewise.
29005
29006 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29007
29008 Hotkey support
29009
29010 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29011 * normal/main.c (hotkey_aliases): New variable.
29012 (grub_normal_add_menu_entry): Parse "--hotkey".
29013 * normal/menu_text.c (run_menu): Handle hotkeys.
29014
29015 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29016
29017 * kern/i386/coreboot/init.c (grub_machine_init): Call
29018 grub_machine_mmap_init on qemu.
29019
29020 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29021
29022 * boot/i386/qemu/boot.S: Add a missing .code16.
29023
29024 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29025
29026 Use LBIO on coreboot.
29027
29028 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29029 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29030 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29031 New declaration.
29032 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29033 grub_machine_mmap_init on coreboot.
29034 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29035 GRUB_LINUXBIOS_MEMBER_LINK.
29036 (grub_machine_mmap_iterate): Fix declaration.
29037 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29038
29039 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29040
29041 Split coreboot and multiboot ports.
29042
29043 * conf/i386-multiboot.rmk: New file.
29044 * configure.ac: Add multiboot port.
29045 * include/grub/i386/multiboot/boot.h: New file.
29046 * include/grub/i386/multiboot/console.h: Likewise.
29047 * include/grub/i386/multiboot/init.h: Likewise.
29048 * include/grub/i386/multiboot/kernel.h: Likewise.
29049 * include/grub/i386/multiboot/loader.h: Likewise.
29050 * include/grub/i386/multiboot/memory.h: Likewise.
29051 * include/grub/i386/multiboot/serial.h: Likewise.
29052 * include/grub/i386/multiboot/time.h: Likewise.
29053 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29054 * loader/multiboot.c: Likewise.
29055 * loader/multiboot_mbi2.c: Likewise.
29056 * util/grub-mkrescue.in: Generate multiboot rescue.
29057
29058 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29059
29060 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29061
29062 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29063
29064 Merge handling of input and output terminals. Fix a hang.
29065
29066 * commands/terminal.c (abstract_terminal): New struct.
29067 (handle_command): New function. Based on grub_cmd_terminal_input.
29068 (grub_cmd_terminal_input): Use handle_command.
29069 (grub_cmd_terminal_output): Use handle_command.
29070
29071 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29072
29073 Fix comment handling.
29074
29075 * tests/grub_script_comments.in: New testcase.
29076 * conf/tests.rmk: Rules for new testcase.
29077 * script/yylex.l: Updated flex rules.
29078
29079 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29080
29081 * docs/grub.texi (play): Document that zero pitches produce rests.
29082 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29083 if argc is 1.
29084
29085 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29086
29087 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29088 autogen issues.
29089
29090 2010-04-26 Christian Franke <franke@computer.org>
29091
29092 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29093 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29094 (grub_get_prefix): Remove function.
29095 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29096 make_system_path_relative_to_its_root ().
29097 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29098
29099 2010-04-24 Christian Franke <franke@computer.org>
29100
29101 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29102 (kernel_img_LDFLAGS): Remove -static-libgcc.
29103
29104 2010-04-24 Christian Franke <franke@computer.org>
29105
29106 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29107 and CHECK_END_SYMBOL if grub-emu is built.
29108 Unset TARGET_OBJ2ELF if grub-emu is built
29109 without module support.
29110
29111 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29112
29113 Nilfs2 support.
29114
29115 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29116 (grub_fstest_SOURCES): Likewise.
29117 (pkglib_MODULES): Add nilfs2.mod.
29118 (nilfs2_mod_SOURCES): New variable.
29119 (nilfs2_mod_CFLAGS): Likewise.
29120 (nilfs2_mod_LDFLAGS): Likewise.
29121 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29122 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29123 * fs/nilfs2.c: New file.
29124
29125 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29126
29127 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29128 is not supported.
29129
29130 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29131
29132 Add grub-mkconfig support for NetBSD.
29133
29134 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29135 * util/grub-mkconfig.in: export new NetBSD specific variables.
29136 * po/POTFILES-shell: added 10_netbsd.in.
29137 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29138
29139 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29140
29141 Fix emu build with grub-emu-pci and grub-emu-modules.
29142
29143 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29144 functions.
29145 * include/grub/libpciaccess.h: New file.
29146 * conf/any-emu.rmk: Update kernel headers for emu build.
29147
29148 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29149
29150 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29151
29152 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29153
29154 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29155
29156 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29157
29158 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29159 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29160 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29161 util/ieee1275/ofpath.c.
29162 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29163 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29164 * include/grub/sparc64/ieee1275/boot.h
29165 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29166 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29167 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29168 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29169 const char *.
29170 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29171 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29172 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29173 install.
29174
29175 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29176
29177 * util/grub-mkconfig.in: Corrected two == equality tests.
29178 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29179 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29180 expect a number appended to it.
29181 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29182 expects a number appended to it.
29183
29184 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29185
29186 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29187
29188 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29189
29190 * util/hostdisk.c (make_device_name): Change to new partition naming.
29191
29192 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29193
29194 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29195
29196 2010-04-17 Christian Franke <franke@computer.org>
29197
29198 * Makefile.in: Add missing localedir setting.
29199
29200 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29201
29202 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29203 mistake in r2156. Noticed by Anthony Fok.
29204
29205 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29206 @localedir@.
29207 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29208
29209 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29210
29211 Fix a spurious, uninitialized variable warning.
29212
29213 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29214 Initialize variable, shdr.
29215 (grub_freebsd_load_elfmodule): Likewise.
29216 (grub_freebsd_load_elf_meta): Likewise.
29217
29218 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29219
29220 Fix for escaped dollar in double quoted strings.
29221
29222 * script/yylex.l: Updated flex rules.
29223 * conf/tests.rmk: Rule for new testcase.
29224 * tests/grub_script_dollar.in: New testcase.
29225
29226 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29227 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29228
29229 Enclose all translated strings in grub.cfg in single quotes, and
29230 escape them appropriately (Ubuntu bug #552921).
29231
29232 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29233 * util/grub.d/10_hurd.in: Use it.
29234 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29235 * util/grub.d/10_linux.in (linux_entry): Likewise.
29236
29237 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29238
29239 Fix cygwin compilation.
29240
29241 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29242 * include/grub/misc.h (__register_frame_info)
29243 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29244 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29245 * kern/misc.c (__register_frame_info)
29246 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29247 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29248
29249 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29250
29251 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29252
29253 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29254
29255 Unify libgcc processing.
29256
29257 * Makefile.in (kernel_img_LDFLAGS): New variable.
29258 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29259 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29260 overwriting.
29261 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29262 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29263 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29264 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29265 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29266 overwriting. Remove -lgcc and -static-libgcc
29267 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29268 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29269 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29270 (kernel_img_LDFLAGS): Append instead of overwriting.
29271 Remove -lgcc and -static-libgcc
29272 * conf/sparc64-ieee1275.rmk: Likewise.
29273 * include/grub/powerpc/libgcc.h: Move to ...
29274 * include/grub/libgcc.h: .. this.
29275 * include/grub/libgcc.h: Don't export most of the function on x86.
29276 (__bswapsi2): New export.
29277 (__bswapdi2): Likewise.
29278 * include/grub/mips/libgcc.h: Removed.
29279 * include/grub/sparc64/libgcc.h: Likewise.
29280
29281 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29282
29283 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29284 disk_info_msg (conflicts with gettexting into languages with cases).
29285
29286 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29287
29288 Add grub-probe support for NetBSD.
29289
29290 * util/getroot.c (find_root_device): Convert block device to
29291 character device on NetBSD.
29292 * util/probe.c (probe): Require character device on NetBSD.
29293 * util/hostdisk.c: NetBSD specific headers.
29294 (configure_device_driver): new function to tune device driver
29295 parameters (currently only for NetBSD floppy driver).
29296 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29297 via disklabel ioctl).
29298 (open_device): call configure_device_driver on NetBSD.
29299 (convert_system_partition_to_system_disk): NetBSD specific code.
29300 (device_is_wholedisk): Likewise.
29301 (grub_util_biosdisk_get_grub_dev): Likewise.
29302 (make_device_name): Fixed a typo in bsd_part_str.
29303 * configure.ac: check for opendisk() and getrawpartition() on
29304 NetBSD and set LIBUTIL.
29305 * Makefile.in: add LIBUTIL to LIBS.
29306
29307 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29308
29309 Documentation fix.
29310
29311 * util/grub-script-check.c: Better help message.
29312
29313 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29314
29315 Fix FreeBSD build.
29316
29317 * configure.ac: Flex version check.
29318 * conf/common.rmk: Add -Wno-error to sh.mod.
29319 * script/yylex.l: Remove all #pragma.
29320
29321 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29322
29323 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29324 prototype.
29325 Reported by: Seth Goldberg.
29326
29327 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29328
29329 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29330 Rename "module" to "module2".
29331 Reported by: Seth Goldberg.
29332
29333 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29334
29335 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29336 EXPORT_FUNC.
29337 Reported by: Seth Goldberg.
29338
29339 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29340
29341 * lib/posix_wrap/locale.h: Add missing file.
29342 Reported by: Seth Goldberg.
29343
29344 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29345
29346 grub-emu module load support.
29347
29348 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29349 NO_DYNAMIC_MODULES switched to this.
29350 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29351 (CFLAGS): Likewise.
29352 * conf/any-emu.rmk: Generate symlist.
29353 (kernel_img_HEADERS): Add util/datetime.h.
29354 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29355 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29356 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29357 kern/$(target_cpu)/cache.S.
29358 * configure.ac (grub-emu-modules): New option.
29359 * genmk.rb: Handle multiple source lists.
29360 * include/grub/sdl.h: New file.
29361 * include/grub/libusb.h: Likewise.
29362 * util/grub-emu.c (main): Hanle (host) root.
29363 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29364 GRUB_ERR_UNKNOWN_DEVICE.
29365 * util/misc.c: Move mm functions to ...
29366 * util/mm.c: ... here. All users updated.
29367
29368 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29369
29370 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29371 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29372 missing files.
29373 (maintainer-clean): Remove libgcrypt-grub.
29374
29375 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29376
29377 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29378
29379 2010-04-09 EFI Coder <eficoder@hotmail.com>
29380
29381 * normal/menu_text.c (print_message): Clean up the message and show
29382 the Fn information when on EFI
29383 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29384
29385 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29388 All users updated.
29389 * normal/crypto.c (read_crypto_list): Likewise.
29390 * normal/dyncmd.c (read_command_list): Likewise.
29391 * normal/term.c (read_terminal_list): Likewise.
29392 * normal/main.c (read_lists): Use explicit prefix.
29393 (read_lists_hook): Use read_lists.
29394 (grub_normal_execute): Likewise.
29395
29396 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29397
29398 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29399 Reported by: Thomas Schmitt.
29400 Add -no-emul-boot to grub-mkisofs parameters.
29401
29402 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29403
29404 * font/font.c: Indented.
29405
29406 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29407
29408 Elif support to GRUB script (by Deepak Vankadaru).
29409
29410 * tests/grub_script_if.in: New testcase.
29411 * conf/tests.rmk: Rule for new testcase.
29412 * script/parser.y: Grammar rules for elif.
29413
29414 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29415
29416 While and until loops support to GRUB script.
29417
29418 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29419 (grub_script_create_cmdwhile): New function prototype.
29420 (grub_script_execute_cmdwhile): New function prototype.
29421 * script/execute.c (grub_script_execute_cmdwhile): New function.
29422 * script/parser.y (command): New commands.
29423 (whilecmd): New grammar rule.
29424 (untilcmd): New grammar rule.
29425 * script/script.c (grub_script_create_cmdwhile): New function.
29426 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29427 function.
29428
29429 * tests/grub_script_while1.in: New testcase.
29430 * conf/tests.rmk: Rule for new testcase.
29431
29432 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29433
29434 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29435 as *.jpg.
29436
29437 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29438
29439 GRUB_BACKGROUND support.
29440
29441 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29442 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29443
29444 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29445
29446 Load fonts and modules for gfxmenu in grub-mkconfig.
29447 Idea by: Mario Vazquez
29448
29449 * util/grub.d/00_header.in: Load pf2 and image modules.
29450
29451 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29452
29453 grub-mkconfig multiple terminal support.
29454
29455 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29456 * util/grub.d/00_header.in: Likewise.
29457
29458 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29459
29460 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29461 we use cd $(srcdir).
29462
29463 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29464
29465 * util/grub.d/10_linux.in: Only use the first word of
29466 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29467 spaces in GRUB_DISTRIBUTOR.
29468 * util/grub.d/10_kfreebsd.in: Likewise.
29469 * util/grub.d/10_hurd.in: Likewise.
29470
29471 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29472
29473 Fix unit testing framework for Qemu 0.12.
29474
29475 * tests/util/grub-shell.in: Remove -serial stdio option.
29476
29477 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29478
29479 POSIX header file wrappers.
29480
29481 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29482 equivalents.
29483 * lib/posix_wrap/ctype.h: Likewise.
29484 * lib/posix_wrap/errno.h: Likewise.
29485 * lib/posix_wrap/langinfo.h: Likewise.
29486 * lib/posix_wrap/limits.h: Likewise.
29487 * lib/posix_wrap/localcharset.h: Likewise.
29488 * lib/posix_wrap/stdint.h: Likewise.
29489 * lib/posix_wrap/stdio.h: Likewise.
29490 * lib/posix_wrap/stdlib.h: Likewise.
29491 * lib/posix_wrap/string.h: Likewise.
29492 * lib/posix_wrap/sys/types.h: Likewise.
29493 * lib/posix_wrap/unistd.h: Likewise.
29494 * lib/posix_wrap/wchar.h: Likewise.
29495 * lib/posix_wrap/wctype.h: Likewise.
29496 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29497 (grub_script.yy.h): Likewise.
29498 * script/yylex.l: Remove POSIX emulation #defines.
29499 * Makefile.in (POSIX_CFLAGS): New variable.
29500 (GNULIB_UTIL_CFLAGS): Likewise.
29501
29502 Regexp support.
29503
29504 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29505 (regexp_mod_SOURCES): New variable.
29506 (regexp_mod_CFLAGS): Likewise.
29507 (regexp_mod_LDFLAGS): Likewise.
29508 * commands/regexp.c: New file.
29509 * gnulib/regcomp.c: New file. Imported from gnulib.
29510 * gnulib/regex.c: Likewise.
29511 * gnulib/regex_internal.c: Likewise.
29512 * gnulib/regex_internal.h: Likewise.
29513 * gnulib/regexec.c: Likewise.
29514 * gnulib/regex.h: Likewise.
29515
29516 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29517
29518 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29519 unsupported video mode types.
29520
29521 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29522
29523 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29524
29525 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29526
29527 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29528 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29529
29530 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29531
29532 Remove unused grub_vga_get_font.
29533
29534 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29535 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29536
29537 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29538
29539 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29540 * include/grub/misc.h: Likewise.
29541
29542 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29543
29544 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29545 for which failure is fatal.
29546
29547 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29548
29549 * util/grub-install.in: Use mkdir -p to create grub directory.
29550 * util/i386/efi/grub-install.in: Likewise.
29551 * util/ieee1275/grub-install.in: Likewise.
29552
29553 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29554
29555 * Makefile.in (LEX): new variable.
29556
29557 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29558
29559 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29560 `=' and added double quotes on operands of this equality test.
29561
29562 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29563
29564 * Makefile.in (uninstall): Remove a leftover debug echo.
29565 Reported by: Grégoire Sutre
29566
29567 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29568
29569 MIPS multiboot2 support.
29570
29571 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29572 (multiboot2_mod_SOURCES): New variable.
29573 (multiboot2_mod_CFLAGS): Likewise.
29574 (multiboot2_mod_LDFLAGS): Likewise.
29575 (multiboot2_mod_ASFLAGS): Likewise.
29576 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29577 definition.
29578 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29579 (MULTIBOOT_MBI_REGISTER): Likewise.
29580 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29581 (MULTIBOOT_ELF32_MACHINE): Likewise.
29582 (MULTIBOOT_ELF64_MACHINE): Likewise.
29583 * include/grub/mips/multiboot.h: New file.
29584 * include/grub/video.h (grub_video_driver_id): New type
29585 GRUB_VIDEO_DRIVER_SM712.
29586 (grub_video_get_info_and_fini): Export.
29587 (grub_video_get_palette): Likewise.
29588 (grub_video_get_driver_id): Likewise.
29589 * include/multiboot2.h: Resynced with spec.
29590 * loader/i386/multiboot.c: Moved from here ...
29591 * loader/multiboot.c: ... here. All users updated.
29592 (grub_multiboot_boot): Use platform-specific macros.
29593 * loader/i386/multiboot_elfxx.c: Moved from here ...
29594 * loader/multiboot_elfxx.c: ... here. All users updated.
29595 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29596 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29597 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29598
29599 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29600
29601 Import gnulib argp module.
29602
29603 * gnulib/argp-ba.c: New file.
29604 * gnulib/argp-eexst.c: Likewise.
29605 * gnulib/argp-fmtstream.c: Likewise.
29606 * gnulib/argp-fmtstream.h: Likewise.
29607 * gnulib/argp-fs-xinl.c: Likewise.
29608 * gnulib/argp-help.c: Likewise.
29609 * gnulib/argp-namefrob.h: Likewise.
29610 * gnulib/argp-parse.c: Likewise.
29611 * gnulib/argp-pin.c: Likewise.
29612 * gnulib/argp-pv.c: Likewise.
29613 * gnulib/argp-pvh.c: Likewise.
29614 * gnulib/argp-version-etc.c: Likewise.
29615 * gnulib/argp-version-etc.h: Likewise.
29616 * gnulib/argp-xinl.c: Likewise.
29617 * gnulib/argp.h: Likewise.
29618
29619 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29620
29621 * kern/device.c (grub_device_iterate): Clear errors after failed
29622 opening device.
29623
29624 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29625
29626 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29627 returned by firmware.
29628
29629 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29630
29631 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29632 compilation on coreboot and qemu
29633
29634 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29635
29636 * include/multiboot2.h: Resync with spec.
29637
29638 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29639
29640 Multiboot2 tag support
29641
29642 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29643 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29644 Remove loader/multiboot_loader.c.
29645 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29646 (grub_multiboot2_real_boot): Likewise.
29647 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29648 (grub_get_multiboot_mmap_count): New proto.
29649 (grub_fill_multiboot_mmap): Likewise.
29650 (grub_multiboot_set_video_mode): Likewise.
29651 (grub_multiboot_set_console): Likewise.
29652 (grub_multiboot_load): Likewise.
29653 (grub_multiboot_load_elf): Likewise.
29654 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29655 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29656 * include/multiboot.h: Resynced with specification.
29657 * include/multiboot2.h: Resynced with specification.
29658 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29659 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29660 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29661 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29662 users updated.
29663 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29664 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29665 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29666 Removed.
29667 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29668 Moved from here...
29669 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29670 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29671 Moved from here...
29672 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29673 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29674 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29675 All users updated.
29676 * loader/i386/multiboot_mbi2.c: New file.
29677
29678 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29679
29680 Resync with gnulib.
29681
29682 * Makefile.in (GNULIB_CFLAGS): New variable.
29683 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29684 (grub_script_check_CFLAGS): New variable.
29685 * gnulib/alloca.h: Resync with gnulib.
29686 * gnulib/error.c: Likewise.
29687 * gnulib/error.h: Likewise.
29688 * gnulib/fnmatch.c: Likewise.
29689 * gnulib/fnmatch_loop.c: Likewise.
29690 * gnulib/getdelim.c: Likewise.
29691 * gnulib/getline.c: Likewise.
29692 * gnulib/getopt.c: Likewise.
29693 * gnulib/getopt1.c: Likewise.
29694 * gnulib/getopt_int.h: Likewise.
29695 * gnulib/gettext.h: Likewise.
29696 * gnulib/progname.c: Likewise.
29697 * gnulib/progname.h: Likewise.
29698
29699 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29700
29701 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29702 which is the case with --disabled-nls.
29703
29704 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29705 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29706 * util/misc.c: Likewise.
29707 * util/mkisofs/mkisofs.c: Likewise.
29708 * util/mkisofs/mkisofs.h: Likewise.
29709
29710 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29711
29712 Simplify Apple CC support.
29713
29714 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29715 Add 0 byte at the end not to have a symbol with empty target.
29716 * mmap/i386/pc/mmap_helper.S: Likewise.
29717 * genmk.rb: Ignore errors 2030 and 2050.
29718 * kern/i386/pc/startup.S: Use LOCAL when possible.
29719
29720 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29721
29722 Testcase and the fix for final semicolon on cmdline.
29723
29724 * tests/grub_script_final_semicolon.in: New testcase.
29725 * conf/tests.rmk: Rules for the new testcase.
29726 * script/parser.y: Grammar fix.
29727
29728 2010-03-26 BVK Chaitanya <bvk@localhost>
29729
29730 Blank lines testcase for GRUB script.
29731
29732 * tests/grub_script_blanklines.in: New testcase.
29733 * conf/tests.rmk: Rules for the new testcase.
29734
29735 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29736
29737 Don't use __FILE__.
29738
29739 * genmk.rb: Add -DGRUB_FILE to all C targets.
29740 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29741 * include/grub/list.h: Likewise.
29742 * include/grub/misc.h: Likewise.
29743 * include/grub/mm.h: Likewise.
29744 * include/grub/test.h: Likewise.
29745 * kern/mm.c: Likewise.
29746 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29747
29748 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29749
29750 Sunpc partitions support.
29751
29752 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29753 (grub_fstest_SOURCES): Likewise.
29754 (pkglib_MODULES): Add part_sunpc.mod.
29755 (part_sunpc_mod_SOURCES): New variable.
29756 (part_sunpc_mod_CFLAGS): Likewise.
29757 (part_sunpc_mod_LDFLAGS): Likewise.
29758 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29759 * partmap/sunpc.c: New file.
29760
29761 2010-03-26 BVK Chaitanya <bvk@localhost>
29762
29763 For loop support to GRUB script.
29764
29765 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29766 (grub_script_create_cmdfor): New function prototype.
29767 (grub_script_execute_cmdfor): New function prototype.
29768 * script/execute.c (grub_script_execute_cmdfor): New function.
29769 * script/parser.y (command): New for command.
29770 (forcmd): New grammar rule.
29771 * script/script.c (grub_script_create_cmdfor): New function.
29772 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29773 function.
29774 * tests/grub_script_for1.in: New testcase.
29775 * conf/tests.rmk: Rules for new testcase.
29776
29777 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29778
29779 Nested partitions
29780
29781 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29782 'partition' is NULL, grub_partition_get_start already does that.
29783 * commands/loadenv.c (check_blocklists): Likewise.
29784 (write_blocklists): Likewise.
29785 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29786 (grub_fstest_SOURCES): Likewise.
29787 (pkglib_MODULES): Add part_bsd.mod.
29788 (part_bsd_mod_SOURCES): New variable.
29789 (part_bsd_mod_CFLAGS): Likewise.
29790 (part_bsd_mod_LDFLAGS): Likewise.
29791 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29792 (grub_emu_SOURCES): Likewise.
29793 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29794 * include/grub/bsdlabel.h: New file.
29795 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29796 'get_name'.
29797 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29798 (grub_partition_map_list): New variable.
29799 (grub_partition_map_register): Inline.
29800 (grub_partition_map_unregister): Likewise.
29801 (FOR_PARTITION_MAPS): New macro.
29802 (grub_partition_map_iterate): Removed.
29803 (grub_partition_get_start): Handle nested partitions.
29804 * include/grub/msdos_partition.h: Remove bsd-related entries.
29805 (grub_pc_partition): Remove.
29806 * kern/disk.c (grub_disk_close): Free partition data.
29807 (grub_disk_adjust_range): Handle nested partitions.
29808 * kern/partition.c (grub_partition_map_probe): New function.
29809 (grub_partition_probe): Parse name to number, handle subpartitions.
29810 (get_partmap): New function.
29811 (grub_partition_iterate): Handle subpartitions.
29812 (grub_partition_get_name): Likewise.
29813 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29814 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29815 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29816 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29817 Set 'number'.
29818 (acorn_partition_map_probe): Remove.
29819 (acorn_partition_map_get_name): Likewise.
29820 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29821 Set 'number'.
29822 Set 'index' to 0 since there can be only one partition entry per sector.
29823 (amiga_partition_map_probe): Remove.
29824 (amiga_partition_map_get_name): Likewise.
29825 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29826 Set 'number'.
29827 Set 'offset' and 'index' to real positions of partitions.
29828 (apple_partition_map_probe): Remove.
29829 (apple_partition_map_get_name): Likewise.
29830 * partmap/bsdlabel.c: New file.
29831 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29832 Set 'number'.
29833 Allocate 'data' so it can be correctly freed.
29834 Set 'index' to offset inside sector.
29835 (gpt_partition_map_probe): Remove.
29836 (gpt_partition_map_get_name): Likewise.
29837 * partmap/msdos.c (grub_partition_parse): Remove.
29838 (pc_partition_map_iterate): Don't force raw access.
29839 Set 'number'.
29840 Make 'ext_offset' a local variable.
29841 (pc_partition_map_probe): Remove.
29842 (pc_partition_map_get_name): Remove.
29843 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29844 Set 'number'.
29845 (sun_partition_map_probe): Remove.
29846 (sun_partition_map_get_name): Likewise.
29847 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29848 (grub_pcpart_type): Likewise.
29849 * util/hostdisk.c (open_device): Handle new numbering scheme.
29850 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29851 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29852 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29853 * util/grub-install.in: Insert all subpartition modules.
29854 * util/ieee1275/grub-install.in: Likewise.
29855
29856 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29857
29858 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29859 grammar.
29860
29861 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29862
29863 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29864
29865 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29866
29867 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29868 match where 'make install' puts them.
29869 * util/i386/efi/grub-install.in: Likewise.
29870
29871 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29872
29873 * .bzrignore: Add gentrigtables, grub-script-check,
29874 grub_script_check_init.c, grub_script_check_init.h, and
29875 trigtables.c.
29876
29877 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29878
29879 * kern/parser.c: Indented.
29880
29881 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29882
29883 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29884
29885 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29886
29887 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29888 alpha_mask_size == 0 case.
29889
29890 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29891
29892 GRUB shell lexer and parser improvements.
29893
29894 * conf/any-emu.rmk: Build rule updates.
29895 * conf/common.rmk: Likewise.
29896 * conf/i386-coreboot.rmk: Likewise.
29897 * conf/i386-efi.rmk: Likewise.
29898 * conf/i386-ieee1275.rmk: Likewise.
29899 * conf/i386-pc.rmk: Likewise.
29900 * conf/powerpc-ieee1275.rmk: Likewise.
29901 * conf/x86_64-efi.rmk: Likewise.
29902
29903 * configure.ac: Configure check for flex.
29904
29905 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29906 types.
29907 (grub_lexer_param): Struct member updates.
29908 (grub_parser_param): Likewise.
29909 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29910 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29911 (grub_script_lexer_init): Prototype update.
29912 (grub_script_lexer_record_start): Likewise.
29913 (grub_script_lexer_record_stop): Likewise.
29914 (grub_script_lexer_yywrap): New function prototype.
29915 (grub_script_lexer_fini): Likewise.
29916 (grub_script_execute_argument_to_string): Removed by...
29917 (grub_script_execute_argument_to_argv): ...better version.
29918
29919 * script/execute.c (ROUND_UPTO): New macro.
29920 (grub_script_execute_cmdline): Out of memory fixes.
29921 (grub_script_execute_menuentry): Likewise.
29922 (grub_script_execute_argument_to_string): Removed. Update all
29923 users by...
29924 (grub_script_execute_argument_to_argv): ...better version.
29925 * script/function.c (grub_script_function_create): Use
29926 grub_script_execute_argument_to_argv instead of
29927 grub_script_execute_argument_to_string.
29928
29929 * script/lexer.c (check_varstate): Removed.
29930 (check_textstate): Removed.
29931 (grub_script_lexer_record_start): Likewise.
29932 (grub_script_lexer_record_stop): Likewise.
29933 (recordchar): Replaced with...
29934 (grub_script_lexer_record): ...new function.
29935 (nextchar): Removed.
29936 (grub_script_lexer_init): Rewritten.
29937 (grub_script_yylex): Rewritten.
29938 (append_newline): New function.
29939 (grub_script_lexer_yywrap): New function.
29940 (grub_script_lexer_fini): New function.
29941 (grub_script_yyerror): Sets error flag.
29942
29943 * script/yylex.l: New file.
29944 (grub_lexer_yyfree): Wrapper for flex yyffre.
29945 (grub_lexer_yyalloc): Likewise.
29946 (grub_lexer_yyrealloc): Likewise.
29947 * script/parser.y: Refactored.
29948
29949 * script/script.c (grub_script_arg_add): Out of memory fixes.
29950 (grub_script_add_arglist): Likewise.
29951 (grub_script_create_cmdline): Likewise.
29952 (grub_script_create_cmdmenu): Likewise.
29953 (grub_script_add_cmd): Likewise.
29954 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29955 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29956 unnecessary code.
29957
29958 * tests/grub_script_echo1.in: New testcase.
29959 * tests/grub_script_vars1.in: New testcase.
29960 * tests/grub_script_echo_keywords.in: New testcase.
29961
29962 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29963
29964 Remove some redundancy in build system.
29965
29966 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29967 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29968 (TARGET_LDFLAGS): Add -nostdlib.
29969 (TARGET_IMG_LDFLAGS): Likewise.
29970 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29971 anything since mmap isn't available.
29972 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29973 Add util/time.c.
29974 (pkglib_MODULES): Remove reboot.mod.
29975 (reboot_mod_SOURCES): Removed.
29976 (reboot_mod_CFLAGS): Likewise.
29977 (reboot_mod_LDFLAGS): Likewise.
29978 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29979 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29980 (DEFSYMFILES): Add kernel_syms.lst.
29981 (kernel_img_HEADERS): Add common headers.
29982 (symlist.c): New target.
29983 (kernel_syms.lst): Likewise.
29984 (pkglib_MODULES): Add memdisk.mod.
29985 (memdisk_mod_SOURCES): New variable.
29986 (memdisk_mod_CFLAGS): Likewise.
29987 (memdisk_mod_LDFLAGS): Likewise.
29988 (pkglib_MODULES): Add reboot.mod.
29989 (reboot_mod_SOURCES): New variable.
29990 (reboot_mod_CFLAGS): Likewise.
29991 (reboot_mod_LDFLAGS): Likewise.
29992 (pkglib_MODULES): Add date.mod.
29993 (date_mod_SOURCES): New variable.
29994 (date_mod_CFLAGS): Likewise.
29995 (date_mod_LDFLAGS): Likewise.
29996 (pkglib_MODULES): Add datehook.mod.
29997 (datehook_mod_SOURCES): New variable.
29998 (datehook_mod_CFLAGS): Likewise.
29999 (datehook_mod_LDFLAGS): Likewise.
30000 (pkglib_MODULES): Add lsmmap.mod.
30001 (lsmmap_mod_SOURCES): New variable.
30002 (lsmmap_mod_CFLAGS): Likewise.
30003 (lsmmap_mod_LDFLAGS): Likewise.
30004 (pkglib_MODULES): Add boot.mod.
30005 (boot_mod_SOURCES): New variable.
30006 (boot_mod_CFLAGS): Likewise.
30007 (boot_mod_LDFLAGS): Likewise.
30008 * conf/i386-coreboot.rmk: Removed redundant parts.
30009 * conf/i386-ieee1275.rmk: Likewise.
30010 * conf/i386-pc.rmk: Likewise.
30011 * conf/mips-yeeloong.rmk: Likewise.
30012 * conf/mips.rmk: Likewise.
30013 * conf/powerpc-ieee1275.rmk: Likewise.
30014 * conf/sparc64-ieee1275.rmk: Likewise.
30015 * conf/x86_64-efi.rmk: Likewise.
30016 * conf/i386-coreboot.rmk: Moved qemu parts ..
30017 * conf/i386-qemu.rmk: ... here
30018 * conf/i386-efi.rmk: Moved common parts to...
30019 * conf/x86-efi.rmk: ... here.
30020 * conf/i386.rmk: Added modules common to all x86 variants.
30021 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30022 * disk/memdisk.c: Remove grub/machine/kernel.h.
30023 * gensymlist.sh.in: Include symbol.h.
30024 * hook/datehook.c: Correct module name.
30025 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30026 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30027 * include/grub/i386/efi/serial.h: New file.
30028 * include/grub/x86_64/efi/serial.h: Likewise.
30029 * util/time.c: Likewise.
30030 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30031
30032 2010-03-14 Colin King <colin.king@ubuntu.com>
30033 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30034
30035 Shrink the pre-partition-table part of boot.img by eight bytes.
30036
30037 * boot/i386/pc/boot.S (ERR): New macro.
30038 (chs_mode): Use ERR.
30039 (geometry_error): Likewise.
30040 (hd_probe_error): Remove. This is only used once, so we wrwite
30041 it inline instead.
30042 (read_error): Instead of printing read_error_string, just set up
30043 %si and fall through to ...
30044 (error_message): ... this new function, also used by ERR.
30045
30046 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30047
30048 Speed up consecutive hostdisk operations on the same device.
30049
30050 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30051 (grub_util_biosdisk_open): Initialise disk->data.
30052 (struct linux_partition_cache): New structure.
30053 (linux_find_partition): Cache partition start positions; these are
30054 expensive to compute on every read and write.
30055 (open_device): Cache open file descriptor in disk->data, so that we
30056 don't have to reopen it and flush the buffer cache for consecutive
30057 operations on the same device.
30058 (grub_util_biosdisk_close): New function.
30059 (grub_util_biosdisk_dev): Set `close' member.
30060
30061 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30062 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30063 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30064 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30065 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30066
30067 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30068
30069 Compile parts of grub-emu as modules.
30070
30071 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30072 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30073 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30074 (all-local): Add $(GRUB_EMU).
30075 (install-local): Install $(GRUB_EMU).
30076 (uninstall): Uninstall $(GRUB_EMU).
30077 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30078 * kern/dl.c: Likewise.
30079 * commands/sleep.c: Not include machine/time.h.
30080 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30081 (COMMON_CFLAGS): Likewise.
30082 (sbin_UTILITIES): Remove grub-emu.
30083 (grub_emu_SOURCES): Removed.
30084 (kernel_img_RELOCATABLE): New variable.
30085 (pkglib_PROGRAMS): Add kernel.img.
30086 (kernel_img_SOURCES): New variable
30087 (kernel_img_CFLAGS): Likewise.
30088 (kernel_img_LDFLAGS): Likewise.
30089 (TARGET_NO_STRIP): Likewise.
30090 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30091 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30092 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30093 (grub-emu): New target.
30094 (GRUB_EMU): New variable.
30095 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30096 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30097 * loader/xnu.c: Likewise.
30098 * include/grub/pci.h: Likewise.
30099 * genemuinit.sh: New file.
30100 * genemuinitheader.sh: Likewise.
30101 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30102 Support TARGET_NO_DYNAMIC_MODULES.
30103 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30104 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30105 * disk/loopback.c: Likewise.
30106 * font/font_cmd.c: Likewise.
30107 * partmap/acorn.c: Likewise.
30108 * partmap/amiga.c: Likewise.
30109 * partmap/apple.c: Likewise.
30110 * partmap/gpt.c: Likewise.
30111 * partmap/msdos.c: Likewise.
30112 * partmap/sun.c: Likewise.
30113 * parttool/msdospart.c: Likewise.
30114 * term/gfxterm.c: Likewise.
30115 * video/bitmap.c: Likewise.
30116 * video/readers/jpeg.c: Likewise.
30117 * video/readers/png.c: Likewise.
30118 * video/readers/tga.c: Likewise.
30119 * video/video.c: Likewise.
30120 * util/grub-emu.c (read_command_list): Removed.
30121 (main): Don't call util_init_nls.
30122 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30123 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30124
30125 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30128 date.mod, datehook.mod.
30129 (datetime_mod_SOURCES): New variable.
30130 (datetime_mod_CFLAGS): Likewise.
30131 (datetime_mod_LDFLAGS): Likewise.
30132 (date_mod_SOURCES): Likewise.
30133 (date_mod_CFLAGS): Likewise.
30134 (date_mod_LDFLAGS): Likewise.
30135 (datehook_mod_SOURCES): Likewise.
30136 (datehook_mod_CFLAGS): Likewise.
30137 (datehook_mod_LDFLAGS): Likewise.
30138 * conf/sparc64-ieee1275.rmk: Likewise.
30139 * lib/ieee1275/datetime.c: New file.
30140
30141 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30142
30143 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30144 (ieee1275_fb_mod_SOURCES): New variable.
30145 (ieee1275_fb_mod_CFLAGS): Likewise.
30146 (ieee1275_fb_mod_LDFLAGS): Likewise.
30147 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30148 New proto.
30149 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30150 (HEAP_MAX_ADDR): Likewise.
30151 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30152 type.
30153 Correct stop condition.
30154 (grub_ieee1275_devices_iterate): New function.
30155 * video/ieee1275.c: New file.
30156
30157 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30160
30161 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30162 as scratch.
30163 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30164 SCRATCH_PAD_DISKBOOT as scratch.
30165 (bootit): Pass Openfirmware pointer in %o4.
30166 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30167 of 0x200000.
30168 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30169 with util/grub-mkrawimage.c.
30170 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30171 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30172 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30173 (grub_aout_load) [GRUB_UTIL]: Likewise.
30174 * include/grub/kernel.h (grub_modules_get_end): New proto.
30175 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30176 (SCRATCH_PAD_BOOT): New definition.
30177 (SCRATCH_PAD_DISKBOOT): Likewise.
30178 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30179 * include/grub/sparc64/ieee1275/ieee1275.h
30180 (grub_ieee1275_original_stack): New variable
30181 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30182 New definition
30183 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30184 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30185 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30186 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30187 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30188 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30189 (grub_platform_image_format_t): New type.
30190 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30191 * kern/main.c (grub_modules_get_end)
30192 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30193 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30194 (codestart): Switch stacks.
30195 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30196 variable.
30197 (grub_heap_init): Use grub_modules_get_end.
30198 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30199 stack.
30200 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30201 (main): Likewise.
30202 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30203
30204 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30205
30206 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30207
30208 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30209
30210 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30211 bug #559005).
30212
30213 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30214
30215 * genmoddep.awk: Output all missing symbols and not only first.
30216
30217 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30218
30219 * NEWS: Put the date of 1.98 release.
30220
30221 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30222
30223 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30224 ft2build.h.
30225
30226 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30227
30228 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30229 completition in the middle of string.
30230
30231 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30232
30233 * util/grub-mkrescue.in: Use mktemp with explicit template.
30234
30235 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30236
30237 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30238
30239 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30240
30241 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30242 right pointer.
30243
30244 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 Fix FreeBSD compilation.
30247
30248 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30249 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30250
30251 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30252
30253 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30254
30255 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30256
30257 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30258
30259 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30260
30261 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30262
30263 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30264
30265 Support relative image path in theme file.
30266
30267 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30268 (image_set_property): Handle theme_dir and relative path.
30269
30270 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30271
30272 * configure.ac: Alias amd64 to x86_64.
30273
30274 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30275
30276 * NEWS: mention multiboot on EFI.
30277
30278 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30279
30280 * kern/main.c (grub_load_modules): Handle errors from init functions of
30281 embeded modules.
30282
30283 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30284
30285 * normal/autofs.c (autoload_fs_module): Handle errors.
30286
30287 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30288
30289 Disable linux.mod on qemu-mips since it's not functional and leads
30290 to compilation failure.
30291
30292 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30293 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30294 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30295 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30296 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30297 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30298 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30299 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30300 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30301 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30302 Reported by: BVK Chaitanya
30303
30304 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30305
30306 * INSTALL: Add gettext as a dependency and add qemu to a new section
30307 "Prerequisites for make-check".
30308
30309 2010-03-04 Christian Franke <franke@computer.org>
30310
30311 * util/grub-pe2elf.c: Add missing include "progname.h".
30312
30313 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30314
30315 * normal/crypto.c (read_crypto_list): Fix a typo.
30316 Reported by: Seth Goldberg.
30317
30318 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30319
30320 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30321 Reported by: Seth Goldberg.
30322
30323 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30324
30325 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30326 ascii.bitmaps.
30327
30328 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30329
30330 * genmk.rb: Remove terminal*.lst in make clean.
30331 Reported by: Seth Goldberg.
30332
30333 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30334
30335 * util/i386/efi/grub-install.in: Copy gettext files.
30336
30337 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30340
30341 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30342
30343 Wait for user entry basing on presence of output rather than on errors.
30344
30345 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30346 (grub_install_newline_hook): Likewise.
30347 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30348 * normal/menu.c (show_menu): Check line_counter to determine presence
30349 of output.
30350 * normal/term.c (grub_normal_line_counter): New variable.
30351 (grub_normal_get_line_counter): New function.
30352 (grub_install_newline_hook): Likewise.
30353
30354 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30355
30356 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30357
30358 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30359
30360 * configure.ac: Update version to 1.98.
30361
30362 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * util/grub.d/10_linux.in (linux_entry): Don't default to
30365 gfxpayload=keep if Linux doesn't support video handover.
30366
30367 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30368
30369 Don't compile video modules on yeeloong since video subsystem is part
30370 of kernel.
30371
30372 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30373 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30374 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30375 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30376 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30377 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30378 * include/grub/bitmap_scale.h: Likewise.
30379 * include/grub/bufio.h: Likewise.
30380 * include/grub/font.h: Likewise.
30381 * include/grub/gfxterm.h: Likewise.
30382 * include/grub/video.h: Likewise.
30383 * include/grub/vbe.h: Don't include video_fb.h.
30384 * video/i386/pc/vbe.c: Include video_fb.h.
30385 * commands/i386/pc/vbetest.c: Include video.h.
30386
30387 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30388
30389 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30390 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30391 default entry if GRUB_SAVEDEFAULT=true. This allows using
30392 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30393 saving a new default on every boot.
30394
30395 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30396
30397 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30398 * normal/term.c (read_terminal_list): Likewise.
30399 * normal/main.c (grub_normal_init_page): Likewise.
30400 (grub_normal_read_line_real): Likewise.
30401
30402 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30403
30404 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30405 memory leak.
30406 Reported by: Seth Goldberg.
30407
30408 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30409
30410 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30411 duplicate declaration of `start'.
30412
30413 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30414
30415 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30416 filename.
30417 Reported by: Georgy Buranov
30418
30419 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30420
30421 * util/grub-mkrawimage.c (usage): Change string formatting to
30422 improve gettext.
30423
30424 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30425
30426 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30427 backspace keys.
30428
30429 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30430
30431 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30432 Reported by: Michael Suchanek.
30433
30434 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30435
30436 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30437 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30438
30439 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30440
30441 Remove any reference to non-free fonts.
30442
30443 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30444 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30445 uses non-free components.
30446 * font/font.c (grub_font_get_name): Remove example name.
30447 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30448 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30449 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30450 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30451
30452 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30453
30454 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30455
30456 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30457
30458 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30459 Double divisor.
30460 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30461 features.
30462 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30463
30464 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30465
30466 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30467
30468 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30469
30470 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30471 * docs/grub.texi (Command-line and menu entry commands): Document play
30472 command.
30473
30474 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30475
30476 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30477 parse arguments as inline tempo and notes. Move code for playing notes
30478 to...
30479 (play): ... new function.
30480
30481 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30482
30483 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30484 grub_uint16_t instead of short.
30485 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30486 disk from little endian to cpu endianness.
30487
30488 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30489
30490 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30491 GRUB_TICKS_PER_SECOND instead of 120.
30492
30493 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30494
30495 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30496 escape sequence after \e.
30497
30498 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30499
30500 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30501 non-ASCII characters.
30502
30503 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30504
30505 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30506 set root in single quotes to prevent \, from being unescaped.
30507
30508 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30509
30510 Prevent unknown commands from stopping menuentry execution.
30511
30512 * script/execute.c (grub_script_execute_cmdline): Print error after
30513 unknown command.
30514
30515 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30518 Reported by: Pavel Pisa.
30519
30520 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30521
30522 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30523
30524 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30525
30526 Merge grub_ieee1275_map_physical into grub_map and rename to
30527 grub_ieee1275_map
30528
30529 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30530 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30531 Remove.
30532 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30533 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30534 necessary.
30535 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30536
30537 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30538
30539 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30540 opening and not after.
30541
30542 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30543
30544 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30545 constants.
30546
30547 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30548
30549 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30550 (alloc_phys): Use ALIGN_UP instead of align_addr.
30551
30552 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30553
30554 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30555
30556 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30557
30558 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30559
30560 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30561
30562 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30563 verbose dprintf.
30564
30565 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30566
30567 Fix over-4GiB seek on sparc64.
30568
30569 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30570 Replace pos_i and pos_lo with pos. All users updated.
30571 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30572 New constant.
30573 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30574 Likewise.
30575 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30576 and pos_lo.
30577
30578 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30579
30580 * util/grub-mkrawimage.c (main): Call set_program_name.
30581
30582 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30583
30584 Properly align 64-bit targets.
30585
30586 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30587 (generate_image): Use ALIGN_ADDR.
30588
30589 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30590
30591 Properly create cross-endian images.
30592
30593 * include/grub/types.h (grub_host_to_target_addr): New macro
30594 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30595
30596 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30597
30598 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30599
30600 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30601
30602 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30603
30604 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30605 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30606 (grub_linux_boot): Divide by 64K when on VESA.
30607
30608 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30609
30610 Support GRUB_GFXPAYLOAD_LINUX.
30611
30612 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30613 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30614
30615 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30618 to show messages instead of discarding them.
30619 Process errors after executing command and not before. Keep old method
30620 too as precaution.
30621
30622 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30623
30624 * configure.ac: Check for ft2build.h.
30625
30626 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30627
30628 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30629
30630 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30631
30632 * genkernsyms.sh.in: Use TARGET_CC.
30633
30634 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30635
30636 * NEWS: Update.
30637
30638 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30639
30640 * include/grub/multiboot2.h: Remove leftover file.
30641 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30642 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30643
30644 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30645
30646 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30647
30648 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30649
30650 Fix warnings in grub-emu when compiling with maximum warning options.
30651
30652 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30653 (grub_arch_modules_addr): Return 0 and not NULL.
30654 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30655 (xstrdup): Use newstr instead of dup.
30656 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30657 of disk to dsk to avoid shadowing.
30658 (find_free_slot): Fix prototype.
30659 * util/getroot.c (grub_util_is_dmraid): Make static.
30660 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30661 Add missing prototype.
30662 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30663
30664 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30665
30666 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30667 appropriately.
30668
30669 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30670
30671 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30672 code out.
30673
30674 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30675
30676 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30677 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30678 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30679 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30680 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30681 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30682
30683 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30684
30685 * include/grub/err.h (grub_err_printf): Don't export.
30686
30687 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30688
30689 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30690
30691 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30692
30693 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30694 * kern/misc.c (grub_gettext_dummy): Make static.
30695
30696 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30697
30698 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30699 by non-valid ones.
30700 * kern/term.c (grub_putchar): Likewise.
30701
30702 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30703
30704 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30705 buggy hook call and memory leak.
30706
30707 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30708
30709 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30710
30711 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30712
30713 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30714
30715 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30716
30717 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30718 modevar.
30719 Return grub_errno on allocation error.
30720
30721 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30722
30723 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30724
30725 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30726
30727 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30728 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30729
30730 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30731
30732 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30733 non-pxe disk.
30734 (grub_pxefs_open): Likewise.
30735
30736 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30737
30738 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30739 * util/grub.d/10_kfreebsd.in: Likewise.
30740 * util/grub.d/10_linux.in: Likewise.
30741
30742 2010-02-06 Colin D Bennett <colin@gibibit.com>
30743
30744 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30745 (gfxmenu_mod_SOURCES): New variable.
30746 (gfxmenu_mod_CFLAGS): Likewise.
30747 (gfxmenu_mod_LDFLAGS): Likewise.
30748 * include/grub/term.h (grub_term_set_current_output): Declare
30749 argument as const.
30750 * docs/gfxmenu-theme-example.txt: New file.
30751 * gfxmenu/gfxmenu.c: Likewise.
30752 * gfxmenu/gui_box.c: Likewise.
30753 * gfxmenu/gui_canvas.c: Likewise.
30754 * gfxmenu/gui_circular_progress.c: Likewise.
30755 * gfxmenu/gui_image.c: Likewise.
30756 * gfxmenu/gui_label.c: Likewise.
30757 * gfxmenu/gui_list.c: Likewise.
30758 * gfxmenu/gui_progress_bar.c: Likewise.
30759 * gfxmenu/gui_string_util.c: Likewise.
30760 * gfxmenu/gui_util.c: Likewise.
30761 * gfxmenu/icon_manager.c: Likewise.
30762 * gfxmenu/model.c: Likewise.
30763 * gfxmenu/named_colors.c: Likewise.
30764 * gfxmenu/theme_loader.c: Likewise.
30765 * gfxmenu/view.c: Likewise.
30766 * gfxmenu/widget-box.c: Likewise.
30767 * include/grub/gfxmenu_model.h: Likewise.
30768 * include/grub/gfxmenu_view.h: Likewise.
30769 * include/grub/gfxwidgets.h: Likewise.
30770 * include/grub/gui.h: Likewise.
30771 * include/grub/gui_string_util.h: Likewise.
30772 * include/grub/icon_manager.h: Likewise.
30773
30774 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30775
30776 Agglomerate scrolling in gfxterm.
30777
30778 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30779 (grub_virtual_screen_setup): Initialise 'total_screen'.
30780 (write_char): Split to ...
30781 (paint_char): ... this ...
30782 (write_char): ... and this.
30783 (paint_char): Handle delayed scrolling.
30784 (draw_cursor): Likewise.
30785 (scroll_up): Split to ...
30786 (real_scroll): ... this ...
30787 (scroll_up): ... and this.
30788 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30789 characters.
30790 (grub_gfxterm_refresh): Call real_scroll.
30791
30792 2010-02-06 Colin D Bennett <colin@gibibit.com>
30793
30794 * include/grub/misc.h (grub_iscntrl): New inline function.
30795 (grub_isalnum): Likewise.
30796 (grub_strtol): Likewise.
30797
30798 2010-02-06 Colin D Bennett <colin@gibibit.com>
30799
30800 * normal/menu_text.c (get_entry_number): Move from here ...
30801 * normal/menu.c (get_entry_number): ... moved here.
30802 * include/grub/menu.h (grub_menu_get_default_entry_index):
30803 New prototype.
30804 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30805 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30806 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30807 (grub_menu_viewer_should_return): Likewise.
30808 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30809 * normal/menu_text.c (run_menu): Enable menu switching.
30810 * normal/menu_viewer.c (should_return): New variable.
30811 (menu_viewer_changed): Likewise.
30812 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30813 (grub_menu_viewer_should_return): New function.
30814 (menuviewer_write_hook): Likewise.
30815 (grub_menu_viewer_init): Likewise.
30816
30817 2010-02-06 Colin D Bennet <colin@gibibit.com>
30818 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30819
30820 Support for gfxterm in a window.
30821
30822 * include/grub/gfxterm.h: New file.
30823 * include/grub/video.h (struct grub_video_rect): New declaration.
30824 (grub_video_rect_t): Likewise.
30825 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30826 (refcount): New variable.
30827 (render_target): Likewise.
30828 (window): Likewise.
30829 (repaint_callback): Likewise.
30830 (grub_virtual_screen_setup): Use 'render_target'.
30831 (init_window): New function.
30832 (grub_gfxterm_init_window): Likewise.
30833 (grub_gfxterm_init): Check reference counter.
30834 Use init_window.
30835 (destroy_window): New function.
30836 (grub_gfxterm_destroy_window): Likewise.
30837 (grub_gfxterm_fini): Check reference counter.
30838 Use destroy_window.
30839 (redraw_screen_rect): Restore viewport.
30840 Use 'render_target' and 'window'.
30841 Call 'repaint_callback'.
30842 (write_char): Use 'render_target'.
30843 (draw_cursor): Likewise.
30844 (scroll_up): Restore viewport.
30845 Use 'render_target' and 'window'.
30846 Call 'repaint_callback'.
30847 (grub_gfxterm_cls): Likewise.
30848 (grub_gfxterm_refresh): Use 'window'.
30849 (grub_gfxterm_set_repaint_callback): New function.
30850 (grub_gfxterm_background_image_cmd): Use 'window'.
30851 (grub_gfxterm_get_term): New function.
30852 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30853
30854 2010-02-06 Colin D Bennett <colin@gibibit.com>
30855
30856 Bitmap scaling support.
30857
30858 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30859 (bitmap_scale_mod_SOURCES): New variable.
30860 (bitmap_scale_mod_CFLAGS): Likewise.
30861 (bitmap_scale_mod_LDFLAGS): Likewise.
30862 * include/grub/bitmap_scale.h: New file.
30863 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30864 (background_image_cmd_options): New variable.
30865 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30866 (cmd): Rename and change type to ...
30867 (background_image_cmd_handle): ... this. All users updated.
30868 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30869 * video/bitmap_scale.c: New file.
30870
30871 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30872
30873 SDL support.
30874
30875 * Makefile.in (LIBSDL): New variable.
30876 (enable_grub_emu_sdl): Likewise.
30877 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30878 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30879 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30880 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30881 * util/sdl.c: New file.
30882
30883 2010-02-06 Colin D Bennett <colin@gibibit.com>
30884 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30885
30886 Double buffering support.
30887
30888 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30889 * include/grub/video.h: Update comment.
30890 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30891 New type.
30892 (grub_video_fb_doublebuf_blit_init): New prototype.
30893 * term/gfxterm.c (scroll_up): Support double buffering.
30894 (grub_gfxterm_refresh): Likewise.
30895 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30896 (grub_video_fb_doublebuf_blit_init): Likewise.
30897 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30898 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30899 'displayed_page', 'render_page' and 'update_screen'.
30900 (grub_video_vbe_fini): Free offscreen buffer.
30901 (doublebuf_pageflipping_commit): New function.
30902 (doublebuf_pageflipping_update_screen): Likewise.
30903 (doublebuf_pageflipping_init): Likewise.
30904 (double_buffering_init): Likewise.
30905 (grub_video_vbe_setup): Enable doublebuffering.
30906 (grub_video_vbe_swap_buffers): Implement.
30907 (grub_video_vbe_set_active_render_target): Handle double buffering.
30908 (grub_video_vbe_get_active_render_target): Likewise.
30909 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30910 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30911 (grub_video_vbe_enable_double_buffering): Likewise.
30912 (grub_video_vbe_swap_buffers): Use update_screen.
30913 (grub_video_set_mode): Use double buffering.
30914
30915 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30916
30917 * maintainance/gentrigtables.py: Remove.
30918 * lib/trig.c: Likewise.
30919
30920 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30921
30922 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30923 `trigtables.c'.
30924 (trigtables.c): New rule.
30925 (gentrigtables): Likewise.
30926 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30927
30928 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30929
30930 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30931 integer constants.
30932
30933 2010-02-06 Colin D Bennet <colin@gibibit.com>
30934
30935 Trigonometry support.
30936
30937 * include/grub/trig.h: New file.
30938 * lib/trig.c: Likewise.
30939 * maintainance/gentrigtables.py: Likewise.
30940 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30941 (trig_mod_SOURCES): New variable.
30942 (trig_mod_CFLAGS): Likewise.
30943 (trig_mod_LDFLAGS): Likewise.
30944
30945 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30946
30947 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30948 disk devices.
30949
30950 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30951
30952 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30953 error.
30954
30955 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30956
30957 * util/hostdisk.c (open_device): Don't use partition device when reading
30958 before the partition.
30959 (grub_util_biosdisk_read): Don't read from partition and before the
30960 partition in single operation.
30961 (grub_util_biosdisk_write): Don't write to partition and before the
30962 partition in single operation.
30963
30964 2010-02-03 Torsten Landschoff <torsten@debian.org>
30965
30966 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30967 last sectors.
30968
30969 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30970
30971 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30972 CDROM reads.
30973 (grub_biosdisk_write): Refuse to write to CDROM.
30974
30975 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30976
30977 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30978
30979 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30980
30981 * font/font.c (find_glyph): Check that bmp_idx is available before
30982 using it.
30983 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30984 with (font == NULL).
30985
30986 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30987
30988 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30989
30990 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30991
30992 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30993 * util/grub-script-check.c (getline): Fix empty lines case.
30994
30995 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30996
30997 * Makefile.in (check): Exit with fail status when one of the tests
30998 fails.
30999 * tests/example_functional_test.c (example_test): Fix reversed assert.
31000 * tests/example_unit_test.c (example_test): Likewise.
31001
31002 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
31003
31004 * util/grub.d/10_linux.in: This script does not use any of the
31005 contents of gettext.sh, only the external command `gettext', so stop
31006 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
31007 the same prefix as GRUB.)
31008 * util/grub.d/10_kfreebsd.in: Likewise.
31009
31010 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31011
31012 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31013 of the line.
31014
31015 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31016
31017 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31018 last sectors.
31019
31020 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31021
31022 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31023 having a 4KiB and not 32KiB buffer size.
31024
31025 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31026
31027 * util/hostfs.c: Include `<errno.h>'.
31028 (grub_hostfs_read): Handle errors from fseeko() and fread().
31029
31030 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31031
31032 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31033 loop when using read hooks on files whose size isn't sector-aligned.
31034
31035 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31036
31037 Remove unused parameter.
31038
31039 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31040 (grub_iso9660_open): Remove initialization of `data->length'.
31041
31042 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31043
31044 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31045 memleak conditions.
31046
31047 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31048
31049 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31050 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31051
31052 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31053
31054 * util/bin2h.c (usage): Fix warning (space after backslash).
31055
31056 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31057
31058 * font/font.c: Include `grub/fontformat.h.
31059 Remove font file format constants.
31060 (grub_font_load): Use the new macros.
31061 * include/grub/fontformat.h: New file.
31062 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31063 (write_font_pf2): Use the new macros.
31064
31065 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31066
31067 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31068 does.
31069
31070 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31071
31072 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31073
31074 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31075 (_start): Macroify `0x7F'.
31076
31077 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31078 (make_install_device): Use "(pxe)" as fallback prefix when booting
31079 via PXE.
31080
31081 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31082
31083 * configure.ac: Reset LIBS after check for libgcc symbols.
31084
31085 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31086
31087 * util/hostdisk.c (open_device): Add trailing newline to debug
31088 message.
31089
31090 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31091
31092 * configure.ac: Check for `limits.h'.
31093 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31094
31095 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31096
31097 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31098 capitalize error strings.
31099
31100 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31101
31102 * util/grub.d/10_hurd.in: Add a recovery mode.
31103
31104 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31105
31106 * configure.ac: Check for libgcc symbols with -nostdlib.
31107
31108 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31109
31110 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31111
31112 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31113
31114 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31115 stack since heap may be unavailable at that point.
31116 (grub_ofconsole_gotoxy): Likewise.
31117
31118 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31119
31120 * configure.ac: Check for _restgpr_14_x.
31121 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31122 and _savegpr_* prototypes.
31123
31124 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31125
31126 Use generic grub_reboot() for i386-efi.
31127
31128 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31129 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31130 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31131
31132 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31133
31134 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31135 presence of "prefix" variable as it breaks when normal.mod is
31136 embedded.
31137
31138 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31139
31140 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31141 stack since heap is unavailable at that point.
31142
31143 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31144
31145 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31146 (grub_freebsd_bootinfo): Rewritten.
31147 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31148
31149 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31150
31151 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31152
31153 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31154
31155 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31156 domain now.
31157
31158 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31159
31160 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31161 around for handling "/" to the correct fix. Fix a memory leak. Use
31162 xstrdup instead of strdup.
31163
31164 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31165
31166 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31167
31168 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31169
31170 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31171
31172 * font/font.c (struct grub_font): New member 'bmp_idx'.
31173 (font_init): Initialise 'bmp_idx'.
31174 (load_font_index): Fill 'bmp_idx'.
31175 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31176
31177 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31178
31179 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31180 unnecessary calls.
31181
31182 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31183
31184 Move context handling out of the kernel.
31185
31186 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31187 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31188 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31189 * conf/i386-efi.rmk: Likewise.
31190 * conf/i386-ieee1275.rmk: Likewise.
31191 * conf/i386-pc.rmk: Likewise.
31192 * conf/powerpc-ieee1275.rmk: Likewise.
31193 * conf/sparc64-ieee1275.rmk: Likewise.
31194 * conf/x86_64-efi.rmk: Likewise.
31195 * include/grub/env.h: Include grub/menu.h.
31196 (grub_env_var_type): Removed.
31197 (grub_env_var): Replaced field 'type' with 'global'.
31198 (grub_env_find): New prototype.
31199 (grub_env_context_open): Remove EXPORT_FUNC.
31200 (grub_env_context_close): Likewise.
31201 (grub_env_export): Likewise.
31202 (grub_env_set_data_slot): Removed.
31203 (grub_env_get_data_slot): Likewise.
31204 (grub_env_unset_data_slot): Likewise.
31205 (grub_env_unset_menu): New prototype.
31206 (grub_env_set_menu): Likewise.
31207 (grub_env_get_menu): Likewise.
31208 * include/grub/env_private.h: New file.
31209 * include/grub/normal.h (grub_context_init): New prototype.
31210 (grub_context_fini): Likewise.
31211 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31212 * normal/context.c (grub_cmd_export): ... to here.
31213 * kern/env.c: Include env_private.h.
31214 (HASHSZ): Moved to include/grub/env_private.h.
31215 (grub_env_context): Likewise.
31216 (grub_env_sorted_var): Likewise.
31217 (current_context): Renamed from this ...
31218 (grub_current_context): ...to this. 'static' removed. All users updated.
31219 (grub_env_find): Removed 'static'.
31220 (grub_env_context_open): Moved to normal/context.c.
31221 (grub_env_context_close): Likewise.
31222 (grub_env_export): Likewise.
31223 (mangle_data_slot_name): Removed.
31224 (grub_env_set_data_slot): Likewise.
31225 (grub_env_get_data_slot): Likewise.
31226 (grub_env_unset_data_slot): Likewise.
31227 * kern/main.c (grub_set_root_dev): Don't export root.
31228 It will be done later.
31229 (grub_main): Don't export prefix.
31230 It will be done later.
31231 * normal/context.c: New file.
31232 * normal/main.c (free_menu): Use grub_env_unset_menu.
31233 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31234 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31235 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31236 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31237
31238 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31239
31240 setpci support.
31241
31242 * commands/setpci.c: New file.
31243 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31244 (setpci_mod_SOURCES): New variable.
31245 (setpci_mod_CFLAGS): Likewise.
31246 (setpci_mod_LDFLAGS): Likewise.
31247
31248 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31249
31250 Byte-addressable PCI configuration space.
31251
31252 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31253 dword address.
31254 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31255 GRUB_PCI_REG_CACHELINE.
31256 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31257 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31258 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31259 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31260 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31261 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31262 grub_pci_make_address.
31263 (lock_rom_area): Likewise.
31264 * commands/lspci.c (grub_lspci_iter): Use macroses
31265 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31266 of grub_pci_make_address.
31267 * disk/ata.c (grub_ata_pciinit): Likewise.
31268 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31269 (GRUB_PCI_REG_VENDOR): Likewise.
31270 (GRUB_PCI_REG_DEVICE): Likewise.
31271 (GRUB_PCI_REG_COMMAND): Likewise.
31272 (GRUB_PCI_REG_STATUS): Likewise.
31273 (GRUB_PCI_REG_REVISION): Likewise.
31274 (GRUB_PCI_REG_CLASS): Likewise.
31275 (GRUB_PCI_REG_CACHELINE): Likewise.
31276 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31277 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31278 (GRUB_PCI_REG_BIST): Likewise.
31279 (GRUB_PCI_REG_ADDRESSES): Likewise.
31280 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31281 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31282 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31283 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31284 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31285 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31286 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31287 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31288 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31289 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31290 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31291 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31292 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31293 (GRUB_PCI_REG_MIN_GNT): Likewise.
31294 (GRUB_PCI_REG_MAX_LAT): Likewise.
31295 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31296 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31297 * video/efi_uga.c (find_framebuf): Likewise.
31298 * video/sm712.c (grub_video_sm712_setup): Likewise.
31299 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31300 space.
31301
31302 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31303
31304 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31305 can be reliably determined to be supported.
31306
31307 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31308
31309 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31310 that VESA is supported.
31311 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31312 supported.
31313
31314 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31315
31316 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31317
31318 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31319
31320 * util/misc.c (make_system_path_relative_to_its_root): Work around
31321 special-casing of "/", as previous incarnation of this routine did.
31322
31323 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31324
31325 Fix any-emu compilation.
31326
31327 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31328 * grub_bin2h_SOURCES: New variable.
31329
31330 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31331
31332 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31333
31334 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31335
31336 * util/grub.d/00_header.in: Fix handling of locale_dir.
31337
31338 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31339
31340 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31341 as possible unifont location (Gentoo).
31342 Reported by: Alexander Brüning
31343
31344 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31345
31346 Don't try to generate lists for kernel.img.
31347
31348 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31349 (pkglib_MODULES): Remove kernel.img.
31350 (kernel_img_EXPORTS): Removed.
31351 (kernel_img_RELOCATABLE): New variable.
31352 * conf/x86_64-efi.rmk: Likewise.
31353 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31354
31355 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31356
31357 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31358 grub_xasprintf or grub_snprintf.
31359 (grub_vsprintf): Likewise.
31360 (grub_snprintf): New proto.
31361 (grub_vsnprintf): Likewise.
31362 (grub_xasprintf): Likewise.
31363 (grub_xvasprintf): Likewise.
31364 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31365 (grub_sprintf): Removed.
31366 (grub_vsnprintf): New function.
31367 (grub_snprintf): Likewise.
31368 (grub_xvasprintf): Likewise.
31369 (grub_xasprintf): Likewise.
31370 (grub_vsprintf): Renamed to ...
31371 (grub_vsnprintf_real): ...this. New argument max_len.
31372
31373 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31374
31375 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31376 fix grub-script-check warning.
31377
31378 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31379
31380 * include/grub/font.h (grub_font_load): Fix prototype.
31381
31382 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31383
31384 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31385
31386 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31387
31388 * include/grub/x86_64/at_keyboard.h: New file.
31389
31390 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31391
31392 * loader/mips/linux.c: Include missing grub/i18n.h.
31393
31394 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31395
31396 * normal/menu.c (notify_execution_failure): Clarify error message.
31397
31398 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31399
31400 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31401 return value (and revert all return statements). Update users.
31402
31403 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31404
31405 * kern/device.c (grub_device_iterate): Allocate new part_ent
31406 structure based on sizeof (*p) rather than sizeof (p->next), to
31407 account for structure padding.
31408
31409 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31410 disk is NULL, which might happen for LVM physical volumes with no
31411 LVM signature.
31412
31413 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31414
31415 * loader/mips/linux.c (grub_cmd_initrd)
31416 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31417
31418 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31419
31420 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31421 (grub_video_video_init, grub_video_bitmap_init)
31422 (grub_font_manager_init, grub_term_gfxterm_init)
31423 (grub_at_keyboard_init): New extern declarations.
31424 (grub_machine_init): Initialize gfxterm and at_keyboard.
31425
31426 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31427
31428 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31429 `gfxterm.mod' into core image.
31430
31431 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31432 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31433 (kernel_img_FORMAT): Copy to ...
31434
31435 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31436 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31437 (kernel_img_FORMAT): ... here, and ...
31438
31439 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31440 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31441 (kernel_img_FORMAT): ... here.
31442
31443 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31444 and input (at_keyboard) terminals in kernel.
31445 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31446
31447 (pkglib_MODULES): Remove `pci.mod'.
31448 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31449 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31450 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31451 (at_keyboard_mod_LDFLAGS): Remove variables.
31452
31453 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31454
31455 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31456
31457 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31458
31459 * include/grub/mips/libgcc.h: Only export symbols for functions
31460 that libgcc provides.
31461
31462 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31463
31464 MIPS support.
31465
31466 * bus/bonito.c: New file.
31467 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31468 GRUB_PCI_NUM_DEVICES.
31469 * term/i386/pc/serial.c: Move to ...
31470 * term/serial.c: ... here. All users updated.
31471 * util/i386/pc/grub-mkimage.c: Move to ...
31472 * util/grub-mkrawimage.c: ... here. All users updated.
31473 * term/i386/pc/at_keyboard.c: Move to ...
31474 * term/at_keyboard.c: ... here. All users updated.
31475 * conf/mips-qemu-mips.rmk: New file.
31476 * conf/mips-yeeloong.rmk: Likewise.
31477 * conf/mips.rmk: Likewise.
31478 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31479 mipsel-qemu-mips.
31480 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31481 to port addresses.
31482 (grub_ata_pciinit): Support CS5536.
31483 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31484 * font/font_cmd.c (loadfont_command): Open file before passing it to
31485 grub_font_load.
31486 (pseudo_file_read): New function.
31487 (pseudo_file_close): Likewise.
31488 (pseudo_fs): New structure.
31489 (load_font_module): New function.
31490 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31491 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31492 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31493 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31494 * include/grub/i386/at_keyboard.h: Split into ...
31495 * include/grub/at_keyboard.h: ... this ...
31496 * include/grub/i386/at_keyboard.h: ... and this.
31497 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31498 New prototype.
31499 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31500 updated.
31501 (grub_elf64_size): Likewise.
31502 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31503 filename.
31504 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31505 * include/grub/i386/coreboot/serial.h: Rewritten.
31506 * include/grub/i386/ieee1275/serial.h: Include
31507 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31508 * include/grub/i386/pc/serial.h: Moved from here ...
31509 * include/grub/serial.h: ... to here. All users updated.
31510 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31511 (GRUB_PCI_NUM_BUS): Likewise.
31512 (GRUB_PCI_NUM_DEVICES): Likewise.
31513 (grub_pci_device_map_range): Add missing volatile keyword.
31514 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31515 * include/grub/mips/at_keyboard.h: New file.
31516 * include/grub/mips/cache.h: Likewise.
31517 * include/grub/mips/io.h: Likewise.
31518 * include/grub/mips/kernel.h: Likewise.
31519 * include/grub/mips/libgcc.h: Likewise.
31520 * include/grub/mips/pci.h: Likewise.
31521 * include/grub/mips/qemu-mips/boot.h: Likewise.
31522 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31523 * include/grub/mips/qemu-mips/loader.h: Likewise.
31524 * include/grub/mips/qemu-mips/memory.h: Likewise.
31525 * include/grub/mips/qemu-mips/serial.h: Likewise.
31526 * include/grub/mips/qemu-mips/time.h: Likewise.
31527 * include/grub/mips/relocator.h: Likewise.
31528 * include/grub/mips/time.h: Likewise.
31529 * include/grub/mips/types.h: Likewise.
31530 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31531 * include/grub/mips/yeeloong/boot.h: Likewise.
31532 * include/grub/mips/yeeloong/kernel.h: Likewise.
31533 * include/grub/mips/yeeloong/loader.h: Likewise.
31534 * include/grub/mips/yeeloong/memory.h: Likewise.
31535 * include/grub/mips/yeeloong/pci.h: Likewise.
31536 * include/grub/mips/yeeloong/serial.h: Likewise.
31537 * include/grub/mips/yeeloong/time.h: Likewise.
31538 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31539 * kern/elf.c (grub_elf32_size): New parameter. All users
31540 updated.
31541 (grub_elf64_size): Likewise.
31542 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31543 Load modules before saying "Welcome to GRUB!".
31544 Call grub_refresh after saying "Welcome to GRUB!".
31545 * kern/mips/cache.S: New file.
31546 * kern/mips/cache_flush.S: Likewise.
31547 * kern/mips/dl.c: Likewise.
31548 * kern/mips/init.c: Likewise.
31549 * kern/mips/qemu-mips/init.c: Likewise.
31550 * kern/mips/startup.S: Likewise.
31551 * kern/mips/yeeloong/init.c: Likewise.
31552 * kern/term.c (grub_putcode): Handle NULL terminal.
31553 (grub_getcharwidth): Likewise.
31554 (grub_getkey): Likewise.
31555 (grub_checkkey): Likewise.
31556 (grub_getkeystatus): Likewise.
31557 (grub_getxy): Likewise.
31558 (grub_getwh): Likewise.
31559 (grub_gotoxy): Likewise.
31560 (grub_cls): Likewise.
31561 (grub_setcolorstate): Likewise.
31562 (grub_setcolor): Likewise.
31563 (grub_getcolor): Likewise.
31564 (grub_refresh): Likewise.
31565 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31566 (write_jump): Add hatch nop.
31567 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31568 * lib/mips/setjmp.S: New file.
31569 * loader/mips/linux.c: Likewise.
31570 * term/i386/pc/at_keyboard.c: Move from here ...
31571 * term/at_keyboard.c: ... to here.
31572 * term/i386/pc/serial.c: Moved from here ...
31573 * term/serial.c: ... to here. All users updated.
31574 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31575 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31576 (serial_translate_key_sequence): Avoid deadlock.
31577 (grub_serial_getkey): Handle backspace.
31578 (grub_serial_putchar): Fix newline handling.
31579 * util/i386/pc/grub-mkimage.c: Move from here ...
31580 * util/grub-mkrawimage.c: ... to here. All users updated.
31581 (generate_image): New parameters 'font_path' and 'format'.
31582 Support embedding font.
31583 Use grub_host_to_target* instead of grub_cpu_to_le*.
31584 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31585 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31586 (options): New option "--font".
31587 (usage): Likewise.
31588 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31589 (main): Handle "--font".
31590 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31591 (grub_virtual_screen_setup): Set bg_color_display.
31592 (redraw_screen_rect): Use bg_color_display instead of incorrect
31593 bg_color.
31594 (grub_gfxterm_cls): Likewise.
31595 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31596 Support embedding config file.
31597 (add_segments): Likewise.
31598 (options): New option "--config".
31599 (main): Handle "--config".
31600 * video/sm712.c: New file.
31601
31602 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31603
31604 Fix parallel builds.
31605
31606 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31607 font.c depend on ascii.h).
31608
31609 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31610
31611 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31612
31613 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31614
31615 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31616 By default: disabled.
31617 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31618 parameter.
31619
31620 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31621
31622 * font/font.c: Update copyright years.
31623 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31624
31625 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31626
31627 * font/font.c: Include `ascii.h'.
31628 (ASCII_BITMAP_SIZE): New macro.
31629 (ascii_font_glyph): Define.
31630 (ascii_glyph_lookup): New function.
31631 (grub_font_get_string_width): Change comment. If glyph not found, use
31632 ascii_glyph_lookup.
31633 (grub_font_get_glyph_with_fallback): If glyph not available returns
31634 ascii_glyph_lookup.
31635 * util/grub-mkfont.c (file_formats): New enum.
31636 (options): Add `ascii-bitmaps' new option.
31637 (usage): Add `asii-bitmaps' new option.
31638 (write_font_ascii_bitmap): New function.
31639 (write_font): Rename to ...
31640 (write_font_p2): ... this. Remove print_glyphs call.
31641 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31642 used. Call print_glyphs.
31643 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31644
31645 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31646
31647 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31648 (grub_bin2h_SOURCES): New variable.
31649 * util/bin2h.c: New file.
31650
31651 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31652
31653 * include/multiboot.h: Resynced with spec.
31654 * include/multiboot2.h: Likewise.
31655 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31656 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31657
31658 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31659
31660 * include/grub/term.h (grub_term_register_input,
31661 grub_term_register_output): Check return of terminal init()
31662 routines, and abort if errors are raised.
31663
31664 * commands/terminal.c: Update copyright year.
31665
31666 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31667
31668 * commands/terminal.c (grub_cmd_terminal_input)
31669 (grub_cmd_terminal_output): Check return of terminal init()
31670 routines, and abort if errors are raised.
31671
31672 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31673
31674 * include/grub/i386/bsd.h: Fix include pathes.
31675
31676 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31677
31678 Add missing *BSD copyright headers.
31679
31680 * include/grub/aout.h: Add BSD licence.
31681 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31682 * include/grub/i386/freebsd_linker.h: ... here,
31683 * include/grub/i386/freebsd_reboot.h: ... here,
31684 * include/grub/i386/netbsd_bootinfo.h: ... here,
31685 * include/grub/i386/netbsd_reboot.h: ... here,
31686 * include/grub/i386/openbsd_bootarg.h: ... here,
31687 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31688 licence to each file.
31689
31690 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31691
31692 * acinclude.m4: Remove `nop' assembly instruction; it's not
31693 implemented by all architectures.
31694
31695 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31696
31697 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31698 ELILO. This is no longer necessary.
31699
31700 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31701
31702 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31703
31704 * util/grub-script-check.c: grub-script-check tool.
31705 * conf/common.rmk: Make rules for grub-script-check.
31706
31707 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31708
31709 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31710 spotting it back in 2008. Shame on me for forgetting he did.
31711
31712 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31713
31714 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31715
31716 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31717 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31718 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31719 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31720 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31721 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31722
31723 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31724
31725 * include/grub/test.h: Add license header.
31726 * tests/example_functional_test.c: Likewise.
31727 * tests/example_unit_test.c: Likewise.
31728 * tests/lib/functional_test.c: Likewise.
31729 * tests/lib/test.c: Likewise.
31730 * tests/lib/unit_test.c: Likewise.
31731
31732 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31733
31734 Use flag-based instead of hook-based video mode selection and "auto"
31735 keyword.
31736
31737 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31738 (grub_video_set_mode): Changed prototype. All users updated.
31739 (grub_video_check_mode_flag): New inline function.
31740 * video/video.c (parse_modespec): New function.
31741 (grub_video_set_mode): Parse flags and keywords.
31742
31743 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31744
31745 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31746 fprintf call.
31747
31748 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31749
31750 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31751
31752 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31753
31754 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31755 string.
31756 * util/grub-emu.c (usage): Likewise.
31757 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31758 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31759 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31760 * util/i386/pc/grub-setup.c (usage): Likewise.
31761
31762 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31763
31764 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31765 the message.
31766 (grub_util_info): Likewise.
31767 (grub_util_error): Likewise.
31768 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31769 and/or new lines in `grub_util_warna', `grub_util_info',
31770 `grub_util_error' calls.
31771 * util/getroot.c: Likewise.
31772 * util/grub-editenv.c: Likewise.
31773 * util/grub-emu.c: Likewise.
31774 * util/grub-fstest.c: Likewise.
31775 * util/grub-mkdevicemap.c: Likewise.
31776 * util/grub-mkfont.c: Likewise.
31777 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31778 * util/grub-mkrelpath.c: Likewise.
31779 * util/grub-pe2elf.c: Likewise.
31780 * util/grub-probe.c: Likewise.
31781 * util/hostdisk.c: Likewise.
31782 * util/i386/efi/grub-mkimage.c: Likewise.
31783 * util/i386/pc/grub-mkimage.c: Likewise.
31784 * util/i386/pc/grub-setup.c: Likewise.
31785 * util/ieee1275/ofpath.c: Likewise.
31786 * util/mkisofs/eltorito.c: Likewise.
31787 * util/mkisofs/rock.c: Likewise.
31788 * util/mkisofs/write.c: Likewise.
31789 * util/raid.c: Likewise.
31790 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31791 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31792
31793 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31794
31795 Enable multiboot on non-pc.
31796
31797 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31798 multiboot.mod and multiboot2.mod to ...
31799 * conf/i386.rmk (pkglib_MODULES): ... here.
31800 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31801 Moved to ...
31802 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31803 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31804 Moved to ...
31805 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31806 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31807 Moved to ...
31808 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31809 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31810 Moved to ...
31811 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31812 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31813 relocator.mod.
31814 (ata_mod_SOURCES): Removed.
31815 (ata_mod_CFLAGS): Likewise.
31816 (ata_mod_LDFLAGS): Likewise.
31817 (relocator_mod_SOURCES): Removed.
31818 (relocator_mod_CFLAGS): Likewise.
31819 (relocator_mod_ASFLAGS): Likewise.
31820 (relocator_mod_LDFLAGS): Likewise.
31821 Include i386.mk.
31822 * include/grub/x86_64/multiboot.h: New file.
31823 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31824 Terminate EFI.
31825
31826 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31827
31828 Video multiboot support.
31829
31830 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31831 New prototype.
31832 * include/multiboot.h: Resynced with multiboot specification.
31833 * include/multiboot2.h: Likewise.
31834 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31835 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31836 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31837 (HAS_VGA_TEXT): Likewise.
31838 (accepts_video): New variable.
31839 (grub_multiboot_set_accepts_video): New function.
31840 (grub_multiboot_get_mbi_size): Account for video structures.
31841 (set_video_mode): New function.
31842 (retrieve_video_parameters): Likewise.
31843 (grub_multiboot_make_mbi): Fill video fields.
31844
31845 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31846
31847 Video driver ids.
31848
31849 * include/grub/video.h (grub_video_driver_id): New type.
31850 (grub_video_adapter): New member 'id'. All users updated.
31851 (grub_video_get_driver_id): New proto.
31852 * video/video.c (grub_video_get_driver_id): New function.
31853
31854 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31855
31856 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31857 `var=val'.
31858
31859 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31860
31861 * normal/cmdline.c (print_completion): Gettextizze.
31862
31863 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31864
31865 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31866
31867 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31868
31869 * gettext/gettext.c (grub_gettext_translate): Push and pop
31870 grub_errno.
31871 (grub_gettext_delete_list): Change comment style.
31872 * kern/err.c (grub_error): Gettextizze.
31873 (grub_fatal): Gettextizze.
31874
31875 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31876
31877 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31878 (grub_linux16_real_boot): ... this.
31879 * kern/i386/loader.S: Likewise.
31880 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31881 (grub_linux16_boot): New function. Switches to text mode and calls
31882 grub_linux16_real_boot().
31883
31884 * loader/i386/bsd.c: Include `<grub/video.h>'.
31885 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31886 text mode before calling grub_unix_real_boot().
31887
31888 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31889 (grub_multiboot_boot): Switch to text mode before calling
31890 grub_relocator32_boot().
31891
31892 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31893 (grub_chainloader_boot): Switch to text mode before calling
31894 grub_chainloader_real_boot().
31895
31896 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31897 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31898
31899 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31900 non-empty value.
31901
31902 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31903 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31904
31905 * util/grub.d/00_header.in: Define a "savedefault" function for use
31906 in menu entries.
31907 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31908
31909 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31910 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31911
31912 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31913 saved_entry if boot_once is unset.
31914 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31915 previous saved entry (i.e. grub-reboot).
31916
31917 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31918
31919 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31920
31921 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31922
31923 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31924 `var=val'.
31925 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31926
31927 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31928
31929 * util/grub-reboot.in: Fix --version output.
31930 * util/grub-set-default.in: Likewise.
31931
31932 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31933
31934 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31935 blocks.
31936
31937 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31938
31939 * util/grub.d/00_header.in: Quote the value assigned to `default',
31940 in case it contains spaces.
31941
31942 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31943
31944 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31945 `save_default_entry' call from the macosx case to the linux case.
31946
31947 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31948 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31949
31950 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31951 in `chosen' environment variable.
31952 * normal/menu_text.c (get_entry_number): Check if the variable
31953 matches the title of a menu entry.
31954 (run_menu): Pass menu to get_entry_number.
31955
31956 * util/grub-reboot.in: New file.
31957 * util/grub-set-default.in: New file.
31958 * conf/common.rmk (grub-reboot): New utility.
31959 (grub-set-default): New utility.
31960
31961 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31962 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31963 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31964 move it to `saved_entry' for the next boot. Load environment on
31965 initialisation.
31966 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31967 * util/grub.d/10_hurd.in: Likewise.
31968 * util/grub.d/10_linux.in (linux_entry): Likewise.
31969 * util/grub.d/10_windows.in: Likewise.
31970 * util/grub.d/30_os-prober.in: Likewise.
31971
31972 * util/grub-install.in: Create environment block.
31973 * util/i386/efi/grub-install.in: Likewise.
31974 * util/ieee1275/grub-install.in: Likewise.
31975 * util/sparc64/ieee1275/grub-install.in: Likewise.
31976
31977 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31978
31979 Unit testing framework for GRUB.
31980
31981 * Makefile.in: Test framework build rules for 'make check'.
31982 * conf/tests.rmk: Build rules for individual tests and framework.
31983
31984 * include/grub/test.h: Header file for whitebox tests.
31985 * tests/lib/functional_test.c: Framework support for whitebox
31986 functional tests.
31987 * tests/lib/test.c: Common whitebox testing code for unit and
31988 functional tests.
31989 * tests/lib/unit_test.c: Framework support for whitebox unit
31990 tests.
31991
31992 * tests/util/grub-shell-tester.in: Support utility for grub-script
31993 tests.
31994 * tests/util/grub-shell.in: Utility to execute grub-script
31995 commands in a Qemu instance.
31996
31997 * tests/example_functional_test.c: Example whitebox functional
31998 test.
31999 * tests/example_grub_script_test.in: Example grub-script test.
32000 * tests/example_scripted_test.in: Example scripted test.
32001 * tests/example_unit_test.c: Example whitebox unit test.
32002
32003 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
32004
32005 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32006 Add loader/i386/multiboot_mbi.c.
32007 (multiboot2_mod_SOURCES): Likewise.
32008 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32009 (multiboot2_mod_SOURCES): Likewise.
32010 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32011 (grub_multiboot_make_mbi): Likewise.
32012 (grub_multiboot_free_mbi): Likewise.
32013 (grub_multiboot_init_mbi): Likewise.
32014 (grub_multiboot_add_module): Likewise.
32015 (grub_multiboot_set_bootdev): Likewise.
32016 * loader/i386/multiboot.c (mbi): Removed.
32017 (mbi_dest): Likewise.
32018 (alloc_mbi): New variable.
32019 (grub_multiboot_payload_size): Removed. All users updated.
32020 (grub_multiboot_pure_size): New variable.
32021 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32022 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32023 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32024 (grub_fill_multiboot_mmap): Likewise.
32025 (grub_multiboot_get_bootdev): Likewise.
32026 (grub_multiboot): Use multiboot_mbi functions.
32027 * loader/i386/multiboot_mbi.c: New file.
32028
32029 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32030
32031 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32032 it would result in module crash.
32033
32034 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32035
32036 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32037 (grub_ofconsole_getwh): Split to ...
32038 (grub_ofconsole_getwh): ... this.
32039 (grub_ofconsole_dimensions): ...and this.
32040 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32041
32042 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32043
32044 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32045
32046 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32047
32048 * loader/i386/pc/multiboot2.c: Removed stalled file.
32049
32050 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32051
32052 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32053 Reported by: Grégoire Sutre
32054
32055 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32056
32057 * util/misc.c (canonicalize_file_name): New function.
32058 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32059 instead of realpath().
32060
32061 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32062
32063 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32064 and make it clearer that it's optional. Based on confusion
32065 witnessed on IRC.
32066
32067 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32068
32069 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32070 in premature implicit newline.
32071
32072 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32073
32074 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32075 which resulted in garbled command line at the end of screen.
32076
32077 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32078
32079 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32080 initialization with similar approach as with other Linux loaders.
32081
32082 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32083
32084 Fix i386-ieee1275 build.
32085
32086 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32087 and grub_term_height() for video_{width,height} initialization.
32088
32089 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32090
32091 Fix grub-emu build.
32092
32093 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32094
32095 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32096 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32097
32098 Support for multiple terminals.
32099
32100 * Makefile.in (pkglib_DATA): terminal.lst.
32101 (terminal.lst): New target.
32102 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32103 (GRUB_MOD_INIT(handler)): Likewise.
32104 (GRUB_MOD_FINI(handler)): Likewise.
32105 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32106 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32107 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32108 (grub_cmd_sleep): Use grub_term_save_pos.
32109 * commands/terminal.c: New file.
32110 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32111 commands/terminal.c and lib/charset.c.
32112 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32113 (pkglib_MODULES): Add terminal.mod.
32114 (terminal_mod_SOURCES): New variable.
32115 (terminal_mod_CFLAGS): Likewise.
32116 (terminal_mod_LDFLAGS): Likewise.
32117 * genhandlerlist.sh: Don't handle terminals.
32118 * genmk.rb: Generate terminal-*.lst.
32119 * genterminallist.sh: New file.
32120 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32121 (grub_is_valid_utf8): Likewise.
32122 (grub_utf8_to_ucs4_alloc): Likewise.
32123 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32124 (grub_menu_register_viewer): Changed argument.
32125 (grub_menu_try_text): New proto.
32126 (grub_gfxmenu_try_hook): New declaration.
32127 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32128 (grub_menu_init_page): Additional argument term.
32129 (grub_normal_init_page): Likewise.
32130 (grub_cmdline_get): Arguments simplified.
32131 (grub_utf8_to_ucs4_alloc): Removed.
32132 (grub_print_ucs4): Additional argument term.
32133 (grub_getstringwidth): Likewise.
32134 (grub_print_message_indented): Likewise.
32135 (grub_menu_text_register_instances): New proto.
32136 (grub_show_menu): Likewise.
32137 (read_terminal_list): Likewise.
32138 (grub_set_more): Likewise.
32139 * include/grub/parser.h: Include handler.h.
32140 * include/grub/reader.h: Rewritten.
32141 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32142 (GRUB_TERM_WIDTH): Changed to function.
32143 (GRUB_TERM_HEIGHT): Likewise.
32144 (GRUB_TERM_BORDER_WIDTH): Likewise.
32145 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32146 (GRUB_TERM_NUM_ENTRIES): Likewise.
32147 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32148 (GRUB_TERM_CURSOR_X): Likewise.
32149 (grub_term_input_class): Likewise.
32150 (grub_term_output_class): Likewise.
32151 (grub_term_outputs_disabled): New declaration.
32152 (grub_term_inputs_disabled): Likewise.
32153 (grub_term_outputs): Likewise.
32154 (grub_term_inputs): Likewise.
32155 (grub_term_register_input): Rewritten.
32156 (grub_term_register_output): Likewise.
32157 (grub_term_unregister_input): Likewise.
32158 (grub_term_unregister_output): Likewise.
32159 (FOR_ACTIVE_TERM_INPUTS): New macro.
32160 (FOR_DISABLED_TERM_INPUTS): Likewise.
32161 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32162 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32163 * include/grub/terminfo.h: Add oterm argument to all protypes.
32164 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32165 Use grub_rescue_run.
32166 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32167 All users updated.
32168 * kern/reader.c: Removed. All users updated.
32169 * kern/rescue_reader.c (grub_rescue_init): Removed.
32170 (grub_rescue_reader): Likewise.
32171 (grub_register_rescue_reader): Likewise.
32172 (grub_rescue_run): New function based on kern/reader.c.
32173 * kern/term.c: Adapted for multiterm.
32174 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32175 (grub_is_valid_utf8): Likewise.
32176 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32177 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32178 right terminal.
32179 * loader/i386/linux.c (grub_linux_boot): Likewise.
32180 * normal/auth.c (grub_username_get): New function.
32181 (grub_auth_check_authentication): Use grub_username_get.
32182 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32183 * normal/color.c: Adapt for multiterm.
32184 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32185 (grub_normal_init_page): Additional argument term.
32186 (read_lists): Call read_terminal_lists.
32187 (grub_enter_normal_mode): Call grub_cmdline_run.
32188 Handle grub_normal_exit_level.
32189 (grub_cmd_normal): Make reentrant.
32190 (grub_cmd_normal_exit): New function.
32191 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32192 * normal/menu.c: Adapt for multiterm.
32193 * normal/menu_entry.c: Likewise.
32194 * normal/menu_text.c: Likewise.
32195 * normal/menu_viewer.c: Removed. All users updated.
32196 * normal/term.c: New file.
32197 * util/console.c: Change order of includes to workaround a bug in
32198 ncurses headers.
32199 * term/terminfo.c: New argument oterm on all exported functions.
32200 All users updated.
32201 * util/grub-editenv.c (grub_term_input_class): Removed.
32202 (grub_term_output_class): Likewise.
32203
32204 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32205
32206 Make loader output a bit more user-friendly.
32207
32208 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32209 is being loaded. Likewise for the Hurd.
32210
32211 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32212 that kernel of FreeBSD ${version} is being loaded.
32213
32214 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32215 grub_dprintf().
32216 (grub_cmd_initrd): Likewise.
32217 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32218 that Linux ${version} is being loaded. Likewise for initrd.
32219
32220 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32221
32222 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32223
32224 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32225
32226 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32227 (GRUB_MOD_INIT): Gettextizze.
32228 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32229 (GRUB_MOD_INIT): Gettextizze.
32230 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32231 (grub_cmd_linux): Capitalise Linux.
32232 (GRUB_MOD_INIT): Gettextizze.
32233 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32234 (grub_cmd_linux): Capitalise Linux.
32235 (GRUB_MOD_INIT): Gettextizze.
32236 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32237 (grub_cmd_linux): Capitalise Linux.
32238 (GRUB_MOD_INIT): Gettextizze.
32239 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32240 (GRUB_MOD_INIT): Gettextizze.
32241 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32242 (grub_cmd_linux): Capitalise Linux.
32243 (GRUB_MOD_INIT): Gettextizze.
32244 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32245 (grub_cpu_xnu_init): Gettextizze.
32246 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32247 (GRUB_MOD_INIT): Gettextizze.
32248 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32249 (GRUB_MOD_INIT): Gettextizze.
32250 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32251 (grub_linux_load64): Capitalise Linux.
32252 (GRUB_MOD_INIT): Gettextizze.
32253 * loader/xnu.c: Include `<grub/i18n.h>'.
32254 (GRUB_MOD_INIT): Gettextizze.
32255 * po/POTFILES: Add `loader/efi/appleloader.c',
32256 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32257 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32258 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32259 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32260 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32261 and `loader/xnu.c'.
32262
32263 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32264
32265 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32266
32267 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32268
32269 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32270 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32271 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32272
32273 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32274
32275 Reset Multiboot 2 support. New loader implements the draft in
32276 /branches/multiboot2 and shares as much code as possible with the
32277 production Multiboot 1 implementation.
32278
32279 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32280 * loader/multiboot2.c: Likewise.
32281 * loader/i386/multiboot_helper.S: Likewise.
32282 * include/multiboot2.h: Replace with latest version from the draft
32283 in /branches/multiboot2.
32284
32285 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32286 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32287 and `loader/multiboot2.c'.
32288 (pkglib_MODULES): Add `multiboot2.mod'.
32289 (multiboot2_mod_SOURCES): New variable.
32290 (multiboot2_mod_LDFLAGS): Likewise.
32291 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32292
32293 * conf/i386-pc.rmk: Likewise.
32294
32295 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32296 (multiboot_mod_SOURCES): Remove variable.
32297 (multiboot_mod_LDFLAGS): Likewise.
32298 (multiboot_mod_CFLAGS): Likewise.
32299
32300 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32301 `<multiboot2.h>' instead of `<multiboot.h>'.
32302 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32303 (MULTIBOOT_HEADER_MAGIC): New macros.
32304
32305 * loader/multiboot_loader.c (module_version_status): Remove variable.
32306 (find_multi_boot2_header): Remove function.
32307 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32308 logic. Always check for the Multiboot version we're compiling for.
32309 (grub_cmd_module_loader): Likewise.
32310 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32311 command instead of `multiboot'.
32312
32313 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32314
32315 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32316 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32317 all users.
32318
32319 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32320 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32321
32322 Fix breakage introduced with previous commit.
32323
32324 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32325 commands.
32326 * normal/handler.c (read_handler_list): Revert part of previous commit
32327 affecting this file.
32328 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32329 (grub_normal_execute): ... here.
32330
32331 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32332
32333 Merge prefix-redefinition-fix branch.
32334
32335 * normal/autofs.c (read_fs_list): Make function capable of being
32336 run multiple times, gracefuly replacing the previous data
32337 structures.
32338 * normal/dyncmd.c (read_command_list): Likewise.
32339 * normal/handler.c (read_handler_list): Likewise.
32340 * normal/main.c (read_lists): New function. Calls all the
32341 list reading functions.
32342 (grub_normal_execute): Use read_lists() instead of calling all
32343 list reading functions explicitly. Register read_lists() as a
32344 variable hook attached to ${prefix}.
32345
32346 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32347
32348 Merge crypto branch.
32349
32350 * Makefile.in (pkglib_DATA): Add crypto.lst.
32351 (crypto.lst): New target.
32352 * commands/hashsum.c: New file.
32353 * commands/password.c (check_password): Use grub_crypto_memcmp.
32354 * commands/password_pbkdf2.c: New file.
32355 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32356 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32357 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32358 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32359 -I$(srcdir)/lib/libgcrypt_wrap.
32360 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32361 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32362 password_pbkdf2.mod.
32363 (crypto_mod_SOURCES): New variable.
32364 (crypto_mod_CFLAGS): Likewise.
32365 (crypto_mod_LDFLAGS): Likewise.
32366 (hashsum_mod_SOURCES): New variable.
32367 (hashsum_mod_CFLAGS): Likewise.
32368 (hashsum_mod_LDFLAGS): Likewise.
32369 (pbkdf2_mod_SOURCES): New variable.
32370 (pbkdf2_mod_CFLAGS): Likewise.
32371 (pbkdf2_mod_LDFLAGS): Likewise.
32372 (password_pbkdf2_mod_SOURCES): New variable.
32373 (password_pbkdf2_mod_CFLAGS): Likewise.
32374 (password_pbkdf2_mod_LDFLAGS): Likewise.
32375 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32376 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32377 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32378 Include conf/gcry.rmk.
32379 * include/grub/auth.h: Rewritten.
32380 * include/grub/crypto.h: New file.
32381 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32382 * include/grub/normal.h (read_crypto_list): New prototype.
32383 * lib/crypto.c: New file.
32384 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32385 * lib/pbkdf2.c: Likewise.
32386 * normal/auth.c (grub_auth_strcmp): Removed.
32387 (grub_iswordseparator): Likewise.
32388 (grub_auth_strword): Likewise.
32389 (is_authenticated): Use grub_strword.
32390 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32391 and grub_strword. Pass entered password to authentication callback.
32392 * normal/crypto.c: New file.
32393 * normal/main.c: Call read_crypto_list.
32394 * util/grub-mkpasswd-pbkdf2.c: New file.
32395 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32396
32397 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32398
32399 Fix descent and ascent calculation.
32400
32401 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32402 (options): New option "asce".
32403 (usage): Likewise.
32404 (add_char): Ignore invalid glyphs for descent calculation.
32405 Calculate ascent from actual content.
32406 (print_glyphs): Use 'asce'.
32407 (write_font): Likewise. Allow ascent override.
32408 (main): Handle "asce" option.
32409
32410 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32411
32412 * kern/err.c: Include `<grub/i18n.h>'.
32413 (grub_print_error): Add full stop. Gettextizze.
32414 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32415 (grub_bsd_load_elf): Capitalise ELF.
32416 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32417 (grub_cmd_freebsd_module): Likewise.
32418 (grub_cmd_freebsd_module_elf): Likewise.
32419 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32420
32421 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32422
32423 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32424 * commands/search_file.c (HELP_MESSAGE): New macro.
32425 * commands/search_label.c (HELP_MESSAGE): Likewise.
32426 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32427 * po/POTFILES: Add `commands/search_file.c',
32428 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32429 `commands/search.c'.
32430
32431 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32432
32433 * config.rpath: Update from Gnulib.
32434
32435 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32436
32437 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32438
32439 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32440
32441 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32442
32443 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32444
32445 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32446 arguments to fread so that we get a return value in bytes, rather
32447 than something that will normally be rounded down to 0.
32448 Adjust error handling to avoid producing garbage when size_t is not
32449 the same size as long long.
32450
32451 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32452
32453 * util/mkisofs/write.c (padblock_write): Check return value of
32454 fread.
32455
32456 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32457
32458 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32459 floppy images now.
32460
32461 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32462
32463 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32464
32465 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32466 instead of manual alignment.
32467 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32468 verbose). Avoid attempts to read past end of the device
32469 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32470 but GRUB_DISK_CACHE_SIZE may exceed that).
32471
32472 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32473
32474 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32475 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32476 it to upper layer.
32477
32478 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32479
32480 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32481 New constant.
32482 (grub_efi_piwg_device_path): New structure
32483 (grub_efi_piwg_device_path_t): New type.
32484 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32485 (devpath_1): Transform to a structure. All users updated.
32486 (devpath_2): Likewise.
32487 (devpath_3): Likewise.
32488 (devpath_4): Likewise.
32489 (devpath_5): Likewise.
32490
32491 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32492
32493 * loader/efi/appleloader.c: Restored. Update all users.
32494
32495 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32496
32497 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32498
32499 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32500 (struct boot_blocklist): Move from here ...
32501 * include/grub/i386/pc/boot.h [ASM_FILE]
32502 (struct grub_boot_blocklist): ... to here. Update all users.
32503 (setup): Only initialize `start' member of `first_block'
32504 structure. Add assert() calls to verify the other members.
32505
32506 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32507 (generate_image): Fix broken blocklist length initialization.
32508 Add assert() call to verify blocklist `segment' field.
32509
32510 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32511
32512 * loader/efi/appleloader.c: Remove. Update all users.
32513
32514 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32515
32516 * boot/i386/pc/boot.S: Update copyright year.
32517 * boot/i386/pc/cdboot.S: Likewise.
32518 * boot/i386/pc/diskboot.S: Likewise.
32519 * boot/i386/pc/lnxboot.S: Likewise.
32520 * boot/i386/pc/pxeboot.S: Likewise.
32521 * bus/pci.c: Likewise.
32522 * commands/cmp.c: Likewise.
32523 * commands/help.c: Likewise.
32524 * commands/hexdump.c: Likewise.
32525 * commands/i386/pc/halt.c: Likewise.
32526 * commands/i386/pc/play.c: Likewise.
32527 * commands/i386/pc/vbeinfo.c: Likewise.
32528 * commands/ls.c: Likewise.
32529 * commands/test.c: Likewise.
32530 * disk/dmraid_nvidia.c: Likewise.
32531 * disk/i386/pc/biosdisk.c: Likewise.
32532 * disk/ieee1275/nand.c: Likewise.
32533 * disk/ieee1275/ofdisk.c: Likewise.
32534 * disk/lvm.c: Likewise.
32535 * disk/raid.c: Likewise.
32536 * disk/raid6_recover.c: Likewise.
32537 * disk/scsi.c: Likewise.
32538 * fs/affs.c: Likewise.
32539 * fs/cpio.c: Likewise.
32540 * fs/ext2.c: Likewise.
32541 * fs/hfs.c: Likewise.
32542 * fs/iso9660.c: Likewise.
32543 * fs/ntfs.c: Likewise.
32544 * fs/sfs.c: Likewise.
32545 * fs/udf.c: Likewise.
32546 * fs/ufs.c: Likewise.
32547 * fs/xfs.c: Likewise.
32548 * gencmdlist.sh: Likewise.
32549 * genmk.rb: Likewise.
32550 * include/grub/disk.h: Likewise.
32551 * include/grub/efi/api.h: Likewise.
32552 * include/grub/efi/efi.h: Likewise.
32553 * include/grub/efi/pe32.h: Likewise.
32554 * include/grub/elf.h: Likewise.
32555 * include/grub/fs.h: Likewise.
32556 * include/grub/i386/at_keyboard.h: Likewise.
32557 * include/grub/i386/pc/memory.h: Likewise.
32558 * include/grub/i386/pc/vbe.h: Likewise.
32559 * include/grub/i386/pci.h: Likewise.
32560 * include/grub/i386/tsc.h: Likewise.
32561 * include/grub/ieee1275/ieee1275.h: Likewise.
32562 * include/grub/ntfs.h: Likewise.
32563 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32564 * include/grub/sparc64/libgcc.h: Likewise.
32565 * include/grub/symbol.h: Likewise.
32566 * include/grub/types.h: Likewise.
32567 * include/multiboot2.h: Likewise.
32568 * io/gzio.c: Likewise.
32569 * kern/device.c: Likewise.
32570 * kern/disk.c: Likewise.
32571 * kern/efi/efi.c: Likewise.
32572 * kern/efi/mm.c: Likewise.
32573 * kern/elf.c: Likewise.
32574 * kern/file.c: Likewise.
32575 * kern/i386/dl.c: Likewise.
32576 * kern/i386/pc/init.c: Likewise.
32577 * kern/i386/pc/startup.S: Likewise.
32578 * kern/ieee1275/ieee1275.c: Likewise.
32579 * kern/ieee1275/init.c: Likewise.
32580 * kern/main.c: Likewise.
32581 * kern/mm.c: Likewise.
32582 * kern/powerpc/dl.c: Likewise.
32583 * kern/sparc64/dl.c: Likewise.
32584 * kern/x86_64/dl.c: Likewise.
32585 * lib/hexdump.c: Likewise.
32586 * loader/efi/appleloader.c: Likewise.
32587 * loader/i386/ieee1275/linux.c: Likewise.
32588 * loader/i386/pc/chainloader.c: Likewise.
32589 * loader/i386/pc/linux.c: Likewise.
32590 * loader/i386/pc/multiboot2.c: Likewise.
32591 * loader/ieee1275/multiboot2.c: Likewise.
32592 * loader/multiboot2.c: Likewise.
32593 * loader/multiboot_loader.c: Likewise.
32594 * loader/powerpc/ieee1275/linux.c: Likewise.
32595 * normal/completion.c: Likewise.
32596 * normal/menu_entry.c: Likewise.
32597 * partmap/apple.c: Likewise.
32598 * util/grub.d/10_hurd.in: Likewise.
32599 * util/hostfs.c: Likewise.
32600 * video/readers/png.c: Likewise.
32601
32602 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32603
32604 * include/grub/misc.h (GNUC_PREREQ): New macro.
32605 (ATTRIBUTE_ERROR): New macro.
32606 * include/grub/list.h (grub_bad_type_cast_real): Use
32607 ATTRIBUTE_ERROR.
32608
32609 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32610
32611 * normal/menu_text.c (print_message): Change messages.
32612
32613 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32614
32615 * normal/menu_entry.c (store_completion): Gettextizze.
32616
32617 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32618
32619 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32620
32621 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32622
32623 * po/POTFILES: Sort correctly.
32624
32625 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32626
32627 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32628 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32629 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32630 full stop.
32631 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32632 summary. Gettextizze the strings.
32633 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32634 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32635 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32636 full stop.
32637 (GRUB_MOD_INIT): Remove command name from summary.
32638 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32639 summary.
32640 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32641 * term/i386/pc/serial.c (options): Add full stops.
32642 (GRUB_MOD_INIT): Remove command name from the summary.
32643
32644 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32645
32646 * commands/acpi.c: Gettextizze help strings and/or options. Include
32647 `grub/i18n.h' if needed.
32648 * commands/blocklist.c: Likewise.
32649 * commands/boot.c: Likewise.
32650 * commands/cat.c: Likewise.
32651 * commands/cmp.c: Likewise.
32652 * commands/configfile.c: Likewise.
32653 * commands/crc.c: Likewise.
32654 * commands/date.c: Likewise.
32655 * commands/echo.c: Likewise.
32656 * commands/efi/fixvideo.c: Likewise.
32657 * commands/efi/loadbios.c: Likewise.
32658 * commands/gptsync.c: Likewise.
32659 * commands/halt.c: Likewise.
32660 * commands/handler.c: Likewise.
32661 * commands/hdparm.c: Likewise.
32662 * commands/hexdump.c: Likewise.
32663 * commands/i386/cpuid.c: Likewise.
32664 * commands/i386/pc/drivemap.c: Likewise.
32665 * commands/i386/pc/halt.c: Likewise.
32666 * commands/i386/pc/pxecmd.c: Likewise.
32667 * commands/i386/pc/vbeinfo.c: Likewise.
32668 * commands/i386/pc/vbetest.c: Likewise.
32669 * commands/ieee1275/suspend.c: Likewise.
32670 * commands/keystatus.c: Likewise.
32671 * commands/loadenv.c: Likewise.
32672 * commands/ls.c: Likewise.
32673 * commands/lsmmap.c: Likewise.
32674 * commands/lspci.c: Likewise.
32675 * commands/memrw.c: Likewise.
32676 * commands/minicmd.c: Likewise.
32677 * commands/parttool.c: Likewise.
32678 * commands/password.c: Likewise.
32679 * commands/probe.c: Likewise.
32680 * commands/read.c: Likewise.
32681 * commands/reboot.c: Likewise.
32682 * commands/search.c: Likewise.
32683 * commands/sleep.c: Likewise.
32684 * commands/test.c: Likewise.
32685 * commands/true.c: Likewise.
32686 * commands/usbtest.c: Likewise.
32687 * commands/videotest.c: Likewise.
32688 * commands/xnu_uuid.c: Likewise.
32689 * disk/loopback.c: Likewise.
32690 * hello/hello.c: Likewise.
32691 * loader/i386/bsd.c: Likewise.
32692 * term/i386/pc/serial.c: Likewise.
32693 * po/POTFILES: Add new files.
32694
32695 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32696
32697 * term/i386/pc/at_keyboard.c
32698 (keyboard_controller_wait_untill_ready): Rename to ...
32699 (keyboard_controller_wait_until_ready): ... this. Update all users.
32700
32701 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32702
32703 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32704 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32705 string using string width.
32706 * normal/menu_text.c (grub_print_message_indented): Use
32707 grub_print_spaces and not print_spaces.
32708 (print_timeout): Likewise.
32709 (print_spaces): Move to...
32710 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32711
32712 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32713
32714 Import from Gnulib.
32715
32716 * gnulib/getdelim.c: New file.
32717 * gnulib/getline.c: Likewise.
32718
32719 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32720
32721 * include/grub/list.h (grub_assert_fail): Removed.
32722 (grub_bad_type_cast_real): New function.
32723 (grub_bad_type_cast): New macro.
32724 (GRUB_AS_LIST): Use grub_bad_type_cast.
32725 (GRUB_AS_LIST_P): Likewise.
32726 (GRUB_AS_NAMED_LIST): Likewise.
32727 (GRUB_AS_NAMED_LIST_P): Likewise.
32728 (GRUB_AS_PRIO_LIST): Likewise.
32729 (GRUB_AS_PRIO_LIST_P): Likewise.
32730 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32731
32732 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32733
32734 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32735 Fix syntax error.
32736
32737 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32738
32739 * configure.ac: Check for TARGET_CFLAGS initialization before we
32740 initialize it ourselves (sigh).
32741 Move a few modifications to TARGET_CFLAGS to be unconditional
32742 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32743 eh_frame)
32744
32745 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32746 * term/i386/pc/at_keyboard.c
32747 (keyboard_controller_wait_untill_ready): Likewise.
32748 (keyboard_controller_led): Rename `led_status' paramter to avoid
32749 name conflict.
32750
32751 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32752
32753 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32754 quotes.
32755
32756 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32757
32758 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32759
32760 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32761
32762 * normal/menu_text.c (grub_print_message_indented): Prevent
32763 past-the-end-of-array dereference.
32764
32765 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32766
32767 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32768 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32769
32770 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32771
32772 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32773 * normal/main.c (grub_normal_read_line): Remove a space from the
32774 default prompt.
32775
32776 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32777
32778 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32779 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32780 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32781 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32782 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32783 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32784 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32785
32786 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32787
32788 * video/readers/jpeg.c (cmd): Declare.
32789 (grub_cmd_jpegtest): Use `grub_command_t' type.
32790 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32791 Assign to `cmd'.
32792 (GRUB_MOD_FINI): Use `cmd' to unregister.
32793 * video/readers/png.c (cmd): Declare.
32794 (grub_cmd_pngtest): Use `grub_command_t' type.
32795 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32796 Assign to `cmd'.
32797 (GRUB_MOD_FINI): Use `cmd' to unregister.
32798 * video/readers/tga.c (cmd): Declare.
32799 (grub_cmd_tgatest): Use `grub_command_t' type.
32800 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32801 Assign to `cmd'.
32802 (GRUB_MOD_FINI): Use `cmd' to unregister.
32803
32804 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32805
32806 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32807 stops.
32808 * kern/corecmd.c (grub_register_core_commands): Likewise.
32809 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32810 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32811 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32812 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32813 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32814 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32815 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32816 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32817 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32818 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32819 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32820 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32821 * normal/handler.c (insert_handler): Likewise.
32822 * normal/main.c (GRUB_MOD_INIT): Likewise.
32823 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32824
32825 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32826
32827 * commands/help.c (grub_cmd_help): Print the command name before the
32828 summary.
32829 (GRUB_MOD_INIT): Remove command name from the summary.
32830 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32831 string as summary.
32832 * lib/arg.c (find_long): Print the command name before the summary.
32833 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32834 summary.
32835 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32836 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32837 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32838 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32839 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32840 * commands/date.c (GRUB_MOD_INIT): Likewise.
32841 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32842 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32843 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32844 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32845 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32846 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32847 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32848 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32849 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32850 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32851 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32852 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32853 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32854 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32855 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32856 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32857 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32858 * commands/password.c (GRUB_MOD_INIT): Likewise.
32859 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32860 * commands/read.c (GRUB_MOD_INIT): Likewise.
32861 * commands/search.c (GRUB_MOD_INIT): Likewise.
32862 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32863 * commands/test.c (GRUB_MOD_INIT): Likewise.
32864 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32865 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32866 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32867 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32868 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32869 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32870 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32871 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32872 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32873 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32874 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32875 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32876 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32877 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32878
32879 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32880
32881 Use search command for preliminar UUID search.
32882
32883 * commands/search.c: Split into ...
32884 * commands/search_wrap.c: ...this
32885 * commands/search.c: ...and this.
32886 * commands/search_file.c: New file.
32887 * commands/search_label.c: New file.
32888 * commands/search_uuid.c: New file.
32889 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32890 Add commands/search_wrap.c, commands/search_file.c,
32891 commands/search_label.c and commands/search_uuid.c.
32892 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32893 (search_mod_SOURCES): Set to commands/search_wrap.c.
32894 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32895 search_label.mod.
32896 (search_fs_file_mod_SOURCES): New variable.
32897 (search_fs_file_mod_CFLAGS): Likewise.
32898 (search_fs_file_mod_LDFLAGS): Likewise.
32899 (search_label_mod_SOURCES): Likewise.
32900 (search_label_mod_CFLAGS): Likewise.
32901 (search_label_mod_LDFLAGS): Likewise.
32902 (search_fs_uuid_mod_SOURCES): New variable.
32903 (search_fs_uuid_mod_CFLAGS): Likewise.
32904 (search_fs_uuid_mod_LDFLAGS): Likewise.
32905 (fs_file_mod_SOURCES): Removed.
32906 (fs_file_mod_CFLAGS): Likewise.
32907 (fs_file_mod_LDFLAGS): Likewise.
32908 (fs_uuid_mod_SOURCES): Removed.
32909 (fs_uuid_mod_CFLAGS): Likewise.
32910 (fs_uuid_mod_LDFLAGS): Likewise.
32911 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32912 Set to util/grub-install.in.
32913 * disk/fs_file.c: Removed.
32914 * disk/fs_uuid.c: Likewise.
32915 * include/grub/search.h: New file.
32916 * util/grub-install.in: Handle sparc64.
32917 Create and use load.cfg.
32918 * util/sparc64/ieee1275/grub-install.in: Removed.
32919
32920 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32921
32922 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32923 Ignore return status if CF is cleared.
32924 (grub_biosdisk_get_diskinfo_standard): Likewise.
32925
32926 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32927
32928 * term/i386/pc/at_keyboard.c
32929 (keyboard_controller_wait_untill_ready): New function.
32930 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32931 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32932 for keyboard polling, rather than duplicate the same loop. This
32933 saves a few bytes in code size.
32934
32935 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32936
32937 Support for (pxe[:server[:gateway]]) syntax and
32938 use environment variable for PXE.
32939
32940 * commands/i386/pc/pxecmd.c (options): Removed.
32941 (print_ip): Removed.
32942 (grub_cmd_pxe): Removed
32943 (grub_cmd_pxe_unload): New function.
32944 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32945 (grub_pxe_your_ip): Made static.
32946 (grub_pxe_default_server_ip): Likewise.
32947 (grub_pxe_default_gateway_ip): Likewise.
32948 (grub_pxe_blksize): Likewise.
32949 (parse_ip): New function.
32950 (grub_pxe_open): Support server and gateway specification.
32951 (grub_pxe_close): Free disk->data.
32952 (grub_pxefs_open): Use disk->data.
32953 (grub_pxefs_read): Likewise.
32954 (grub_env_write_readonly): New function.
32955 (set_mac_env): Likewise.
32956 (set_env_limn_ro): Likewise.
32957 (parse_dhcp_vendor): Likewise.
32958 (grub_pxe_detect): Set the environment variables.
32959 (set_ip_env): New function.
32960 (write_ip_env): Likewise.
32961 (grub_env_write_pxe_default_server): Likewise.
32962 (grub_env_write_pxe_default_gateway): Likewise.
32963 (grub_env_write_pxe_blocksize): Likewise.
32964 (GRUB_MOD_INIT(pxe)): Set environment variables.
32965 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32966 (grub_pxe_mac_addr_t): ... this. All users updated.
32967 (grub_pxe_your_ip): Removed.
32968 (grub_pxe_server_ip): Likewise.
32969 (grub_pxe_gateway_ip): Likewise.
32970 (grub_pxe_blksize): Likewise.
32971
32972 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32973
32974 * commands/help.c: Include `<grub/i18n.h>'.
32975 (grub_cmd_help): Gettextizze.
32976 (GRUB_MOD_INIT): Likewise.
32977 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32978 (GRUB_MOD_INIT): Gettextizze.
32979 * commands/search.c: Include `<grub/i18n.h>'.
32980 (options): Gettextizze.
32981 (GRUB_MOD_INIT): Gettextizze.
32982 * lib/arg.c: Include `<grub/i18n.h>'.
32983 (help_options): Gettextizze.
32984 (find_long): Likewise.
32985 (grub_arg_show_help): Likewise.
32986 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32987 (read_command_list): Gettextizze.
32988 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32989 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32990
32991 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32992
32993 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32994 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32995 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32996 (led_status): New variable.
32997 (keyboard_controller_led): New function.
32998 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32999 update led status for caps lock, num lock and scroll lock.
33000
33001 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
33002
33003 * util/hostdisk.c (open_device): Fix a comment.
33004
33005 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33006
33007 * util/grub-install.in (host_os): New variable.
33008 * util/i386/efi/grub-install.in (host_os): Likewise.
33009
33010 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33011
33012 * util/mkisofs/write.c (padblock_write): Abort when given an
33013 excedingly large embed image, instead of silently truncating it.
33014
33015 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33016
33017 * include/multiboot.h: Indentation fixes.
33018
33019 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33020
33021 * include/multiboot.h (struct multiboot_aout_symbol_table)
33022 (struct multiboot_elf_section_header_table): New structure
33023 declarations (stolen from GRUB Legacy).
33024 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33025 table information.
33026
33027 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33028 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33029 type aliases.
33030
33031 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33032
33033 * include/multiboot.h: Make comments src2texi-friendly.
33034
33035 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33036
33037 For consistency with [multiboot]/docs/boot.S.
33038
33039 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33040 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33041 (MULTIBOOT_MAGIC2): Rename from this ...
33042 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33043
33044 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33045
33046 * include/multiboot.h: Remove `<grub/types.h>'.
33047 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33048 types. Update all users.
33049
33050 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33051
33052 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33053 `couldn't' and `can not' by `cannot'.
33054 * commands/i386/pc/drivemap.c: Likewise.
33055 * disk/ata.c: Likewise.
33056 * disk/ieee1275/nand.c: Likewise.
33057 * fs/affs.c: Likewise.
33058 * fs/fat.c: Likewise.
33059 * fs/hfs.c: Likewise.
33060 * fs/hfsplus.c: Likewise.
33061 * fs/iso9660.c: Likewise.
33062 * fs/jfs.c: Likewise.
33063 * fs/minix.c: Likewise.
33064 * fs/reiserfs.c: Likewise.
33065 * fs/sfs.c: Likewise.
33066 * fs/udf.c: Likewise.
33067 * fs/ufs.c: Likewise.
33068 * fs/xfs.c: Likewise.
33069 * loader/powerpc/ieee1275/linux.c: Likewise.
33070 * loader/sparc64/ieee1275/linux.c: Likewise.
33071 * util/grub-probe.c: Likewise.
33072 * util/misc.c: Likewise.
33073
33074 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33075
33076 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33077 grub_errno calls.
33078 * commands/acpi.c: Likewise.
33079 * commands/blocklist.c: Likewise.
33080 * commands/efi/loadbios.c: Likewise.
33081 * commands/i386/pc/drivemap.c: Likewise.
33082 * commands/loadenv.c: Likewise.
33083 * commands/memrw.c: Likewise.
33084 * commands/password.c: Likewise.
33085 * commands/videotest.c: Likewise.
33086 * disk/ata.c: Likewise.
33087 * disk/ata_pthru.c: Likewise.
33088 * disk/dmraid_nvidia.c: Likewise.
33089 * disk/ieee1275/nand.c: Likewise.
33090 * disk/ieee1275/ofdisk.c: Likewise.
33091 * disk/loopback.c: Likewise.
33092 * disk/lvm.c: Likewise.
33093 * disk/mdraid_linux.c: Likewise.
33094 * disk/raid.c: Likewise.
33095 * disk/raid6_recover.c: Likewise.
33096 * disk/scsi.c: Likewise.
33097 * efiemu/main.c: Likewise.
33098 * efiemu/mm.c: Likewise.
33099 * efiemu/pnvram.c: Likewise.
33100 * efiemu/symbols.c: Likewise.
33101 * font/font.c: Likewise.
33102 * fs/cpio.c: Likewise.
33103 * fs/hfsplus.c: Likewise.
33104 * fs/iso9660.c: Likewise.
33105 * fs/jfs.c: Likewise.
33106 * fs/minix.c: Likewise.
33107 * fs/ntfs.c: Likewise.
33108 * fs/ntfscomp.c: Likewise.
33109 * fs/reiserfs.c: Likewise.
33110 * fs/ufs.c: Likewise.
33111 * fs/xfs.c: Likewise.
33112 * gettext/gettext.c: Likewise.
33113 * include/grub/auth.h: Likewise.
33114 * kern/elf.c: Likewise.
33115 * kern/file.c: Likewise.
33116 * kern/ieee1275/init.c: Likewise.
33117 * kern/ieee1275/mmap.c: Likewise.
33118 * kern/ieee1275/openfw.c: Likewise.
33119 * kern/powerpc/dl.c: Likewise.
33120 * kern/sparc64/dl.c: Likewise.
33121 * lib/arg.c: Likewise.
33122 * loader/i386/bsd.c: Likewise.
33123 * loader/i386/bsdXX.c: Likewise.
33124 * loader/i386/efi/linux.c: Likewise.
33125 * loader/i386/efi/xnu.c: Likewise.
33126 * loader/i386/ieee1275/linux.c: Likewise.
33127 * loader/i386/linux.c: Likewise.
33128 * loader/i386/multiboot.c: Likewise.
33129 * loader/i386/pc/linux.c: Likewise.
33130 * loader/i386/pc/multiboot2.c: Likewise.
33131 * loader/i386/xnu.c: Likewise.
33132 * loader/ieee1275/multiboot2.c: Likewise.
33133 * loader/macho.c: Likewise.
33134 * loader/machoXX.c: Likewise.
33135 * loader/multiboot2.c: Likewise.
33136 * loader/multiboot_loader.c: Likewise.
33137 * loader/powerpc/ieee1275/linux.c: Likewise.
33138 * loader/sparc64/ieee1275/linux.c: Likewise.
33139 * loader/xnu.c: Likewise.
33140 * loader/xnu_resume.c: Likewise.
33141 * mmap/i386/pc/mmap.c: Likewise.
33142 * normal/menu_viewer.c: Likewise.
33143 * partmap/acorn.c: Likewise.
33144 * partmap/amiga.c: Likewise.
33145 * partmap/apple.c: Likewise.
33146 * script/lexer.c: Likewise.
33147 * term/gfxterm.c: Likewise.
33148 * term/i386/pc/serial.c: Likewise.
33149 * term/i386/pc/vga.c: Likewise.
33150 * term/ieee1275/ofconsole.c: Likewise.
33151 * term/terminfo.c: Likewise.
33152 * video/bitmap.c: Likewise.
33153 * video/efi_gop.c: Likewise.
33154 * video/efi_uga.c: Likewise.
33155 * video/fb/video_fb.c: Likewise.
33156 * video/i386/pc/vbe.c: Likewise.
33157 * video/readers/tga.c: Likewise.
33158 * video/video.c: Likewise.
33159
33160 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33161
33162 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33163 * commands/lspci.c: Likewise.
33164 * commands/probe.c: Likewise.
33165 * commands/xnu_uuid.c: Likewise.
33166 * conf/i386-coreboot.rmk: Likewise.
33167 * conf/i386-efi.rmk: Likewise.
33168 * conf/i386-ieee1275.rmk: Likewise.
33169 * conf/i386-pc.rmk: Likewise.
33170 * conf/powerpc-ieee1275.rmk: Likewise.
33171 * conf/sparc64-ieee1275.rmk: Likewise.
33172 * conf/x86_64-efi.rmk: Likewise.
33173 * fs/i386/pc/pxe.c: Likewise.
33174 * gettext/gettext.c: Likewise.
33175 * include/grub/efi/graphics_output.h: Likewise.
33176 * include/grub/i386/pc/memory.h: Likewise.
33177 * kern/env.c: Likewise.
33178 * kern/i386/qemu/startup.S: Likewise.
33179 * lib/i386/pc/biosnum.c: Likewise.
33180 * lib/i386/relocator.c: Likewise.
33181 * lib/i386/relocator_asm.S: Likewise.
33182 * lib/relocator.c: Likewise.
33183 * loader/i386/bsd.c: Likewise.
33184 * loader/i386/multiboot.c: Likewise.
33185 * loader/i386/pc/chainloader.c: Likewise.
33186 * loader/i386/xnu.c: Likewise.
33187 * loader/xnu.c: Likewise.
33188 * normal/main.c: Likewise.
33189 * normal/menu_text.c: Likewise.
33190 * util/getroot.c: Likewise.
33191 * util/grub-mkconfig_lib.in: Likewise.
33192 * util/grub.d/00_header.in: Likewise.
33193 * util/i386/pc/grub-mkimage.c: Likewise.
33194 * util/mkisofs/eltorito.c: Likewise.
33195 * util/mkisofs/exclude.h: Likewise.
33196 * util/mkisofs/hash.c: Likewise.
33197 * util/mkisofs/iso9660.h: Likewise.
33198 * util/mkisofs/joliet.c: Likewise.
33199 * util/mkisofs/mkisofs.c: Likewise.
33200 * util/mkisofs/mkisofs.h: Likewise.
33201 * util/mkisofs/multi.c: Likewise.
33202 * util/mkisofs/name.c: Likewise.
33203 * util/mkisofs/rock.c: Likewise.
33204 * util/mkisofs/tree.c: Likewise.
33205 * util/mkisofs/write.c: Likewise.
33206 * video/efi_gop.c: Likewise.
33207
33208 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33209
33210 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33211 size counting.
33212
33213 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33214
33215 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33216 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33217
33218 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33219
33220 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33221 (GRUB_MOD_INIT(memrw)): Update help line.
33222
33223 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33224
33225 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33226 Use grub_extcmd_t. All users updated.
33227 (options): New variable.
33228 (grub_cmd_read): Restructure for readability. Support "-v" option.
33229 (grub_cmd_write): Restructure for readability.
33230
33231 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33232
33233 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33234
33235 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33236
33237 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33238 with the actual contents of the correspondending make variable.
33239 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33240 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33241 specifying `*.lst' and `efiemu??.o'
33242
33243 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33244
33245 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33246 after function name.
33247 Noticed by Rene Engelhard <rene@debian.org>.
33248
33249 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33250
33251 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33252 (options): New variable.
33253 (iospace): Likewise.
33254 (grub_lspci_iter): List IO spaces if "-i" was given.
33255 (grub_cmd_lspci): Parse options.
33256 (GRUB_MOD_INIT(lspci)): Use extcmd.
33257 (GRUB_MOD_FINI(lspci)): Likewise.
33258
33259 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33260
33261 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33262 `function' keyword.
33263 Patch by Tony Mancill <tmancill@debian.org>.
33264
33265 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33266
33267 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33268 (grub_uhci_portstatus): Likewise.
33269 (grub_uhci_portstatus): Add necessary delay.
33270 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33271
33272 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33273
33274 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33275 (GRUB_MOD_INIT): Likewise.
33276 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33277 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33278 * commands/echo.c (options): Fix capitalizations and/or full stops.
33279 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33280 (enable_rom_area): Likewise.
33281 (GRUB_MOD_INIT): Likewise.
33282 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33283 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33284 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33285 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33286 * commands/hexdump.c (options): Likewise.
33287 * commands/i386/cpuid.c (options): Likewise.
33288 (GRUB_MOD_INIT): Likewise.
33289 * commands/i386/pc/drivemap.c (options): Likewise.
33290 (GRUB_MOD_INIT): Likewise.
33291 * commands/i386/pc/halt (options): Likewise.
33292 (GRUB_MOD_INIT): Likewise.
33293 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33294 * commands/i386/pc/pxecmd.c (options): Likewise.
33295 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33296 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33297 * commands/keystatus.c (options): Likewise.
33298 (GRUB_MOD_INIT): Likewise.
33299 * commands/loadenv.c (options): Likewise.
33300 * commands/ls.c (options): Likewise.
33301 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33302 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33303 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33304 * commands/parttool.c (helpmsg): Likewise.
33305 * commands/probe.c (options): Likewise.
33306 * commands/read.c (GRUB_MOD_INIT): Likewise.
33307 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33308 * commands/search.c (options): Likewise.
33309 * commands/sleep.c (options): Likewise.
33310 * commands/test.c (GRUB_MOD_INIT): Likewise.
33311 * commands/true.c (GRUB_MOD_INIT): Likewise.
33312 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33313 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33314 * lib/arg.c (help_options): Likewise.
33315 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33316 `$(XGETTEXT)'.
33317 * po/POTFILES: Add `commands/loadenv.c'.
33318
33319 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33320
33321 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33322 instead of specifying them explicit.
33323
33324 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33325
33326 * NEWS: Add grub-probe support for GNU/Hurd.
33327
33328 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33329
33330 * NEWS: gettext was added after 1.97.
33331
33332 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33333
33334 * util/mkisofs/msdos_partition.h: New file (based on
33335 include/grub/msdos_partition.h).
33336 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33337 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33338 (ld_options, main): Recognize --protective-msdos-label.
33339 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33340 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33341 (padblock_write): If `use_protective_msdos_label' is set, patch a
33342 protective DOS-style label in the output image.
33343
33344 * util/grub-mkrescue.in: Use --protective-msdos-label.
33345
33346 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33347
33348 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33349 boot.
33350
33351 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33352
33353 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33354 variables.
33355 (ld_options, main): Recognize `--embedded-boot'.
33356 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33357 declarations.
33358 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33359 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33360 (padblock_write): Likewise. Rewrite to support embedded boot image.
33361
33362 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33363 for BIOS-based disk boot instead of only ElTorito.
33364
33365 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33366
33367 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33368 build (not needed for bootstrap).
33369
33370 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33371
33372 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33373 from i386-pc build (not needed for bootstrap).
33374 Rewrite a pair of strings.
33375
33376 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33377
33378 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33379
33380 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33381
33382 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33383
33384 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33385
33386 * kern/env.c (grub_env_context_open): Mark exported variable for
33387 reexport.
33388
33389 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33390
33391 * kern/env.c (grub_env_export): Create nonexistent variables before
33392 exporting.
33393
33394 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33395
33396 * include/grub/auth.h: Include `<grub/i18n.h>'.
33397 (GRUB_GET_PASSWORD): Gettextizze string.
33398 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33399 menu_text.c.
33400 (grub_utf8_to_ucs4_alloc): Fix indentation.
33401 (grub_print_ucs4): Likewise.
33402 (grub_getstringwidth): Likewise.
33403 (print_message_indented): New declaration.
33404 * normal/auth.c: Include `<grub/i18n.h>'.
33405 (grub_auth_check_authentication): Gettexttize string.
33406 * normal/cmdline.c: Include `<grub/i18n.h>'.
33407 (grub_cmdline_get): Gettextizze.
33408 * normal/color.c: Include `<grub/i18n.h>'.
33409 (grub_parse_color_name_pair): Gettexttize strings.
33410 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33411 string (use `print_message_indented').
33412 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33413 `include/grub/normal.h'.
33414 (print_message_indented): Renamed to ...
33415 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33416 used in normal/main.c).
33417 (print_message): Use `grub_print_message_indented' instead of
33418 `print_message_indented'.
33419 (print_timeout): Likewise.
33420 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33421 (grub_normal_print_device_info): Gettexttize strings.
33422 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33423
33424 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33425
33426 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33427 of arguments. Return number of tokens and not arguments. All users
33428 updated.
33429
33430 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33431
33432 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33433 non-MSDOS paritions.
33434
33435 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33436
33437 * include/grub/types.h (UNUSED): Removed since it conflicts with
33438 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33439 Reported by Grégoire Sutre.
33440
33441 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33442
33443 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33444 (grub_print_ucs4_alloc): Likewise.
33445 (grub_getstringwidth): Likewise.
33446 * normal/main.c (grub_normal_init_page): Gettextize version string.
33447 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33448 (getstringwidth): Renamed to ...
33449 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33450 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33451 (grub_print_ucs4): Remove `static' qualifer (now used in
33452 normal/main.c).
33453 * po/POTFILES: Add normal/main.c.
33454
33455 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33456
33457 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33458 (print_message_indented): Add `margin_left' and `margin_right'
33459 parameters.
33460 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33461 strings.
33462 (print_timeout): Use `print_message_indented' to print the message.
33463 Deletes `second_stage' parameter.
33464 (run_menu): Update `print_timeout' calls.
33465
33466 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33467
33468 Fix console palette on OpenFirmware.
33469
33470 * term/ieee1275/ofconsole.c (MAX): Removed.
33471 (colors): Redone based on VGA palette.
33472 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33473 colors are supported.
33474 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33475
33476 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33477
33478 Fix potential EfiEmu double prepare.
33479
33480 * efiemu/main.c (prepared): New variable
33481 (grub_efiemu_unload): Set prepare to '0'.
33482 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33483
33484 set_virtual_address_map support.
33485
33486 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33487 prototype.
33488 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33489 prototype.
33490 (grub_efiemu_crc32): Likewise.
33491 (grub_efiemu_crc64): Likewise.
33492 (grub_efiemu_set_virtual_address_map): Likewise.
33493 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33494 New definition.
33495 (grub_autoefi_set_virtual_address_map): Likewise.
33496 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33497 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33498 Restructure flow to accomodate it.
33499 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33500 (grub_efiemu_crc): Recompute CRC32.
33501 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33502 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33503 * efiemu/symbols.c (relocated_handle): New variable.
33504 (grub_efiemu_free_syms): Free relocated_handle.
33505 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33506 (grub_efiemu_write_sym_markers): New function.
33507 (grub_efiemu_set_virtual_address_map): Likewise.
33508
33509 Newer XNU parameters.
33510
33511 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33512 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33513 (grub_xnu_fill_devicetree): New prototype.
33514 (grub_xnu_heap_real_start): New variable.
33515 * loader/xnu.c (get_name_ptr): New function.
33516 (grub_xnu_load_driver): Fill namelen and name.
33517
33518 64-bit xnu support.
33519
33520 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33521 and 'loader/macho64.c'.
33522 * conf/i386-pc.rmk: Likewise.
33523 * conf/x86_64-efi.rmk: Likewise.
33524 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33525 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33526 * include/grub/macho.h (grub_macho_segment64): New structure.
33527 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33528 (grub_macho_size32): ... to this.
33529 (grub_macho32_get_entry_point): Renamed from ...
33530 (grub_macho_get_entry_point32): ... to this.
33531 (grub_macho_contains_macho64): New prototype.
33532 (grub_macho_size64): Likewise.
33533 (grub_macho_get_entry_point64): Likewise.
33534 (grub_macho32_load): Renamed from ...
33535 (grub_macho_load32): ... to this.
33536 (grub_macho32_filesize): Renamed from ...
33537 (grub_macho_filesize32): ... to this.
33538 (grub_macho32_readfile): Renamed from ...
33539 (grub_macho_readfile32): ... to this.
33540 (grub_macho_filesize64): New prototype.
33541 (grub_macho_readfile64): Likewise.
33542 (grub_macho_parse32): Likewise.
33543 (grub_macho_parse64): Likewise.
33544 * loader/macho.c: Split into ...
33545 * loader/machoXX.c: ... and this. Replace 32 with XX.
33546 * loader/macho32.c: New file.
33547 * loader/macho64.c: Likewise.
33548 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33549 (grub_cmd_xnu_kernel): Make 32-bit only.
33550 (grub_cmd_xnu_kernel64): New function.
33551 (grub_xnu_load_driver): Support Mach-O 64.
33552 (grub_cmd_xnu_mkext): Likewise.
33553 * util/grub.d/30_os-prober.in (osx_entry): New function.
33554 Generate entries for 64-bit boot too.
33555
33556 Eliminate ad-hoc tree format in XNU and EfiEmu.
33557
33558 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33559 * efiemu/pnvram.c: Rewritten to use environment variables.
33560 All users updated.
33561
33562 Inline utf16_to_utf8.
33563
33564 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33565 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33566 All users updated.
33567 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33568
33569 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33570 * commands/usbtest.c (grub_usb_get_string): ... move here.
33571 (usb_print_str): Fix error handling.
33572 * include/grub/usb.h (grub_usb_get_string): Remove.
33573
33574 UTF-8 to UTF-16 transformation.
33575
33576 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33577 (charset_mod_SOURCES): New variable.
33578 (charset_mod_CFLAGS): Likewise.
33579 (charset_mod_LDFLAGS): Likewise.
33580 * include/grub/utf.h: New file.
33581 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33582
33583 Support for device properties.
33584
33585 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33586 (grub_xnu_devprop_device_header): Likewise.
33587 (grub_xnu_devprop_device_descriptor): Likewise.
33588 (grub_xnu_devprop_add_device): New prototype.
33589 (grub_xnu_devprop_remove_device): Likewise.
33590 (grub_xnu_devprop_remove_property): Likewise.
33591 (grub_xnu_devprop_add_property_utf8): Likewise.
33592 (grub_xnu_devprop_add_property_utf16): Likewise.
33593 (grub_cpu_xnu_init): Likewise.
33594 (grub_cpu_xnu_fini): Likewise.
33595 (grub_cpu_xnu_unload): Likewise.
33596 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33597 (property_descriptor): Likewise.
33598 (devices): New variable.
33599 (grub_xnu_devprop_remove_property): New function.
33600 (grub_xnu_devprop_add_device): Likewise.
33601 (grub_xnu_devprop_remove_device): Likewise.
33602 (grub_xnu_devprop_add_property): Likewise.
33603 (grub_xnu_devprop_add_property_utf8): Likewise.
33604 (grub_xnu_devprop_add_property_utf16): Likewise.
33605 (hextoval): Likewise.
33606 (grub_cpu_xnu_fill_devprop): Likewise.
33607 (grub_cmd_devprop_load): Likewise.
33608 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33609 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33610 (cmd_devprop_load): New variable.
33611 (grub_cpu_xnu_init): New function.
33612 (grub_cpu_xnu_fini): Likewise.
33613 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33614 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33615 (grub_cmd_xnu_devtree): Likewise.
33616 (hextoval): New function.
33617 (unescape): Likewise.
33618 (grub_xnu_fill_devicetree): Likewise.
33619
33620 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33621 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33622
33623 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33624
33625 Workaround for broken ATI VBE.
33626
33627 * video/i386/pc/vbe.c (last_set_mode): New variable.
33628 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33629 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33630 (grub_video_vbe_setup): Don't check for reserved flag.
33631
33632 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33633
33634 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33635 the `find' command.
33636
33637 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33638
33639 UUID support for HFS.
33640
33641 * fs/hfs.c (grub_hfs_uuid): New function.
33642 (grub_hfs_fs): New value .uuid.
33643 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33644
33645 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33646
33647 Fix a segfault with parsing unknown long options.
33648
33649 * util/grub-mkrelpath.c (options): Zero terminate it.
33650
33651 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33652
33653 * include/grub/misc.h (grub_puts): New declaration.
33654 (grub_puts_): Likewise.
33655 * kern/misc.c (grub_puts): New definition.
33656 (grub_puts_): Likewise.
33657
33658 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33659
33660 * util/grub-probe.c (probe): Improve error message.
33661
33662 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33663
33664 * loader/i386/multiboot_elfxx.c
33665 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33666 initialization.
33667
33668 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33669
33670 Relocator framework
33671
33672 * loader/i386/xnu_helper.S: Removed. All users updated.
33673 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33674 (relocator_mod_SOURCES): New variable.
33675 (relocator_mod_CFLAGS): Likewise.
33676 (relocator_mod_LDFLAGS): Likewise.
33677 (relocator_mod_ASFLAGS): Likewise.
33678 * conf/x86_64.rmk: Likewise.
33679 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33680 (grub_multiboot_payload_entry_offset): Likewise.
33681 (grub_multiboot_forward_relocator): Likewise.
33682 (grub_multiboot_forward_relocator_end): Likewise.
33683 (grub_multiboot_backward_relocator): Likewise.
33684 (grub_multiboot_backward_relocator_end): Likewise.
33685 (grub_multiboot_payload_eip): New variable.
33686 (grub_multiboot_payload_orig): Likewise.
33687 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33688 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33689 * include/grub/i386/memory.h
33690 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33691 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33692 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33693 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33694 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33695 * include/grub/i386/relocator.h: New file.
33696 * include/grub/x86_64/relocator.h: Likewise.
33697 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33698 (XNU_RELOCATOR): New macro.
33699 (grub_xnu_launcher_start): Remove.
33700 (grub_xnu_launcher_end): Likewise.
33701 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33702 (grub_xnu_heap_real_start): Remove.
33703 (grub_xnu_heap_start): Change to void *. All users updated.
33704 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33705 * lib/i386/relocator.c: New file.
33706 * lib/i386/relocator_asm.S: Likewise.
33707 * lib/i386/relocator_backward.S: Likewise.
33708 * lib/mips/relocator.c: Likewise.
33709 * lib/mips/relocator_asm.S: Likewise.
33710 * lib/relocator.c: Likewise.
33711 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33712 (entry): Removed.
33713 (playground): Likewise.
33714 (grub_multiboot_payload_orig): New variable.
33715 (grub_multiboot_payload_dest): Likewise.
33716 (grub_multiboot_payload_size): Likewise.
33717 (grub_multiboot_payload_eip): Likewise.
33718 (grub_multiboot_payload_esp): Likewise.
33719 (grub_multiboot_boot): Use grub_relocator32_boot.
33720 (grub_multiboot_unload): Free relocators.
33721 (grub_multiboot): Setup stack. Use relocators.
33722 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33723 (grub_multiboot_load_elfXX): Use relocators.
33724 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33725 (grub_multiboot_payload_size): Likewise.
33726 (grub_multiboot_payload_dest): Likewise.
33727 (grub_multiboot_payload_entry_offset): Likewise.
33728 (grub_multiboot_forward_relocator): Likewise.
33729 (grub_multiboot_backward_relocator): Likewise.
33730 (grub_multiboot_real_boot): Likewise.
33731 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33732 (grub_xnu_entry_point): Likewise.
33733 (grub_xnu_arg1): Likewise.
33734 (grub_xnu_stack): Likewise.
33735 (grub_xnu_launch): Removed.
33736 (grub_xnu_boot_resume): New function.
33737 (grub_xnu_boot): Use relocators.
33738 * loader/i386/xnu_helper.S: Removed.
33739 * loader/xnu.c (grub_xnu_heap_start): New variable.
33740 (grub_xnu_heap_size): Likewise.
33741 (grub_xnu_heap_malloc): Use relocators.
33742 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33743
33744 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33745
33746 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33747 anything.
33748
33749 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33750
33751 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33752 GRUB_ERR_NONE before calling grub_env_set.
33753
33754 2009-12-12 Robert Millan <rmh@aybabtu.com>
33755
33756 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33757 * genmk.rb (video): New variable.
33758 (CLEANFILES, VIDEOFILES): Add #{video}.
33759 (#{video}): New target rule.
33760 * genvideolist.sh: New file.
33761 * Makefile.in (pkglib_DATA): Add video.lst.
33762 (video.lst): New target rule.
33763 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33764 `video.lst'.
33765 * util/grub.d/30_os-prober.in: Replace `vbe' with
33766 ${GRUB_VIDEO_BACKEND}.
33767
33768 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33769
33770 * THANKS: Add David Miller.
33771
33772 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33773
33774 libpciaccess support.
33775
33776 * Makefile.in (LIBPCIACCESS): New variable.
33777 (enable_grub_emu_pci): Likewise.
33778 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33779 util/pci.c and commands/lspci.c.
33780 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33781 * configure.ac (grub-emu-pci): New option.
33782 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33783 (grub_pci_device_unmap_range): Likewise.
33784 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33785 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33786 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33787 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33788 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33789 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33790 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33791 * include/grub/pciutils.h: New file.
33792 * util/pci.c: Likewise.
33793
33794 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33795
33796 * util/misc.c: Don't include <errno.h> twice.
33797
33798 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33799
33800 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33801 name in an error message.
33802 (grub_biosdisk_rw): Likewise.
33803
33804 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33805
33806 Eliminate NTFS 4Gib barrier.
33807
33808 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33809 (read_run_data): Likewise.
33810 (grub_ntfs_read_run_list): Likewise.
33811 (grub_ntfs_read_block): Likewise.
33812 (grub_ntfs_iterate_dir): Likewise.
33813 (read_mft): Likewise.
33814 (read_data): Likewise.
33815 Use COM_LOG_LEN.
33816 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33817 to avoid 64-bit division
33818 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33819 (grub_ntfs_rlst): Use grub_disk_addr_t.
33820
33821 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33822
33823 Eliminate grub-fstest 4Gib barrier.
33824
33825 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33826 (read_file): Fix error reporting.
33827
33828 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33829
33830 Eliminate hexdump 4Gib barrier.
33831
33832 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33833 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33834
33835 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33836
33837 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33838 Fixes amarsh bug.
33839
33840 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33841
33842 Remove miscellaneous files in distclean target.
33843
33844 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33845
33846 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33847
33848 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33849 if they're already set. This resolves the conflict between my
33850 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33851 fixing the --grub-probe option again.
33852 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33853 change on 2009-10-06, so that we now once again source
33854 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33855
33856 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33857
33858 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33859 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33860 `util/devicemap.c'.
33861
33862 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33863
33864 * include/grub/misc.h (grub_printf_): New declaration.
33865 * kern/misc.c (grub_printf_): New definition.
33866 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33867 instead of `grub_printf' and `_'.
33868 * normal/menu_entry.c (store_completion): Likewise.
33869 (run): Likewise.
33870 (grub_menu_entry_run): Likewise.
33871 * normal/menu_text.c (grub_wait_after_message): Likewise.
33872 (notify_booting): Likewise.
33873 (notify_fallback): Likewise.
33874 (notify_execution_failure): Likewise.
33875
33876 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33877
33878 * configure.ac: Check for vasprintf.
33879 * util/misc.c (asprintf): Move allocation from here ...
33880 (vasprintf): ... to here. New function.
33881 (xasprintf): New function.
33882 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33883 prototypes.
33884 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33885 * util/grub-mkfont.c (write_font): Likewise.
33886 * util/grub-probe.c (probe): Likewise.
33887 * util/hostdisk.c (make_device_name): Likewise.
33888
33889 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33890
33891 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33892 anything even prefixed with 'cdrom' as a cdrom.
33893
33894 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33895
33896 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33897 mount points.
33898
33899 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33900
33901 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33902 grub_gettext_msg_list.
33903 (grub_gettext_gettranslation_from_position): Return const char *
33904 and not char *.
33905 (grub_gettext_translate): Add the translated strings into a list,
33906 returns from the list if existing there.
33907 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33908 (grub_gettext_delete_list): Delete the list.
33909 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33910 lang environment variable is changed.
33911 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33912
33913 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33914
33915 Rename kernel.mod to kernel.img.
33916
33917 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33918 (kernel_mod_EXPORTS): Rename to ...
33919 (kernel_img_EXPORTS): ... this.
33920 (kernel_mod_SOURCES): Rename to ...
33921 (kernel_img_SOURCES): ... this.
33922 (kernel_mod_HEADERS): Rename to ...
33923 (kernel_img_HEADERS): ... this. All users updated.
33924 (kernel_mod_CFLAGS): Rename to ...
33925 (kernel_img_CFLAGS): ... this.
33926 (kernel_mod_ASFLAGS): Rename to ...
33927 (kernel_img_ASFLAGS): ... this.
33928 (kernel_mod_LDFLAGS): Rename to ...
33929 (kernel_img_LDFLAGS): ... this.
33930 * conf/x86_64-efi.rmk: Likewise.
33931 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33932 (read_kernel_image): ... this. All users updated.
33933 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33934
33935 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33936
33937 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33938 (print_spaces): New function.
33939 (grub_print_ucs4): New function.
33940 (getstringwidth): New function.
33941 (print_message_indented): New function.
33942 (print_message): Gettexttize strings using print_message_indented.
33943 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33944 width.
33945 (get_entry_number): Gettextize and uses dynamic terminal width.
33946 (notify_booting, notify_fallback, notify_execution_failure):
33947 Gettextize.
33948 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33949 string.
33950 (run): Likewise.
33951 (grub_menu_entry_run): Likewise.
33952 * PO/POTFILES: Add normal/menu_entry.c.
33953
33954 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33955
33956 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33957
33958 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33959
33960 * util/grub-install.in: Install gettext .mo files.
33961 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33962
33963 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33964
33965 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33966 grub_dprintf.
33967
33968 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33969
33970 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33971 non-firmware-dependant one in realmode.S takes precedence.
33972
33973 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33974
33975 * commands/halt.c: Replace misc arch-specific headers with
33976 `<grub/misc.h>'.
33977 * commands/reboot.c: Likewise.
33978 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33979 `<grub/misc.h>'.
33980 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33981 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33982 (kernel_img_SOURCES): ... to here.
33983
33984 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33985 * include/grub/i386/pc/init.h: Likewise.
33986 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33987 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33988
33989 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33990
33991 * include/grub/i386/halt.h: Remove.
33992 * include/grub/i386/reboot.h: Likewise.
33993
33994 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33995
33996 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33997
33998 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33999 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34000 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34001 "progname.h"
34002 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34003 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34004 (usage): Add missing comma in printf.
34005
34006 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
34007
34008 Use the same reboot approach on i386 coreboot and qemu as we do on
34009 BIOS.
34010
34011 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34012 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34013 * kern/i386/reboot.c: Remove.
34014 * include/grub/i386/reboot.h (grub_reboot): Export function.
34015 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34016 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34017 0xf000:0xfff0 instead of 0xffff:0x0000.
34018 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34019 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34020
34021 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34022
34023 Fix $srcdir != $objdir build.
34024
34025 * Makefile.in (po/%.po): Rewrite as ...
34026 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34027
34028 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34029
34030 Fix GNU/Hurd grub-install crash.
34031 * util/grub-probe.c (probe): Try to access `path' only when it is not
34032 NULL.
34033
34034 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34035
34036 Correct module naming.
34037
34038 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34039 (GRUB_MOD_INIT(efi_uga)): ... to this
34040 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34041 (GRUB_MOD_FINI(efi_uga)): ... to this
34042 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34043 (GRUB_MOD_INIT(efi_gop)): ... to this
34044 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34045 (GRUB_MOD_FINI(efi_gop)): ... to this
34046
34047 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34048
34049 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34050 translatable.
34051 (usage): Translate `arg' strings using gettext().
34052 Thanks to Jordi Mallach for the suggestion.
34053
34054 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34055
34056 GOP support. Based on patch from Bean
34057 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34058
34059 * video/efi_gop.c: New file.
34060 * include/grub/efi/graphics_output.h: Likewise.
34061 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34062 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34063 variables.
34064 * conf/x86_64-efi.rmk: Likewise.
34065
34066 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34067
34068 Rename efi_fb to efi_uga.
34069
34070 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34071 'efi_uga.mod'.
34072 (efi_fb_mod_SOURCES): Rename this ...
34073 (efi_uga_mod_SOURCES): ... to this.
34074 (efi_fb_mod_CFLAGS): Rename this ...
34075 (efi_uga_mod_CFLAGS): ... to this.
34076 (efi_fb_mod_LDFLAGS): Rename this ...
34077 (efi_uga_mod_LDFLAGS): ... to this.
34078 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34079 'efi_uga.mod'.
34080 (efi_fb_mod_SOURCES): Rename this ...
34081 (efi_uga_mod_SOURCES): ... to this.
34082 (efi_fb_mod_CFLAGS): Rename this ...
34083 (efi_uga_mod_CFLAGS): ... to this.
34084 (efi_fb_mod_LDFLAGS): Rename this ...
34085 (efi_uga_mod_LDFLAGS): ... to this.
34086 * video/efi_fb.c: Move this ...
34087 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34088
34089 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34090
34091 * po/README: New file. Explain our PO file workflow.
34092
34093 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34094
34095 * po/ChangeLog: Remove. Move relevant entries back to ...
34096 * ChangeLog: ... here.
34097 * po/ca.po: Remove (now handled by TLP).
34098 * po/id.po: Likewise.
34099 * po/zh_CN.po: Likewise.
34100 * Makefile.in (LINGUAS): Initialize in a way that supports
34101 empty set.
34102
34103 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34104
34105 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34106 reliing on po/LINGUAS.
34107 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34108 (po/%.po): ... this.
34109
34110 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34111
34112 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34113 (main): Use `program_name' instead of nonexistent `progname'.
34114
34115 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34116
34117 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34118 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34119
34120 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34121
34122 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34123 commit.
34124 * conf/i386-efi.rmk: Likewise.
34125 * conf/i386-ieee1275.rmk: Likewise.
34126 * conf/powerpc-ieee1275.rmk: Likewise.
34127 * conf/sparc64-ieee1275.rmk: Likewise.
34128 * conf/x86_64-efi.rmk: Likewise.
34129
34130 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34131
34132 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34133
34134 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34135
34136 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34137
34138 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34139
34140 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34141 (grub_mkdevicemap_SOURCES): New variable.
34142 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34143 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34144 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34145 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34146 (grub_mkdevicemap_SOURCES): Remove.
34147 * conf/i386-efi.rmk: Likewise.
34148 * conf/i386-ieee1275.rmk: Likewise.
34149 * conf/i386-pc.rmk: Likewise.
34150 * conf/powerpc-ieee1275.rmk: Likewise.
34151 * conf/sparc64-ieee1275.rmk: Likewise.
34152 * conf/x86_64-efi.rmk: Likewise.
34153 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34154 (usage): Fix strings to use `program_name'.
34155 (main): Initialize gettext.
34156 * util/grub-editenv.c: Likewise.
34157 * util/grub-emu.c: Likewise.
34158 * util/grub-fstest.c: Likewise.
34159 * util/grub-mkdevicemap.c: Likewise.
34160 * util/grub-mkfont.c: Likewise.
34161 * util/grub-mkrelpath.c: Likewise.
34162 * util/grub-pe2elf.c: Likewise.
34163 * util/grub-probe.c: Likewise.
34164 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34165 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34166 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34167
34168 * util/misc.c: Include `"progname.h"'.
34169 (progname): Remove variable.
34170 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34171
34172 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34173
34174 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34175 printf and print a newline after the menuentry header line.
34176 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34177
34178 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34179
34180 autoconf >= 2.60 support $(localedir).
34181
34182 * INSTALL: Note that autoconf 2.60 is required.
34183 * configure.ac (AC_PREREQ): Bump to 2.60.
34184 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34185 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34186
34187 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34188
34189 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34190 aclocal is run.
34191
34192 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34193
34194 * normal/main.c (grub_normal_read_line): Fix off-by-one
34195 buffer overflow.
34196
34197 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34198
34199 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34200 "parser.grub" in grub_command_execute() call.
34201
34202 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34203
34204 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34205 * conf/i386-efi.rmk: Likewise.
34206 * conf/i386-ieee1275.rmk: Likewise.
34207 * conf/i386-pc.rmk: Likewise.
34208 * conf/powerpc-ieee1275.rmk: Likewise.
34209 * conf/sparc64-ieee1275.rmk: Likewise.
34210 * conf/x86_64-efi.rmk: Likewise.
34211 * gettext/gettex.c: Include <grub/i18n.h>.
34212 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34213 here ...
34214 * include/grub/i18n.h: ... to here
34215 * include/grub/i18n.h: ... to here.
34216 * kern/misc.c: Include <grub/i18n.h>
34217 (grub_gettext_dummy): Move above user.
34218
34219 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34220
34221 * util/Makefile.in (install-local): Convert a `for' into a normal
34222 shell expansion.
34223
34224 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34225
34226 * autogen.sh: Add automake call.
34227 * config.guess: Remove.
34228 * config.sub: Likewise.
34229 * install-sh: Likewise.
34230
34231 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34232
34233 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34234
34235 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34236
34237 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34238 function to a normal shell `for'.
34239
34240 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34241
34242 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34243
34244 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34245
34246 * util/grub-mkrelpath.c: New file.
34247 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34248 (grub_mkrelpath_SOURCES): New variable.
34249 * include/grub/util/misc.h: New function prototype.
34250 * util/misc.c (make_system_path_relative_to_its_root): New function.
34251
34252 * util/grub-mkconfig_lib.in (bindir): New variable.
34253 (grub_mkrelpath): Likewise.
34254 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34255
34256 * util/probe.c (probe): Make the file path relative to its root.
34257 Change a info message to use the GRUB path. Enable again the
34258 check if we can read the file with GRUB facilities.
34259
34260 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34261 to its root.
34262
34263 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34264
34265 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34266 platform.
34267
34268 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34269
34270 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34271 strncmp().
34272
34273 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34274
34275 * util/getroot.c (grub_util_is_dmraid): New function.
34276 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34277 devices as normal ones, not as LVM.
34278
34279 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34280
34281 * conf/common.rmk: Add grub-gettext_lib target and updates
34282 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34283 LDFLAGS.
34284 * gettext/gettext.c: New file. (Reads mo files).
34285 * include/grub/file.h (grub_file_pread): New prototype.
34286 * include/grub/i18n.h (_): New prototype.
34287 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34288 prototypes.
34289 * kern/misc.c (grub_gettext_dummy): New function.
34290 * normal/menu_text.c: Include <grub/i18n.h>.
34291 * normal/menu_text.c (print_timeout): Gettexttize string.
34292 * normal/menu_text.c (print_message): Gettexttize string.
34293 * po/POTFILES: Add `normal/menu_text.c'.
34294 * po/ca.po: Add new translations.
34295 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34296 gettext module and defines locale_dir and lang in grub.cfg.
34297 * NEWS: Add gettext support.
34298
34299 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34300
34301 * util/hostdisk.c: Include `<grub/i18n.h>'.
34302 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34303 (make_device_name): Rewrite using asprintf.
34304 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34305 (find_system_device): If a device is not found, generate one just
34306 by reusing the OS path name.
34307 (read_device_map): Make it permissible for device.map not to exist.
34308
34309 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34310
34311 * script/sh/execute.c: Move from here ...
34312 * script/execute.c: ... to here. Update all users.
34313 * script/sh/function.c: Move from here ...
34314 * script/function.c: ... to here. Update all users.
34315 * script/sh/lexer.c: Move from here ...
34316 * script/lexer.c: ... to here. Update all users.
34317 * script/sh/main.c: Move from here ...
34318 * script/main.c: ... to here. Update all users.
34319 * script/sh/parser.y: Move from here ...
34320 * script/parser.y: ... to here. Update all users.
34321 * script/sh/script.c: Move from here ...
34322 * script/script.c: ... to here. Update all users.
34323
34324 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34325
34326 * configure.ac: Detect all `emu' platforms. Define
34327 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34328 --enable-grub-emu logic. Disable include/grub/machine
34329 symlink on `emu' platforms.
34330
34331 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34332 * gensymlist.sh.in: Likewise.
34333
34334 * include/grub/i386/coreboot/machine.h: Remove file.
34335 * include/grub/i386/efi/machine.h: Likewise.
34336 * include/grub/i386/ieee1275/machine.h: Likewise.
34337 * include/grub/i386/pc/machine.h: Likewise.
34338 * include/grub/i386/qemu/machine.h: Likewise.
34339 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34340 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34341 * include/grub/x86_64/efi/machine.h: Likewise.
34342
34343 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34344 * commands/halt.c: Likewise.
34345 * commands/reboot.c: Likewise.
34346 * include/grub/autoefi.h: Likewise.
34347 * include/grub/i386/at_keyboard.h: Likewise.
34348 * include/grub/i386/kernel.h: Likewise.
34349 * include/grub/i386/loader.h: Likewise.
34350 * include/grub/i386/pc/memory.h: Likewise.
34351 * kern/dl.c: Likewise.
34352 * kern/i386/coreboot/init.c: Likewise.
34353 * loader/i386/bsd.c: Likewise.
34354 * loader/i386/linux.c: Likewise.
34355 * loader/multiboot_loader.c: Likewise.
34356 * term/i386/pc/serial.c: Likewise.
34357 * term/usb_keyboard.c: Likewise.
34358
34359 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34360 `<grub/machine/machine.h>'
34361 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34362 * util/misc.c: Remove `<grub/machine/machine.h>' and
34363 `<grub/machine/time.h>'.
34364
34365 * Makefile.in (enable_grub_emu): Remove variable.
34366 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34367
34368 * conf/any-emu.rmk: New file.
34369 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34370 (grub_emu_init.c): Move from here ...
34371 * conf/any-emu.rmk: ... to here.
34372
34373 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34374 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34375 * conf/any-emu.rmk: ... to here.
34376
34377 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34378
34379 * include/grub/parser.h (grub_parser_register): Document need
34380 of `name' parameter.
34381 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34382 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34383 "sh" to "grub".
34384
34385 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34386
34387 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34388 `$(XGETTEXT)'.
34389 * include/grub/i18n.h (N_): New macro.
34390 * util/mkisofs/mkisofs.h: Likewise.
34391 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34392 around N_().
34393 (usage): Use gettext() to translate help strings when printing them.
34394
34395 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34396
34397 Based on patch from Bean
34398 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34399
34400 * video/efi_fb.c: New file.
34401 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34402 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34403 variables.
34404 * conf/x86_64-efi.rmk: Likewise.
34405
34406 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34407
34408 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34409 * util/i386/pc/grub-setup.c: Likewise.
34410
34411 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34412
34413 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34414 <hurd/fs.h>
34415 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34416 file_get_storage_info to implement grub_guess_root_device.
34417
34418 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34419
34420 * Makefile.in (target): Use make's builtin $(shell) function
34421 instead of calling directly $(SHELL) to create the locale directories,
34422 inside the $(foreach) function.
34423
34424 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34425
34426 * util/grub-mkrescue.in: Print an error and usage if output option
34427 has not been given.
34428
34429 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34430
34431 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34432 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34433 root and /boot are on different devices.
34434
34435 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34436
34437 Fix build for srcdir != objdir.
34438
34439 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34440 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34441 $(srcdir).
34442 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34443 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34444 reference for input.
34445
34446 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34447
34448 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34449 or hardlinking it). Remove -J option, Joliet is not compatible with
34450 multiple source directories.
34451
34452 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34453 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34454
34455 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34456 (process_input_dir): New function. Process an arbitrary input
34457 directory.
34458 Misc adjustments to support both "override mode" and system-wide mode.
34459
34460 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34461
34462 * configure.ac (UNIFONT_BDF): Rename to ...
34463 (FONT_SOURCE): ... this. Update all users.
34464
34465 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34466
34467 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34468 to the list of unifont files to look for.
34469
34470 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34471
34472 Patch from Joe Auricchio <jauricchio@gmail.com>
34473 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34474 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34475 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34476
34477 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34478
34479 * Makefile.in (install-local): Add a missing backslash.
34480
34481 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34482
34483 * include/grub/x86_64/io.h: New file.
34484
34485 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34486
34487 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34488 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34489 Include `"progname.h"'.
34490 (main): Initialize gettext.
34491 * util/i386/pc/grub-setup.c: Gettexttize.
34492 * util/i386/pc/grub-mkimage.c: Likewise.
34493
34494 * Makefile.in (po/*.po): Redefine as ...
34495 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34496
34497 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34498
34499 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34500
34501 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34502 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34503 (program_name): Remove.
34504 (main): Initialize gettext support.
34505 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34506 Include `<libintl.h>'.
34507 (_): New macro.
34508
34509 * util/mkisofs/eltorito.c: Gettexttize.
34510 * util/mkisofs/joliet.c: Likewise.
34511 * util/mkisofs/mkisofs.c: Likewise.
34512 * util/mkisofs/multi.c: Likewise.
34513 * util/mkisofs/rock.c: Likewise.
34514 * util/mkisofs/tree.c: Likewise.
34515 * util/mkisofs/write.c: Likewise.
34516
34517 * po/POTFILES: Update with new files.
34518
34519 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34520
34521 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34522 * util/mkisofs/iso9660.h: Likewise.
34523 * util/mkisofs/joliet.c: Likewise.
34524 * util/mkisofs/mkisofs.c: Likewise.
34525 * util/mkisofs/mkisofs.h: Likewise.
34526 * util/mkisofs/rock.c: Likewise.
34527 * util/mkisofs/tree.c: Likewise.
34528 * util/mkisofs/write.c: Likewise.
34529
34530 * util/mkisofs/eltorito.c (rcsid): Remove.
34531 * util/mkisofs/hash.c: Likewise.
34532 * util/mkisofs/joliet.c: Likewise.
34533 * util/mkisofs/name.c: Likewise.
34534 * util/mkisofs/rock.c: Likewise.
34535 * util/mkisofs/tree.c: Likewise.
34536 * util/mkisofs/write.c: Likewise.
34537
34538 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34539
34540 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34541 instead of static allocation.
34542 * util/mkisofs/match.h: Likewise.
34543
34544 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34545
34546 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34547 and `util/grub.d/10_linux.in'.
34548 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34549 translatable Shell files.
34550
34551 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34552
34553 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34554
34555 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34556
34557 * INSTALL: Document Automake is needed for bootstrap.
34558 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34559 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34560 Add gettext initialization.
34561 (kfreebsd_entry): Make menuentry output translatable.
34562
34563 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34564
34565 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34566 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34567 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34568 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34569 (LINGUAS): Auto-generate using `po/LINGUAS'.
34570 * po/LINGUAS: New file.
34571
34572 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34573
34574 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34575 other things).
34576 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34577 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34578 bindtextdomain() calls for gettext initialization.
34579
34580 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34581
34582 * gnulib/progname.c: New file (imported from Gnulib).
34583 * gnulib/progname.h: Likewise.
34584 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34585 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34586 (usage): Replace `progname' with `program_name'.
34587 (main): Use set_program_name() for program name initialization.
34588
34589 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34590
34591 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34592 from here ...
34593 * Makefile.in (CPPFLAGS): ... to here.
34594
34595 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34596
34597 * aclocal.m4: Move from here ...
34598 * acinclude.m4: ... to here.
34599 * autogen.sh: Add call to `aclocal'.
34600 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34601
34602 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34603
34604 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34605 (LINGUAS): New variable.
34606 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34607 (install-local): Install MO files.
34608 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34609 * include/grub/i18n.h: New file.
34610 * po/POTFILES: New file.
34611 * po/ca.po: New file.
34612 * util/grub.d/10_linux.in (bindir): New variable.
34613 Add gettext initialization.
34614 (linux_entry): Make menuentry output translatable.
34615 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34616 (usage): Make --help output translatable.
34617 (main): Initialize gettext.
34618
34619 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34620
34621 * import_gcry.py: New file (written by Vladimir with minor
34622 adjustments).
34623 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34624 ciphers.
34625 * INSTALL: Document that Python is required for bootstrap.
34626
34627 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34628
34629 Import ciphers from libgcrypt 1.4.4.
34630
34631 * lib/libgcrypt/cipher/ChangeLog
34632 * lib/libgcrypt/cipher/ac.c
34633 * lib/libgcrypt/cipher/arcfour.c
34634 * lib/libgcrypt/cipher/bithelp.h
34635 * lib/libgcrypt/cipher/blowfish.c
34636 * lib/libgcrypt/cipher/camellia-glue.c
34637 * lib/libgcrypt/cipher/camellia.c
34638 * lib/libgcrypt/cipher/camellia.h
34639 * lib/libgcrypt/cipher/cast5.c
34640 * lib/libgcrypt/cipher/cipher.c
34641 * lib/libgcrypt/cipher/crc.c
34642 * lib/libgcrypt/cipher/des.c
34643 * lib/libgcrypt/cipher/dsa.c
34644 * lib/libgcrypt/cipher/ecc.c
34645 * lib/libgcrypt/cipher/elgamal.c
34646 * lib/libgcrypt/cipher/hash-common.c
34647 * lib/libgcrypt/cipher/hash-common.h
34648 * lib/libgcrypt/cipher/hmac-tests.c
34649 * lib/libgcrypt/cipher/md.c
34650 * lib/libgcrypt/cipher/md4.c
34651 * lib/libgcrypt/cipher/md5.c
34652 * lib/libgcrypt/cipher/primegen.c
34653 * lib/libgcrypt/cipher/pubkey.c
34654 * lib/libgcrypt/cipher/rfc2268.c
34655 * lib/libgcrypt/cipher/rijndael-tables.h
34656 * lib/libgcrypt/cipher/rijndael.c
34657 * lib/libgcrypt/cipher/rmd.h
34658 * lib/libgcrypt/cipher/rmd160.c
34659 * lib/libgcrypt/cipher/rsa.c
34660 * lib/libgcrypt/cipher/seed.c
34661 * lib/libgcrypt/cipher/serpent.c
34662 * lib/libgcrypt/cipher/sha1.c
34663 * lib/libgcrypt/cipher/sha256.c
34664 * lib/libgcrypt/cipher/sha512.c
34665 * lib/libgcrypt/cipher/tiger.c
34666 * lib/libgcrypt/cipher/twofish.c
34667 * lib/libgcrypt/cipher/whirlpool.c
34668
34669 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34670
34671 Fix build for systems without error().
34672
34673 * gnulib/error.c: New file (imported from Gnulib).
34674 * gnulib/error.h: Likewise.
34675 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34676 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34677 (this variable is now used by error()).
34678
34679 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34680
34681 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34682 instead of relying that char is signed.
34683
34684 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34685
34686 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34687 blocksize different from specified.
34688 (grub_pxefs_read): Likewise.
34689
34690 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34691
34692 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34693
34694 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34695 (grub_ata_readwrite): Likewise. Update 2 format strings.
34696 (grub_atapi_read): Likewise.
34697
34698 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34699 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34700 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34701 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34702 (ata_mod_LDFLAGS): Move from here ...
34703 * conf/i386.rmk: ... to here ...
34704 * conf/x86_64-efi.rmk: ... and here.
34705 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34706 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34707
34708 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34709
34710 Relicense multiboot.h, with RMS' blessing.
34711
34712 * include/multiboot.h: Change to X11 license.
34713
34714 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34715
34716 Support --version in grub-mkisofs.
34717
34718 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34719 (OPTION_VERSION): New macro.
34720 (ld_options): Recognize --version.
34721 (usage): Move `program_name' from here ...
34722 (program_name): ... to here. Add `static' qualifier.
34723 (main): Recognize `OPTION_VERSION'.
34724
34725 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34726
34727 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34728 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34729
34730 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34731
34732 Fix help2man generation for mkisofs.
34733
34734 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34735 (usage): Send output to stdout (rather than stderr).
34736
34737 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34738
34739 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34740 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34741 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34742 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34743 (bin_SCRIPTS): Add `grub-mkfloppy'.
34744 (grub_mkfloppy_SOURCES): New variable.
34745
34746 * util/grub-mkrescue.in: New file.
34747 * util/i386/pc/grub-mkfloppy.in: New file.
34748
34749 * util/i386/coreboot/grub-mkrescue.in: Remove.
34750 * util/i386/pc/grub-mkrescue.in: Remove.
34751
34752 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34753
34754 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34755 from here ...
34756 * include/multiboot.h (struct multiboot_header): ... to here. Update
34757 all users.
34758 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34759 from here ...
34760 * include/multiboot.h (struct multiboot_info): ... to here. Update
34761 all users.
34762 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34763 from here ...
34764 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34765 Update all users.
34766 * include/grub/multiboot.h (struct grub_mod_list): Move
34767 from here ...
34768 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34769 Update all users.
34770
34771 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34772
34773 * include/multiboot2.h (multiboot_word): Rename from this ...
34774 (multiboot2_word): ... to this. Update all users.
34775 (multiboot_header): Rename from this ...
34776 (multiboot2_header): ... to this. Update all users.
34777 (multiboot_tag_header): Rename from this ...
34778 (multiboot2_tag_header): ... to this. Update all users.
34779 (multiboot_tag_start): Rename from this ...
34780 (multiboot2_tag_start): ... to this. Update all users.
34781 (multiboot_tag_name): Rename from this ...
34782 (multiboot2_tag_name): ... to this. Update all users.
34783 (multiboot_tag_module): Rename from this ...
34784 (multiboot2_tag_module): ... to this. Update all users.
34785 (multiboot_tag_memory): Rename from this ...
34786 (multiboot2_tag_memory): ... to this. Update all users.
34787 (multiboot_tag_unused): Rename from this ...
34788 (multiboot2_tag_unused): ... to this. Update all users.
34789 (multiboot_tag_end): Rename from this ...
34790 (multiboot2_tag_end): ... to this. Update all users.
34791
34792 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34793
34794 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34795 this platform we should support Multiboot1 first.
34796
34797 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34798 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34799 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34800
34801 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34802
34803 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34804 of write calls (converting them to fwrite() if they aren't already).
34805 (get_torito_desc): Likewise.
34806 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34807
34808 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34809
34810 * util/i386/pc/grub-install.in: Move from here ...
34811 * util/grub-install.in: ... to here. Update all users.
34812
34813 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34814
34815 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34816
34817 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34818
34819 Support for El Torito without floppy emulation.
34820
34821 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34822 (init_boot_catalog): Improve error handling.
34823 (get_torito_desc): Don't use floppy emulation unless requested by
34824 user. Patch boot information table when requested via
34825 `-boot-info-table'.
34826 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34827 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34828 (use_boot_info_table): New variables.
34829 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34830 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34831 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34832 `--eltorito-emul-floppy'.
34833 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34834 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34835 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34836 (use_boot_info_table, get_731): New prototypes.
34837 * util/mkisofs/write.c (get_731): New function.
34838
34839 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34840
34841 Fix the generation of the man page.
34842
34843 * util/pc/i386/grub-install.in: Source
34844 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34845
34846 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34847
34848 Large file support for grub-mkisofs.
34849
34850 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34851 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34852 (session_start): Upgrade type to `uint64_t'. Update all users.
34853 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34854 (struct directory_entry): Upgrade type of `starting_block' and
34855 `size' to `uint64_t'. Update all users.
34856 (struct deferred): Remove unused structure.
34857 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34858 Update all users.
34859 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34860 file is larger than `UINT32_MAX'.
34861 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34862 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34863 return value.
34864 (struct deferred_write): Upgrade type of `extent' and `size' to
34865 `uint64_t'. Update all users.
34866 (last_extent_written): Upgrade type to `uint64_t'. Update all
34867 users.
34868 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34869 Update all users. Upgrade type of `remain' to `int64_t' and
34870 `use' to `size_t'. Use error() to handle fread() errors.
34871 (write_files): Rely on write_one_file() rather than calling
34872 xfwrite() directly.
34873
34874 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34875
34876 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34877
34878 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34879
34880 * util/mkisofs/fnmatch.c: Remove.
34881 * util/mkisofs/getopt1.c: Likewise.
34882 * util/mkisofs/getopt.c: Likewise.
34883 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34884 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34885 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34886 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34887 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34888
34889 * configure.ac: Detect `mingw32msvc' host_os.
34890 Check for lstat(), getuid() and getgid().
34891
34892 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34893 instances of `u_char' with `uint8_t'.
34894
34895 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34896 [!HAVE_GETUID] (getuid): New function (stub).
34897 [!HAVE_GETGID] (getgid): Likewise.
34898 [!HAVE_LSTAT] (lstat): Likewise.
34899 [!S_IROTH] (S_IROTH): New macro (dummy).
34900 [!S_IRGRP] (S_IRGRP): Likewise.
34901
34902 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34903
34904 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34905 conditional expression).
34906
34907 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34908
34909 Import from Gnulib.
34910
34911 * gnulib/fnmatch.c: New file.
34912 * gnulib/fnmatch.h: Likewise.
34913 * gnulib/fnmatch_loop.c: Likewise.
34914 * gnulib/getopt.c: Likewise.
34915 * gnulib/getopt.h: Likewise.
34916 * gnulib/getopt1.c: Likewise.
34917 * gnulib/getopt_int.h: Likewise.
34918 * gnulib/gettext.h: Likewise.
34919
34920 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34921
34922 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34923 * normal/handler.c (read_handler_list): Likewise.
34924
34925 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34926
34927 Misc cleanup.
34928
34929 * kern/command.c (grub_register_command_prio): Use
34930 grub_zalloc() instead of explicitly zeroing data.
34931 * kern/list.c: Include `<grub/mm.h>'.
34932 (grub_named_list_find): Replace `0' with `NULL'.
34933 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34934 (fs_module_list): Change type to `grub_named_list_t'. Update all
34935 users.
34936 * normal/dyncmd.c (read_command_list): Add space between function
34937 call and parenthesis.
34938 * normal/handler.c (read_handler_list): Likewise.
34939
34940 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34941
34942 * normal/auth.c (punishment_delay): Moved from here ...
34943 (grub_auth_strcmp): ... to here (inside function).
34944
34945 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34946
34947 * include/grub/list.h (struct grub_named_list): Remove `const'
34948 qualifier from `name'.
34949 (struct grub_prio_list): Likewise.
34950
34951 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34952
34953 * normal/auth.c: Include `<grub/time.h>'.
34954 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34955
34956 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34957
34958 * normal/auth.c (punishment_delay): New variable.
34959 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34960 (grub_auth_check_authentication): Punish failed login attempts with
34961 an incremental (2^N) delay.
34962
34963 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34964
34965 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34966 path with $(srcdir).
34967
34968 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34969
34970 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34971
34972 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34973
34974 * util/i386/coreboot/grub-mkrescue.in: New file.
34975 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34976 variables.
34977
34978 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34979 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34980 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34981 requirements.
34982 * util/mkisofs/defaults.h: New file.
34983 * util/mkisofs/eltorito.c: Likewise.
34984 * util/mkisofs/exclude.h: Likewise.
34985 * util/mkisofs/fnmatch.c: Likewise.
34986 * util/mkisofs/getopt.c: Likewise.
34987 * util/mkisofs/getopt1.c: Likewise.
34988 * util/mkisofs/hash.c: Likewise.
34989 * util/mkisofs/include/fctldefs.h: Likewise.
34990 * util/mkisofs/include/mconfig.h: Likewise.
34991 * util/mkisofs/include/prototyp.h: Likewise.
34992 * util/mkisofs/include/statdefs.h: Likewise.
34993 * util/mkisofs/iso9660.h: Likewise.
34994 * util/mkisofs/joliet.c: Likewise.
34995 * util/mkisofs/match.c: Likewise.
34996 * util/mkisofs/match.h: Likewise.
34997 * util/mkisofs/mkisofs.c: Likewise.
34998 * util/mkisofs/mkisofs.h: Likewise.
34999 * util/mkisofs/multi.c: Likewise.
35000 * util/mkisofs/name.c: Likewise.
35001 * util/mkisofs/rock.c: Likewise.
35002 * util/mkisofs/tree.c: Likewise.
35003 * util/mkisofs/write.c: Likewise.
35004
35005 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
35006
35007 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35008 being insecure.
35009
35010 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35011
35012 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35013 `grub-mkimage' (and use $0 when possible).
35014
35015 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35016
35017 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35018 error message for excessively large memory map.
35019
35020 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35021
35022 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35023 executable bit.
35024
35025 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35026
35027 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35028 message for coreboot users.
35029
35030 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35031
35032 Fix build with GNU gold.
35033
35034 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35035 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35036 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35037 link addresses.
35038 * aclocal.m4: Likewise.
35039
35040 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
35041
35042 * configure.ac (AC_PREREQ): Bump to 2.59d.
35043 * INSTALL: Make it more clear when Autoconf and Ruby are
35044 needed and when to run `./autogen.sh'.
35045
35046 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35047
35048 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35049 OSes.
35050
35051 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35052
35053 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35054
35055 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35056
35057 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35058 giving it to GNU Mach.
35059
35060 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35061
35062 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35063 GNU partition number to get internal GRUB partition number.
35064
35065 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35066
35067 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35068 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35069
35070 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35071
35072 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35073 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35074 case.
35075
35076 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35077
35078 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35079
35080 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35081
35082 Fix build problem.
35083
35084 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35085 `-isystem=$(srcdir)/include'.
35086
35087 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35088
35089 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35090 checked (grub-install doesn't currently rely on it).
35091
35092 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35093
35094 Revert SVN r2660.
35095
35096 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35097 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35098 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35099 * conf/i386-ieee1275.rmk: Likewise.
35100 * conf/i386-pc.rmk: Likewise.
35101 * conf/powerpc-ieee1275.rmk: Likewise.
35102 * conf/sparc64-ieee1275.rmk: Likewise.
35103 * conf/x86_64-efi.rmk: Likewise.
35104
35105 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35106
35107 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35108
35109 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35110
35111 * include/grub/misc.h: Stop checking for APPLE_CC.
35112
35113 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35114
35115 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35116 doesn't cause an infinite call loop.
35117
35118 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35119
35120 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35121 strings.
35122
35123 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35124
35125 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35126 variable.
35127 * Makefile.in: Likewise.
35128
35129 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35132
35133 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35134
35135 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35136
35137 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35138
35139 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35140
35141 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35142
35143 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35144 from here ...
35145 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35146
35147 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35148
35149 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35150 in $(MAKEINFO) invocation. This makes it clear in output that
35151 errors are being ignored.
35152
35153 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35154
35155 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35156 from here ...
35157 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35158 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35159 * conf/i386-ieee1275.rmk: Likewise.
35160 * conf/i386-pc.rmk: Likewise.
35161 * conf/powerpc-ieee1275.rmk: Likewise.
35162 * conf/sparc64-ieee1275.rmk: Likewise.
35163 * conf/x86_64-efi.rmk: Likewise.
35164
35165 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35166
35167 * util/grub-editenv.c (main): If only a command is given, use
35168 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35169 (usage): FILENAME is now optional and has a default.
35170
35171 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35172
35173 Improve grub-mkconfig performance when there are several menu
35174 entries on a single filesystem.
35175
35176 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35177 prepare_grub_to_access_device.
35178 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35179 * util/grub.d/30_os-prober.in: Likewise.
35180
35181 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35182
35183 * util/grub.d/10_freebsd.in: Remove.
35184 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35185 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35186
35187 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35188
35189 * docs/grub.cfg: Fix example usage of *BSD loaders.
35190
35191 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35192
35193 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35194 grub_util_error() call.
35195
35196 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35197
35198 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35199 `reserved_first_sector' member.
35200 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35201 `reserved_first_sector' to 1.
35202 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35203 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35204 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35205 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35206 filesystems which begin at first sector.
35207 (options): New option --skip-fs-probe.
35208 (main): Handle --skip-fs-probe and pass it to setup().
35209
35210 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35211
35212 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35213 (memset): Fix function prototype.
35214
35215 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35216 2009-10-25 Vasily Averin <vvs@parallels.com>
35217
35218 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35219 `dirent.direntlen == 0'.
35220
35221 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35222
35223 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35224 `cpio'.
35225 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35226
35227 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35228
35229 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35230 `__trampoline_setup' and `__ucmpdi2'.
35231 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35232 that libgcc provides.
35233
35234 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35235
35236 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35237 * include/grub/sparc64/libgcc.h (memset): Likewise.
35238 * include/grub/misc.h (memset, memcmp): New function prototypes.
35239
35240 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35241
35242 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35243 `cpio'.
35244 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35245
35246 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35247
35248 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35249 * docs/grub.cfg: Compensate for recent change in multiboot
35250 loader (since 2009-08-14 it won't pass filename to payload).
35251 * util/grub.d/10_hurd.in: Likewise.
35252
35253 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35254
35255 * config.guess: Update to latest version from config git
35256 repository.
35257 * config.sub: Likewise.
35258
35259 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35260
35261 Fix build on sparc64.
35262
35263 * configure.ac: Perform checks for libgcc symbols before
35264 adding `-nostdlib' to LDFLAGS.
35265
35266 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35267
35268 Let user specify OpenBSD root device.
35269
35270 * loader/i386/bsd.c (openbsd_root): New variable.
35271 (openbsd_opts): New option 'root'.
35272 (OPENBSD_ROOT_ARG): New macro.
35273 (grub_openbsd_boot): Use 'openbsd_root'.
35274 (grub_cmd_openbsd): Fill 'openbsd_root'.
35275
35276 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35277
35278 * NEWS: Misc adjustments.
35279
35280 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35281
35282 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35283
35284 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35285
35286 * configure.ac: Bump version to 1.97.
35287
35288 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35289
35290 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35291 -mno-3dnow on x86 architectures. Some toolchains enable these
35292 features by default, but they rely on registers that aren't enabled
35293 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35294
35295 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35296
35297 Make entry text a bit more readable.
35298
35299 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35300
35301 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35302
35303 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35304
35305 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35306
35307 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35308 operations.
35309
35310 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35311
35312 * configure.ac: Add missing dollar.
35313
35314 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35315
35316 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35317
35318 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35319 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35320 exports.
35321 * include/grub/sparc64/libgcc.h: Likewise. Use
35322 preprocessor conditionals.
35323
35324 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35325
35326 * conf/common.rmk (grub-dumpbios): Remove rule.
35327 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35328 * util/grub-dumpbios.in: Remove file.
35329
35330 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35331
35332 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35333 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35334
35335 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35336 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35337 users.
35338
35339 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35340 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35341 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35342 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35343 users.
35344
35345 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35346
35347 * term/tparm.c: Switch to GPLv3.
35348
35349 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35350
35351 * include/grub/i386/cpuid.h: Add header protection.
35352
35353 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35354
35355 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35356
35357 * include/grub/i386/cpuid.h: New file.
35358 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35359 (has_longmode): Rename to ...
35360 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35361 `static' attribute.
35362 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35363 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35364 on a CPU that doesn't implement AMD64 instruction set.
35365
35366 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35367
35368 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35369 that version.texi is rebuilt on version number changes.
35370
35371 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35372
35373 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35374 Fixes bug #27602.
35375
35376 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35377
35378 * util/i386/pc/grub-install.in: Source
35379 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35380 that the --grub-probe option will work.
35381 * util/sparc64/ieee1275/grub-install.in: Likewise.
35382
35383 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35384
35385 * configure.ac: Bump version to 1.97~beta4.
35386
35387 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35388
35389 Resync grub-mkdevicemap in x86_64-efi.
35390
35391 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35392 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35393 `util/devicemap.c'.
35394
35395 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35396
35397 * util/grub-editenv.c (create_envblk_file): Write new block with a
35398 .new suffix and then rename it into place, to ensure atomic
35399 creation.
35400
35401 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35402
35403 Do not automatically install headers.
35404
35405 * Makefile.in (include_DATA): Remove. Update all users.
35406
35407 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35408
35409 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35410 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35411
35412 * util/osdetect.lua: Remove.
35413 * script/lua/lauxlib.c: Likewise.
35414 * script/lua/ldebug.c: Likewise.
35415 * script/lua/grub_main.c: Likewise.
35416 * script/lua/lauxlib.h: Likewise.
35417 * script/lua/ldebug.h: Likewise.
35418 * script/lua/ltablib.c: Likewise.
35419 * script/lua/liolib.c: Likewise.
35420 * script/lua/lstrlib.c: Likewise.
35421 * script/lua/lualib.h: Likewise.
35422 * script/lua/ldo.c: Likewise.
35423 * script/lua/ldump.c: Likewise.
35424 * script/lua/ldo.h: Likewise.
35425 * script/lua/loslib.c: Likewise.
35426 * script/lua/lundump.c: Likewise.
35427 * script/lua/grub_lib.c: Likewise.
35428 * script/lua/ldblib.c: Likewise.
35429 * script/lua/lundump.h: Likewise.
35430 * script/lua/lmem.c: Likewise.
35431 * script/lua/grub_lib.h: Likewise.
35432 * script/lua/lmathlib.c: Likewise.
35433 * script/lua/lstate.c: Likewise.
35434 * script/lua/ltm.c: Likewise.
35435 * script/lua/lvm.c: Likewise.
35436 * script/lua/lmem.h: Likewise.
35437 * script/lua/lstate.h: Likewise.
35438 * script/lua/ltm.h: Likewise.
35439 * script/lua/ltable.c: Likewise.
35440 * script/lua/lvm.h: Likewise.
35441 * script/lua/llex.c: Likewise.
35442 * script/lua/lgc.c: Likewise.
35443 * script/lua/grub_lua.h: Likewise.
35444 * script/lua/loadlib.c: Likewise.
35445 * script/lua/lfunc.c: Likewise.
35446 * script/lua/lopcodes.c: Likewise.
35447 * script/lua/lparser.c: Likewise.
35448 * script/lua/ltable.h: Likewise.
35449 * script/lua/llex.h: Likewise.
35450 * script/lua/lgc.h: Likewise.
35451 * script/lua/lfunc.h: Likewise.
35452 * script/lua/lbaselib.c: Likewise.
35453 * script/lua/lopcodes.h: Likewise.
35454 * script/lua/lparser.h: Likewise.
35455 * script/lua/lzio.c: Likewise.
35456 * script/lua/linit.c: Likewise.
35457 * script/lua/lobject.c: Likewise.
35458 * script/lua/llimits.h: Likewise.
35459 * script/lua/lstring.c: Likewise.
35460 * script/lua/lzio.h: Likewise.
35461 * script/lua/lapi.c: Likewise.
35462 * script/lua/lcode.c: Likewise.
35463 * script/lua/lua.h: Likewise.
35464 * script/lua/lobject.h: Likewise.
35465 * script/lua/lstring.h: Likewise.
35466 * script/lua/lapi.h: Likewise.
35467 * script/lua/lcode.h: Likewise.
35468 * script/lua/luaconf.h: Likewise.
35469
35470 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35471
35472 * docs/grub.texi (Command-line and menu entry commands): Document
35473 date and echo commands.
35474
35475 2009-09-24 Pavel Roskin <proski@gnu.org>
35476
35477 * include/grub/kernel.h (struct grub_module_header): Remove
35478 `grub_module_header_types'. Make `type' unsigned. Make `size'
35479 32-bit on all platforms.
35480 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35481 8-bit field. Use grub_host_to_target32() for `size'.
35482 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35483 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35484 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35485
35486 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35487
35488 Fix "lost keypress" bug in at_keyboard.
35489
35490 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35491 Checks for readyness of input buffer (without flushing it).
35492 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35493 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35494
35495 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35496
35497 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35498 size check within GRUB_MACHINE_PCBIOS section.
35499
35500 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35501
35502 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35503 return value.
35504 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35505 KEYBOARD_ISREADY check.
35506 (grub_at_keyboard_checkkey): Rename to ...
35507 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35508 Remove gratuitous cast.
35509
35510 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35511
35512 * configure.ac: Call AC_PROG_MKDIR_P.
35513 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35514 version.texi in $(builddir) rather than $(srcdir).
35515 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35516 to makeinfo's @include search path.
35517
35518 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35519
35520 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35521
35522 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35523
35524 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35525 for `*.dpkg-new'.
35526
35527 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35528
35529 Build info documentation. Some code borrowed from Automake.
35530
35531 * configure.ac: Check for makeinfo.
35532 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35533 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35534 docs/version.texi.
35535 (MOSTLYCLEANFILES): Add vti.tmp.
35536 (docs/version.texi, docs/stamp-vti): Update automatically.
35537 (docs/grub.info): Build info documentation. Use --force and ignore
35538 errors for now.
35539 (all-local): Add $(INFOS).
35540 (install-local): Install info files.
35541 (uninstall): Uninstall info files.
35542 * docs/version.texi: Remove from revision control. This file is
35543 automatically generated on build now.
35544 * gendistlist.sh: Add `*.info'.
35545
35546 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35547
35548 * kern/term.c: Fix indentation.
35549
35550 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35551
35552 * util/hostdisk.c: Fix a comment.
35553
35554 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35555
35556 Fix regression introduced in r2539.
35557
35558 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35559 to 0xA1.
35560
35561 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35562
35563 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35564 os-prober. Under normal operation, it does not print anything to
35565 stderr; if it does, we need to debug it, and throwing away stderr
35566 makes that excessively difficult.
35567
35568 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35569
35570 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35571
35572 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35573
35574 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35575 AC_LANG_PROGRAM from autoconf.
35576 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35577 prototypes (fixes warning).
35578
35579 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35580 `--disable-werror' was used.
35581
35582 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35583
35584 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35585 uninitialized `lastaddr'.
35586
35587 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35588
35589 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35590
35591 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35592
35593 * commands/test.c (get_fileinfo): Return immediately if
35594 grub_fs_probe fails.
35595
35596 2009-09-14 José Martínez <xosemp@gmail.com>
35597
35598 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35599
35600 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35601
35602 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35603 output.
35604
35605 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35606
35607 * configure.ac: Remove --enable-grub-pe2elf. Only build
35608 grub-pe2elf when needed by the build system itself.
35609 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35610
35611 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35612
35613 * configure.ac: Bump version to 1.97~beta3.
35614 * docs/version.texi: Likewise.
35615
35616 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35617
35618 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35619 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35620 from here ...
35621 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35622 (grub_linux_setup_video): ... to here (with some adjustments).
35623
35624 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35625
35626 Fix memory corruption issue (spotted by Colin Watson).
35627
35628 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35629 causing returned size to be stored in an incorrect memory location.
35630 Fix use of uninitialized value when storing the returned size.
35631
35632 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35633
35634 Change clean rules to properly remove files
35635
35636 * genmk.rb: add new clean rules
35637 * Makefile.in (clean): add the new targets
35638 (mostlyclean): likewise
35639
35640 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35641
35642 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35643 to grub_uint64_t.
35644 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35645 non-resident files.
35646
35647 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35648
35649 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35650 part of bug #27349.
35651
35652 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35653
35654 * util/grub-mkconfig.in: Make the created config mode 400 and
35655 print a warning if it fails.
35656
35657 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35658
35659 * util/grub.d/40_custom.in: Ask user to type custom entries below
35660 comment, rather than below 'exec tail' line.
35661
35662 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35663
35664 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35665 visible in grub.cfg.
35666
35667 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35668
35669 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35670 file.
35671
35672 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35673
35674 * docs/grub.cfg: Add an example menu entry for memtest86+.
35675
35676 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35677
35678 * config.guess: Update to latest version from config git.
35679 * config.sub: Likewise.
35680
35681 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35682
35683 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35684 unknown-command case. Fixes bug #27320.
35685
35686 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35687
35688 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35689 `help' if the command exists.
35690
35691 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35692
35693 * INSTALL: Require GCC 4.1.3 or later.
35694
35695 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35696
35697 * Makefile.in (RMKFILES): add i386-qemu.rmk
35698 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35699 $(srcdir)/stamp-h.in
35700
35701 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35702
35703 * util/grub-probe.c (probe): Comment out buggy codepath, which
35704 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35705 should be re-enabled after 1.97.
35706
35707 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35708
35709 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35710 find searches for.
35711
35712 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35713
35714 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35715 unnecessary calls to grub_error.
35716
35717 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35718
35719 * NEWS: Mention `keystatus' and Unicode fonts.
35720
35721 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35722
35723 * configure.ac: Bump version to 1.97~beta2.
35724 * docs/version.texi: Likewise.
35725
35726 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35727
35728 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35729 containing unwind information in some cases where it previously did
35730 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35731 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35732 discussion.
35733
35734 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35735
35736 Embedding loadenv module into grub-emu
35737
35738 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35739 commands/loadenv.c
35740 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35741 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35742 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35744 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35746
35747 2009-09-03 Magnus Granberg <zorry@ume.nu>
35748
35749 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35750 include -fPIE in the default specs.
35751 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35752 to TARGET_CFLAGS.
35753
35754 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35755
35756 * INSTALL: Note that GNU Bison 2.3 or later is required.
35757
35758 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35759
35760 * kern/i386/pc/startup.S: Fix typo.
35761
35762 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35763
35764 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35765 according to GCS.
35766
35767 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35768
35769 * docs/grub.texi (Naming convention): Describe one-based partition
35770 numbering.
35771 (Device syntax): Likewise.
35772 (File name syntax): Likewise.
35773 (Block list syntax): Likewise.
35774 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35775 menu.lst.
35776 (File name syntax): Likewise.
35777 (Command-line and menu entry commands): Document acpi, blocklist,
35778 crc, export, insmod, keystatus, ls, set, and unset commands.
35779
35780 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35781
35782 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35783 to avoid implying that only one of --shift, --ctrl, or --alt may be
35784 used.
35785
35786 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35787
35788 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35789 rather than comparing against S_IFREG, which will almost never work.
35790
35791 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35792
35793 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35794 (write_blocklists): Likewise.
35795
35796 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35797
35798 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35799 argument to grub_printf.
35800
35801 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35802
35803 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35804 non GNU test.
35805
35806 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35807
35808 * kern/file.c (grub_file_read): Spelling fix
35809
35810 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35811
35812 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35813 loading of headers in some cases.
35814
35815 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35816
35817 * configure.ac: Bump version to 1.97~beta1.
35818 * docs/version.texi: Likewise.
35819
35820 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35821
35822 * include/grub/i386/xnu.h: Add license header.
35823 include grub/err.h explicitly.
35824
35825 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35826
35827 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35828 to `ufs' in the vfs.root.mountfrom kernel parameter.
35829
35830 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35831
35832 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35833
35834 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35835 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35836
35837 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35838 `ARRAY_SIZE' macro.
35839
35840 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35841
35842 * kern/file.c (grub_file_read): Check offset.
35843 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35844 * fs/jfs.c (grub_jfs_read_file): Likewise.
35845 * fs/ntfs.c (grub_ntfs_read): Likewise.
35846 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35847 * fs/minix.c (grub_minix_read_file): Correct offset check.
35848 * fs/ufs.c (grub_ufs_read_file): Likewise.
35849
35850 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35851
35852 * term/i386/pc/console.c (bios_data_area): Cast
35853 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35854
35855 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35856
35857 1-bit optimised blitters.
35858
35859 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35860 prototype.
35861 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35862 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35863 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35864 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35865 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35866 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35867 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35868 function.
35869 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35870 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35871 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35872 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35873 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35874 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35875 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35876 when possible.
35877 * video/video.c (grub_video_get_blit_format): Return
35878 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35879
35880 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35881
35882 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35883 the first argument to grub_printf.
35884
35885 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35886 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35887
35888 Add `getkeystatus' terminal method. Add a new `keystatus' command
35889 to query it.
35890
35891 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35892 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35893 modifier key bitmasks.
35894 (struct grub_term_input): Add `getkeystatus' member.
35895 (grub_getkeystatus): Add prototype.
35896 * kern/term.c (grub_getkeystatus): New function.
35897
35898 * include/grub/i386/pc/memory.h
35899 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35900 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35901 Data Area layout.
35902 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35903 (grub_console_term_input): Set `getkeystatus' member.
35904 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35905 constants.
35906 (grub_usb_keyboard_getreport): Likewise.
35907 (grub_usb_keyboard_checkkey): Likewise.
35908 (grub_usb_keyboard_getkeystatus): New function.
35909 (grub_usb_keyboard_term): Set `getkeystatus' member.
35910
35911 * commands/keystatus.c: New file.
35912 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35913 (keystatus_mod_SOURCES): New variable.
35914 (keystatus_mod_CFLAGS): Likewise.
35915 (keystatus_mod_LDFLAGS): Likewise.
35916 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35917 commands/keystatus.c.
35918 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35919 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35920 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35922 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35923 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35924
35925 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35926
35927 Split befs.mod and afs.mod into *_be.mod and *.mod
35928
35929 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35930 (grub_fstest_SOURCES): Likewise.
35931 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35932 (afs_be_mod_SOURCES): New variable.
35933 (afs_be_mod_CFLAGS): Likewise.
35934 (afs_be_mod_LDFLAGS): Likewise.
35935 (befs_be_mod_SOURCES): Likewise.
35936 (befs_be_mod_CFLAGS): Likewise.
35937 (befs_be_mod_LDFLAGS): Likewise.
35938 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35939 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35941 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35942 (grub_emu_SOURCES): Likewise.
35943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35944 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35945 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35946 * fs/afs_be.c: New file.
35947 * fs/befs_be.c: New file.
35948 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35949 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35950 (U16): Replaced with ...
35951 (grub_afs_to_cpu16): ...this. All users updated.
35952 (U32): Replaced with ...
35953 (grub_afs_to_cpu32): ...this. All users updated.
35954 (U64): Replaced with ...
35955 (grub_afs_to_cpu64): ...this. All users updated.
35956 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35957 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35958 (grub_afs_validate_sblock): Check only one endianness.
35959 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35960 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35961 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35962 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35963 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35964 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35965 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35966 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35967
35968 2009-08-26 Bean <bean123ch@gmail.com>
35969
35970 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35971 64-bit number.
35972 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35973 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35974 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35975
35976 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35977
35978 NetBSD memory map support.
35979
35980 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35981 (grub_netbsd_btinfo_mmap_header): New structure.
35982 (grub_netbsd_btinfo_mmap_entry): Likewise.
35983 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35984
35985 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35986
35987 Enable bsd.mod on coreboot.
35988
35989 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35990 (bsd_mod_SOURCES): New variable.
35991 (bsd_mod_CFLAGS): Likewise.
35992 (bsd_mod_LDFLAGS): Likewise.
35993 (bsd_mod_ASFLAGS): Likewise.
35994 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35995 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35996
35997 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35998
35999 Cleanup NetBSD root support.
36000
36001 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36002 grub_bsd_get_device.
36003 Fix typo.
36004
36005 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
36006
36007 * util/grub.d/00_header.in: Move check for the video backend of
36008 gfxterm from here ...
36009 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
36010 a suitable video backend.
36011
36012 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36013
36014 Fix breakage in grub-setup.
36015
36016 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36017 "msdos_partition_map".
36018
36019 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36020
36021 Fix breakage in normal/auth.c.
36022
36023 * normal/auth.c (grub_iswordseparator): New function.
36024
36025 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36026
36027 Authentication support.
36028
36029 * commands/password.c: New file.
36030 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36031 (password_mod_SOURCES): New variable.
36032 (password_mod_CFLAGS): Likewise.
36033 (password_mod_LDFLAGS): Likewise.
36034 (normal_mod_SOURCES): Add normal/auth.c.
36035 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36036 normal/auth.c.
36037 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36038 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36039 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36041 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36042 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36043 * include/grub/auth.h: New file.
36044 * include/grub/err.h (grub_err_t): New enum value
36045 GRUB_ERR_ACCESS_DENIED.
36046 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36047 'users'.
36048 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36049 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36050 users updated.
36051 * normal/auth.c: New file.
36052 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36053 (grub_cmdline_run): Don't allow to go to command line without
36054 authentication.
36055 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36056 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36057 menuentry without superuser rights.
36058 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36059 user isn't a superuser.
36060
36061 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36062
36063 Save space by inlining misc.c functions.
36064
36065 * kern/misc.c (grub_iswordseparator): Made static.
36066 * kern/misc.c (grub_strcat): Moved from here ...
36067 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36068 * kern/misc.c (grub_strncat): Moved from here ...
36069 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36070 * kern/misc.c (grub_strcasecmp): Moved from here ...
36071 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36072 * kern/misc.c (grub_strncasecmp): Moved from here ...
36073 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36074 * kern/misc.c (grub_isalpha): Moved from here ...
36075 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36076 * kern/misc.c (grub_isdigit): Moved from here ...
36077 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36078 * kern/misc.c (grub_isgraph): Moved from here ...
36079 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36080 * kern/misc.c (grub_tolower): Moved from here ...
36081 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36082
36083 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36084
36085 * script/sh/function.c (grub_script_function_find): Cut error message
36086 not to flood terminal.
36087 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36088 limit.
36089 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36090
36091 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36092
36093 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36094 `report' grub_uint8_t *.
36095 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36096 Use a 50-millisecond timeout rather than just repeating
36097 grub_usb_keyboard_getreport 50 times.
36098 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36099
36100 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36101
36102 Rename *_partition_map to part_*
36103
36104 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36105 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36106 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36107 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36108 All users updated.
36109 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36110 All users updated.
36111 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36112 * util/grub-probe.c (probe_partmap): Don't transform partition name
36113 to get module name.
36114
36115 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36116
36117 Fix OpenBSD and NetBSD support.
36118
36119 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36120 memory address conflict.
36121 (OPENBSD_MMAP_ACPI): New definition.
36122 (OPENBSD_MMAP_NVS): Likewise.
36123 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36124 and OPENBSD_MMAP_NVS.
36125 Add memory map terminator
36126 Explicit cast when calling grub_unix_real_boot.
36127 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36128
36129 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36130
36131 Let user specify NetBSD root device.
36132
36133 * loader/i386/bsd.c (netbsd_root): New variable.
36134 (netbsd_opts): New option 'root'.
36135 (NETBSD_ROOT_ARG): New macro.
36136 (grub_netbsd_boot): Use 'netbsd_root'.
36137 (grub_bsd_unload): Free 'netbsd_root'.
36138 (grub_cmd_netbsd): Fill 'netbsd_root'.
36139
36140 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36141
36142 Support for 64-bit NetBSD.
36143
36144 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36145 point when booting non-FreeBSD.
36146
36147 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36148
36149 Support --no-smp and --no-acpi for NetBSD.
36150
36151 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36152 (NETBSD_AB_NOACPI): Likewise.
36153 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36154 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36155
36156 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36157
36158 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36159 errors.
36160 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36161 errors. Call grub_error when needed.
36162
36163 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36164
36165 * commands/search.c (search_fs): Try searching without autoload first.
36166 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36167 filesystem module explicitly for faster booting.
36168
36169 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36170
36171 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36172
36173 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36174
36175 * util/grub.d/30_os-prober.in: Disable os-prober if
36176 `GRUB_DISABLE_OS_PROBER' was set to true.
36177
36178 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36179
36180 * partmap/pc.c: Rename to ...
36181 * partmap/msdos.c: ... this. Update all users.
36182 (grub_pc_partition_map): Rename to ...
36183 (grub_msdos_partition_map): ... this. Update all users.
36184
36185 * parttool/pcpart.c: Rename to ...
36186 * parttool/msdospart.c: ... this. Update all users.
36187
36188 * include/grub/pc_partition.h: Rename to ...
36189 * include/grub/msdos_partition.h: ... this. Update all users.
36190 (grub_pc_partition_bsd_entry): Rename to ...
36191 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36192 (grub_pc_partition_disk_label): Rename to ...
36193 (grub_msdos_partition_disk_label): ... this. Update all users.
36194 (grub_pc_partition_entry): Rename to ...
36195 (grub_msdos_partition_entry): ... this. Update all users.
36196 (grub_pc_partition_mbr): Rename to ...
36197 (grub_msdos_partition_mbr): ... this. Update all users.
36198 (grub_pc_partition): Rename to ...
36199 (grub_msdos_partition): ... this. Update all users.
36200 (grub_pc_partition_is_empty): Rename to ...
36201 (grub_msdos_partition_is_empty): ... this. Update all users.
36202 (grub_pc_partition_is_extended): Rename to ...
36203 (grub_msdos_partition_is_extended): ... this. Update all users.
36204 (grub_pc_partition_is_bsd): Rename to ...
36205 (grub_msdos_partition_is_bsd): ... this. Update all users.
36206
36207 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36208 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36209 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36210 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36211 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36212 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36213 (gpt_mod_LDFLAGS): Rename to ...
36214 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36215 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36216 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36217 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36218 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36219 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36220 (part_gpt_mod_LDFLAGS): ... this.
36221 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36222 `pcpart.mod' to `msdospart.mod'.
36223 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36224 to ...
36225 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36226 (msdospart_mod_LDFLAGS): ... this.
36227
36228 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36229
36230 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36231 (openbsd_opts): Likewise.
36232 (netbsd_opts): Likewise.
36233 (freebsd_flags): Added 0 terminator.
36234 (openbsd_flags): Likewise.
36235 (netbsd_flags): Likewise.
36236 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36237 (grub_cmd_freebsd): Transformed into extended command.
36238 (grub_cmd_openbsd): Likewise.
36239 (grub_cmd_netbsd): Likewise.
36240 (cmd_freebsd): Changed type to grub_extcmd_t.
36241 (cmd_openbsd): Likewise.
36242 (cmd_netbsd): Likewise.
36243 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36244 grub_cmd_openbsd as extended commands.
36245 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36246 cmd_netbsd and cmd_openbsd
36247
36248 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36249
36250 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36251
36252 2009-08-21 Pavel Roskin <proski@gnu.org>
36253
36254 * Makefile.in (install-local): When checking if a file is in the
36255 build directory, use "test -e" to detect symlinks.
36256
36257 * Makefile.in (install-local): Remove all files in
36258 $(DESTDIR)$(pkglibdir) before installing new files there.
36259
36260 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36261
36262 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36263 grub-mkelfimage.
36264
36265 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36266
36267 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36268 explicitly specified by the user.
36269
36270 2009-08-18 Pavel Roskin <proski@gnu.org>
36271
36272 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36273 grub_uint8_t pointer for data.
36274 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36275 Likewise.
36276 * video/fb/fbutil.c: Remove unnecessary casts.
36277
36278 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36279
36280 VBE cleanup.
36281
36282 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36283 (grub_vbe_set_video_mode): Save active mode info
36284 only after setting the mode.
36285 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36286 second argument.
36287
36288 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36289
36290 Rename variables for clarity.
36291
36292 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36293 (active_vbe_mode_info): ... this. All users updated.
36294 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36295 All users updated.
36296 (initial_mode): Rename to ...
36297 (initial_vbe_mode): ... this. All users updated.
36298 (mode_in_use): Rename to ..
36299 (vbe_mode_in_use): ... this. All users updated.
36300 (mode_list): Rename to ..
36301 (vbe_mode_list): ... this. All users updated.
36302 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36303 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36304 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36305 'mode_list_size' to 'vbe_mode_list_size'.
36306 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36307 'best_mode_info' to 'best_vbe_mode_info' and
36308 'best_mode' to 'best_vbe_mode'
36309
36310 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36311
36312 Remove duplicate grub_video_fb_get_video_ptr.
36313
36314 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36315 (grub_video_fb_get_video_ptr): ... this.
36316 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36317 * video/fb/fbutil.c: Add comment about addressing.
36318 (get_data_ptr): Rename to ...
36319 (grub_video_fb_get_video_ptr): ... this. All users updated.
36320 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36321
36322 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36323
36324 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36325 grub_dprintf() that was just added.
36326
36327 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36328
36329 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36330 (DEFAULT_VIDEO_MODE): Remove macros.
36331 (grub_linux_boot): Remove assumption that Linux has FB support,
36332 and use "text" as default video mode.
36333
36334 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36335
36336 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36337 grub_dprintf.
36338 * fs/fat.c (grub_fat_read_data): Likewise.
36339
36340 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36341
36342 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36343 payload.
36344 (grub_module): Likewise.
36345
36346 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36347
36348 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36349 mbi->cmdline but free playground.
36350
36351 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36352
36353 Handle group offset on UFS1.
36354
36355 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36356 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36357
36358 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36359
36360 Split ufs.mod into ufs1.mod and ufs2.mod.
36361
36362 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36363 (grub_fstest_SOURCES): Likewise.
36364 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36365 (ufs_mod_SOURCES): Remove.
36366 (ufs_mod_CFLAGS): Likewise.
36367 (ufs_mod_LDFLAGS): Likewise.
36368 (ufs1_mod_SOURCES): New variable.
36369 (ufs1_mod_CFLAGS): Likewise.
36370 (ufs1_mod_LDFLAGS): Likewise.
36371 (ufs2_mod_SOURCES): New variable.
36372 (ufs2_mod_CFLAGS): Likewise.
36373 (ufs2_mod_LDFLAGS): Likewise.
36374 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36375 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36376 Likewise.
36377 (grub_emu_SOURCES): Likewise.
36378 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36379 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36380 (grub_setup_SOURCES): Likewise.
36381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36382 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36383 (grub_setup_SOURCES): Likewise.
36384 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36385 Likewise.
36386 * fs/ufs2.c: New file.
36387 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36388
36389 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36390
36391 Framebuffer split.
36392
36393 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36394 subsystem at the end.
36395 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36396 (video_fb_mod_SOURCES): New variable.
36397 (video_fb_mod_CFLAGS): Likewise.
36398 (video_fb_mod_LDFLAGS): Likewise.
36399 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36400 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36401 * video/i386/pc/vbeblit.c: Moved from here ...
36402 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36403 * video/i386/pc/vbefill.c: Moved from here ...
36404 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36405 * video/i386/pc/vbeutil.c: Moved from here ...
36406 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36407 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36408 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36409 * include/grub/i386/pc/vbefill.h: Moved from here ...
36410 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36411 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36412 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36413 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36414 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36415 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36416 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36417 (grub_video_adapter): Added 'get_info_and_fini'.
36418 (grub_video_get_info_and_fini): New prototype.
36419 (grub_video_set_mode): make modestring const char *.
36420 * loader/i386/linux.c (grub_linux_setup_video): Use
36421 grub_video_get_info_and_fini.
36422 (grub_linux_boot): Move modesetting just before booting.
36423 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36424 grub_video_get_info_and_fini.
36425 * video/i386/pc/vbe.c: Moved framebuffer part ...
36426 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36427 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36428 grub_video_fbstd_colors and grub_video_fb_set_palette.
36429 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36430 grub_video_fb_init.
36431 (grub_video_vbe_fini): Use grub_video_fb_fini.
36432 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36433 render_target and use grub_video_fb_set_active_render_target and
36434 grub_video_fb_set_palette.
36435 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36436 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36437 (grub_video_vbe_adapter): Use framebuffer.
36438 * video/video.c (grub_video_get_info_and_fini): New function.
36439 (grub_video_set_mode): Make modestring const char *.
36440 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36441 values are already initialised.
36442
36443 2009-08-14 Pavel Roskin <proski@gnu.org>
36444
36445 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36446 ABS and APPLE_CC.
36447 * boot/i386/pc/diskboot.S: Likewise.
36448 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36449 sectors allow compilation on MacOSX.
36450 * conf/i386-pc.rmk: Enable unconditional compilation of
36451 lnxboot.img.
36452
36453 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36454
36455 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36456 * util/grub.d/00_header.in: Enter interruptible sleep if
36457 GRUB_HIDDEN_TIMEOUT is set.
36458
36459 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36460
36461 * include/grub/symbol.h: Add the LOCAL macro.
36462 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36463 starting with "L_".
36464
36465 2009-08-13 Pavel Roskin <proski@gnu.org>
36466
36467 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36468 any modern compilers we support.
36469
36470 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36471 Use local labels starting with "L_" so that Apple assembler
36472 knows they are local.
36473
36474 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36475
36476 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36477 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36478 (bsd_kernel_types): ... this enum.
36479
36480 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36481 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36482 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36483
36484 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36485 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36486 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36487 messages.
36488
36489 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36490
36491 * util/grub-dumpdevtree: Moved from here ...
36492 * util/i386/efi/grub-dumpdevtree: ... to here.
36493 (hexify): New function. Converts a string to its hex version.
36494 Generate hex versions of "efi" and "device-properties" by calling
36495 hexify() on the ASCII strings rather than by hardcoding numbers.
36496
36497 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36498
36499 * fs/jfs.c: Update copyright year.
36500
36501 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36502
36503 * util/grub.d/00_header.in: Fix a comment.
36504 * util/grub.d/10_linux.in: Likewise.
36505 * util/grub.d/10_windows.in: Likewise.
36506 * util/grub.d/10_hurd.in: Likewise.
36507
36508 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36509
36510 * util/grub-mkconfig.in: Allow the user to specify the used font
36511 with GRUB_FONT.
36512
36513 2009-08-08 Pavel Roskin <proski@gnu.org>
36514
36515 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36516 available, xfs.mod needs it now.
36517
36518 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36519 the "g" modifier in sed when the intention is to strip something
36520 once. This fixes comparison of kernels with multiple dashes.
36521
36522 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36523 on it. Add missing space before closing bracket. Fix
36524 misleading formatting.
36525
36526 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36527
36528 * docs/grub.texi: Major overhaul. Remove all sections that are
36529 specific to GRUB Legacy, or mostly composed of Legacy-specific
36530 information.
36531
36532 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36533
36534 * docs/version.texi: New file. Provides version information for
36535 grub.texi.
36536
36537 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36538
36539 * docs/grub.texi: Update CVS information to SVN.
36540 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36541
36542 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36543
36544 * util/grub-mkconfig.in: Remove a wrong `fi'.
36545
36546 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36547
36548 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36549 (grub_jfs_uuid): New function.
36550 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36551
36552 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36553
36554 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36555 of it to ...
36556 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36557 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36558
36559 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36560
36561 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36562 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36563 Update all users.
36564
36565 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36566 not just "vmlinu[zx]".
36567 Moved from here ...
36568 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36569 all users.
36570
36571 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36572 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36573 all users.
36574
36575 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36576
36577 * util/grub.d/10_freebsd.in: Use an absolute device path for
36578 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36579
36580 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36581
36582 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36583 handling of multiple abstraction modules.
36584
36585 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36586
36587 Fix a bug resulting in black screen when loading Linux using a
36588 packed video mode.
36589
36590 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36591 function.
36592
36593 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36594 (grub_vbe_bios_getset_dac_palette_width): New function.
36595 (grub_vbe_bios_get_dac_palette_width)
36596 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36597 grub_vbe_bios_getset_dac_palette_width()).
36598
36599 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36600 check for return status.
36601 (grub_vbe_get_video_mode_info): When getting information for a packed
36602 mode (<= 8 bpp), obtain DAC palette width using
36603 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36604 {red,green,blue}_mark_size.
36605
36606 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36607
36608 * commands/search.c (options): Fix help output to match actual code.
36609
36610 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36611
36612 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36613 of homegrown code.
36614
36615 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36616
36617 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36618 on XFS or ReiserFS.
36619
36620 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36621
36622 Support Apple partition map with sector size different from 512 bytes.
36623
36624 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36625 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36626 and 'apart.partmap_size'.
36627
36628 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36629 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36630
36631 Fix cpuid command.
36632
36633 * commands/i386/cpuid.c (options): New variable.
36634 (grub_cmd_cpuid): Return real error.
36635 (GRUB_MOD_INIT(cpuid)): Declare options.
36636
36637 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36638
36639 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36640 valid.
36641
36642 2009-07-31 Bean <bean123ch@gmail.com>
36643
36644 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36645 log2_inode.
36646 (grub_fshelp_node): Move inode field to the end.
36647 (grub_xfs_data): Remove inode field.
36648 (grub_xfs_inode_block): Calculate inode size using sblock.
36649 (grub_xfs_inode_offset): Likewise.
36650 (grub_xfs_read_inode): Calculate inode size using sblock.
36651 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36652 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36653 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36654 to match inode size.
36655 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36656 not accessible when data is null.
36657 (grub_xfs_open): Likewise.
36658
36659 2009-07-31 Bean <bean123ch@gmail.com>
36660
36661 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36662 Don't change pv->disk if it's already set.
36663
36664 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36665 (grub_raid_register): ... here.
36666 (grub_raid_rescan): Removed.
36667
36668 * include/grub/raid.h (grub_raid_rescan): Removed.
36669
36670 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36671 (fstest): Replace grub_raid_rescan with module fini function followed
36672 by init function.
36673
36674 * util/grub-probe.c: Add include file <grub/raid.h>.
36675 (probe_raid_level): New function.
36676 (probe): Detect abstraction by walking the disk device, support two
36677 level of abstraction (LVM on RAID) when detecting partition map.
36678
36679 2009-07-31 Pavel Roskin <proski@gnu.org>
36680
36681 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36682 to grub_zalloc(), it was erroneous.
36683 Reported by Bean <bean123ch@gmail.com>
36684
36685 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36686
36687 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36688 embedding zone, not only the first one.
36689
36690 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36691
36692 * term/gfxterm.c (clear_char): New function.
36693 (grub_virtual_screen_setup): Use clear_char.
36694 (scroll_up): Likewise.
36695 (grub_virtual_screen_cls): Likewise.
36696
36697 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36698
36699 * util/deviceiter.c (get_acceleraid_disk_name): New static
36700 function.
36701 (grub_util_iterate_devices): Handle Accelraid devices.
36702 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36703
36704 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36705
36706 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36707 separator for the suggested gfxpayload string (';' collides with the
36708 parser and needs escaping).
36709
36710 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36711
36712 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36713 Clear direction flag before jumping to OS.
36714 (grub_multiboot2_real_boot): Likewise.
36715
36716 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36717
36718 * util/i386/pc/grub-install: Fix parsing of --disk-module
36719 option.
36720
36721 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36722
36723 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36724 when embedding.
36725
36726 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36727
36728 * util/grub-mkconfig.in (package_version): New variable.
36729 Use it do display the version.
36730
36731 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36732
36733 * kern/file.c (grub_file_open): Revert to previous check with
36734 grub_errno.
36735
36736 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36737
36738 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36739 from help line. It's out of sync with code.
36740
36741 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36742
36743 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36744 entries on failed boot.
36745
36746 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36747
36748 * kern/file.c (grub_file_open): Fix an error check.
36749
36750 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36751
36752 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36753 partition map couldn't be identified.
36754
36755 2009-07-23 Pavel Roskin <proski@gnu.org>
36756
36757 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36758 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36759 case of little endian words becomes just an optimization.
36760 Respect const modifier.
36761 (md5_final): Use code that doesn't depend on endianness.
36762
36763 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36764 to avoid loss of upper bits if align is unsigned and shorter
36765 than addr.
36766
36767 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36768
36769 UUID support for UFS
36770
36771 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36772 (grub_ufs_uuid): New function.
36773 (grub_ufs_fs): add .uuid
36774
36775 2009-07-21 Pavel Roskin <proski@gnu.org>
36776
36777 * kern/dl.c (grub_dl_check_header): Make static.
36778
36779 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36780
36781 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36782 add drivemap for Vista. It breaks Windows 7.
36783
36784 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36785
36786 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36787 128 bytes
36788
36789 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36790
36791 Add BFS support
36792
36793 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36794 (grub_fstest_SOURCES): Likewise.
36795 (pkglib_MODULES): Add befs.mod.
36796 (befs_mod_SOURCES): New variable.
36797 (befs_mod_CFLAGS): Likewise.
36798 (befs_mod_LDFLAGS): Likewise.
36799 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36800 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36801 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36802 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36803 (grub_setup_SOURCES): Likewise.
36804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36805 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36806 (grub_setup_SOURCES): Likewise.
36807 * fs/befs.c: New file.
36808 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36809 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36810 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36811 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36812 (B_KEY_INDEX_ALIGN): New declaration.
36813 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36814 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36815 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36816 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36817 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36818 (grub_afs_mount) [MODE_BFS]: Likewise.
36819 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36820 (grub_afs_fs): Use GRUB_AFS_FSNAME
36821 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36822 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36823 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36824 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36825
36826 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36827
36828 * util/getroot.c (find_root_device): Add support for MacOSX.
36829 * util/hostdisk.c: Likewise.
36830
36831 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36832
36833 * font/font.c (find_glyph): Check whether a font is present to avoid
36834 segmentation fault.
36835
36836 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36837
36838 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36839
36840 2009-07-20 Pavel Roskin <proski@gnu.org>
36841
36842 * configure.ac: Trim excessively wordy excuses.
36843
36844 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36845
36846 Add symlink, mtime and label support to AtheFS.
36847
36848 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36849 (grub_afs_iterate_dir): Handle symlinks.
36850 (grub_afs_open): Use grub_afs_read_symlink.
36851 (grub_afs_dir): Likewise.
36852 Pass mtime.
36853 (grub_afs_label): New function.
36854 (grub_afs_fs): Add grub_afs_label.
36855 (grub_afs_read_symlink): New function.
36856
36857 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36858
36859 Fix AtheFS support.
36860
36861 * fs/afs.c: Fix comments style.
36862 (grub_afs_blockrun): Declare as packed.
36863 (grub_afs_datastream): Likewise.
36864 (grub_afs_bnode): Likewise.
36865 (grub_afs_btree): Likewise.
36866 (grub_afs_sblock): Likewise.
36867 Declare `name' as char.
36868 (grub_afs_inode): Declare as packed.
36869 Change void *vnode to grub_uint32_t unused.
36870 (grub_afs_iterate_dir): Check that key_size is positive.
36871 (grub_afs_mount): Don't read superblock twice.
36872 (grub_afs_dir): Don't free node in case of error,
36873 grub_fshelp_find_file already handles this.
36874 (grub_afs_open): Likewise.
36875
36876 2009-07-19 Pavel Roskin <proski@gnu.org>
36877
36878 * Makefile.in: Remove LIBLZO and enable_lzo.
36879 * conf/i386-pc.rmk: Remove lzo support.
36880 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36881 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36882 support.
36883 * kern/i386/pc/lzo1x.S: Remove.
36884 * kern/i386/pc/startup.S: Remove lzo support.
36885 * util/i386/pc/grub-mkimage.c: Likewise.
36886
36887 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36888
36889 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36890 * fs/xfs.c (grub_xfs_dir): Likewise.
36891 * fs/afs.c (grub_afs_dir): Likewise.
36892 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36893 (grub_iso9660_open): Likewise.
36894 * fs/jfs.c (grub_jfs_open): Likewise.
36895 * fs/ext2.c (grub_ext2_dir): Likewise.
36896 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36897 * script/sh/lexer.c (grub_script_yylex): Likewise.
36898
36899 2009-07-16 Pavel Roskin <proski@gnu.org>
36900
36901 * configure.ac: Never add "-c" to CFLAGS.
36902
36903 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36904
36905 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36906 grub_cv_cc_efiemu should be used.
36907
36908 * configure.ac: Typo fixes.
36909
36910 * kern/mm.c (grub_zalloc): New function.
36911 (grub_debug_zalloc): Likewise.
36912 * include/grub/mm.h: Declare grub_zalloc() and
36913 grub_debug_zalloc().
36914 * util/misc.c (grub_zalloc): New function.
36915 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36916 instead of grub_malloc(), remove unneeded initializations.
36917 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36918 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36919 * commands/parttool.c (grub_cmd_parttool): Likewise.
36920 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36921 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36922 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36923 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36924 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36925 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36926 (grub_cmd_efiemu_pnvram): Likewise.
36927 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36928 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36929 (grub_iso9660_iterate_dir): Likewise.
36930 * fs/jfs.c (grub_jfs_opendir): Likewise.
36931 * fs/ntfs.c (list_file): Likewise.
36932 (grub_ntfs_mount): Likewise.
36933 * kern/disk.c (grub_disk_open): Likewise.
36934 * kern/dl.c (grub_dl_load_core): Likewise.
36935 * kern/elf.c (grub_elf_file): Likewise.
36936 * kern/env.c (grub_env_context_open): Likewise.
36937 (grub_env_set): Likewise.
36938 (grub_env_set_data_slot): Likewise.
36939 * kern/file.c (grub_file_open): Likewise.
36940 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36941 * loader/i386/multiboot.c (grub_module): Likewise.
36942 * loader/xnu.c (grub_xnu_create_key): Likewise.
36943 (grub_xnu_create_value): Likewise.
36944 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36945 (read_config_file): Likewise.
36946 * normal/menu_entry.c (make_screen): Likewise.
36947 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36948 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36949 * script/sh/script.c (grub_script_parse): Likewise.
36950 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36951 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36952 * video/readers/png.c (grub_png_output_byte): Likewise.
36953 (grub_video_reader_png): Likewise.
36954
36955 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36956
36957 Enable all targets that can be built by default
36958
36959 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36960 grub-mkfont and grub-fstest if they can be built
36961
36962 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36963
36964 Fix hang and segmentation fault in grub-emu-usb
36965
36966 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36967 * util/usb.c (grub_libusb_devices): likewise
36968 (grub_libusb_init): rename to ...
36969 (GRUB_MOD_INIT (libusb)):...this
36970 (grub_libusb_fini): rename to ..
36971 (GRUB_MOD_FINI (libusb)):...this
36972 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36973 * include/grub/disk.h (grub_raid_init): removed, it's useless
36974 (grub_raid_fini): likewise
36975 (grub_lvm_init): likewise
36976 (grub_lvm_fini): likewise
36977 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36978 by grub_init_all
36979
36980 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36981
36982 Fix libusb
36983
36984 * Makefile.in (LIBUSB): new macro
36985 * genmk.rb (Utility/print_tail): new method
36986 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36987 (top level): call util.print_tail at the end.
36988
36989 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36990
36991 Make FreeBSD accept zpool.cache
36992
36993 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36994 type is /boot/zfs/zpool.cache
36995
36996 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36997
36998 Fix 64-bit efiemu
36999
37000 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37001 correct wrong typedef
37002 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37003
37004 2009-07-15 Pavel Roskin <proski@gnu.org>
37005
37006 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37007 * kern/disk.c (struct grub_disk_cache): Likewise.
37008
37009 * commands/probe.c (options): Typo fix.
37010
37011 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37012 Increase to 0x5a to accommodate FAT32. Adjust other offsets
37013 accordingly.
37014 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37015
37016 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37017 the end of "Error" to make the message more readable.
37018
37019 * boot/i386/pc/boot.S (kernel_segment): Remove.
37020 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37021 for destination.
37022
37023 * boot/i386/pc/boot.S (boot_version): Remove.
37024 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37025 Remove.
37026
37027 * include/grub/i386/pc/boot.h: Sort all offsets.
37028 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37029 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37030 * boot/i386/pc/boot.S: Assert location of every offset listed in
37031 include/grub/i386/pc/boot.h.
37032
37033 2009-07-13 Pavel Roskin <proski@gnu.org>
37034
37035 * include/grub/i386/coreboot/machine.h: Rename
37036 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37037 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37038 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37039
37040 * kern/dl.c: Force native word size to suppress warnings when
37041 compiling grub-emu.
37042
37043 * kern/device.c (grub_device_iterate): Change struct part_ent to
37044 hold the name, not a pointer to it. Use one grub_malloc() per
37045 partition, not two. Free partition_name if grub_malloc() fails.
37046 Set ents to NULL only before grub_partition_iterate() is called.
37047
37048 2009-07-11 Bean <bean123ch@gmail.com>
37049
37050 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37051 childname.
37052
37053 2009-07-10 Bean <bean123ch@gmail.com>
37054 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37055
37056 * kern/ieee1275/openfw.c (grub_children_iterate)
37057 (grub_devalias_iterate): Fix size evaluation for property or path
37058 strings, which was broken since r2132.
37059
37060 2009-07-07 Pavel Roskin <proski@gnu.org>
37061
37062 * commands/search.c (search_file): Merge into ...
37063 (search_fs): ... this. Accept search type as argument.
37064 (grub_cmd_search): Pass search type to search_fs().
37065
37066 * include/grub/util/console.h: New file.
37067 * util/console.c: Use it instead of grub/machine/console.h.
37068 * util/grub-emu.c: Likewise.
37069
37070 * lib/arg.c (find_long_option): Remove.
37071 (find_long): Add `len' argument, make `s' const char *.
37072 (grub_arg_parse): Parse long options in place, not in a
37073 temporary buffer.
37074
37075 2009-07-06 Pavel Roskin <proski@gnu.org>
37076
37077 * commands/search.c (search_fs): Fix potential NULL pointer
37078 dereference.
37079
37080 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37081 function pointer.
37082
37083 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37084
37085 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37086 comparison.
37087
37088 2009-07-05 Pavel Roskin <proski@gnu.org>
37089
37090 * include/grub/i386/linux.h (struct linux_kernel_params):
37091 Restore padding3, it's still needed.
37092
37093 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37094 FreeBSD.
37095 * util/osdetect.lua: Likewise.
37096
37097 2009-07-05 Bean <bean123ch@gmail.com>
37098
37099 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37100
37101 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37102 (grub_lua_getenv): Likewise.
37103 (grub_lua_setenv): Likewise.
37104 (save_errno): New function.
37105 (push_result): Likewise.
37106 (grub_lua_enum_device): Likewise.
37107 (grub_lua_enum_file): Likewise.
37108 (grub_lua_file_open): Likewise.
37109 (grub_lua_file_close): Likewise.
37110 (grub_lua_file_seek): Likewise.
37111 (grub_lua_file_read): Likewise.
37112 (grub_lua_file_getline): Likewise.
37113 (grub_lua_file_getsize): Likewise.
37114 (grub_lua_file_getpos): Likewise.
37115 (grub_lua_file_eof): Likewise.
37116 (grub_lua_file_exist): Likewise.
37117 (grub_lua_add_menu): Likewise.
37118
37119 * script/lua/grub_lua.h (isupper): New inline function.
37120 (islower): Likewise.
37121 (ispunct): Likewise.
37122 (isxdigit): Likewise.
37123 (strcspn): Change to normal function.
37124 (strpbkr): New function declaration.
37125 (memchr): Likewise.
37126
37127 * script/lua/grub_main.c (scan_str): New function.
37128 (strcspn): Likewise.
37129 (strpbrk): Likewise.
37130 (memchr): Likewise.
37131
37132 * script/lua/linit.c (lualibs): Enable the string library.
37133
37134 * util/osdetect.lua: New file.
37135
37136 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37137
37138 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37139 `capabilities' member.
37140
37141 2009-07-02 Pavel Roskin <proski@gnu.org>
37142
37143 * genparttoollist.sh: Add missing newline at the end.
37144
37145 2009-07-01 Pavel Roskin <proski@gnu.org>
37146
37147 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37148
37149 * util/hostdisk.c (open_device): Remove `const' from
37150 `sysctl_size', as sysctlbyname() can change it (in this case it
37151 doesn't actually happen).
37152
37153 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37154 using signed long int constants.
37155
37156 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37157 constant to avoid a warning on FreeBSD.
37158
37159 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37160 where it's needed.
37161
37162 * Makefile.in: Install include/grub/machine symlink.
37163
37164 * Makefile.in: When installing symlinks, use "cp -fR", which
37165 works on FreeBSD and MacOSX.
37166 From Yves Blusseau <cl7m42e02@sneakemail.com>
37167
37168 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37169 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37170
37171 * util/misc.c: Move grub_reboot() and grub_halt() ...
37172 * util/grub-emu.c: ... here. Make main_env static.
37173 * include/grub/util/misc.h: Remove main_env.
37174
37175 * kern/mm.c: Use correct format to print size_t.
37176
37177 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37178 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37179 * kern/powerpc/dl.c: Likewise.
37180 * kern/sparc64/dl.c: Likewise.
37181 * kern/x86_64/dl.c: Likewise.
37182
37183 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37184
37185 Fix grub-emu build on sparc64-ieee1275.
37186
37187 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37189
37190 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37191
37192 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37193 (grub_reboot, grub_halt): New functions.
37194
37195 * util/i386/pc/misc.c: Delete. Update all users.
37196 * util/sparc64/ieee1275/misc.c: Likewise.
37197 * util/powerpc/ieee1275/misc.c: Likewise.
37198
37199 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37200
37201 * conf/i386.rmk (setjmp_mod_SOURCES)
37202 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37203 * conf/common.rmk (setjmp_mod_SOURCES)
37204 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37205 to use $(target_cpu).
37206 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37207 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37208 * conf/powerpc-ieee1275.rmk: Likewise.
37209 * conf/sparc64-ieee1275.rmk: Likewise.
37210
37211 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37212 $(target_cpu) for kern/$(target_cpu)/dl.c.
37213 * conf/i386-efi.rmk: Likewise.
37214 * conf/i386-ieee1275.rmk: Likewise.
37215 * conf/x86_64-efi.rmk: Likewise.
37216 * conf/i386-coreboot.rmk: Likewise.
37217 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37218 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37219 kern/$(target_cpu)/cache.S.
37220 * conf/sparc64-ieee1275.rmk: Likewise.
37221
37222 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37223
37224 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37225 type to `grub_uint8_t', and adjust `padding9' accordingly.
37226
37227 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37228
37229 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37230
37231 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37232 assembly in final jump, using register constraints.
37233
37234 (grub_linux_boot): For text mode, initialize `have_vga' using
37235 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37236
37237 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37238 right before the final jump.
37239
37240 Set `video_mode' to 0x3.
37241
37242 Document initialization of `video_page', `video_mode' and
37243 `video_ega_bx'.
37244
37245 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37246
37247 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37248 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37249 and set GRUB_LINUX_FLAG_QUIET appropriately.
37250
37251 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37252
37253 Fix build on Debian / sparc.
37254
37255 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37256
37257 2009-06-28 Pavel Roskin <proski@gnu.org>
37258
37259 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37260 fix a warning.
37261
37262 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37263
37264 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37265
37266 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37267 `err'.
37268
37269 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37270
37271 Revert r2338.
37272
37273 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37274 file can't be opened. grub_file_open() is already supposed to set
37275 grub_errno / grub_errmsg appropriately.
37276 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37277
37278 2009-06-27 Pavel Roskin <proski@gnu.org>
37279 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37280
37281 * include/grub/dl.h: Include grub/elf.h.
37282 (struct grub_dl): Add symtab field.
37283 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37284 GRUB_MODULES_MACHINE_READONLY.
37285 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37286 of the header for read-only modules.
37287 (grub_dl_unload): Free mod->symtab for read-only modules.
37288 * kern/i386/dl.c: Use mod->symtab.
37289 * kern/powerpc/dl.c: Likewise.
37290 * kern/sparc64/dl.c: Likewise.
37291 * kern/x86_64/dl.c: Likewise.
37292
37293 * conf/i386-qemu.rmk: New file.
37294 * kern/i386/qemu/startup.S: Likewise.
37295 * kern/i386/qemu/mmap.c: Likewise.
37296 * boot/i386/qemu/boot.S: Likewise.
37297 * include/grub/i386/qemu/time.h: Likewise.
37298 * include/grub/i386/qemu/serial.h: Likewise.
37299 * include/grub/i386/qemu/kernel.h: Likewise.
37300 * include/grub/i386/qemu/console.h: Likewise.
37301 * include/grub/i386/qemu/boot.h: Likewise.
37302 * include/grub/i386/qemu/init.h: Likewise.
37303 * include/grub/i386/qemu/machine.h: Likewise.
37304 * include/grub/i386/qemu/loader.h: Likewise.
37305 * include/grub/i386/qemu/memory.h: Likewise.
37306
37307 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37308 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37309 [qemu] (pkglib_IMAGES): Add `boot.img'.
37310 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37311 [qemu] (boot_img_FORMAT): New variables.
37312 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37313 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37314 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37315 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37316 [qemu] (kernel_img_FORMAT): New variables.
37317
37318 * configure.ac: Recognise `i386-qemu'.
37319
37320 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37321 (for no compression).
37322 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37323 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37324 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37325 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37326 ifdefs).
37327
37328 2009-06-27 Pavel Roskin <proski@gnu.org>
37329
37330 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37331 read.
37332 * efiemu/prepare32.c: Likewise.
37333 * efiemu/prepare64.c: Likewise.
37334
37335 2009-06-26 Pavel Roskin <proski@gnu.org>
37336
37337 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37338 * include/grub/elf.h: Define symbols without "32" or "64" based
37339 on GRUB_TARGET_WORDSIZE.
37340 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37341 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37342 ELF definitions.
37343 * efiemu/loadcore64.c: Likewise.
37344 * loader/i386/bsd32.c: Likewise.
37345 * loader/i386/bsd64.c: Likewise.
37346 * kern/dl.c: Remove own ELF definitions.
37347 * util/i386/efi/grub-mkimage.c: Likewise.
37348
37349 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37350
37351 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37352 segment 0x0 unconditionally, because the reference generated by
37353 GAS is an absolute address.
37354
37355 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37356
37357 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37358 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37359
37360 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37361
37362 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37363 indexes. Check for -f explicitly.
37364 (search_file): Improve error message.
37365 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37366
37367 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37368
37369 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37370 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37371
37372 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37373
37374 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37375 * conf/i386-ieee1275.rmk: Likewise.
37376 * conf/i386-coreboot.rmk: Likewise.
37377
37378 * kern/i386/pc/startup.S (grub_stop): Remove function.
37379 * kern/i386/ieee1275/startup.S: Likewise.
37380 * kern/i386/coreboot/startup.S: Likewise.
37381 * kern/i386/misc.S (grub_stop): New function.
37382
37383 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37384
37385 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37386 * kern/i386/realmode.S (real_to_prot): ... to here.
37387
37388 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37389
37390 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37391 with `kernel.img'.
37392 (kernel_elf_SOURCES): Rename to ...
37393 (kernel_img_SOURCES): ... this.
37394 (kernel_elf_HEADERS): Rename to ...
37395 (kernel_img_HEADERS): ... this. Update all users.
37396 (kernel_elf_ASFLAGS): Rename to ...
37397 (kernel_img_ASFLAGS): ... this.
37398 (kernel_elf_CFLAGS): Rename to ...
37399 (kernel_img_CFLAGS): ... this.
37400 (kernel_elf_LDFLAGS): Rename to ...
37401 (kernel_img_LDFLAGS): ... this.
37402 * conf/i386-coreboot.rmk: Likewise.
37403 * conf/powerpc-ieee1275.rmk: Likewise.
37404
37405 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37406 with "kernel.img".
37407
37408 2009-06-21 Pavel Roskin <proski@gnu.org>
37409
37410 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37411 to match nested functions.
37412 * loader/sparc64/ieee1275/linux.c: Likewise.
37413
37414 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37415
37416 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37417
37418 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37419 all i386 platforms.
37420
37421 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37422
37423 Fix asm file handling on ELF, and remove workarounds.
37424
37425 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37426 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37427 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37428 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37429
37430 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37431
37432 Load BSD ELF modules
37433
37434 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37435 and loader/i386/bsd64.c
37436 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37437 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37438 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37439 (grub_freebsd_load_elfmodule32): New declaration
37440 (grub_freebsd_load_elfmoduleobj64): Likewise
37441 (grub_freebsd_load_elf_meta32): Likewise
37442 (grub_freebsd_load_elf_meta64): Likewise
37443 (grub_freebsd_add_meta): Likewise
37444 (grub_freebsd_add_meta_module): Likewise
37445 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37446 (grub_freebsd_add_meta_module): Likewise and move module-specific
37447 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37448 (grub_cmd_freebsd): Add elf-kernel specific parts
37449 based on grub_freebsd_add_meta_module
37450 (grub_cmd_freebsd_module): Add type parsing moved from
37451 grub_freebsd_add_meta_module
37452 (grub_cmd_freebsd_module_elf): New function
37453 (cmd_freebsd_module_elf): New variable
37454 (GRUB_MOD_INIT): Register freebsd_module_elf
37455 * loader/i386/bsd32.c: New file
37456 * loader/i386/bsd64.c: Likewise
37457 * loader/i386/bsdXX.c: Likewise
37458 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37459 (grub_elf64_load): Likewise
37460 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37461 All users updated
37462 (grub_elf64_load_hook_t): Likewise
37463
37464 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37465
37466 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37467 variable.
37468 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37469 don't write a menu entry for recovery mode.
37470
37471 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37472
37473 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37474 after it's no longer needed.
37475
37476 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37477
37478 * include/grub/i386/loader.h (grub_linux_prot_size)
37479 (grub_linux_tmp_addr, grub_linux_real_addr)
37480 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37481 GRUB_MACHINE_PCBIOS.
37482 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37483 common grub_util_info() call to ...
37484 (generate_image): ... here.
37485 Fix use of uninitialized memory, comparison of signed with
37486 unsigned integers and memory leak.
37487 Remove bogus module address message.
37488
37489 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37490
37491 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37492 grub_raid_register
37493 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37494
37495 2009-06-19 Pavel Roskin <proski@gnu.org>
37496
37497 * configure.ac: Remove stray AC_MSG_CHECKING.
37498
37499 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37500
37501 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37502
37503 2009-06-18 Pavel Roskin <proski@gnu.org>
37504
37505 * conf/common.rmk: Add fs_file.mod.
37506 * disk/fs_file.c: New file.
37507 * include/grub/disk.h (enum grub_disk_dev_id): Add
37508 GRUB_DISK_DEVICE_FILE_ID.
37509
37510 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37511
37512 Fix build with Apple's toolchain. Part 2
37513
37514 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37515 a fake start
37516
37517 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37518
37519 Fix build with Apple's toolchain. Part 1
37520
37521 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37522 for long calls
37523 * configure.ac: remove a leftover AC_MSG_RESULT
37524 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37525 Apple's toolchain
37526
37527 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37528
37529 Fix warnings
37530
37531 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37532 (decomp_block): initialize ch
37533 use grub_memcpy instead of memcpy
37534
37535 2009-06-17 Pavel Roskin <proski@gnu.org>
37536
37537 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37538 version, use declarations needed to use vga_text as the startup
37539 console.
37540
37541 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37542 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37543 the kernel.
37544 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37545 and grub_at_keyboard_fini(), it's done on module load and
37546 unload.
37547
37548 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37549
37550 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37551 file can't be found.
37552 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37553
37554 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37555
37556 Fix newline handling
37557
37558 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37559 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37560 (grub_script_yylex): don't segfault on unterminated script
37561 newline terminates command and variable
37562
37563 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37564
37565 avoid double grub_adjust_range call. Bug reported by David Simner
37566
37567 * kern/disk.c (grub_disk_write): change to raw disk access before
37568 calling disk_read
37569
37570 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37571
37572 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37573 spaces, for the benefit of help2man.
37574 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37575
37576 2009-06-16 Pavel Roskin <proski@gnu.org>
37577
37578 * kern/i386/halt.c: Include grub/machine/init.h.
37579 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37580
37581 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37582
37583 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37584 drivemap menuentry.
37585
37586 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37587
37588 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37589 `echo' command.
37590
37591 2009-06-16 Pavel Roskin <proski@gnu.org>
37592
37593 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37594 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37595 save %dx, we only need %dl and we never change it.
37596 * boot/i386/pc/cdboot.S: Don't set the root drive.
37597 * boot/i386/pc/pxeboot.S: Likewise.
37598 * include/grub/i386/pc/boot.h: Remove
37599 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37600 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37601 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37602 * kern/i386/pc/init.c (make_install_device): Remove references
37603 to grub_root_drive.
37604 * kern/i386/pc/startup.S: Likewise.
37605 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37606
37607 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37608
37609 xnu_uuid command
37610
37611 * commands/xnu_uuid.c: new file
37612 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37613 (xnu_uuid_mod_SOURCES): new variable
37614 (xnu_uuid_mod_CFLAGS): likewise
37615 (xnu_uuid_mod_LDFLAGS): likewise
37616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37617 * conf/i386-ieee1275.rmk: likewise
37618 * conf/i386-pc.rmk: likewise
37619 * conf/powerpc-ieee1275.rmk: likewise
37620 * conf/sparc64-ieee1275.rmk: likewise
37621 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37622
37623 2009-06-16 Pavel Roskin <proski@gnu.org>
37624
37625 * configure.ac: Avoid '==' in test command, it's not portable.
37626
37627 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37628
37629 Probe command
37630
37631 * commands/probe.c: new file
37632 * conf/common.rmk (pkglib_MODULES): add probe.mod
37633 (probe_mod_SOURCES): new variable
37634 (probe_mod_CFLAGS): likewise
37635 (probe_mod_LDFLAGS): likewise
37636 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37637 * conf/i386-ieee1275.rmk: likewise
37638 * conf/i386-pc.rmk: likewise
37639 * conf/powerpc-ieee1275.rmk: likewise
37640 * conf/sparc64-ieee1275.rmk: likewise
37641
37642 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37643
37644 Fix handling of string like \"hello\" and "a
37645 b"
37646
37647 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37648 (grub_script_yylex): fix parsing of quoting, escaping and newline
37649
37650 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37651
37652 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37653 handling
37654
37655 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37656
37657 * util/grub-mkconfig.in: Fix parsing of --output option.
37658
37659 2009-06-12 Pavel Roskin <proski@gnu.org>
37660
37661 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37662 genmk.rb don't need to be generated or installed.
37663
37664 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37665
37666 * commands/i386/pc/drivemap_int13h.S: add more comments
37667
37668 2009-06-11 Pavel Roskin <proski@gnu.org>
37669
37670 * Makefile.in (uninstall): Uninstall manuals.
37671
37672 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37673 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37674 and update-grub_lib in two places.
37675 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37676
37677 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37678 a compiler warning.
37679
37680 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37681 `entry_lo' to fix variable shadowing.
37682
37683 2009-06-11 Christian Franke <franke@computer.org>
37684
37685 * kern/misc.c (__enable_execute_stack): Add missing return type
37686 to prevent gcc warning.
37687
37688 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37689
37690 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37691
37692 2009-06-11 Pavel Roskin <proski@gnu.org>
37693
37694 * Makefile.in: Don't rely on any scripts being executable.
37695 Always use $(SHELL) to run shell scripts.
37696
37697 * configure.ac: Always define ___main if using -nostdlib. This
37698 fixes tests on Cygwin.
37699
37700 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37701
37702 UDF fix
37703
37704 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37705 is in bytes and not in blocks
37706
37707 2009-06-11 Pavel Roskin <proski@gnu.org>
37708
37709 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37710 warning.
37711
37712 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37713
37714 * util/grub.d/30_os-prober.in: Fix a comment. Source
37715 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37716 to set the root device. Place drivemap command in the generated
37717 chain entry.
37718
37719 2009-06-11 Pavel Roskin <proski@gnu.org>
37720
37721 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37722 have long been resolved.
37723
37724 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37725
37726 * util/grub.d/10_linux.in: Capitalise "Linux".
37727
37728 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37729
37730 2009-06-11 Pavel Roskin <proski@gnu.org>
37731
37732 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37733 fix a gcc warning and ensure that the function won't ever exit.
37734
37735 * kern/i386/ieee1275/init.c: Add missing prototype for
37736 grub_stop_floppy().
37737
37738 * loader/ieee1275/multiboot2.c [__i386__]: Include
37739 grub/cpu/multiboot.h.
37740
37741 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37742 casts to short - they are not portable and cause warnings. Fix
37743 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37744
37745 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37746
37747 Drivemap fixes
37748
37749 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37750 new function
37751 (grub_get_root_biosnumber_saved): new variable
37752 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37753 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37754 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37755 %dx after the call if necessary
37756 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37757 (boot_mod_SOURCES): remove
37758 (boot_mod_CFLAGS): remove
37759 (boot_mod_LDFLAGS): remove
37760 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37761 (boot_mod_SOURCES): new variable
37762 (boot_mod_CFLAGS): likewise
37763 (boot_mod_LDFLAGS): likewise
37764 * conf/i386-efi.rmk: likewise
37765 * conf/i386-ieee1275.rmk: likewise
37766 * conf/i386-pc.rmk: likewise
37767 * conf/powerpc-ieee1275.rmk: likewise
37768 * conf/sparc64-ieee1275.rmk: likewise
37769 * conf/x86_64-efi.rmk: likewise
37770 * include/grub/i386/pc/biosnum.h: new file
37771 * lib/i386/pc/biosnum.c: likewise
37772 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37773 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37774 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37775
37776 2009-06-10 Pavel Roskin <proski@gnu.org>
37777
37778 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37779 Use separate variables. Read only the file size at the end, but
37780 not the checksum that we don't use.
37781
37782 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37783 Adjust all callers.
37784
37785 * kern/ieee1275/openfw.c: Remove libc includes.
37786 * kern/ieee1275/cmain.c: Likewise.
37787 * include/grub/ieee1275/ieee1275.h: Likewise.
37788
37789 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37790 compiler warnings.
37791
37792 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37793
37794 * Makefile.in: Remove all trailing whitespace.
37795 * conf/i386-pc.rmk: Likewise.
37796 * conf/powerpc-ieee1275.rmk: Likewise.
37797 * conf/sparc64-ieee1275.rmk: Likewise.
37798 * docs/grub.texi: Likewise.
37799 * docs/texinfo.tex: Likewise.
37800 * disk/fs_uuid.c: Likewise.
37801 * disk/lvm.c: Likewise.
37802 * disk/scsi.c: Likewise.
37803 * disk/ata.c: Likewise.
37804 * disk/ieee1275/ofdisk.c: Likewise.
37805 * disk/i386/pc/biosdisk.c: Likewise.
37806 * disk/host.c: Likewise.
37807 * disk/raid.c: Likewise.
37808 * disk/efi/efidisk.c: Likewise.
37809 * disk/usbms.c: Likewise.
37810 * disk/memdisk.c: Likewise.
37811 * disk/loopback.c: Likewise.
37812 * kern/powerpc/dl.c: Likewise.
37813 * kern/device.c: Likewise.
37814 * kern/dl.c: Likewise.
37815 * kern/sparc64/dl.c: Likewise.
37816 * kern/ieee1275/ieee1275.c: Likewise.
37817 * kern/term.c: Likewise.
37818 * kern/fs.c: Likewise.
37819 * kern/i386/dl.c: Likewise.
37820 * kern/i386/pc/startup.S: Likewise.
37821 * kern/i386/pc/init.c: Likewise.
37822 * kern/i386/pc/mmap.c: Likewise.
37823 * kern/i386/pc/lzo1x.S: Likewise.
37824 * kern/i386/ieee1275/init.c: Likewise.
37825 * kern/i386/realmode.S: Likewise.
37826 * kern/i386/tsc.c: Likewise.
37827 * kern/partition.c: Likewise.
37828 * kern/corecmd.c: Likewise.
37829 * kern/file.c: Likewise.
37830 * kern/efi/efi.c: Likewise.
37831 * kern/efi/init.c: Likewise.
37832 * kern/efi/mm.c: Likewise.
37833 * kern/main.c: Likewise.
37834 * kern/err.c: Likewise.
37835 * kern/env.c: Likewise.
37836 * kern/disk.c: Likewise.
37837 * kern/generic/millisleep.c: Likewise.
37838 * kern/generic/rtc_get_time_ms.c: Likewise.
37839 * kern/misc.c: Likewise.
37840 * kern/parser.c: Likewise.
37841 * genmk.rb: Likewise.
37842 * configure.ac: Likewise.
37843 * boot/i386/pc/diskboot.S: Likewise.
37844 * boot/i386/pc/pxeboot.S: Likewise.
37845 * boot/i386/pc/boot.S: Likewise.
37846 * boot/i386/pc/lnxboot.S: Likewise.
37847 * boot/i386/pc/cdboot.S: Likewise.
37848 * parttool/pcpart.c: Likewise.
37849 * video/readers/tga.c: Likewise.
37850 * video/video.c: Likewise.
37851 * video/bitmap.c: Likewise.
37852 * lib/envblk.c: Likewise.
37853 * lib/i386/setjmp.S: Likewise.
37854 * fs/xfs.c: Likewise.
37855 * fs/afs.c: Likewise.
37856 * fs/fat.c: Likewise.
37857 * fs/ntfs.c: Likewise.
37858 * fs/udf.c: Likewise.
37859 * fs/affs.c: Likewise.
37860 * fs/iso9660.c: Likewise.
37861 * fs/hfs.c: Likewise.
37862 * fs/fshelp.c: Likewise.
37863 * fs/ext2.c: Likewise.
37864 * fs/jfs.c: Likewise.
37865 * fs/reiserfs.c: Likewise.
37866 * fs/hfsplus.c: Likewise.
37867 * fs/minix.c: Likewise.
37868 * fs/cpio.c: Likewise.
37869 * fs/sfs.c: Likewise.
37870 * fs/ufs.c: Likewise.
37871 * efiemu/prepare.c: Likewise.
37872 * efiemu/loadcore_common.c: Likewise.
37873 * efiemu/runtime/efiemu.sh: Likewise.
37874 * efiemu/runtime/efiemu.S: Likewise.
37875 * efiemu/runtime/efiemu.c: Likewise.
37876 * efiemu/pnvram.c: Likewise.
37877 * efiemu/main.c: Likewise.
37878 * efiemu/i386/pc/cfgtables.c: Likewise.
37879 * efiemu/i386/loadcore64.c: Likewise.
37880 * efiemu/i386/loadcore32.c: Likewise.
37881 * efiemu/loadcore.c: Likewise.
37882 * efiemu/symbols.c: Likewise.
37883 * efiemu/mm.c: Likewise.
37884 * include/grub/autoefi.h: Likewise.
37885 * include/grub/datetime.h: Likewise.
37886 * include/grub/term.h: Likewise.
37887 * include/grub/hfs.h: Likewise.
37888 * include/grub/lvm.h: Likewise.
37889 * include/grub/i386/tsc.h: Likewise.
37890 * include/grub/i386/linux.h: Likewise.
37891 * include/grub/i386/xnu.h: Likewise.
37892 * include/grub/i386/efiemu.h: Likewise.
37893 * include/grub/i386/pc/biosdisk.h: Likewise.
37894 * include/grub/i386/pc/memory.h: Likewise.
37895 * include/grub/i386/pc/vbe.h: Likewise.
37896 * include/grub/parttool.h: Likewise.
37897 * include/grub/video.h: Likewise.
37898 * include/grub/memory.h: Likewise.
37899 * include/grub/fs.h: Likewise.
37900 * include/grub/partition.h: Likewise.
37901 * include/grub/xnu.h: Likewise.
37902 * include/grub/efi/api.h: Likewise.
37903 * include/grub/efi/pe32.h: Likewise.
37904 * include/grub/efi/memory.h: Likewise.
37905 * include/grub/multiboot.h: Likewise.
37906 * include/grub/usbdesc.h: Likewise.
37907 * include/grub/multiboot2.h: Likewise.
37908 * include/grub/acpi.h: Likewise.
37909 * include/grub/efiemu/efiemu.h: Likewise.
37910 * include/grub/disk.h: Likewise.
37911 * include/grub/ieee1275/ieee1275.h: Likewise.
37912 * include/grub/net.h: Likewise.
37913 * include/grub/machoload.h: Likewise.
37914 * include/grub/macho.h: Likewise.
37915 * include/multiboot.h: Likewise.
37916 * genmoddep.awk: Likewise.
37917 * normal/main.c: Likewise.
37918 * normal/menu_entry.c: Likewise.
37919 * normal/menu_viewer.c: Likewise.
37920 * normal/completion.c: Likewise.
37921 * normal/cmdline.c: Likewise.
37922 * normal/misc.c: Likewise.
37923 * normal/datetime.c: Likewise.
37924 * bus/usb/usbtrans.c: Likewise.
37925 * bus/usb/ohci.c: Likewise.
37926 * bus/usb/uhci.c: Likewise.
37927 * bus/usb/usb.c: Likewise.
37928 * mmap/efi/mmap.c: Likewise.
37929 * mmap/i386/pc/mmap_helper.S: Likewise.
37930 * mmap/i386/pc/mmap.c: Likewise.
37931 * mmap/i386/mmap.c: Likewise.
37932 * mmap/i386/uppermem.c: Likewise.
37933 * mmap/mmap.c: Likewise.
37934 * commands/acpi.c: Likewise.
37935 * commands/echo.c: Likewise.
37936 * commands/blocklist.c: Likewise.
37937 * commands/loadenv.c: Likewise.
37938 * commands/usbtest.c: Likewise.
37939 * commands/boot.c: Likewise.
37940 * commands/parttool.c: Likewise.
37941 * commands/search.c: Likewise.
37942 * commands/cat.c: Likewise.
37943 * commands/i386/pc/play.c: Likewise.
37944 * commands/i386/pc/drivemap.c: Likewise.
37945 * commands/i386/pc/vbeinfo.c: Likewise.
37946 * commands/i386/pc/acpi.c: Likewise.
37947 * commands/i386/pc/vbetest.c: Likewise.
37948 * commands/ls.c: Likewise.
37949 * commands/cmp.c: Likewise.
37950 * commands/test.c: Likewise.
37951 * commands/efi/acpi.c: Likewise.
37952 * commands/gptsync.c: Likewise.
37953 * commands/help.c: Likewise.
37954 * partmap/amiga.c: Likewise.
37955 * partmap/apple.c: Likewise.
37956 * partmap/acorn.c: Likewise.
37957 * partmap/pc.c: Likewise.
37958 * partmap/sun.c: Likewise.
37959 * partmap/gpt.c: Likewise.
37960 * script/sh/lexer.c: Likewise.
37961 * script/sh/function.c: Likewise.
37962 * font/font.c: Likewise.
37963 * font/font_cmd.c: Likewise.
37964 * loader/powerpc/ieee1275/linux.c: Likewise.
37965 * loader/efi/chainloader.c: Likewise.
37966 * loader/multiboot_loader.c: Likewise.
37967 * loader/macho.c: Likewise.
37968 * loader/i386/multiboot.c: Likewise.
37969 * loader/i386/linux.c: Likewise.
37970 * loader/i386/pc/linux.c: Likewise.
37971 * loader/i386/pc/multiboot2.c: Likewise.
37972 * loader/i386/pc/chainloader.c: Likewise.
37973 * loader/i386/pc/xnu.c: Likewise.
37974 * loader/i386/bsd_trampoline.S: Likewise.
37975 * loader/i386/efi/linux.c: Likewise.
37976 * loader/i386/multiboot_elfxx.c: Likewise.
37977 * loader/i386/bsd_helper.S: Likewise.
37978 * loader/i386/bsd.c: Likewise.
37979 * loader/i386/linux_trampoline.S: Likewise.
37980 * loader/i386/xnu_helper.S: Likewise.
37981 * loader/i386/xnu.c: Likewise.
37982 * loader/i386/bsd_pagetable.c: Likewise.
37983 * loader/i386/multiboot_helper.S: Likewise.
37984 * loader/xnu.c: Likewise.
37985 * loader/xnu_resume.c: Likewise.
37986 * io/gzio.c: Likewise.
37987 * term/efi/console.c: Likewise.
37988 * term/terminfo.c: Likewise.
37989 * term/ieee1275/ofconsole.c: Likewise.
37990 * term/i386/pc/serial.c: Likewise.
37991 * term/i386/pc/vesafb.c: Likewise.
37992 * term/i386/pc/vga.c: Likewise.
37993 * term/usb_keyboard.c: Likewise.
37994 * term/gfxterm.c: Likewise.
37995 * aclocal.m4: Likewise.
37996 * util/lvm.c: Likewise.
37997 * util/grub.d/30_os-prober.in: Likewise.
37998 * util/grub.d/10_hurd.in: Likewise.
37999 * util/console.c: Likewise.
38000 * util/grub-macho2img.c: Likewise.
38001 * util/grub-probe.c: Likewise.
38002 * util/hostfs.c: Likewise.
38003 * util/i386/pc/grub-mkimage.c: Likewise.
38004 * util/i386/pc/grub-setup.c: Likewise.
38005 * util/i386/efi/grub-mkimage.c: Likewise.
38006 * util/grub-mkconfig.in: Likewise.
38007 * util/raid.c: Likewise.
38008 * util/resolve.c: Likewise.
38009 * util/grub-mkdevicemap.c: Likewise.
38010 * util/grub-emu.c: Likewise.
38011 * util/getroot.c: Likewise.
38012 * util/hostdisk.c: Likewise.
38013 * util/usb.c: Likewise.
38014 * util/grub-editenv.c: Likewise.
38015 * util/misc.c: Likewise.
38016
38017 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
38018
38019 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38020 `genparttoollist.sh'.
38021 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38022 Add `*.sh' to the list find searches for and change `mdate.sh'
38023 to `mdate-sh'.
38024
38025 2009-06-10 Pavel Roskin <proski@gnu.org>
38026
38027 * include/grub/multiboot2.h: Provide compatibility defines for
38028 multiboot2.h.
38029 * include/multiboot2.h: Include stdint.h only if needed, using
38030 angle brackets.
38031 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38032 grub/multiboot2.h.
38033 * loader/ieee1275/multiboot2.c: Likewise.
38034 * loader/multiboot2.c: Likewise.
38035 * loader/multiboot_loader.c: Likewise.
38036
38037 * configure.ac: Use -nostdlib when probing for the target. It
38038 should not be required to have libc for the target.
38039
38040 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38041 they fail without libc headers for the target.
38042 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38043 exports.
38044 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38045 preprocessor conditionals.
38046
38047 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38048 build system doesn't need to be aware of the tar.c internals.
38049
38050 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38051
38052 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38053
38054 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38055
38056 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38057 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38058
38059 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38060
38061 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38062 aren't available if ata.mod gets used.
38063
38064 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38065
38066 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38067 initialising controller.
38068 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38069
38070 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38071
38072 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38073 to choose between ata and biosdisk module on i386-pc.
38074
38075 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38076
38077 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38078 Subclass and Programming Interface fields in terms of the 3 byte
38079 Class Code register.
38080 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38081
38082 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38083 interface is OHCI. Add grub_dprintf for symmetry with
38084 bus/usb/uhci.c.
38085 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38086 interface is UHCI. Add interf variable for programming
38087 interface. Print interface with class/subclass.
38088
38089 * bus/usb/ohci.c: Set interf with correct field.
38090
38091 * bus/usb/uhci.c: Remove unneeded doubled lines.
38092 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38093 Remove whitespace inside comment.
38094
38095 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38096
38097 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38098 as fallback an equivalent option without depth.
38099
38100 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38101
38102 Not fail if unable to retrieve C/H/S on LBA disks
38103
38104 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38105 if unable to retrieve C/H/S on LBA disks
38106
38107 2009-06-08 Pavel Roskin <proski@gnu.org>
38108
38109 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38110 about aliasing.
38111
38112 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38113
38114 * Makefile.in (uninstall): Remove all $lib_DATA files.
38115
38116 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38117
38118 Bugfix: install on partitionless device
38119
38120 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38121 is a whole disk
38122
38123 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38124
38125 * Makefile.in (uninstall): Remove all $include_DATA files.
38126
38127 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38128
38129 * commands/true.c: New file. Implement the true and false commands.
38130 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38131 (true_mod_SOURCES): New variable.
38132 (true_mod_CFLAGS): Likewise.
38133 (true_mod_LDFLAGS): Likewise.
38134
38135 2009-06-05 Colin D Bennett <colin@gibibit.com>
38136
38137 Optimized font character lookup using binary search instead of linear
38138 search. Fonts now are required to have the character index ordered by
38139 code point.
38140
38141 * font/font.c (load_font_index): Verify that fonts have ordered
38142 character indices.
38143 (find_glyph): Use binary search instead of linear search to find a
38144 character in a font.
38145
38146 2009-06-05 Michael Scherer <misc@mandriva.org>
38147
38148 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38149 uses case sensitive btree.
38150 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38151 only for case insensitive filesystems.
38152
38153 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38154
38155 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38156 * conf/common.rmk (search_mod_CFLAGS): likewise
38157
38158 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38159
38160 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38161 compensate a compiler bug
38162
38163 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38164
38165 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38166 instead of '\b'
38167
38168 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38169
38170 Definitions for creating asm symbols with Apple's CC
38171
38172 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38173 [APPLE_CC] (VARIABLE): likewise
38174
38175 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38176
38177 Disable lnxboot.img when compiled
38178 with Apple's CC
38179
38180 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38181 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38182 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38183 [! APPLE_CC] (CODE_LENG): skip
38184 [! APPLE_CC] (setup_sects): likewise
38185 [! APPLE_CC]: skip filling
38186
38187 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38188
38189 Address in trampolines based on 32-bit registers when compiled
38190 with Apple's CC
38191
38192 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38193 for addresses
38194 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38195
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38197
38198 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38199
38200 * kern/misc.c [APPLE_CC] (memcpy): new function
38201 [APPLE_CC] (memmove): likewise
38202 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38203 (memcpy): define alias conditionally on !APPLE_CC
38204 (memset): likewise
38205 (abort): likewise
38206 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38207 APPLE_CC are defined
38208 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38209 (grub_assert_fail): make prototype conditional
38210
38211 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38212
38213 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38214
38215 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38216 grub-macho2img
38217 (CLEANFILES): add grub-macho2img
38218 (grub_macho2img_SOURCES): new variable
38219 * kern/i386/pc/startup.S (bss_start): new variable
38220 (bss_end): likewise
38221 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38222 * util/grub-macho2img.c: new file
38223
38224 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38225
38226 Use objconv when compiling with Apple's CC
38227
38228 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38229 (efiemu64.o): likewise
38230 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38231 when compiling with Apple's CC
38232 (efiemu64_s.o): likewise
38233 * configure.ac: check for objconv when compiling with Apple's CC
38234 * genmk.rb: use objconv for modules when compiled with Apple's CC
38235
38236 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38237
38238 Define segment as well as section when compiling with
38239 Apple's CC
38240
38241 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38242 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38243 (efiemu_convert_pointer): likewise
38244 (efiemu_set_virtual_address_map): likewise
38245 (efiemu_convert_pointer): likewise
38246 (efiemu_getcrc32): likewise
38247 (init_crc32_table): likewise
38248 (reflect): likewise
38249 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38250 (GRUB_MOD_DEP): likewise
38251
38252 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38253
38254 Allow a compilation without -mcmodel=large
38255
38256 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38257 when compiled without -mcmodel=large
38258 (filter_memory_map): remove memory post 4 GiB when compiled
38259 without -mcmodel=large
38260 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38261 TARGET_CFLAGS when -mcmodel=large isn't supported
38262
38263 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38264
38265 Remove nested functions in efiemu core
38266
38267 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38268
38269 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38270
38271 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38272
38273 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38274 temporary storage
38275 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38276 using Apple's CC
38277 (grub_cpu_is_tsc_supported): likewise
38278 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38279
38280 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38281
38282 Absolute addressing through constant with Apple's cc
38283
38284 * kern/i386/pc/startup.S: Define necessary constants
38285 and address through it when using ABS with Apple's CC
38286 * boot/i386/pc/diskboot.S: likewise
38287 * boot/i386/pc/boot.S: likewise
38288 * boot/i386/pc/lnxboot.S: likewise
38289 * boot/i386/pc/cdboot.S: likewise
38290 * mmap/i386/pc/mmap_helper.S: likewise
38291 * commands/i386/pc/drivemap_int13h.S: likewise
38292
38293 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38294
38295 Check if compiler is apple cc
38296
38297 * Makefile.in (ASFLAGS): new variable
38298 (TARGET_ASFLAGS): likewise
38299 (TARGET_MODULE_FORMAT): likewise
38300 (TARGET_APPLE_CC): likewise
38301 (OBJCONV): likewise
38302 (TARGET_IMG_CFLAGS): likewise
38303 (TARGET_CPPFLAGS): add includedir
38304 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38305 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38306 Check for linker script only if compiler isn't Apple's CC
38307 (TARGET_MODULE_FORMAT): set
38308 (TARGET_APPLE_CC): likewise
38309 (TARGET_ASFLAGS): likewise
38310 (ASFLAGS): likewise
38311 Check for objcopy only if compiler isn't Apple's CC
38312 Check for BSS symbol only if compiler isn't Apple's CC
38313 * genmk.rb: adapt nm options if we use Apple's utils
38314 * aclocal.m4 (grub_apple_cc): new test
38315 (grub_apple_target_cc): likewise
38316
38317 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38318
38319 Simplify sed expressions and improve awk
38320
38321 * Makefile.in (install-local): simplify sed expression
38322 * gencmdlist.sh: likewise
38323 * genmoddep.awk: avoid adding module as a dependency of itself
38324
38325 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38326
38327 Add missing start symbols
38328
38329 * boot/i386/pc/boot.S: add start
38330 * boot/i386/pc/pxeboot.S: likewise
38331
38332 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38333
38334 Fix wrong assumptions with grub-mkimage on EFI
38335
38336 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38337 (relocate_addresses): consider both r_addend and value at offset
38338 (make_mods_section): zerofill modinfo and header
38339 (convert_elf): write prefix here
38340
38341 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38342
38343 Use .asciz instead of .string
38344
38345 * i386/pc/diskboot.S: use .asciz instead of .string
38346 * i386/pc/boot.S: likewise
38347 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38348 (GRUB_MOD_NAME): likewise
38349
38350 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38351
38352 gfxpayload support
38353
38354 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38355 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38356 (grub_video_setup): remove
38357 (grub_video_set_mode): new prototype
38358 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38359 (vid_mode): remove
38360 (linux_vesafb_res): compile only on PCBIOS
38361 (grub_linux_boot): support gfxpayload
38362 * loader/i386/pc/xnu.c (video_hook): new function
38363 (grub_xnu_set_video): support gfxpayload
38364 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38365 (DEFAULT_VIDEO_HEIGHT): likewise
38366 (DEFAULT_VIDEO_FLAGS): likewise
38367 (DEFAULT_VIDEO_MODE): new definition
38368 (video_hook): new function
38369 (grub_gfxterm_init): use grub_video_set_mode
38370 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38371 loading xnu
38372 * video/video.c (grub_video_setup): removed
38373 (grub_video_set_mode): new function based on grub_gfxterm_init and
38374 grub_video_setup
38375
38376 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38377
38378 Avoid calling biosdisk in drivemap
38379
38380 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38381 (revparse_biosdisk): likewise
38382 (list_mappings): derive name from id directly
38383 (grub_cmd_drivemap): use tryparse_diskstring
38384
38385 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38386
38387 Script fixes
38388
38389 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38390 (grub_lexer_param): add tokenonhold
38391 (grub_script_create_cmdline): remove cmdline. All callers updated
38392 (grub_script_function_create): make functionname
38393 grub_script_arg. All callers updated
38394 (grub_script_execute_argument_to_string): new prototype
38395 * kern/parser.c (state_transitions): reorder
38396 (grub_parser_cmdline_state): fix a bug and make more compact
38397 * script/sh/execute.c (grub_script_execute_argument_to_string):
38398 make global
38399 (grub_script_execute_cmdline): use new format
38400 * script/sh/function.c (grub_script_function_create): make functionname
38401 grub_script_arg. All callers updated
38402 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38403 (grub_script_yylex): remove
38404 (grub_script_yylex2): renamed to ...
38405 (grub_script_yylex): ...renamed
38406 parse the expressions like a${b}c
38407 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38408 (GRUB_PARSER_TOKEN_VAR): remove
38409 (GRUB_PARSER_TOKEN_NAME): likewise
38410 ("if"): declare as typeless
38411 ("while"): likewise
38412 ("function"): likewise
38413 ("else"): likewise
38414 ("then"): likewise
38415 ("fi"): likewise
38416 (text): remove
38417 (argument): likewise
38418 (script): accept empty scripts and make exit on error
38419 (arguments): use GRUB_PARSER_TOKEN_ARG
38420 (function): likewise
38421 (command): move error handling to script
38422 (menuentry): move grub_script_lexer_ref before
38423 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38424 argument. All callers updated
38425
38426 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38427
38428 Prevent GRUB from probing floppies during boot.
38429
38430 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38431 * commands/search.c (options): Add --no-floppy.
38432 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38433 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38434 --no-floppy when searching for UUIDs.
38435
38436 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38437
38438 Simplify the code duplication in commands/search.c.
38439
38440 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38441 (search_fs): ... this. Update all users.
38442
38443 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38444
38445 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38446
38447 2009-05-28 Pavel Roskin <proski@gnu.org>
38448
38449 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38450 Remove the original symlink explicitly.
38451
38452 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38453 just one slash. That's how grub_fshelp_find_file() does it.
38454
38455 2009-05-26 Pavel Roskin <proski@gnu.org>
38456
38457 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38458 to `str'.
38459
38460 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38461 possibly unused.
38462
38463 2009-05-25 Christian Franke <franke@computer.org>
38464
38465 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38466 register.
38467 (grub_atapi_identify): Add wait after drive select.
38468 (grub_ata_identify): Do more strict status register check before
38469 calling grub_atapi_identify (). Suppress error message if status
38470 register is 0x00 after command failure. Add status register
38471 check after PIO read to avoid bogus identify due to stuck DRQ.
38472 Thanks to Pavel Roskin for testing.
38473 (grub_device_initialize): Remove unsafe status register check.
38474 Thanks to 'phcoder' for problem report and patch.
38475 Prevent sign extension in debug message.
38476
38477 2009-05-23 Colin D Bennett <colin@gibibit.com>
38478
38479 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38480 definition file, and functions defined in `normal/menu.c' have had
38481 their prototypes moved to `include/grub/menu.h' for consistency.
38482
38483 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38484 from normal.h.
38485 (grub_menu_get_entry): Likewise.
38486 (grub_menu_get_timeout): Likewise.
38487 (grub_menu_set_timeout): Likewise.
38488 (grub_menu_execute_entry): Likewise.
38489 (grub_menu_execute_with_fallback): Likewise.
38490 (grub_menu_entry_run): Likewise.
38491
38492 * include/grub/normal.h: Re-ordered and grouped function
38493 prototypes by file that the function is defined in.
38494 (grub_menu_execute_callback): Removed; moved to menu.h.
38495 (grub_menu_get_entry): Likewise.
38496 (grub_menu_get_timeout): Likewise.
38497 (grub_menu_set_timeout): Likewise.
38498 (grub_menu_execute_entry): Likewise.
38499 (grub_menu_execute_with_fallback): Likewise.
38500 (grub_menu_entry_run): Likewise.
38501 (grub_menu_addentry): Renamed from this ...
38502 (grub_normal_add_menu_entry): ... to this.
38503
38504 * normal/main.c (grub_menu_addentry): Renamed from this ...
38505 (grub_normal_add_menu_entry): ... to this.
38506
38507 * script/sh/execute.c (grub_script_execute_menuentry): Update
38508 reference to renamed grub_menu_addentry function.
38509
38510 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38511
38512 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38513
38514 2009-05-22 Pavel Roskin <proski@gnu.org>
38515
38516 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38517 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38518 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38519 compiling for the i386 targets, but not for the utilities.
38520
38521 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38522 to grub_uint8_t.
38523 (grub_root_drive): Likewise.
38524 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38525 remove alignment.
38526 (grub_root_drive): Change size to byte.
38527 (grub_start_addr): Remove.
38528 (grub_end_addr): Likewise.
38529 (grub_apm_bios_info): Likewise.
38530
38531 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38532
38533 * normal/i386: Remove.
38534 * normal/powerpc: Likewise.
38535 * normal/sparc64: Likewise.
38536 * normal/x86_64: Likewise.
38537
38538 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38539
38540 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38541 * loader/i386/linux_trampoline.S: Fix indentation
38542 * loader/i386/xnu_helper.S: Likewise
38543
38544 2009-05-18 Colin D Bennett <colin@gibibit.com>
38545
38546 Display error messages when parsing a Lua statement fails.
38547 Previously, executing a syntactically invalid statement like
38548 ")foo" or "bar;" would silently fail.
38549
38550 * script/lua/grub_main.c (handle_lua_error): New function.
38551 (grub_lua_parse_line): Improved reporting of Lua parser and
38552 execution errors.
38553
38554 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38555
38556 Remove -Werror which causes build to fail on some systems
38557
38558 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38559 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38560 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38561
38562 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38563
38564 trampoline for linux on 64-bit platform
38565
38566 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38567 loader/i386/efi/linux_trampoline.S
38568 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38569 declaration
38570 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38571 here
38572 * loader/i386/linux_trampoline.S: moved here
38573 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38574 trampoline
38575 (jumpvector): removed
38576 (grub_linux_trampoline_start): new declaration
38577 (grub_linux_trampoline_end): likewise
38578 (grub_linux_boot): use trampoline when on 64-bit platform
38579 * loader/i386/linux.c: likewise
38580
38581 2009-05-16 Pavel Roskin <proski@gnu.org>
38582
38583 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38584 const to avoid a warning.
38585 (grub_lua_setenv): Likewise.
38586 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38587 lmsg to fix a warning.
38588
38589 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38590
38591 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38592 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38593 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38594 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38595 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38596 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38597 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38598 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38599
38600 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38601
38602 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38603
38604 2009-05-16 Bean <bean123ch@gmail.com>
38605
38606 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38607 (lua_mod_SOURCES): New variable.
38608 (lua_mod_CFLAGS): Likewise.
38609 (lua_mod_LDFLAGS): Likewise.
38610
38611 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38612 (setjmp_mod_SOURCES): New variable.
38613 (setjmp_mod_CFLAGS): Likewise.
38614 (setjmp_LDFLAGS): Likewise.
38615
38616 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38617 (setjmp_mod_SOURCES): New variable.
38618 (setjmp_mod_CFLAGS): Likewise.
38619 (setjmp_LDFLAGS): Likewise.
38620
38621 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38622 (setjmp_mod_SOURCES): New variable.
38623 (setjmp_mod_CFLAGS): Likewise.
38624 (setjmp_LDFLAGS): Likewise.
38625
38626 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38627 (setjmp_mod_SOURCES): New variable.
38628 (setjmp_mod_CFLAGS): Likewise.
38629 (setjmp_LDFLAGS): Likewise.
38630
38631 * normal/i386/setjmp.S: Moved from here ...
38632 * lib/i386/setjmp.S: ... Moved here
38633 * normal/x86_64/setjmp.S: Moved from here ...
38634 * lib/x86_64/setjmp.S: ... Moved here
38635 * normal/powerpc/setjmp.S: Moved from here ...
38636 * lib/powerpc/setjmp.S: ... Moved here
38637 * normal/sparc64/setjmp.S: Moved from here ...
38638 * lib/sparc64/setjmp.S: ... Moved here
38639
38640 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38641 returns_twice in mingw.
38642
38643 * script/lua/grub_lib.c: New file.
38644 * script/lua/grub_lib.h: Likewise.
38645 * script/lua/grub_lua.h: Likewise.
38646 * script/lua/grub_main.c: Likewise.
38647 * script/lua/lapi.c: Likewise.
38648 * script/lua/lapi.h: Likewise.
38649 * script/lua/lauxlib.c: Likewise.
38650 * script/lua/lauxlib.h: Likewise.
38651 * script/lua/lbaselib.c: Likewise.
38652 * script/lua/lcode.c: Likewise.
38653 * script/lua/lcode.h: Likewise.
38654 * script/lua/ldblib.c: Likewise.
38655 * script/lua/ldebug.c: Likewise.
38656 * script/lua/ldebug.h: Likewise.
38657 * script/lua/ldo.c: Likewise.
38658 * script/lua/ldo.h: Likewise.
38659 * script/lua/ldump.c: Likewise.
38660 * script/lua/lfunc.c: Likewise.
38661 * script/lua/lfunc.h: Likewise.
38662 * script/lua/lgc.c: Likewise.
38663 * script/lua/lgc.h: Likewise.
38664 * script/lua/linit.c: Likewise.
38665 * script/lua/liolib.c: Likewise.
38666 * script/lua/llex.c: Likewise.
38667 * script/lua/llex.h: Likewise.
38668 * script/lua/llimits.h: Likewise.
38669 * script/lua/lmathlib.c: Likewise.
38670 * script/lua/lmem.c: Likewise.
38671 * script/lua/lmem.h: Likewise.
38672 * script/lua/loadlib.c: Likewise.
38673 * script/lua/lobject.c: Likewise.
38674 * script/lua/lobject.h: Likewise.
38675 * script/lua/lopcodes.c: Likewise.
38676 * script/lua/lopcodes.h: Likewise.
38677 * script/lua/loslib.c: Likewise.
38678 * script/lua/lparser.c: Likewise.
38679 * script/lua/lparser.h: Likewise.
38680 * script/lua/lstate.c: Likewise.
38681 * script/lua/lstate.h: Likewise.
38682 * script/lua/lstring.c: Likewise.
38683 * script/lua/lstring.h: Likewise.
38684 * script/lua/lstrlib.c: Likewise.
38685 * script/lua/ltable.c: Likewise.
38686 * script/lua/ltable.h: Likewise.
38687 * script/lua/ltablib.c: Likewise.
38688 * script/lua/ltm.c: Likewise.
38689 * script/lua/ltm.h: Likewise.
38690 * script/lua/lua.h: Likewise.
38691 * script/lua/luaconf.h: Likewise.
38692 * script/lua/lualib.h: Likewise.
38693 * script/lua/lundump.c: Likewise.
38694 * script/lua/lundump.h: Likewise.
38695 * script/lua/lvm.c: Likewise.
38696 * script/lua/lvm.h: Likewise.
38697 * script/lua/lzio.c: Likewise.
38698 * script/lua/lzio.h: Likewise.
38699
38700 2009-05-16 Bean <bean123ch@gmail.com>
38701
38702 * include/grub/kernel.h (grub_module_header_types): Add type
38703 OBJ_TYPE_CONFIG.
38704
38705 * kern/main.c (grub_load_config): New function.
38706 (grub_main): Call grub_load_config to read boot config.
38707
38708 * grub-mkimage (generate_image): New parameter config_path.
38709 (options): New option --config.
38710 (main): Parse --config option, and pass it to generate_image.
38711
38712 2009-05-14 Christian Franke <franke@computer.org>
38713
38714 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38715 This fixes build on Cygwin.
38716
38717 2009-05-14 Pavel Roskin <proski@gnu.org>
38718
38719 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38720 jump. This saves two bytes, so the typical case of 2 swapped
38721 drives would fit 32 bytes.
38722
38723 2009-05-13 Pavel Roskin <proski@gnu.org>
38724
38725 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38726 grub_uint32_t to avoid a warning.
38727
38728 * loader/i386/linux.c (allocate_pages): When assigning
38729 real_mode_mem, cast through grub_size_t to fix a warning. The
38730 code already makes sure that the value would fit a pointer.
38731 (grub_linux_setup_video): Cast render_target->data to
38732 grub_size_t to fix a warning.
38733
38734 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38735
38736 * commands/i386/pc/drivemap.c: New file - implement drivemap
38737 command.
38738 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38739 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38740
38741 2009-05-13 Pavel Roskin <proski@gnu.org>
38742
38743 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38744 embedding_area_exists.
38745
38746 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38747
38748 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38749 it easier to understand / work with.
38750 Improve warning messages for cases where there's no embedding area,
38751 or when it is too small (or core.img too large).
38752
38753 2009-05-13 Pavel Roskin <proski@gnu.org>
38754
38755 * loader/i386/pc/multiboot2.c: Add necessary includes for
38756 grub_multiboot2_real_boot().
38757
38758 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38759 PX record is always little-endian. We only need the lower 2
38760 bytes of the mode.
38761
38762 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38763 facilitate code reuse.
38764 (grub_cpio_mount): Use "struct head", not a char buffer. This
38765 fixes a warning reported by gcc 4.4.
38766
38767 * kernel/disk.c (grub_disk_read): Use void pointer for the
38768 buffer.
38769 (grub_disk_write): Use const void pointer for the buffer.
38770 Adjust all callers. Remove unnecessary casts.
38771
38772 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38773
38774 * util/i386/pc/grub-install.in: Update copyright year.
38775
38776 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38777
38778 gptsync
38779
38780 * commands/gptsync.c: new file
38781 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38782 (gptsync_mod_SOURCES): new variable
38783 (gptsync_mod_CFLAGS): likewise
38784 (gptsync_mod_LDFLAGS): likewise
38785 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38786 new definition
38787 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38788 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38789 * conf/i386-ieee1275.rmk: likewise
38790 * conf/i386-pc.rmk: likewise
38791 * conf/powerpc-ieee1275.rmk: likewise
38792
38793 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38794
38795 Fixed grub-emu
38796
38797 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38798 (grub_dl_ref): likewise
38799
38800 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38801
38802 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38803 split in two functions (one for msdos and one for gpt).
38804
38805 2009-05-08 Pavel Roskin <proski@gnu.org>
38806
38807 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38808 not modified.
38809
38810 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38811 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38812 Initialize them with -1. Add sanity check for bad1. Eliminate
38813 nerr variable.
38814
38815 2009-05-08 David S. Miller <davem@davemloft.net>
38816
38817 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38818
38819 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38820
38821 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38822 existence.
38823
38824 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38825
38826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38827 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38828
38829 2009-05-05 David S. Miller <davem@davemloft.net>
38830
38831 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38832
38833 2009-05-05 Pavel Roskin <proski@gnu.org>
38834
38835 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38836 of grub_dl_ref() and grub_dl_unref().
38837 * commands/parttool.c: Remove preprocessor conditionals around
38838 grub_dl_ref() and grub_dl_unref().
38839 * fs/affs.c: Likewise.
38840 * fs/afs.c: Likewise.
38841 * fs/cpio.c: Likewise.
38842 * fs/ext2.c: Likewise.
38843 * fs/fat.c: Likewise.
38844 * fs/hfs.c: Likewise.
38845 * fs/hfsplus.c: Likewise.
38846 * fs/iso9660.c: Likewise.
38847 * fs/jfs.c: Likewise.
38848 * fs/minix.c: Likewise.
38849 * fs/ntfs.c: Likewise.
38850 * fs/reiserfs.c: Likewise.
38851 * fs/sfs.c: Likewise.
38852 * fs/udf.c: Likewise.
38853 * fs/ufs.c: Likewise.
38854 * fs/xfs.c: Likewise.
38855 * include/grub/dl.h: Likewise.
38856 * loader/xnu.c: Likewise.
38857
38858 2009-05-04 Pavel Roskin <proski@gnu.org>
38859
38860 * commands/acpi.c: Remove unused variable my_mod.
38861 * partmap/amiga.c: Likewise.
38862 * partmap/apple.c: Likewise.
38863 * partmap/gpt.c: Likewise.
38864 * partmap/pc.c: Likewise.
38865 * partmap/sun.c: Likewise.
38866 * term/gfxterm.c: Likewise.
38867 * term/i386/pc/vesafb.c: Likewise.
38868 * term/i386/pc/vga.c: Likewise.
38869
38870 2009-05-04 David S. Miller <davem@davemloft.net>
38871
38872 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38873 pointer args to grub_ieee1275_get_property().
38874
38875 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38876
38877 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38878 devices, and do not traverse down under controller nodes.
38879
38880 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38881 (grub_ofdisk_open): Use it to un-escape "," characters.
38882 * kern/disk.c (find_part_sep): New.
38883 (grub_disk_open): Use it to find the first non-escaped ','
38884 character in the disk name.
38885 * util/ieee1275/devicemap.c (escape_of_path): New.
38886 (grub_util_emit_devicemap_entry): Use it.
38887 * util/sparc64/ieee1275/grub-install.in: Update script to
38888 strip partition specifiers properly by not triggering on
38889 '\' escaped ',' characters.
38890
38891 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38892
38893 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38894 to 0x300.
38895 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38896 resolutions.
38897 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38898 on documentation from Wikipedia).
38899
38900 2009-05-04 Pavel Roskin <proski@gnu.org>
38901
38902 * disk/ata.c: Spelling fixes.
38903 * disk/raid.c: Likewise.
38904 * disk/usbms.c: Likewise.
38905 * disk/dmraid_nvidia.c: Likewise.
38906 * kern/ieee1275/openfw.c: Likewise.
38907 * kern/ieee1275/init.c: Likewise.
38908 * kern/ieee1275/cmain.c: Likewise.
38909 * boot/i386/pc/cdboot.S: Likewise.
38910 * video/readers/png.c: Likewise.
38911 * video/i386/pc/vbe.c: Likewise.
38912 * fs/udf.c: Likewise.
38913 * fs/hfs.c: Likewise.
38914 * fs/reiserfs.c: Likewise.
38915 * efiemu/runtime/efiemu.c: Likewise.
38916 * efiemu/main.c: Likewise.
38917 * efiemu/mm.c: Likewise.
38918 * include/grub/elf.h: Likewise.
38919 * include/grub/xnu.h: Likewise.
38920 * include/grub/usbdesc.h: Likewise.
38921 * include/grub/usb.h: Likewise.
38922 * include/grub/script_sh.h: Likewise.
38923 * include/grub/lib/LzmaEnc.h: Likewise.
38924 * include/grub/efiemu/efiemu.h: Likewise.
38925 * include/grub/command.h: Likewise.
38926 * normal/menu.c: Likewise.
38927 * normal/main.c: Likewise.
38928 * normal/datetime.c: Likewise.
38929 * bus/usb/uhci.c: Likewise.
38930 * mmap/i386/uppermem.c: Likewise.
38931 * mmap/mmap.c: Likewise.
38932 * commands/acpi.c: Likewise.
38933 * commands/test.c: Likewise.
38934 * partmap/apple.c: Likewise.
38935 * font/font.c: Likewise.
38936 * loader/sparc64/ieee1275/linux.c: Likewise.
38937 * loader/macho.c: Likewise.
38938 * loader/i386/bsd_trampoline.S: Likewise.
38939 * loader/i386/bsd.c: Likewise.
38940 * loader/xnu.c: Likewise.
38941 * term/i386/pc/vesafb.c: Likewise.
38942 * term/usb_keyboard.c: Likewise.
38943 * util/resolve.c: Likewise.
38944 * util/getroot.c: Likewise.
38945
38946 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38947
38948 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38949
38950 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38951
38952 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38953 build error.
38954
38955 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38956
38957 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38958 parameter only available on BIOS.
38959
38960 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38961
38962 Removed wrong semicolon in declaration
38963
38964 * grub/misc.h (grub_dprintf): remove semicolon
38965
38966 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38967
38968 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38969 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38970 is done by grub_cmd_linux() now).
38971 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38972 restore video to text mode.
38973 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38974 indicates lack of "vga=" parameter. "vga=0" is mapped to
38975 `GRUB_LINUX_VID_MODE_NORMAL'.
38976
38977 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38978
38979 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38980 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38981 and `normal/script.c'. Add `kern/rescue_reader.c',
38982 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38983 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38984 `grub_script.tab.c'.
38985
38986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38987 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38989 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38990 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38991
38992 * Makefile.in: Remove duplicated 2008 in Copyright line.
38993
38994 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38995
38996 * util/misc.c (grub_util_warn): New function. Emits a warning
38997 unconditionally.
38998 * include/grub/util/misc.h (grub_util_warn): New declaration.
38999
39000 * util/i386/pc/grub-install.in: Understand --force and pass it down
39001 to grub-setup.
39002
39003 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39004 down to setup().
39005 (setup): Improve error messages and add warnings when requested to
39006 install in odd layouts. Refuse to install using blocklists unless
39007 --force was set.
39008
39009 2009-05-04 martin f. krafft <madduck@madduck.net>
39010
39011 * disk/raid.c (grub_raid_scan_device): Improve debug message.
39012
39013 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39014
39015 Updated copyright year
39016
39017 * fs/hfsplus.c: updated copyright year
39018
39019 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39020
39021 HFS+ UUID
39022
39023 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39024 in the space previously used by unused3
39025 (grub_hfsplus_uuid): new function
39026 (grub_hfsplus_fs): added uuid field
39027
39028 2009-05-03 Pavel Roskin <proski@gnu.org>
39029
39030 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39031 suppress warnings. It's no longer needed.
39032 * disk/host.c: Likewise.
39033 * disk/ata_pthru.c: Likewise.
39034 * disk/loopback.c: Likewise.
39035 * hook/datehook.c: Likewise.
39036 * parttool/pcpart.c: Likewise.
39037 * fs/i386/pc/pxe.c: Likewise.
39038 * fs/ntfscomp.c: Likewise.
39039 * efiemu/main.c: Likewise.
39040 * mmap/mmap.c: Likewise.
39041 * commands/crc.c: Likewise.
39042 * commands/hexdump.c: Likewise.
39043 * commands/hdparm.c: Likewise.
39044 * commands/acpi.c: Likewise.
39045 * commands/echo.c: Likewise.
39046 * commands/minicmd.c: Likewise.
39047 * commands/blocklist.c: Likewise.
39048 * commands/memrw.c: Likewise.
39049 * commands/loadenv.c: Likewise.
39050 * commands/usbtest.c: Likewise.
39051 * commands/lsmmap.c: Likewise.
39052 * commands/boot.c: Likewise.
39053 * commands/parttool.c: Likewise.
39054 * commands/configfile.c: Likewise.
39055 * commands/search.c: Likewise.
39056 * commands/ieee1275/suspend.c: Likewise.
39057 * commands/cat.c: Likewise.
39058 * commands/i386/pc/pxecmd.c: Likewise.
39059 * commands/i386/pc/play.c: Likewise.
39060 * commands/i386/pc/halt.c: Likewise.
39061 * commands/i386/pc/vbeinfo.c: Likewise.
39062 * commands/i386/pc/vbetest.c: Likewise.
39063 * commands/lspci.c: Likewise.
39064 * commands/date.c: Likewise.
39065 * commands/handler.c: Likewise.
39066 * commands/ls.c: Likewise.
39067 * commands/test.c: Likewise.
39068 * commands/cmp.c: Likewise.
39069 * commands/efi/loadbios.c: Likewise.
39070 * commands/efi/fixvideo.c: Likewise.
39071 * commands/halt.c: Likewise.
39072 * commands/help.c: Likewise.
39073 * commands/reboot.c: Likewise.
39074 * hello/hello.c: Likewise.
39075 * script/sh/main.c: Likewise.
39076 * loader/xnu.c: Likewise.
39077 * term/terminfo.c: Likewise.
39078 * term/i386/pc/serial.c: Likewise.
39079 * term/usb_keyboard.c: Likewise.
39080
39081 2009-05-03 David S. Miller <davem@davemloft.net>
39082
39083 * normal/menu.c: Include grub/parser.h
39084
39085 2009-05-03 Pavel Roskin <proski@gnu.org>
39086
39087 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39088 not char*.
39089 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39090 Suggested by Javier Martín <lordhabbit@gmail.com>
39091
39092 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39093 efiemu??.o doesn't exist.
39094 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39095 copying.
39096
39097 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39098
39099 FreeBSD 64-bit support
39100
39101 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39102 and loader/i386/bsd_trampoline.S
39103 (bsd_mod_ASFLAGS): new variable
39104 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39105 (FREEBSD_MODTYPE_KERNEL64): likewise
39106 (grub_bsd64_trampoline_start): likewise
39107 (grub_bsd64_trampoline_end): likewise
39108 (grub_bsd64_trampoline_selfjump): likewise
39109 (grub_bsd64_trampoline_gdt): likewise
39110 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39111 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39112 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39113 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39114 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39115 of "attrib" member
39116 * loader/i386/bsd_pagetable.c: new file
39117 * loader/i386/bsd_trampoline.S: likewise
39118 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39119 (ALIGN_VAR): likewise
39120 (entry_hi): new variable
39121 (kern_end_mdofs): likewise
39122 (is_64bit): likewise
39123 (grub_freebsd_add_meta): use ALIGN_VAR
39124 (grub_e820_mmap): new declaration
39125 (grub_freebsd_add_mmap): new function
39126 (grub_freebsd_add_meta_module): support 64 bit kernels
39127 (grub_freebsd_list_modules): use ALIGN_VAR
39128 (gdt_descriptor): new declaration
39129 (grub_freebsd_boot): support 64 bit kernels
39130 (grub_bsd_elf64_hook): new function
39131 (grub_bsd_load_elf): support elf64
39132
39133 2009-05-03 Bean <bean123ch@gmail.com>
39134
39135 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39136 after we get the result of if statement.
39137
39138 2009-05-03 Bean <bean123ch@gmail.com>
39139
39140 * Makefile.in (enable_efiemu): New variable.
39141
39142 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39143 set.
39144 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39145 path.
39146 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39147 path, add -mno-red-zone option.
39148 (efiemu64_s.o): Likewise.
39149 (efiemu64.o): Use macro $^ for source file.
39150
39151 * configure.ac (--enable-efiemu): New option.
39152
39153 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39154
39155 xnu support
39156
39157 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39158 (pkglib_MODULES): add xnu.mod
39159 (xnu_mod_SOURCES): new variable
39160 (xnu_mod_CFLAGS): likewise
39161 (xnu_mod_LDFLAGS): likewise
39162 (xnu_mod_ASFLAGS): likewise
39163 * conf/i386-pc.rmk: likewise
39164 * conf/x86_64-efi.rmk: likewise
39165 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39166 new declaration
39167 * include/grub/i386/macho.h: new file
39168 * include/grub/i386/xnu.h: likewise
39169 * include/grub/macho.h: likewise
39170 * include/grub/machoload.h: likewise
39171 * include/grub/x86_64/macho.h: likewise
39172 * include/grub/x86_64/xnu.h: likewise
39173 * include/grub/xnu.h: likewise
39174 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39175 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39176 * loader/i386/efi/xnu.c: new file
39177 * loader/i386/pc/xnu.c: likewise
39178 * loader/i386/xnu.c: likewise
39179 * loader/i386/xnu_helper.S: likewise
39180 * loader/macho.c: likewise
39181 * loader/xnu.c: likewise
39182 * loader/xnu_resume.c: likewise
39183 * util/grub-dumpdevtree: likewise
39184 * include/grub/i386/pit.h: include grub/err.h
39185 (grub_pit_wait): export
39186 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39187
39188 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39189
39190 Efiemu
39191
39192 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39193 _linux_efi, linux_efi.
39194 new files in grub-emu
39195 new targets efiemu32.o and efiemu64.o
39196 * loader/linux_normal_efiemu.c: likewise
39197 * loader/i386/efi/linux.c: added preliminary efiemu support
39198 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39199 files to copy
39200 * include/grub/autoefi.h: new file
39201 * include/grub/i386/efiemu.h: likewise
39202 * include/grub/i386/pc/efiemu.h: likewise
39203 * include/grub/efi/api.h: add LL suffix when necessary
39204 new definitions relating to tables
39205 * include/grub/efiemu/efiemu.h: new file
39206 * include/grub/efiemu/runtime.h: likewise
39207 * efiemu/prepare.c: likewise
39208 * efiemu/loadcore_common.c: likewise
39209 * efiemu/loadcore64.c: likewise
39210 * efiemu/runtime/efiemu.sh: likewise
39211 * efiemu/runtime/efiemu.S: likewise
39212 * efiemu/runtime/efiemu.c: likewise
39213 * efiemu/runtime/config.h: likewise
39214 * efiemu/prepare32.c: likewise
39215 * efiemu/main.c: likewise
39216 * efiemu/modules/pnvram.c: likewise
39217 * efiemu/modules/i386: likewise
39218 * efiemu/modules/i386/pc: likewise
39219 * efiemu/modules/acpi.c: likewise
39220 * efiemu/i386/pc/cfgtables.c: likewise
39221 * efiemu/i386/loadcore64.c: likewise
39222 * efiemu/i386/loadcore32.c: likewise
39223 * efiemu/prepare64.c: likewise
39224 * efiemu/loadcore.c: likewise
39225 * efiemu/symbols.c: likewise
39226 * efiemu/mm.c: likewise
39227 * efiemu/loadcore32.c: likewise
39228
39229 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39230
39231 ACPI spoofing
39232
39233 * commands/acpi.c: new file
39234 * commands/i386/pc/acpi.c: likewise
39235 * commands/efi/acpi.c: likewise
39236 * include/grub/acpi.h: likewise
39237 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39238 (acpi_mod_SOURCES): new variable
39239 (acpi_mod_CFLAGS): likewise
39240 (acpi_mod_LDFLAGS): likewise
39241 * conf/i386-efi.rmk: likewise
39242 * conf/x86_64-efi.rmk: likewise
39243
39244 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39245
39246 Missing part from mmap patch
39247
39248 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39249 (grub_mmap_unregister)
39250 (grub_mmap_free_and_unregister): use grub_mmap_register
39251
39252 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39253
39254 Mmap services
39255
39256 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39257 * loader/i386/linux.c (find_mmap_size): likewise
39258 (allocate_pages): likewise
39259 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39260 (grub_fill_multiboot_mmap): likewise
39261 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39262 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39263 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39264 (OPENBSD_MMAP_RESERVED): likewise
39265 * include/grub/i386/pc/memory.h: include grub/memory.h
39266 (grub_lower_mem): removed
39267 (grub_upper_mem): likewise
39268 (GRUB_MACHINE_MEMORY_ACPI): new definition
39269 (GRUB_MACHINE_MEMORY_NVS): likewise
39270 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39271 (GRUB_MACHINE_MEMORY_HOLE): likewise
39272 (grub_machine_mmap_register): likewise
39273 (grub_machine_mmap_unregister): likewise
39274 (grub_machine_get_upper): likewise
39275 (grub_machine_get_lower): likewise
39276 (grub_machine_get_post64): likewise
39277 * include/grub/i386/efi/memory.h: new file
39278 * include/grub/x86_64/efi/memory.h: likewise
39279 * include/grub/efi/memory.h: likewise
39280 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39281 (mmap_mod_SOURCES): new variable
39282 (mmap_mod_LDFLAGS): likewise
39283 (mmap_mod_ASFLAGS): likewise
39284 * conf/i386-coreboot.rmk: likewise
39285 * conf/i386-ieee1275.rmk: likewise
39286 * conf/i386-efi.rmk: likewise
39287 * conf/x86_64-efi.rmk: likewise
39288 * include/grub/types.h (UINT_TO_PTR): new macro
39289 (PTR_TO_UINT32): likewise
39290 (PTR_TO_UINT64): likewise
39291 * include/grub/memory.h: new file
39292 * mmap/i386/pc/mmap.c: likewise
39293 * mmap/i386/pc/mmap_helper.S: likewise
39294 * mmap/i386/uppermem.c: likewise
39295 * mmap/mmap.c: likewise
39296 * mmap/efi/mmap.c: likewise
39297 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39298 grub_upper_mem
39299 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39300 (grub_upper_mem): likewise
39301 (grub_machine_init): don't use grub_upper_mem,
39302 make grub_lower_mem local
39303 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39304 grub_mmap_iterate and grub_mmap_get_upper
39305 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39306
39307 2009-05-02 Bean <bean123ch@gmail.com>
39308
39309 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39310 script/sh/parser.y.
39311 (pkglib_MODULES): Add normal.mod and sh.mod.
39312 (normal_SOURCES): New variable.
39313 (normal_mod_CFLAGS): Likewise.
39314 (normal_mod_LDFLAGS): Likewise.
39315 (sh_mod_SOURCES): Likewise.
39316 (sh_mod_CFLAGS): Likewise.
39317 (sh_mod_LDFLAGS): Likewise.
39318
39319 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39320 script/sh/lexer.c_DEPENDENCIES.
39321 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39322 kern/rescue_reader.c and kern/rescue_parser.c.
39323 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39324 (grub_emu_SOURCES): Change source files.
39325 (pkglib_MODULES): Remove normal.mod.
39326 (normal_SOURCES): Removed.
39327 (normal_mod_CFLAGS): Likewise.
39328 (normal_mod_LDFLAGS): Likewise.
39329 * conf/i386-coreboot.rmk: Likewise.
39330 * conf/i386-efi.rmk: Likewise.
39331 * conf/i386-ieee1276.rmk: Likewise.
39332 * conf/powerpc-ieee1275.rmk: Likewise.
39333 * conf/sparc64-ieee1275.rmk: Likewise.
39334 * conf/x86_64-efi.rmk: Likewise.
39335
39336 * include/grub/command.h (grub_command_execute): New inline function.
39337
39338 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39339
39340 * include/grub/normal.h: Remove <grub/setjmp.h>.
39341 (grub_fs_module_list): Moved to normal/autofs.c.
39342 (grub_exit_env): Removed.
39343 (grub_command_execute): Likewise.
39344 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39345 parameter script.
39346 (read_command_list): New function declaration.
39347 (read_fs_list): Likewise.
39348
39349 * include/parser.h: Include <grub/reader.h>.
39350 (grub_parser_split_cmdline): Change type of getline parameter.
39351 (grub_parser): New structure.
39352 (grub_parser_class): New variable.
39353 (grub_parser_execute): New function declaration.
39354 (grub_register_rescue_parser): Likewise.
39355 (grub_parser_register): New inline function.
39356 (grub_parser_unregister): Likewise.
39357 (grub_parser_get_current): Likewise.
39358 (grub_parser_set_current): Likewise.
39359
39360 * include/grub/reader.h: New file.
39361 * kern/reader.c: Likewise.
39362 * kern/rescue_parser.c: Likewise.
39363 * kern/rescue_reader.c: Likewise.
39364 * normal/autofs.c: Likewise.
39365 * normal/dyncmd.c: Likewise.
39366
39367 * include/grub/rescue.h: Removed.
39368 * normal/command.h: Likewise.
39369
39370 * include/grub/script.h: Moved to ...
39371 * include/grub/script_sh.h: ... Moved here.
39372 * normal/execute.c: Moved to ...
39373 * script/sh/execute.c: ... Moved here.
39374 * normal/function.c: Moved to ...
39375 * script/sh/function.c: ... Moved here.
39376 * normal/lexer.c: Moved to ...
39377 * script/sh/lexer.c: ... Moved here.
39378 * normal/parser.y: Moved to ...
39379 * script/sh/parser.y: ... Moved here.
39380 * normal/script.c: Moved to ...
39381 * script/sh/script.c: ... Moved here.
39382
39383 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39384 <grub/reader.h>.
39385 (grub_exit_env): Removed.
39386 (fs_module_list): Moved to normal/autofs.c.
39387 (grub_file_getline): Don't handle comment here.
39388 (free_menu): Skip removed field entry->commands.
39389 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39390 script parameter.
39391 (read_config_file): Removed nested parameter, change getline function.
39392 (grub_enter_normal_mode): Removed.
39393 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39394 (read_command_list): Likewise.
39395 (autoload_fs_module): Moved to normal/autofs.c.
39396 (read_fs_list): Likewise.
39397 (reader_nested): New variable.
39398 (grub_normal_execute): Run parser.sh to switch to sh parser.
39399 (grub_cmd_rescue): Removed.
39400 (cmd_normal): Removed.
39401 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39402 rescue command.
39403 (grub_cmdline_run): New function.
39404 (grub_normal_reader_init): Likewise.
39405 (grub_normal_read_line): Likewise.
39406 (grub_env_write_pager): Likewise.
39407 (cmdline): New variable.
39408 (grub_normal_reader): Likewise.
39409 (GRUB_MOD_INIT): Register normal reader and set as current, register
39410 pager hook, register normal command with grub_register_command_prio,
39411 so that it won't show up in command.lst.
39412 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39413 grub_fs_autoload_hook.
39414
39415 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39416 (grub_menu_execute_entry): Replace grub_script_execute with
39417 grub_parser_execute, change parameter to grub_command_execute.
39418
39419 * normal/menu_text.c: Remove <grub/script.h>.
39420
39421 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39422 and <grub/parser.h>.
39423 (run): Change editor_getline to use new parser interface. Change
39424 parameter to grub_command_execute.
39425
39426 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39427 <grub/reader.h> and <grub/parser.h>.
39428 (grub_load_normal_mode): Execute normal command.
39429 (grub_main): Call grub_register_core_commands,
39430 grub_register_rescue_parser and grub_register_rescue_reader, use
39431 grub_reader_loop to enter input loop.
39432
39433 * kern/parser.c (grub_parser_split_cmdline): Change type of
39434 getline parameter.
39435 (grub_parser_class): New variable.
39436 (grub_parser_execute): New function.
39437
39438 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39439 * loader/multiboot2.c: Likewise.
39440 * loader/sparc64/ieee1275/linux.c: Likewise.
39441
39442 * util/grub-emu.c (read_command_list): New dummy function.
39443
39444 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39445
39446 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39447 count to 16 for CCISS and IDA.
39448
39449 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39450
39451 * normal/menu_text.c (grub_wait_after_message): Print a newline
39452 after waiting for user input.
39453
39454 * loader/i386/linux.c: Include `<grub/normal.h>'.
39455 (grub_cmd_linux): Improve the error message about `ask' mode, by
39456 waiting for user input so it's not missed (we can do this, since
39457 user requested interaction).
39458
39459 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39460
39461 Added missing lst to grub-mkrescue
39462
39463 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39464 and ${input_dir}/parttool.lst
39465
39466 2009-04-30 David S. Miller <davem@davemloft.net>
39467
39468 * util/hostdisk.c (device_is_wholedisk): New function.
39469 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39470 zero only if device_is_wholedisk() returns true.
39471
39472 * util/hostdisk.c (convert_system_partition_to_system_disk):
39473 Handle virtual disk devices named /dev/vdiskX as found on sparc
39474 and powerpc.
39475
39476 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39477 lettered partition specifier is found, convert to numbered.
39478
39479 2009-04-29 David S. Miller <davem@davemloft.net>
39480
39481 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39482 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39483
39484 * normal/command.c: Add missing newline at end of file.
39485
39486 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39487 warnings.
39488 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39489 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39490 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39491 ihandles have a 32-bit type but need to be stored in a "void *".
39492
39493 2009-04-28 Pavel Roskin <proski@gnu.org>
39494
39495 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39496 not disk. Adjust all dependencies.
39497 (grub_fs_uuid_close): Use grub_device_close(), not
39498 grub_disk_close().
39499
39500 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39501 parent's partition, don't copy it by reference, as it gets freed
39502 on close.
39503
39504 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39505
39506 Preboot hooks support
39507
39508 * commands/boot.c (struct grub_preboot_t): new declaration
39509 (preboots_head): new variable
39510 (preboots_tail): likewise
39511 (grub_loader_register_preboot_hook): new function
39512 (grub_loader_unregister_preboot_hook): likewise
39513 (grub_loader_set): launch preboot hooks
39514 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39515 (grub_loader_register_preboot_hook): new declaration
39516 (grub_loader_unregister_preboot_hook): likewise
39517
39518 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39519
39520 Warning fix
39521
39522 * disk/scsi.c (grub_scsi_open): added missing cast when
39523 calling grub_dprintf
39524
39525 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39526
39527 Bug and warning fixes
39528
39529 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39530 declaration
39531 * commands/test.c (test_parse): fixed bug with file tests and corrected
39532 declaration of find_file
39533
39534 2009-04-26 Pavel Roskin <proski@gnu.org>
39535
39536 * Makefile.in: Don't install empty manual pages if help2man is
39537 missing. Use help2man option for output, not shell redirection.
39538
39539 2009-04-26 David S. Miller <davem@davemloft.net>
39540
39541 * util/grub-mkdevicemap.c (make_device_map): Add missing
39542 NESTED_FUNC_ATTR to process_device().
39543
39544 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39545
39546 Test command
39547
39548 * commands/test.c: rewritten to use bash-like test
39549
39550 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39551
39552 Parttool autoloading and improvements
39553
39554 * Makefile.in (pkglib_DATA): add parttool.lst
39555 (parttool.lst): new target
39556 * genmk.rb: generate parttool-*
39557 (CLEANFILES): add #{parttool}
39558 (PARTTOOLFILES): new variable
39559 * genparttoollist.sh: new file
39560 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39561 (grub_pcpart_type): likewise
39562 * commands/parttool.c (helpmsg): new variable
39563 (grub_cmd_parttool): output help if not enough arguments are supplied
39564 autoload modules
39565 (GRUB_MOD_INIT(parttool)): use helpmsg
39566
39567 2009-04-24 David S. Miller <davem@davemloft.net>
39568
39569 Avoiding opening same device multiple times in device iterator.
39570
39571 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39572 and use it to build a list of partitions in iterate_disk() and
39573 iterate_partition().
39574
39575 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39576 on disk->data.
39577
39578 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39579 grub_devalias_iterate() result instead of unconditional 0.
39580 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39581 Also, capture hook return value, either directly or via
39582 grub_children_iterate(), and propagate to caller.
39583 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39584 grub_children_iterate): Return value is now 'int' instead of
39585 'grub_err_t'.
39586 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39587 like a proper iterator, stopping when hooks return non-zero.
39588 (grub_devalias_iterate): Likewise.
39589
39590 2009-04-23 David S. Miller <davem@davemloft.net>
39591
39592 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39593
39594 2009-04-22 David S. Miller <davem@davemloft.net>
39595
39596 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39597 is larger than address_cells, use that value for address_cells too.
39598
39599 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39600 IEEE1275_MAX_PATH_LEN): Define.
39601 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39602 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39603 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39604 'devtype'. Explicitly NULL terminate devalias expansion.
39605
39606 * util/sparc64/ieee1275/misc.c: New file.
39607 * util/sparc64/ieee1275/grub-setup.c: New file.
39608 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39609 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39610 * util/sparc64/ieee1275/grub-install.in: New file.
39611 * util/ieee1275/ofpath.c: New file.
39612 * util/ieee1275/devicemap.c: New file.
39613 * util/devicemap.c: New file.
39614 * util/deviceiter.c: New file.
39615 * kern/sparc64/ieee1275/init.c: New file.
39616 * include/grub/util/ofpath.h: New file.
39617 * include/grub/util/deviceiter.h: New file.
39618 * util/grub-mkdevicemap.c: Include deviceiter.h.
39619 Implement using grub_util_emit_devicemap_entry and
39620 grub_util_iterate_devices.
39621 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39622 util/devicemap.c into grub-mkdevicemap
39623 * conf/i386-efi.rmk: Likewise.
39624 * conf/i386-ieee1275.rmk: Likewise.
39625 * conf/i386-pc.rmk: Likewise.
39626 * conf/powerpc-ieee1275.rmk: Likewise.
39627 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39628 images and installation utilities. Build kernel as image
39629 instead of as elf binary. Use common rules as much as possible.
39630
39631 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39632
39633 Correct GPT definition
39634
39635 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39636 of "attrib" member
39637
39638 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39639
39640 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39641
39642 2009-04-19 David S. Miller <davem@davemloft.net>
39643
39644 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39645 (grub_rescue_cmd_linux): Rename to...
39646 (grub_cmd_linux): and fix prototype.
39647 (grub_rescue_cmd_initrd): Rename to...
39648 (grub_cmd_initrd): and fix prototype.
39649 (cmd_linux, cmd_initrd): New.
39650 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39651 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39652
39653 2009-04-17 Pavel Roskin <proski@gnu.org>
39654
39655 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39656 format.
39657 (grub_ohci_transfer): Likewise.
39658
39659 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39660
39661 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39662 return without a value. Fix inconsistent indentation.
39663
39664 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39665 match struct grub_fs.
39666
39667 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39668 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39669 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39670 * commands/lspci.c (grub_lspci_iter): Likewise.
39671
39672 2009-04-16 Bean <bean123ch@gmail.com>
39673
39674 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39675 value.
39676
39677 2009-04-15 Pavel Roskin <proski@gnu.org>
39678
39679 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39680 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39681 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39682 definitions.
39683
39684 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39685
39686 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39687 that no multiple data or metadata areas are supported and `Unknown
39688 metadata header'.
39689
39690 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39691
39692 Move loader out of the kernel
39693
39694 * kern/loader.c: moved to ...
39695 * commands/boot.c: ... moved here
39696 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39697 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39698 * include/grub/kernel.h (grub_machine_fini): export
39699 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39700 (grub_loader_set): likewise
39701 (grub_loader_unset): likewise
39702 (grub_loader_boot): likewise
39703 * conf/common.rmk: new module boot.mod
39704 (pkglib_MODULES): add boot.mod
39705 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39706 (grub_emu_SOURCES): likewise
39707 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39708 (grub_emu_SOURCES): likewise
39709 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39710 (grub_emu_SOURCES): likewise
39711 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39712 (grub_emu_SOURCES): likewise
39713 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39714 (grub_emu_SOURCES): likewise
39715 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39716 (grub_emu_SOURCES): likewise
39717 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39718 (grub_emu_SOURCES): likewise
39719
39720 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39721
39722 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39723
39724 * kern/misc.c (grub_itoa): Removed function
39725 (grub_ltoa): likewise
39726 (grub_vsprintf): use grub_lltoa
39727
39728 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39729
39730 Restore grub-emu
39731
39732 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39733 * conf/i386-coreboot.rmk: likewise
39734 * conf/i386-ieee1275.rmk: likewise
39735 * conf/powerpc-ieee1275.rmk: likewise
39736
39737 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39738
39739 * INSTALL: Add that `./autogen.sh' needs to be run before
39740 `./configure.'.
39741
39742 2009-04-14 Bean <bean123ch@gmail.com>
39743
39744 * Makefile.in (pkglib_DATA): Add handler.lst.
39745 (handler.lst): New rule.
39746
39747 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39748 * conf/i386-coreboot.rmk: Likewise.
39749 * conf/i386-ieee1275.rmk: Likewise.
39750 * conf/i386-efi.rmk: Likewise.
39751 * conf/x86_64-efi.rmk: Likewise.
39752 * conf/powerpc-ieee1275.rmk: Likewise.
39753 * conf/sparc64-ieee1275.rmk: Likewise.
39754
39755 * genhandlerlist.sh: New file.
39756
39757 * genmk.rb: Add rules to generate handler.lst.
39758
39759 * include/grub/normal.h (grub_file_getline): New function definition.
39760 (read_handler_list): Likewise.
39761 (free_handler_list): Likewise.
39762
39763 * include/grub/term.h (grub_term_register_input): Add name parameter
39764 for auto generation of handler.lst.
39765 (grub_term_register_output): Likewise.
39766
39767 * normal/handler.c: New file.
39768
39769 * normal/main.c (get_line): Renamed to grub_file_getline.
39770 (read_config_file): Use the newly renamed grub_file_getline.
39771 (read_command_list): Likewise.
39772 (read_fs_list): Likewise.
39773 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39774 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39775
39776 * term/efi/console.c (grub_console_init): Add name parameter for auto
39777 generation of handler.lst.
39778 * term/gfxterm.c: Likewise.
39779 * term/i386/pc/at_keyboard.c: Likewise.
39780 * term/i386/pc/console.c: Likewise.
39781 * term/i386/pc/serial.c: Likewise.
39782 * term/i386/pc/vesafb.c: Likewise.
39783 * term/i386/pc/vga.c: Likewise.
39784 * term/i386/pc/vga_text.c: Likewise.
39785 * term/ieee1275/ofconsole.c: Likewise.
39786 * term/usb_keyboard.c: Likewise.
39787
39788 2009-04-14 Bean <bean123ch@gmail.com>
39789
39790 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39791 properly with null character.
39792
39793 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39794
39795 * configure: Remove.
39796 * config.h.in: Likewise.
39797 * stamp-h.in: Likewise.
39798 * DISTLIST: Likewise.
39799 * conf/common.mk: Likewise.
39800 * conf/i386-coreboot.mk: Likewise.
39801 * conf/i386-efi.mk: Likewise.
39802 * conf/i386-ieee1275.mk: Likewise.
39803 * conf/i386.mk: Likewise.
39804 * conf/i386-pc.mk: Likewise.
39805 * conf/powerpc-ieee1275.mk: Likewise.
39806 * conf/sparc64-ieee1275.mk: Likewise.
39807 * conf/x86_64-efi.mk: Likewise.
39808
39809 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39810 develop on GRUB.
39811
39812 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39813 David S. Miller <davem@davemloft.net>
39814
39815 * util/hostdisk.c (make_device_name): Fix buffer length
39816 calculations.
39817
39818 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39819
39820 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39821 <sys/param.h> and <sys/sysctl.h>.
39822 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39823 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39824 opening the device and reset them afterwards.
39825
39826 2009-04-13 Pavel Roskin <proski@gnu.org>
39827
39828 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39829 Reported by John Stanley <jpsinthemix@verizon.net>
39830
39831 2009-04-13 Robert Millan <rmh@aybabtu.com>
39832
39833 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39834 that name for menuentries when appropriate.
39835
39836 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39837
39838 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39839
39840 2009-04-13 Robert Millan <rmh@aybabtu.com>
39841
39842 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39843 to Linux, simply abort telling the user it's no longer supported.
39844
39845 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39846
39847 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39848 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39849 `freebsd_loadenv' only when devices.hints exist.
39850
39851 2009-04-13 Pavel Roskin <proski@gnu.org>
39852
39853 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39854
39855 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39856
39857 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39858 partition number.
39859 (grub_drive): Likewise.
39860
39861 2009-04-13 David S. Miller <davem@davemloft.net>
39862
39863 * kern/sparc64/ieee1275/ieee1275.c: New file.
39864 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39865 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39866 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39867 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39868 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39869 grub_ieee1275_alloc_physmem): Declare new exported functions.
39870
39871 * include/grub/sparc64/ieee1275/loader.h: New file.
39872 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39873 * include/grub/sparc64/kernel.h: Likewise.
39874 * loader/sparc64/ieee1275/linux.c: Likewise.
39875
39876 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39877 (grub_fstest_SOURCES): Likewise.
39878
39879 * util/hostdisk.c (make_device_name): Do not make any assumptions
39880 about the length of drive names.
39881
39882 * kern/dl.c (grub_dl_load_file): Close file immediately when
39883 we are done using it.
39884
39885 2009-04-12 David S. Miller <davem@davemloft.net>
39886
39887 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39888 values. Noticed by Pavel Roskin.
39889
39890 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39891 target compiler.
39892
39893 * genmk.rb: Add more flexible image type specification, also
39894 pass --strip-unneeded to objcopy.
39895 * conf/i386-pc.rmk: Use *_FORMAT.
39896 * conf/i386-pc.mk: Rebuilt.
39897
39898 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39899 (OFDISK_HASH_SZ): Define.
39900 (ofdisk_hash): New hash table.
39901 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39902 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39903 instead of device phandle which is not unique.
39904
39905 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39906 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39907 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39908 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39909 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39910 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39911 GRUB_KERNEL_MACHINE_DATA_END): Define.
39912 (grub_kernel_image_size, grub_total_module_size): Declare.
39913
39914 2009-04-12 Pavel Roskin <proski@gnu.org>
39915
39916 * configure.ac: Change the logic when we check for target tools.
39917 Do it when the target is specified and it's different from the
39918 specified value of the host.
39919
39920 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39921
39922 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39923 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39924 GNU/kFreeBSD. Check if a device is a character device. Use
39925 DIOCGMEDIASIZE to get the size.
39926 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39927 support for GNU/kFreeBSD.
39928 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39929 is a character device instead of a block device. Add support for
39930 FreeBSD device names.
39931
39932 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39933 is a character device instead of a block device.
39934
39935 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39936 is a character device instead of a block device.
39937
39938 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39939
39940 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39941 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39942 FreeBSD. Check if a device is a character device. Use
39943 DIOCGMEDIASIZE to get the size.
39944 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39945 support for FreeBSD.
39946 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39947 is a character device instead of a block device. Add support for
39948 FreeBSD device names.
39949
39950 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39951 a character device instead of a block device.
39952 (grub_util_check_char_device): New function.
39953
39954 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39955 a character device instead of a block device.
39956
39957 * include/grub/util/getroot.h (grub_util_check_char_device): New
39958 prototype.
39959
39960 2009-04-11 David S. Miller <davem@davemloft.net>
39961
39962 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39963 static libgcc.
39964 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39965 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39966 function, if present.
39967 (__bswapdi2): Likewise.
39968
39969 * include/grub/sparc64/ieee1275/boot.h: New file.
39970 * boot/sparc64/ieee1275/boot.S: Likewise.
39971 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39972
39973 * kern/misc.c (grub_ltoa): New function.
39974 (grub_vsprintf): Use it to format 'long' integers.
39975
39976 2009-04-10 David S. Miller <davem@davemloft.net>
39977
39978 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39979 slots are of type grub_ieee1275_cell_t.
39980 (grub_nand_read): Likewise.
39981 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39982 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39983 macros are used to compare values in arg/ret block of the call.
39984 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39985 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39986 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39987 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39988 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39989 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39990 grub_ieee1275_close, grub_ieee1275_set_property,
39991 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39992 grub_ieee1275_cell_t.
39993 * kern/ieee1275/openfw.c (grub_map): Likewise.
39994 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39995 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39996
39997 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39998 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39999 (grub_devalias_iterate): Likewise.
40000
40001 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
40002
40003 UFS improvements
40004
40005 * fs/ufs.c (INODE_NBLOCKS): new definition
40006 (struct grub_ufs_dirent): added fields for non-BSD dirents
40007 (grub_ufs_get_file_block): fixed double indirect handling
40008 (grub_ufs_lookup_symlink): use more robust way to determine whether
40009 symlink is inline
40010 (grub_ufs_find_file): support for non-BSD dirents
40011 (grub_ufs_dir): support for non-BSD dirents
40012
40013 2009-04-10 Bean <bean123ch@gnail.com>
40014
40015 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40016 attribute, otherwise the size would be wrong for i386 platform.
40017
40018 * include/grub/pci.h (grub_pci_read_word): New inline function.
40019 (grub_pci_read_byte): Likewise.
40020 (grub_pci_write): Likewise.
40021 (grub_pci_write_word): Likewise.
40022 (grub_pci_write_byte): Likewise.
40023
40024 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40025
40026 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40027 (find_framebuf): Scan pci to locate the frame buffer address.
40028
40029 * commands/efi/fixvideo.c: New file.
40030
40031 * commands/efi/loadbios.c: Likewise.
40032
40033 * commands/memrw.c: Likewise.
40034
40035 * util/grub-dumpbios.in: Likewise.
40036
40037 * conf/common.rmk (grub-dumpbios): New utility.
40038 (pkglib_MODULES): New module memrw.mod.
40039 (memrw_mod_SOURCE): New macro.
40040 (memrw_mod_CFLAGS): Likewise.
40041 (memrw_mod_LDFLAGS): Likewise.
40042
40043 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40044 fixvideo.mod.
40045 (loadbios_mod_SOURCE): New macro.
40046 (loadbios_mod_CFLAGS): Likewise.
40047 (loadbios_mod_LDFLAGS): Likewise.
40048 (fixvideo_mod_SOURCE): Likewise.
40049 (fixvideo_mod_CFLAGS): Likewise.
40050 (fixvideo_mod_LDFLAGS): Likewise.
40051
40052 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40053 fixvideo.mod.
40054 (loadbios_mod_SOURCE): New macro.
40055 (loadbios_mod_CFLAGS): Likewise.
40056 (loadbios_mod_LDFLAGS): Likewise.
40057 (fixvideo_mod_SOURCE): Likewise.
40058 (fixvideo_mod_CFLAGS): Likewise.
40059 (fixvideo_mod_LDFLAGS): Likewise.
40060
40061 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40062
40063 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40064
40065 2009-04-07 David S. Miller <davem@davemloft.net>
40066
40067 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40068 support for R_SPARC_OLO10 relocations. Fix compile warning for
40069 R_SPARC_WDISP30 case.
40070 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40071
40072 2009-04-06 Pavel Roskin <proski@gnu.org>
40073
40074 * include/grub/misc.h (ARRAY_SIZE): New macro.
40075 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40076 New macro.
40077 * loader/i386/linux.c (allocate_pages): Use free_pages().
40078 (grub_linux_unload): Don't use free_pages().
40079 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40080 wrong index. Treat all other modes as text modes.
40081 (grub_cmd_linux): Initialize vid_mode unconditionally to
40082 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40083
40084 * commands/help.c (print_command_help): Use cmd->prio, not
40085 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40086
40087 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40088
40089 Parttool
40090
40091 * parttool/pcpart.c: new file
40092 * commands/parttool.c: likewise
40093 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40094 (parttool_mod_SOURCES): new variable
40095 (parttool_mod_CFLAGS): likewise
40096 (parttool_mod_LDFLAGS): likewise
40097 (pcpart_mod_SOURCES): likewise
40098 (pcpart_mod_CFLAGS): likewise
40099 (pcpart_mod_LDFLAGS): likewise
40100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40101 and parttool/pcpart.c
40102 * conf/i386-efi.rmk: likewise
40103 * conf/i386-ieee1275.rmk: likewise
40104 * conf/i386-pc.rmk: likewise
40105 * conf/powerpc-ieee1275.rmk: likewise
40106 * conf/sparc64-ieee1275.rmk: likewise
40107 * conf/x86_64-ieee1275.rmk: likewise
40108
40109 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40110
40111 Support for mtime and further expandability of dir command
40112
40113 * include/grub/lib/datetime.h: moved to ...
40114 * include/grub/datetime.h: ... moved here and added
40115 declaration of grub_unixtime2datetime. All users updated
40116 * include/grub/fs.h: new syntax for dir and mtime functions in
40117 struct grub_fs
40118 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40119 and GRUB_FSHELP_FLAGS_MASK
40120 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40121 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40122 (grub_ext2_mtime): new function
40123 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40124 (grub_hfsplus_mtime): new function
40125 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40126 (GRUB_UFS_ATTR_FILE): likewise
40127 (GRUB_UFS_ATTR_LNK): likewise
40128 (struct grub_ufs_sblock): new fields mtime
40129 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40130 all users updated
40131 (grub_ufs_dir): mtime support
40132 (grub_ufs_mtime): new function
40133 * fs/affs.c (grub_affs_dir): use new dir syntax
40134 * fs/afs.c (grub_afs_dir): likewise
40135 * fs/cpio.c (grub_cpio_dir): likewise
40136 * fs/fat.c (grub_fat_find_dir): likewise
40137 * fs/hfs.c (grub_hfs_dir): likewise
40138 * fs/iso9660.c (grub_iso9660_dir): likewise
40139 * fs/jfs.c (grub_jfs_dir): likewise
40140 * fs/minix.c (grub_minix_dir): likewise
40141 * fs/ntfs.c (grub_ntfs_dir): likewise
40142 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40143 * fs/sfs.c (grub_sfs_dir): likewise
40144 * fs/xfs.c (grub_xfs_dir): likewise
40145 * util/hostfs.c (grub_hostfs_dir): likewise
40146 * lib/datetime.c: moved to ...
40147 * normal/datetime.c: ... moved here
40148 (grub_unixtime2datetime): new function
40149 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40150 * normal/completion.c (iterate_dir): use new dir syntax
40151 * normal/misc.c (grub_normal_print_device_info): tell the
40152 last modification time of a volume
40153 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40154 * conf/common.rmk: added lib/datetime.c to ls.mod
40155 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40156 (normal_mod_SOURCES): likewise
40157 (datetime_mod_SOURCES): Removed lib/datetime.c
40158 * conf/i386-efi.rmk: likewise
40159 * conf/i386-ieee1275.rmk: likewise
40160 * conf/i386-pc.rmk: likewise
40161 * conf/powerpc-ieee1275.rmk: likewise
40162 * conf/sparc64-ieee1275.rmk: likewise
40163 * conf/x86_64-efi.rmk: likewise
40164
40165 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40166
40167 Trim trailing spaces in FAT label and support mtools-like labels
40168
40169 * fs/fat.c (grub_fat_iterate_dir): New function based
40170 on grub_fat_find_dir
40171 (grub_fat_find_dir): use grub_fat_iterate_dir
40172 (grub_fat_label): likewise
40173
40174 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40175
40176 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40177 and command.h
40178 remove extraneous kernel_elf_HEADERS
40179
40180 2009-04-04 Bean <bean123ch@gnail.com>
40181
40182 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40183
40184 * util/misc.c: Likewise.
40185
40186 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40187
40188 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40189 instead of grub_printf.
40190
40191 2009-04-03 Robert Millan <rmh@aybabtu.com>
40192
40193 * loader/i386/linux.c (grub_linux_setup_video): Fill
40194 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40195 values from `mode info' structure instead of hardcoded
40196 values.
40197
40198 2009-04-01 Pavel Roskin <proski@gnu.org>
40199
40200 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40201 unused now.
40202 * genmk.rb: Likewise.
40203 * configure.ac: Likewise.
40204
40205 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40206
40207 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40208 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40209
40210 2009-04-01 David S. Miller <davem@davemloft.net>
40211
40212 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40213 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40214 (grub_setjmp): Mark with 'returns_twice' attribute.
40215 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40216 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40217 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40218
40219 2009-04-01 Robert Millan <rmh@aybabtu.com>
40220
40221 Reapply fix from 2008-07-28 which was accidentally reverted; also
40222 perform the same fix to a similar check in same function.
40223
40224 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40225 with the same number are found, just use issue a warning with
40226 grub_dprintf(), as this error has been reported to be non-fatal.
40227
40228 2009-03-31 Pavel Roskin <proski@gnu.org>
40229
40230 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40231 for cross-compilation.
40232
40233 2009-03-30 Robert Millan <rmh@aybabtu.com>
40234
40235 Fix i386-ieee1275 build.
40236
40237 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40238 Remove declaration.
40239
40240 2009-03-30 Pavel Roskin <proski@gnu.org>
40241
40242 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40243 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40244 zero-terminated, rely only on the strlen value. Fix comparison
40245 of strings differing in length.
40246
40247 2009-03-30 Robert Millan <rmh@aybabtu.com>
40248
40249 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40250 checking for abi version. Improve error messages on BIOS to notify
40251 user about `linux16' command.
40252
40253 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40254
40255 Leak fixes
40256
40257 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40258 in case of collision
40259 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40260
40261 2009-03-29 Robert Millan <rmh@aybabtu.com>
40262
40263 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40264 set `vid_mode' accordingly.
40265 (grub_linux_boot): Process `vid_mode' and set video mode.
40266
40267 2009-03-29 Robert Millan <rmh@aybabtu.com>
40268
40269 * util/grub.d/10_linux.in (linux_entry): New function.
40270 Factorize generation of Linux boot entries.
40271
40272 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40273
40274 Make the format of Environment Block plain text. The boot loader
40275 part is not tested well yet.
40276
40277 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40278 (buffer): Removed.
40279 (envblk): Likewise.
40280 (usage): Remove "info" and "clear". Add "unset". Update the
40281 description of "set", as this does not delete variables any
40282 longer.
40283 (create_envblk_file): Complete rewrite.
40284 (open_envblk_file): Likewise.
40285 (cmd_info): Removed.
40286 (cmd_list): Likewise.
40287 (cmd_set): Likewise.
40288 (cmd_clear): Likewise.
40289 (list_variables): New function.
40290 (write_envblk): Likewise.
40291 (set_variables): Likewise.
40292 (unset_variables): Likewise.
40293 (main): Complete rewrite.
40294
40295 * commands/loadenv.c (buffer): Removed.
40296 (envblk): Likewise.
40297 (open_envblk_file): New function.
40298 (read_envblk_file): Complete rewrite.
40299 (grub_cmd_load_env): Likewise.
40300 (grub_cmd_list_env): Likewise.
40301 (struct blocklist): New struct.
40302 (free_blocklists): New function.
40303 (check_blocklists): Likewise.
40304 (write_blocklists): Likewise.
40305 (grub_cmd_save_env): Complete rewrite.
40306
40307 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40308 a plain text signature.
40309 (GRUB_ENVBLK_MAXLEN): Removed.
40310 (struct grub_envblk): Complete rewrite.
40311 (grub_envblk_find): Removed.
40312 (grub_envblk_insert): Likewise.
40313 (grub_envblk_open): New prototype.
40314 (grub_envblk_set): Likewise.
40315 (grub_envblk_delete): Put const to VALUE.
40316 (grub_envblk_iterate): Put const to NAME and VALUE.
40317 (grub_envblk_close): New prototype.
40318 (grub_envblk_buffer): New inline function.
40319 (grub_envblk_size): Likewise.
40320
40321 * lib/envblk.c: Include grub/mm.h.
40322 (grub_env_find): Removed.
40323 (grub_envblk_open): New function.
40324 (grub_envblk_close): Likewise.
40325 (escaped_value_len): Likewise.
40326 (find_next_line): Likewise.
40327 (grub_envblk_insert): Removed.
40328 (grub_envblk_set): New function.
40329 (grub_envblk_delete): Complete rewrite.
40330 (grub_envblk_iterate): Likewise.
40331
40332 2009-03-28 Robert Millan <rmh@aybabtu.com>
40333
40334 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40335 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40336 variables. Use 16-bit loader.
40337 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40338 loader.
40339 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40340 (grub_linux16_boot): ... this. Update all users.
40341 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40342 (grub_linux_boot): ... this. Update all users.
40343
40344 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40345 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40346 commands to `linux16' and `initrd16'.
40347 (GRUB_MOD_FINI(linux)): Rename to ...
40348 (GRUB_MOD_FINI(linux16)): ... this.
40349
40350 2009-03-24 Pavel Roskin <proski@gnu.org>
40351
40352 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40353 not just for compilation.
40354
40355 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40356
40357 Move multiboot helper out of kernel
40358
40359 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40360 `loader/i386/multiboot_helper.S'.
40361 * conf/i386-coreboot.rmk: Likewise
40362 * conf/i386-ieee1275.rmk: Likewise
40363
40364 * kern/i386/loader.S: Move multiboot helpers from here...
40365 * loader/i386/multiboot_helper.S: ...moved here
40366 * include/grub/i386/loader.h: Move declarations of multiboot
40367 helpers from here...
40368 * include/grub/i386/multiboot.h: ...moved here
40369 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40370
40371 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40372
40373 * kern/env.c (grub_env_context_open): Added an argument to specify
40374 whether a new context inherits exported variables from current
40375 one. This is useful when making a sandbox to interpret a config
40376 file.
40377 All callers updated.
40378
40379 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40380
40381 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40382
40383 * kern/env.c (grub_env_context_close): Fix memory leaks.
40384
40385 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40386
40387 * normal/main.c (grub_normal_execute): Added an argument
40388 BATCH to specify if an interactive interface should be provided
40389 after reading a config file.
40390 All callers updated.
40391 (read_command_list): Prevent being executed twice.
40392 (read_fs_list): Likewise.
40393
40394 * include/grub/normal.h (grub_normal_execute): Updated the
40395 prototype.
40396
40397 2009-03-22 Pavel Roskin <proski@gno.org>
40398
40399 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40400 _start.
40401 * kern/i386/pc/startup.S: Likewise.
40402 * kern/i386/efi/startup.S: Likewise.
40403 * kern/i386/ieee1275/startup.S: Likewise.
40404 * kern/i386/coreboot/startup.S: Likewise.
40405 * kern/x86_64/efi/startup.S: Likewise.
40406
40407 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40408 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40409 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40410
40411 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40412
40413 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40414
40415 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40416 limit detection.
40417 Use vaddr of correct segment for entry_point.
40418
40419 2009-03-21 Bean <bean123ch@gmail.com>
40420
40421 * commands/blocklist.c: Add include file <grub/command.h>, remove
40422 <grub/normal.h> and <grub/arg.h>.
40423 (grub_cmd_blocklist): Use the new command interface.
40424 (GRUB_MOD_INIT): Likewise.
40425 (GRUB_MOD_FINI): Likewise.
40426 * commands/boot.c: Likewise.
40427 * commands/cat.c: Likewise.
40428 * commands/cmp.c: Likewise.
40429 * commands/configfile.c: Likewise.
40430 * commands/crc.c: Likewise.
40431 * commands/echo.c: Likewise.
40432 * commands/halt.c: Likewise.
40433 * commands/handler.c: Likewise.
40434 * commands/hdparm.c: Likewise.
40435 * commands/help.c: Likewise.
40436 * commands/hexdump.c: Likewise.
40437 * commands/loadenv.c: Likewise.
40438 * commands/ls.c: Likewise.
40439 * commands/lsmmap.c: Likewise.
40440 * commands/lspci.c: Likewise.
40441 * commands/loadenv.c: Likewise.
40442 * commands/read.c: Likewise.
40443 * commands/reboot.c: Likewise.
40444 * commands/search.c: Likewise.
40445 * commands/sleep.c: Likewise.
40446 * commands/test.c: Likewise.
40447 * commands/usbtest.c: Likewise.
40448 * commands/videotest.c: Likewise.
40449 * commands/i386/cpuid.c: Likewise.
40450 * commands/i386/pc/halt.c: Likewise.
40451 * commands/i386/pc/play.c: Likewise.
40452 * commands/i386/pc/pxecmd.c: Likewise.
40453 * commands/i386/pc/vbeinfo.c: Likewise.
40454 * commands/i386/pc/vbetest.c: Likewise.
40455 * commands/ieee1275/suspend.c: Likewise.
40456 * disk/loopback.c: Likewise.
40457 * font/font_cmd.c: Likewise.
40458 * hello/hello.c: Likewise.
40459 * loader/efi/appleloader.c: Likewise.
40460 * loader/efi/chainloader.c: Likewise.
40461 * loader/i386/bsd.c: Likewise.
40462 * loader/i386/efi/linux.c: Likewise.
40463 * loader/i386/ieee1275/linux.c: Likewise.
40464 * loader/i386/linux.c: Likewise.
40465 * loader/i386/pc/chainloader.c: Likewise.
40466 * loader/i386/pc/linux.c: Likewise.
40467 * loader/powerpc/ieee1275/linux.c: Likewise.
40468 * loader/multiboot_loader.c: Likewise.
40469 * term/gfxterm.c: Likewise.
40470 * term/i386/pc/serial.c: Likewise.
40471 * term/terminfo.c: Likewise.
40472
40473 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40474 * term/i386/pc/vga.c: Likewise.
40475 * video/readers/jpeg.c: Likewise.
40476 * video/readers/png.c: Likewise.
40477 * video/readers/tga.c: Likewise.
40478
40479 * util/grub-fstest (cmd_loopback): Removed.
40480 (cmd_blocklist): Likewise.
40481 (cmd_ls): Likewise.
40482 (grub_register_command): Likewise.
40483 (grub_unregister_command): Likewise.
40484 (execute_command): Use grub_command_find to locate command and execute
40485 it.
40486
40487 * include/grub/efi/chainloader.h: Removed.
40488 * loader/efi/chainloader_normal.c: Likewise.
40489 * loader/i386/bsd_normal.c: Likewise.
40490 * loader/i386/pc/chainloader_normal.c: Likewise.
40491 * loader/i386/pc/multiboot_normal.c: Likewise.
40492 * loader/linux_normal.c: Likewise.
40493 * loader/multiboot_loader_normal.c: Likewise.
40494 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40495
40496 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40497 and grub_register_command_p1.
40498
40499 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40500 kern/command.c, lib/arg.c and commands/extcmd.c.
40501 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40502 (minicmd_mod_SOURCES): New variable.
40503 (minicmd_mod_CFLAGS): Likewise.
40504 (minicmd_mod_LDFLAGS): Likewise.
40505 (extcmd_mod_SOURCES): Likewise.
40506 (extcmd_mod_CFLAGS): Likewise.
40507 (extcmd_mod_LDFLAGS): Likewise.
40508 (boot_mod_SOURCES): Removed.
40509 (boot_mod_CFLAGS): Likewise.
40510 (boot_mod_LDFLAGS): Likewise.
40511
40512 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40513 kern/corecmd.c.
40514 (kernel_img_HEADERS): Add command.h.
40515 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40516 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40517 and lib/arg.c.
40518 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40519 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40520 remove the corresponding normal mode command.
40521 (normal_mod_SOURCES): Remove normal/arg.c.
40522 * conf/i386-coreboot.rmk: Likewise.
40523 * conf/i386-efi.rmk: Likewise.
40524 * conf/i386-ieee1275.rmk: Likewise.
40525 * conf/powerpc-ieee1275.rmk: Likewise.
40526 * conf/x86_64-efi.rmk: Likewise.
40527
40528 * include/grub/arg.h: Move from here ...
40529 * include/grub/lib/arg.h: ... to here.
40530
40531 * normal/arg.c: Move from here ...
40532 * lib/arg.c: ... to here.
40533
40534 * commands/extcmd.c: New file.
40535 * commands/minicmd.c: Likewise.
40536 * include/grub/command.h: Likewise.
40537 * include/grub/extcmd.h: Likewise.
40538 * kern/command.c: Likewise.
40539 * kern/corecmd.c: Likewise.
40540
40541 * kern/list.c (grub_list_iterate): Return int instead of void.
40542 (grub_list_insert): New function.
40543 (grub_prio_list_insert): Likewise.
40544
40545 * kern/rescue.c (grub_rescue_command): Removed.
40546 (grub_rescue_command_list): Likewise.
40547 (grub_rescue_register_command): Likewise.
40548 (grub_rescue_unregister_command): Likewise.
40549 (grub_rescue_cmd_boot): Move to minicmd.c
40550 (grub_rescue_cmd_help): Likewise.
40551 (grub_rescue_cmd_info): Likewise.
40552 (grub_rescue_cmd_boot): Likewise.
40553 (grub_rescue_cmd_testload): Likewise.
40554 (grub_rescue_cmd_dump): Likewise.
40555 (grub_rescue_cmd_rmmod): Likewise.
40556 (grub_rescue_cmd_lsmod): Likewise.
40557 (grub_rescue_cmd_exit): Likewise.
40558 (grub_rescue_print_devices): Moved to corecmd.c.
40559 (grub_rescue_print_files): Likewise.
40560 (grub_rescue_cmd_ls): Likewise.
40561 (grub_rescue_cmd_insmod): Likewise.
40562 (grub_rescue_cmd_set): Likewise.
40563 (grub_rescue_cmd_unset): Likewise.
40564 (attempt_normal_mode): Use grub_command_find to get normal module.
40565 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40566 commands, remove grub_rescue_register_command calls.
40567
40568 * normal/command.c (grub_register_command): Removed.
40569 (grub_unregister_command): Likewise.
40570 (grub_command_find): Likewise.
40571 (grub_iterate_commands): Likewise.
40572 (rescue_command): Likewise.
40573 (export_command): Moved to corecmd.c.
40574 (set_command): Removed.
40575 (unset_command): Likewise.
40576 (insmod_command): Likewise.
40577 (rmmod_command): Likewise.
40578 (lsmod_command): Likewise.
40579 (grub_command_init): Likewise.
40580
40581 * normal/completion.c (iterate_command): Use cmd->prio to check for
40582 active command.
40583 (complete_arguments): Use grub_extcmd_t structure to find options.
40584 (grub_normal_do_completion): Change function grub_iterate_commands to
40585 grub_command_iterate.
40586
40587 * normal/execute.c (grub_script_execute_cmd): No need to parse
40588 argument here.
40589
40590 * normal/main.c (grub_dyncmd_dispatcher): New function.
40591 (read_command_list): Register unload commands as dyncmd.
40592 (grub_cmd_normal): Use new command interface, register rescue,
40593 unregister normal at entry, register normal, unregister rescue at exit.
40594
40595 * include/grub/list.h (grub_list_test_t): New type.
40596 (grub_list_iterate): Return int instead of void.
40597 (grub_list_insert): New function.
40598 (GRUB_AS_NAMED_LIST_P): New macro.
40599 (GRUB_AS_PRIO_LIST): Likewise.
40600 (GRUB_AS_PRIO_LIST_P): Likewise.
40601 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40602 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40603 (grub_prio_list): New structure.
40604 (grub_prio_list_insert): New function.
40605 (grub_prio_list_remove): New inline function.
40606
40607 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40608 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40609 (GRUB_COMMAND_FLAG_MENU): Likewise.
40610 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40611 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40612 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40613 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40614 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40615 (grub_command): Likewise.
40616 (grub_register_command): Likewise.
40617 (grub_command_find): Likewise.
40618 (grub_iterate_commands): Likewise.
40619 (grub_command_init): Likewise.
40620 (grub_arg_parse): Likewise.
40621 (grub_arg_show_help): Likewise.
40622
40623 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40624 (grub_rescue_unregister_command): Likewise.
40625
40626 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40627 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40628 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40629
40630 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40631 grub_rescue_cmd_initrd.
40632 * include/grub/i386/loader.h: Likewise.
40633 * include/grub/x86_64/loader.h: Likewise.
40634
40635 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40636
40637 2009-03-21 Bean <bean123ch@gmail.com>
40638
40639 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40640 instead of stat in mingw environment.
40641
40642 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40643
40644 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40645
40646 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40647 AC_CONFIG_LINKS.
40648
40649 2009-03-21 Bean <bean123ch@gmail.com>
40650
40651 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40652 out of range error.
40653
40654 2009-03-18 Michel Dänzer <michel@daenzer.net>
40655
40656 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40657 checking inode flags for EXT4_EXTENTS_FLAG.
40658
40659 2009-03-18 Robert Millan <rmh@aybabtu.com>
40660
40661 * loader/i386/linux.c: Include `<grub/video.h>' and
40662 `<grub/i386/pc/vbe.h>'..
40663 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40664 (grub_linux32_boot): Attempt to configure video settings with
40665 grub_linux_setup_video().
40666 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40667 to avoid grub_console_fini() which would step out of graphical mode
40668 unconditionally.
40669
40670 2009-03-14 Robert Millan <rmh@aybabtu.com>
40671
40672 Fix build on powerpc.
40673 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40674
40675 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40676
40677 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40678 background image command.
40679
40680 2009-03-12 Colin D Bennett <colin@gibibit.com>
40681
40682 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40683 (grub_gfxterm_putchar): Extract pairs of identical calls to
40684 draw_cursor out of conditional blocks.
40685
40686 2009-03-11 Pavel Roskin <proski@gnu.org>
40687
40688 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40689 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40690
40691 2009-03-11 Robert Millan <rmh@aybabtu.com>
40692
40693 * loader/i386/multiboot_elfxx.c
40694 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40695
40696 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40697
40698 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40699 `kern/handler.c'.
40700
40701 2009-03-11 Robert Millan <rmh@aybabtu.com>
40702
40703 * loader/i386/multiboot.c (code_size): New variable.
40704 (grub_multiboot): Define offsets by adding to `code_size' rather
40705 than subtracting from `grub_multiboot_payload_size'. Provide
40706 4-byte alignment to MBI and others by increasing
40707 `boot_loader_name_length' appropriately.
40708
40709 * loader/i386/multiboot_elfxx.c
40710 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40711
40712 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40713
40714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40715 `fs/ext2.c'.
40716
40717 2009-03-08 Robert Millan <rmh@aybabtu.com>
40718
40719 Make loader/i386/linux.c usable on i386-pc again.
40720
40721 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40722 memory to heap.
40723 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40724 `#error' stanza.
40725
40726 2009-03-07 Bean <bean123ch@gmail.com>
40727
40728 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40729 allocation.
40730
40731 2009-03-06 Robert Millan <rmh@aybabtu.com>
40732
40733 Fix display issue on terminals with screen size other than 80x25
40734 (e.g. gfxterm with resolution higher than 640x480).
40735
40736 * normal/main.c (grub_normal_init_page): Display title text in a
40737 position relative to the center of the terminal instead of relying
40738 on a hardcoded offset.
40739
40740 2009-03-04 Robert Millan <rmh@aybabtu.com>
40741
40742 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40743 installed.
40744
40745 * Makefile.in (host_kernel): New variable.
40746 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40747 scripts instead of just the windows one.
40748 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40749
40750 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40751
40752 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40753 `kern/handler.c'.
40754 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40755 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40756 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40758 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40759 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40760
40761 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40762
40763 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40764 or if there's no space for the disk label and print the partition number on a
40765 invalid magic.
40766
40767 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40768
40769 * util/misc.c: Include <time.h>.
40770 (grub_millisleep): New function.
40771
40772 2009-03-04 Bean <bean123ch@gmail.com>
40773
40774 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40775 another option -mno-red-zone.
40776
40777 * commands/handler.c: Change module description.
40778
40779 * kern/handler.c: Add missing space at the end of description line.
40780
40781 * kern/list.c: Likewise.
40782
40783 2009-03-03 Robert Millan <rmh@aybabtu.com>
40784
40785 Move more components to the relocation area, and fix mbi pointer
40786 handling to use the destination rather than the origin (thanks to
40787 Vladimir Serbinenko for spotting).
40788
40789 * loader/i386/multiboot.c (mbi_dest): New variable.
40790 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40791 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40792 relocation area.
40793
40794 2009-03-01 Bean <bean123ch@gmail.com>
40795
40796 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40797 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40798 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40799 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40800
40801 * loader/i386/efi/linux.c (acpi_guid): New variable.
40802 (acpi_guid): Likewise.
40803 (EBDA_SEG_ADDR): New constant.
40804 (LOW_MEM_ADDR): Likewise.
40805 (FAKE_EBDA_SEG): Likewise.
40806 (fake_bios_data): New function.
40807 (grub_linux_boot): Call fake_bios_data.
40808
40809 2009-03-01 Bean <bean123ch@gmail.com>
40810
40811 * commands/terminal.c: Removed.
40812
40813 * commands/handler.c: New file.
40814
40815 * include/grub/list.h: Likewise.
40816
40817 * include/grub/handler.h: Likewise.
40818
40819 * kern/list.c: Likewise.
40820
40821 * kern/handler.c: Likewise.
40822
40823 * kern/term.h: Include header file <grub/handler.h>.
40824 (grub_term_input): Move next field to the beginning.
40825 (grub_term_output): Likewise.
40826 (grub_term_input_class): New variable.
40827 (grub_term_output_class): Likewise.
40828 (grub_term_register_input): Changed to inline function.
40829 (grub_term_register_output): Likewise.
40830 (grub_term_unregister_input): Likewise.
40831 (grub_term_unregister_output): Likewise.
40832 (grub_term_set_current_input): Likewise.
40833 (grub_term_set_current_output): Likewise.
40834 (grub_term_get_current_input): Likewise.
40835 (grub_term_get_current_output): Likewise.
40836 (grub_term_iterate_input): Removed.
40837 (grub_term_iterate_output): Likewise.
40838
40839 * kern/term.c (grub_term_list_input): Removed.
40840 (grub_term_list_output): Likewise.
40841 (grub_term_input_class): New variable.
40842 (grub_term_output_class): Likewise.
40843 (grub_cur_term_input): Change variable as macro.
40844 (grub_cur_term_output): Likewise.
40845 (grub_term_register_input): Removed.
40846 (grub_term_register_output): Likewise.
40847 (grub_term_unregister_input): Likewise.
40848 (grub_term_unregister_output): Likewise.
40849 (grub_term_set_current_input): Likewise.
40850 (grub_term_set_current_output): Likewise.
40851 (grub_term_iterate_input): Likewise.
40852 (grub_term_iterate_output): Likewise.
40853 (grub_term_get_current_input): Likewise.
40854 (grub_term_get_current_output): Likewise.
40855
40856 * util/grub-editenv.c: Include header file <grub/handler.h>.
40857 (grub_term_get_current_input): Removed.
40858 (grub_term_get_current_output): Likewise.
40859 (grub_term_input_class): New variable.
40860 (grub_term_output_class): Likewise.
40861
40862 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40863 (grub_term_get_current_output): Likewise.
40864 (grub_term_input_class): New variable.
40865 (grub_term_output_class): Likewise.
40866
40867 * util/grub-probe.c (grub_term_get_current_input): Removed.
40868 (grub_term_get_current_output): Likewise.
40869 (grub_term_input_class): New variable.
40870 (grub_term_output_class): Likewise.
40871
40872 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40873 (grub_term_get_current_output): Likewise.
40874 (grub_term_input_class): New variable.
40875 (grub_term_output_class): Likewise.
40876
40877 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40878 (terminal_mod_SOURCES): Likewise.
40879 (terminal_mod_CFLAGS): Likewise.
40880 (terminal_mod_LDFLAGS): Likewise.
40881
40882 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40883 handler.c.
40884 (kernel_img_SOURCES): Add list.c and handler.c.
40885 (kernel_img_HEADERS): Add list.h and handler.h.
40886
40887 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40888 handler.c.
40889 (kernel_mod_SOURCES): Add list.c and handler.c.
40890 (kernel_mod_HEADERS): Add list.h and handler.h.
40891
40892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40893 handler.c.
40894 (kernel_elf_SOURCES): Add list.c and handler.c.
40895 (kernel_elf_HEADERS): Add list.h and handler.h.
40896
40897 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40898 handler.c.
40899 (kernel_elf_SOURCES): Add list.c and handler.c.
40900 (kernel_elf_HEADERS): Add list.h and handler.h.
40901
40902 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40903 handler.c.
40904 (kernel_mod_SOURCES): Add list.c and handler.c.
40905 (kernel_mod_HEADERS): Add list.h and handler.h.
40906
40907 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40908 handler.c.
40909 (kernel_elf_SOURCES): Add list.c and handler.c.
40910 (kernel_elf_HEADERS): Add list.h and handler.h.
40911
40912 2009-02-27 Robert Millan <rmh@aybabtu.com>
40913
40914 Factorize elf32 / elf64 code in Multiboot loader. This will
40915 prevent it from getting out of sync again.
40916
40917 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40918 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40919 grub_multiboot_load_elf64): Move from here ...
40920 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40921 grub_multiboot_load_elf): ... to here (new file).
40922
40923 2009-02-27 Robert Millan <rmh@aybabtu.com>
40924
40925 * util/grub.d/10_linux.in: Rename "single-user mode" to
40926 "recovery mode".
40927
40928 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40929
40930 Don't leak in SCSI code.
40931 * disk/scsi.c (grub_scsi_close): free `scsi'.
40932
40933 2009-02-27 Robert Millan <rmh@aybabtu.com>
40934
40935 * loader/i386/pc/multiboot.c: Move from here ...
40936 * loader/i386/multiboot.c: ... to here. Update all users.
40937
40938 2009-02-27 Robert Millan <rmh@aybabtu.com>
40939
40940 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40941 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40942
40943 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40944
40945 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40946 b-tree.
40947
40948 2009-02-27 Robert Millan <rmh@aybabtu.com>
40949
40950 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40951 `0x' qualifier as 0 when base is specified as parameter).
40952
40953 2009-02-24 Bean <bean123ch@gmail.com>
40954
40955 * configure.ac: Check for -mcmodel=large in x86_64 target.
40956
40957 * include/grub/efi/api.h (efi_call_10): New macro.
40958 (efi_wrap_10): New function.
40959
40960 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40961 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40962 (GRUB_PE32_REL_BASED_LOW): Likewise.
40963 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40964 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40965 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40966 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40967 (GRUB_PE32_REL_BASED_REL): Likewise.
40968 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40969 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40970 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40971
40972 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40973 issue.
40974
40975 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40976 (efi_wrap_10): New function.
40977
40978 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40979
40980 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40981 MB/MBP model (NV chipset).
40982 (devdata_devs): Add devpath_5 to the list.
40983
40984 * load/i386/efi/linux.c (video_base): Remove variable.
40985 (RGB_MASK): New macro.
40986 (RGB_MAGIC): Likewise.
40987 (LINE_MIN): Likewise.
40988 (LINE_MAX): Likewise.
40989 (FBTEST_STEP): Likewise.
40990 (FBTEST_COUNT): Likewise.
40991 (fb_list): New variable.
40992 (grub_find_video_card): Remove function.
40993 (find_framebuf): New function.
40994 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40995 line length.
40996
40997 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40998 problem for x86_64.
40999
41000 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
41001
41002 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41003
41004 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41005 coding tool name.
41006
41007 2009-02-22 Robert Millan <rmh@aybabtu.com>
41008
41009 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41010 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41011 in our relocation, instead of using it directly from heap. Also
41012 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41013
41014 2009-02-21 Robert Millan <rmh@aybabtu.com>
41015
41016 Implement USB keyboard support (based on patch by Marco Gerards)
41017
41018 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41019 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41020 (usb_keyboard_mod_LDFLAGS): New variables.
41021
41022 * term/usb_keyboard.c: New file.
41023
41024 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41025
41026 Corrected wrong declaration
41027
41028 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41029
41030 2009-02-14 Christian Franke <franke@computer.org>
41031
41032 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41033 (grub_lspci_iter): Print class code and programming interface byte.
41034
41035 2009-02-14 Christian Franke <franke@computer.org>
41036
41037 * gendistlist.sh: Ignore `.svn' directories.
41038
41039 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
41040
41041 * fs/fat.c: Add 2009 to Copyright line.
41042
41043 2009-02-14 Christian Franke <franke@computer.org>
41044
41045 * commands/hdparm.c: New file. Provides `hdparm' command
41046 which sends ATA commands via grub_disk_ata_pass_through ().
41047
41048 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41049
41050 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41051 and <grub/cpu/io.h> to include/grub/ata.h.
41052 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41053 (GRUB_CDROM_SECTOR_SIZE): Remove.
41054 (GRUB_ATA_*): Move to include/grub/ata.h.
41055 (GRUB_ATAPI_*): Likewise.
41056 (enum grub_ata_commands): Likewise.
41057 (enum grub_ata_timeout_milliseconds): Likewise.
41058 (struct grub_ata_device): Likewise.
41059 (grub_ata_regset): Likewise.
41060 (grub_ata_regget): Likewise.
41061 (grub_ata_regset2): Likewise.
41062 (grub_ata_regget2): Likewise.
41063 (grub_ata_check_ready): Likewise.
41064 (grub_ata_wait_not_busy): Remove static, exported in
41065 include/grub/ata.h.
41066 (grub_ata_wait_drq): Likewise.
41067 (grub_ata_pio_read): Likewise.
41068
41069 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41070 function for hdparm.mod.
41071
41072 * include/grub/ata.h: New file, contains declarations from
41073 disk/ata.c.
41074 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41075
41076 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41077 (grub_disk_ata_pass_through): New exported variable.
41078
41079 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41080
41081 2009-02-13 Colin D Bennett <colin@gibibit.com>
41082
41083 Support multiple fallback entries, and provide an API to support
41084 executing default+fallback menu entries. Renamed the `terminal' menu
41085 viewer to `text'.
41086
41087 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41088 variable declaration.
41089 (grub_menu_execute_callback): New structure declaration.
41090 (grub_menu_execute_callback_t): New typedef.
41091 (grub_menu_execute_with_fallback): New function declaration.
41092 (grub_menu_get_entry): Likewise.
41093 (grub_menu_get_timeout): Likewise.
41094 (grub_menu_set_timeout): Likewise.
41095
41096 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41097
41098 * normal/menu.c (grub_wait_after_message): Moved to
41099 `normal/menu_text.c'.
41100 (draw_border): Likewise.
41101 (print_message): Likewise.
41102 (print_entry): Likewise.
41103 (print_entries): Likewise.
41104 (grub_menu_init_page): Likewise.
41105 (get_entry_number): Likewise.
41106 (print_timeout): Likewise.
41107 (run_menu): Likewise.
41108 (grub_menu_execute_entry): Likewise.
41109 (show_text_menu): Likewise.
41110 (get_and_remove_first_entry_number): New function.
41111 (grub_menu_execute_with_fallback): Likewise.
41112 (get_entry): Renamed to ...
41113 (grub_menu_get_entry): .. this and made it global.
41114 (get_timeout): Renamed to ...
41115 (grub_menu_get_timeout): ... this and made it global.
41116 (set_timeout): Renamed to ...
41117 (grub_menu_set_timeout): ... this and made it global.
41118 (grub_normal_terminal_menu_viewer): Renamed to ...
41119 (grub_normal_text_menu_viewer): ... this.
41120
41121 * normal/menu_text.c: New file. Extracted text-menu-specific code
41122 from normal/menu.c.
41123
41124 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41125 (normal_mod_SOURCES): Likewise.
41126
41127 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41128 (normal_mod_SOURCES): Likewise.
41129
41130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41131 (normal_mod_SOURCES): Likewise.
41132
41133 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41134 (normal_mod_SOURCES): Likewise.
41135
41136 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41137 (normal_mod_SOURCES): Likewise.
41138
41139 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41140 (normal_mod_SOURCES): Likewise.
41141
41142 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41143 (normal_mod_SOURCES): Likewise.
41144
41145 2009-02-11 Robert Millan <rmh@aybabtu.com>
41146
41147 * util/grub.d/00_header.in: Update old reference to `font' command.
41148
41149 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41150
41151 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41152
41153 Based on patch from Javier Martín.
41154
41155 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41156
41157 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41158 to avoid false positives with FAT.
41159 (grub_fstest_SOURCES): Likewise.
41160 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41161 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41162 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41163 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41164 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41165 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41166
41167 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41168
41169 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41170 bpb.version_specific.fat12_or_fat16.fstype and
41171 bpb.version_specific.fat32.fstype.
41172
41173 2009-02-08 Robert Millan <rmh@aybabtu.com>
41174
41175 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41176
41177 2009-02-08 Robert Millan <rmh@aybabtu.com>
41178
41179 * Makefile.in (host_os, host_cpu): New variables.
41180 (target_os): Remove. Update all users.
41181
41182 2009-02-08 Marco Gerards <marco@gnu.org>
41183
41184 * Makefile.in (enable_grub_emu_usb): New variable.
41185 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41186 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41187 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41188 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41189 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41190 `usbtest.mod' and `usbms.mod'.
41191 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41192 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41193 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41194 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41195 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41196 variables.
41197
41198 * disk/usbms.c: New file.
41199
41200 * include/grub/usb.h: Likewise.
41201
41202 * include/grub/usbtrans.h: Likewise.
41203
41204 * include/grub/usbdesc.h: Likewise.
41205
41206 * bus/usb/usbtrans.c: Likewise.
41207
41208 * bus/usb/ohci.c: Likewise.
41209
41210 * bus/usb/uhci.c: Likewise.
41211
41212 * bus/usb/usbhub.c: Likewise.
41213
41214 * bus/usb/usb.c: Likewise.
41215
41216 * commands/usbtest.c: Likewise.
41217
41218 * util/usb.c: Likewise.
41219
41220 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41221
41222 * configure.ac: Test for libusb presence.
41223
41224 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41225
41226 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41227
41228 * kern/mm.c: Add more comments.
41229
41230 2009-02-08 Robert Millan <rmh@aybabtu.com>
41231
41232 Patch from Javier Martín.
41233 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41234 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41235
41236 2009-02-08 Robert Millan <rmh@aybabtu.com>
41237
41238 * fs/cpio.c: Split tar functionality to ...
41239 * fs/tar.c: ... here (new file). Update all users.
41240
41241 2009-02-07 Robert Millan <rmh@aybabtu.com>
41242
41243 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41244 backward-incompatible features.
41245
41246 Based on patch from Javier Martín, with some adjustments.
41247
41248 2009-02-07 Michael Scherer <misc@mandriva.org>
41249
41250 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41251
41252 2009-02-07 Robert Millan <rmh@aybabtu.com>
41253
41254 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41255 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41256 after the RAID stuff.
41257
41258 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41259
41260 Fixes problem when running vbetest command as reported by
41261 Vladimir Serbinenko <phcoder@gmail.com>.
41262
41263 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41264
41265 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41266
41267 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41268 /dev/md/NpN style mdraid devices.
41269
41270 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41271
41272 * util/unifont2pff.rb: Remove.
41273
41274 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41275
41276 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41277 `#'.
41278
41279 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41280
41281 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41282 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41283 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41284 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41285 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41286 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41287 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41288
41289 2009-02-02 Christian Franke <franke@computer.org>
41290
41291 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41292
41293 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41294
41295 * INSTALL: Note that we now require at least autoconf 2.59 and
41296 that LZO is optional.
41297
41298 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41299
41300 Base on patch on bug #24154 created by Tomas Tintera
41301 <trosos@seznam.cz>.
41302
41303 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41304
41305 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41306
41307 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41308 <bero@arklinux.org>.
41309
41310 * normal/parser.y (script_init): Add missing semicolon.
41311
41312 2009-01-31 Colin D Bennett <colin@gibibit.com>
41313
41314 * normal/main.c: Add include to grub/menu_viewer.h.
41315 (free_menu_entry_classes): Added.
41316 (grub_normal_menu_addentry): Added class property handling.
41317 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41318 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41319
41320 * normal/menu_viewer.c: New file.
41321
41322 * normal/menu.c (run_menu_entry): Renamed to ...
41323 (grub_menu_execute_entry): ... this and made it as global.
41324 (grub_menu_run): Renamed to ...
41325 (show_text_menu): ... this and made it local.
41326 (show_text_menu): Adapt to new function names.
41327 (grub_normal_terminal_menu_viewer): New global variable.
41328
41329 * include/grub/menu.h: New file.
41330
41331 * include/grub/menu_viewer.h: New file.
41332
41333 * include/grub/normal.h: Added include to grub/menu.h.
41334 (grub_menu_entry): Moved to include/grub/menu.h.
41335 (grub_menu_entry_t): Likewise.
41336 (grub_menu): Likewise.
41337 (grub_menu_t): Likewise.
41338 (grub_normal_terminal_menu_viewer): Added.
41339 (grub_menu_execute_entry): Likewise.
41340 (grub_menu_run): Removed.
41341
41342 * DISTLIST: Added include/grub/menu.h.
41343 Added include/grub/menu_viewer.h.
41344 Added normal/menu_viewer.c.
41345
41346 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41347
41348 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41349 arglist for menutitle arguments.
41350
41351 * normal/main.c (grub_normal_menu_addentry): Likewise.
41352
41353 * normal/parser.y (menuentry): Likewise.
41354
41355 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41356
41357 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41358 (grub_script_create_cmdmenu): Likewise.
41359
41360 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41361
41362 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41363 changes.
41364
41365 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41366
41367 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41368
41369 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41370
41371 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41372
41373 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41374
41375 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41376
41377 2009-01-30 Christian Franke <franke@computer.org>
41378
41379 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41380 in option help text.
41381
41382 2009-01-27 Pavel Roskin <proski@gnu.org>
41383
41384 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41385
41386 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41387
41388 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41389
41390 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41391
41392 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41393 unregister function.
41394
41395 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41396
41397 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41398
41399 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41400
41401 * util/grub-mkfont.c (usage): Fix typo.
41402
41403 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41404
41405 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41406
41407 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41408
41409 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41410
41411 * kern/misc.c (grub_strcasecmp): New function.
41412 (grub_strcasecmp): Use grub_size_t instead of int for length.
41413 Fix return value.
41414 * include/grub/misc.h: Update function prototypes.
41415
41416 2009-01-26 Robert Millan <rmh@aybabtu.com>
41417
41418 * configure.ac: Fix cross-compilation check.
41419
41420 2009-01-22 Christian Franke <franke@computer.org>
41421
41422 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41423 (precision) digit string. Allow `.format2' without `format1' (width).
41424 Limit input chars for `%s' output to `format2' if specified. This is
41425 compatible with standard printf ().
41426
41427 2009-01-22 Christian Franke <franke@computer.org>
41428
41429 * disk/ata.c (grub_ata_wait_status): Replace by ...
41430 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41431 other status bits may be invalid while BSY is asserted.
41432 (grub_ata_check_ready): New function.
41433 (grub_ata_cmd): Removed.
41434 (grub_ata_wait_drq): New function.
41435 (grub_ata_strncpy): Remove inline.
41436 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41437 and error check now done by grub_ata_wait_drq ().
41438 (grub_ata_pio_write): Likewise.
41439 (grub_atapi_identify): Set DEV before check for !BSY. Use
41440 grub_ata_wait_drq () to wait for data.
41441 (grub_ata_device_initialize): Add status register check to
41442 detect missing SATA slave devices. Add debug messages.
41443 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41444 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41445 transfer loop by grub_ata_pio_write ().
41446 (grub_ata_identify): Set DEV before check for !BSY. Use
41447 grub_ata_wait_drq () to wait for data.
41448 (grub_ata_setaddress): Set DEV before check for !BSY.
41449 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41450 read/write in one loop. Fix invalid command on write. Fix incomplete
41451 command on (size % batch) == 0. Add missing error check after write of
41452 last block. Add debug messages.
41453 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41454
41455 2009-01-19 Christian Franke <franke@computer.org>
41456
41457 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41458 (GRUB_ATAPI_IREASON_*): Likewise.
41459 (grub_ata_pio_write): Fix timeout error return.
41460 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41461 (grub_atapi_wait_drq): New function.
41462 (grub_atapi_packet): New parameter `size'.
41463 Use grub_atapi_wait_drq () and direct write instead of
41464 grub_ata_pio_write ().
41465 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41466 reads the number of bytes requested by the device for each DRQ
41467 assertion.
41468 (grub_atapi_write): Remove old implementation, return not
41469 implemented instead.
41470
41471 2009-01-19 Christian Franke <franke@computer.org>
41472
41473 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41474 of 512 to calculate data size.
41475 (grub_scsi_read12): Likewise.
41476 (grub_scsi_write10): Likewise.
41477 (grub_scsi_write12): Likewise.
41478 (grub_scsi_read): Adjust size according to blocksize.
41479 Add checks for invalid blocksize and unaligned transfer.
41480
41481 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41482
41483 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41484
41485 * term/gfxterm.c (write_char): Fix background rendering for wide
41486 width glyphs.
41487
41488 2009-01-19 Robert Millan <rmh@aybabtu.com>
41489
41490 * config.guess: Update to latest version from config git.
41491 * config.sub: Likewise.
41492
41493 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41494
41495 * Makefile.in: Change font compilation to use new grub-mkfont instead
41496 of java version.
41497
41498 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41499 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41500 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41501 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41502 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41503 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41504 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41505 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41506 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41507
41508 2009-01-16 Christian Franke <franke@computer.org>
41509
41510 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41511 (enum grub_ata_timeout_milliseconds): New enum.
41512 (grub_ata_wait_status): Add parameter milliseconds.
41513 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41514 recovery from timed-out commands.
41515 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41516 return grub_errno instead of REG_ERROR.
41517 (grub_ata_pio_write): Add parameter milliseconds.
41518 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41519 Pass milliseconds to grub_ata_wait_status () and
41520 grub_ata_pio_read ().
41521 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41522 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41523 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41524 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41525 It is not suitable for device detection, because DEV bit is ignored,
41526 the command may run too long, and not all devices set the signature
41527 properly.
41528 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41529 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41530 Fix device selection, DEV bit must be set first to address the registers
41531 of the correct device.
41532 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41533 grub_ata_pio_read/write ().
41534 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41535 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41536
41537 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41538
41539 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41540
41541 2009-01-13 Bean <bean123ch@gmail.com>
41542
41543 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41544
41545 2009-01-13 Bean <bean123ch@gmail.com>
41546
41547 * Makefile.in: (enable_grub_mkfont): New variable.
41548 (freetype_cflags): Likewise.
41549 (freetype_libs): Likewise.
41550
41551 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41552 (grub_mkfont_SOURCES): New variable.
41553 (grub_mkfont_CFLAGS): Likewise.
41554 (grub_mkfont_LDFLAGS): Likewise.
41555
41556 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41557 library if `--enable-grub-mkfont' is requested.
41558 (enable_grub_mkfont): New variable.
41559 (freetype_cflags): Likewise.
41560 (freetype_libs): Likewise.
41561
41562 * util/grub-mkfont.c: New file.
41563
41564 2009-01-12 Christian Franke <franke@computer.org>
41565
41566 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41567 mode check. Fix setting of compat_use[].
41568
41569 2009-01-10 Robert Millan <rmh@aybabtu.com>
41570
41571 Update a few copyright years which we forgot to do in 2008 (only for
41572 files whose changes made in 2008 were copyright-significant)
41573
41574 * Makefile.in: Add 2008 to Copyright line.
41575 * disk/ieee1275/ofdisk.c: Likewise.
41576 * disk/efi/efidisk.c: Likewise.
41577 * kern/dl.c: Likewise.
41578 * kern/sparc64/ieee1275/init.c: Likewise.
41579 * kern/mm.c: Likewise.
41580 * kern/efi/mm.c: Likewise.
41581 * boot/i386/pc/boot.S: Likewise.
41582 * genfslist.sh: Likewise.
41583 * fs/iso9660.c: Likewise.
41584 * fs/hfs.c: Likewise.
41585 * fs/jfs.c: Likewise.
41586 * fs/minix.c: Likewise.
41587 * fs/ufs.c: Likewise.
41588 * gensymlist.sh.in: Likewise.
41589 * genkernsyms.sh.in: Likewise.
41590 * include/grub/misc.h: Likewise.
41591 * include/grub/types.h: Likewise.
41592 * include/grub/symbol.h: Likewise.
41593 * include/grub/elf.h: Likewise.
41594 * include/grub/kernel.h: Likewise.
41595 * include/grub/disk.h: Likewise.
41596 * include/grub/dl.h: Likewise.
41597 * include/grub/i386/linux.h: Likewise.
41598 * include/grub/i386/pc/biosdisk.h: Likewise.
41599 * include/grub/efi/api.h: Likewise.
41600 * include/grub/efi/pe32.h: Likewise.
41601 * include/grub/util/misc.h: Likewise.
41602 * normal/execute.c: Likewise.
41603 * normal/arg.c: Likewise.
41604 * normal/completion.c: Likewise.
41605 * normal/lexer.c: Likewise.
41606 * normal/parser.y: Likewise.
41607 * normal/misc.c: Likewise.
41608 * commands/i386/pc/vbeinfo.c: Likewise.
41609 * commands/hexdump.c: Likewise.
41610 * commands/terminal.c: Likewise.
41611 * commands/ls.c: Likewise.
41612 * commands/help.c: Likewise.
41613 * partmap/pc.c: Likewise.
41614 * loader/efi/chainloader.c: Likewise.
41615 * loader/multiboot_loader.c: Likewise.
41616 * loader/i386/pc/multiboot2.c: Likewise.
41617 * term/efi/console.c: Likewise.
41618 * term/i386/pc/serial.c: Likewise.
41619 * util/lvm.c: Likewise.
41620 * util/console.c: Likewise.
41621 * util/i386/efi/grub-mkimage.c: Likewise.
41622 * util/raid.c: Likewise.
41623
41624 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41625
41626 * commands/videotest.c: Removed include to grub/machine/memory.h.
41627
41628 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41629 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41630 (video_mod_SOURCES): Removed.
41631 (video_mod_CFLAGS): Likewise.
41632 (video_mod_LDFLAGS): Likewise.
41633 (gfxterm_mod_SOURCES): Likewise.
41634 (gfxterm_mod_CFLAGS): Likewise.
41635 (gfxterm_mod_LDFLAGS): Likewise.
41636 (videotest_mod_SOURCES): Likewise.
41637 (videotest_mod_CFLAGS): Likewise.
41638 (videotest_mod_LDFLAGS): Likewise.
41639 (bitmap_mod_SOURCES): Likewise.
41640 (bitmap_mod_CFLAGS): Likewise.
41641 (bitmap_mod_LDFLAGS): Likewise.
41642 (tga_mod_SOURCES): Likewise.
41643 (tga_mod_CFLAGS): Likewise.
41644 (tga_mod_LDFLAGS): Likewise.
41645 (jpeg_mod_SOURCES): Likewise.
41646 (jpeg_mod_CFLAGS): Likewise.
41647 (jpeg_mod_LDFLAGS): Likewise.
41648 (png_mod_SOURCES): Likewise.
41649 (png_mod_CFLAGS): Likewise.
41650 (png_mod_LDFLAGS): Likewise.
41651
41652 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41653 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41654 (video_mod_SOURCES): Added.
41655 (video_mod_CFLAGS): Likewise.
41656 (video_mod_LDFLAGS): Likewise.
41657 (videotest_mod_SOURCES): Likewise.
41658 (videotest_mod_CFLAGS): Likewise.
41659 (videotest_mod_LDFLAGS): Likewise.
41660 (bitmap_mod_SOURCES): Likewise.
41661 (bitmap_mod_CFLAGS): Likewise.
41662 (bitmap_mod_LDFLAGS): Likewise.
41663 (tga_mod_SOURCES): Likewise.
41664 (tga_mod_CFLAGS): Likewise.
41665 (tga_mod_LDFLAGS): Likewise.
41666 (jpeg_mod_SOURCES): Likewise.
41667 (jpeg_mod_CFLAGS): Likewise.
41668 (jpeg_mod_LDFLAGS): Likewise.
41669 (png_mod_SOURCES): Likewise.
41670 (png_mod_CFLAGS): Likewise.
41671 (png_mod_LDFLAGS): Likewise.
41672 (gfxterm_mod_SOURCES): Likewise.
41673 (gfxterm_mod_CFLAGS): Likewise.
41674 (gfxterm_mod_LDFLAGS): Likewise.
41675
41676 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41677 grub/machine/console.h.
41678
41679 2009-01-04 Jerone Young <jerone@gmail.com>
41680
41681 Make on screen instructions clearer
41682
41683 Based on patch created by Jidanni <jidanni@jidanni.org>
41684
41685 * normal/menu.c: print clearer instructions on the screen
41686
41687 2009-01-02 Colin D Bennett <colin@gibibit.com>
41688
41689 New font engine.
41690
41691 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41692 build system and fixed gfxterm.c to work with different sized fonts.
41693
41694 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41695
41696 * configure: Re-generated.
41697
41698 * DISTLIST: Removed font/manager.c.
41699 Added font/font.c.
41700 Added font/font_cmd.c.
41701
41702 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41703 compilation.
41704
41705 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41706
41707 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41708
41709 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41710
41711 * normal/menu.c: Likewise.
41712
41713 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41714 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41715
41716 * include/grub/font.h: Replaced with new file.
41717
41718 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41719 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41720 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41721 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41722 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41723 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41724 fg_red, fg_green, fg_blue, fg_alpha.
41725 (grub_video_adapter): Removed blit_glyph.
41726 (grub_video_blit_glyph): Removed.
41727
41728 * font/manager.c: Removed file.
41729
41730 * font/font.c: New file.
41731
41732 * font/font_cmd.c: Likewise.
41733
41734 * video/video.c (grub_video_blit_glyph): Removed.
41735
41736 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41737 (grub_video_vbe_map_rgba): Likewise.
41738 (grub_video_vbe_unmap_color_int): Likewise.
41739 (grub_video_vbe_blit_glyph): Removed.
41740 (grub_video_vbe_adapter): Removed blit_glyph.
41741
41742 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41743 (get_pixel): Likewise.
41744 (set_pixel): Likewise.
41745
41746 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41747
41748 * term/gfxterm.c: Adapted to new font engine.
41749
41750 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41751
41752 * term/i386/pc/vga.c: Likewise.
41753
41754 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41755
41756 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41757
41758 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41759
41760 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41761
41762 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41763
41764 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41765
41766 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41767
41768 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41769
41770 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41771
41772 * util/grub.d/00_header.in: Changed to use new loadfont command.
41773
41774 * util/grub-mkconfig_lib.in: Changed font extension.
41775
41776 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41777
41778 * util/getroot.c (grub_util_get_grub_dev): Add support for
41779 /dev/md/dNNpNN style partitionable mdraid devices.
41780
41781 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41782
41783 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41784 at a time limit of the PXE TFTP API correctly.
41785 (grub_pxefs_close): Likewise.
41786
41787 2008-11-29 Robert Millan <rmh@aybabtu.com>
41788
41789 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41790 grub_ata_device_initialize() calls.
41791
41792 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41793
41794 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41795 iteration failed.
41796 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41797
41798 2008-11-28 Robert Millan <rmh@aybabtu.com>
41799
41800 Fix build on powerpc-ieee1275. Based on patch created by
41801 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41802 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41803 `kern/ieee1275/mmap.c'.
41804 * include/grub/powerpc/ieee1275/memory.h: New file.
41805
41806 Provide grub-install on coreboot.
41807 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41808 (grub_install_SOURCES): New variable.
41809 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41810 usable on coreboot.
41811
41812 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41813
41814 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41815 to `grub_term_input_t'.
41816 (grub_term_get_current_output): Change return type to
41817 `grub_term_output_t'.
41818
41819 2008-11-22 Robert Millan <rmh@aybabtu.com>
41820
41821 Fix breakage on coreboot due to declaration mismatch.
41822 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41823 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41824 grub_vga_text_cls().
41825
41826 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41827 comments. Avoid copying one more byte than necessary (just in case).
41828
41829 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41830 to 0x200000 (avoids trouble with some OFW implementations, and matches
41831 with the one in Yaboot).
41832 Reported by Manoel Abranches
41833
41834 2008-11-20 Robert Millan <rmh@aybabtu.com>
41835
41836 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41837 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41838
41839 * util/grub-mkconfig_lib.in (grub_warn): New function.
41840 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41841 warnings, to obtain consistent formatting.
41842 * util/grub.d/00_header.in: Likewise.
41843 * util/update-grub_lib.in: Likewise.
41844
41845 * loader/i386/linux.c (allocate_pages): Fix a warning.
41846 Move comment text to `#error' stanza.
41847
41848 Harmonize ieee1275's grub_available_iterate() with the generic
41849 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41850 build problem on i386-ieee1275):
41851 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41852 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41853 parameter `type'. Update all users of this function.
41854 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41855 `kern/ieee1275/mmap.c'.
41856 * kern/ieee1275/init.c
41857 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41858 with ...
41859 (grub_machine_mmap_iterate): ... this.
41860 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41861 return type to `grub_err_t'. Update all implementations of this
41862 function prototype.
41863 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41864 Likewise.
41865
41866 Add `lsmmap' command (lists firmware-provided memory map):
41867 * commands/lsmmap.c: New file.
41868 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41869 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41870 variables.
41871 * conf/powerpc-ieee1275.rmk: Likewise.
41872 * conf/i386-coreboot.rmk: Likewise.
41873 * conf/i386-ieee1275.rmk: Likewise.
41874
41875 2008-11-19 Robert Millan <rmh@aybabtu.com>
41876
41877 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41878 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41879 constraints to initrd allocation (based on code from
41880 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41881 for Linux to find it.
41882
41883 2008-11-14 Robert Millan <rmh@aybabtu.com>
41884
41885 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41886 order to cope with duplicate slashes.
41887
41888 2008-11-14 Robert Millan <rmh@aybabtu.com>
41889
41890 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41891 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41892 don't want to mess with lower memory, because it is used in the Linux
41893 loader.
41894
41895 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41896 an appropriate place in lower memory, between 0x10000 and 0x90000,
41897 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41898 is in our heap (probably as a result of it being corrupted during
41899 decompression). Add #error instance with comment to explain why this
41900 loader isn't currently usable on PC/BIOS.
41901
41902 2008-11-14 Robert Millan <rmh@aybabtu.com>
41903
41904 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41905 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41906
41907 2008-11-12 Robert Millan <rmh@aybabtu.com>
41908
41909 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41910
41911 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41912 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41913 from here ...
41914 * include/grub/i386/pc/memory.h: ... to here.
41915
41916 2008-11-12 Robert Millan <rmh@aybabtu.com>
41917
41918 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41919 split).
41920
41921 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41922 (grub_console_cur_color, grub_console_real_putchar)
41923 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41924 (grub_console_setcolorstate, grub_console_setcolor)
41925 (grub_console_getcolor): Move from here ...
41926 * include/grub/i386/vga_common.h: ... to here (new file).
41927
41928 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41929 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41930 `<grub/i386/io.h>'.
41931 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41932 `<grub/i386/vga_common.h>'.
41933
41934 2008-11-12 Robert Millan <rmh@aybabtu.com>
41935
41936 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41937 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41938 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41939 variables.
41940 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41941 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41942
41943 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41944 grub_console_init() with call to grub_vga_text_init().
41945 (grub_machine_fini): Replace call to
41946 grub_console_fini() with call to grub_vga_text_fini() and
41947 grub_at_keyboard_fini().
41948
41949 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41950 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41951 (grub_console_setcolorstate, grub_console_setcolor)
41952 (grub_console_getcolor): New function prototypes.
41953
41954 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41955 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41956 (grub_vga_text_setcursor): Static-ize.
41957 (grub_vga_text_term): New structure.
41958 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41959
41960 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41961 (grub_console_cur_color, grub_console_standard_color)
41962 (grub_console_normal_color, grub_console_highlight_color)
41963 (map_char, grub_console_putchar, grub_console_getcharwidth)
41964 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41965 (grub_console_getcolor): Move from here ...
41966 * term/i386/vga_common.c: ... to here (same function names).
41967
41968 2008-11-12 Robert Millan <rmh@aybabtu.com>
41969
41970 Use newly-added Multiboot support in coreboot.
41971
41972 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41973 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41974
41975 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41976 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41977 (codestart): Store the MBI in `startup_multiboot_info' when we're
41978 being loaded using Multiboot.
41979
41980 * kern/i386/coreboot/init.c (grub_machine_init): Move
41981 grub_at_keyboard_init() call to beginning of function (useful for
41982 debugging). Call grub_machine_mmap_init() before attempting to use
41983 grub_machine_mmap_iterate().
41984 (grub_lower_mem, grub_upper_mem): Move from here ...
41985 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41986 here (new file).
41987
41988 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41989 function prototype.
41990
41991 2008-11-12 Robert Millan <rmh@aybabtu.com>
41992
41993 Fix a regression introduced by the at_keyboard.mod split. Because
41994 some terminals are default on some platforms and non-default on
41995 others, the first terminal being registered determines which is
41996 going to be default.
41997
41998 * kern/term.c (grub_term_register_input): If this is the first
41999 terminal being registered, set it as the current one.
42000 (grub_term_register_output): Likewise.
42001
42002 * term/efi/console.c (grub_console_init): Do not call
42003 grub_term_set_current_output() or grub_term_set_current_input().
42004 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42005 * term/i386/pc/console.c (grub_console_init): Likewise.
42006 (grub_console_fini): Do not call grub_term_set_current_input()
42007 (but leave grub_term_set_current_output() to restore text mode).
42008
42009 2008-11-10 Robert Millan <rmh@aybabtu.com>
42010
42011 * util/grub.d/00_header.in: Add backward compatibility check for
42012 versions of terminal.mod that don't understand `terminal_input' or
42013 `terminal_output'.
42014
42015 2008-11-09 Robert Millan <rmh@aybabtu.com>
42016
42017 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42018 `terminal_input' / `terminal_output', not `terminal'.
42019
42020 2008-11-08 Robert Millan <rmh@aybabtu.com>
42021
42022 * Makefile.in (include_DATA): Fix srcdir=. assumption.
42023 (DISTCLEANFILES): Add `build_env.mk'.
42024
42025 2008-11-08 Robert Millan <rmh@aybabtu.com>
42026
42027 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42028 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42029 members. Update all users.
42030 * util/console.c (grub_ncurses_term): Split in ...
42031 (grub_ncurses_term_input): ... this, and ...
42032 (grub_ncurses_term_output): ... this. Update all users.
42033 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42034
42035 2008-11-08 Robert Millan <rmh@aybabtu.com>
42036
42037 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42038 (PKGDATA): Add $(pkgdata_SRCDIR).
42039 (pkglib_BUILDDIR): New variable.
42040 (pkgdata_SRCDIR): New variable.
42041 (build_env.mk): New target.
42042 (include_DATA): New variable.
42043 (install-local): Install $(include_DATA) files in $(includedir).
42044
42045 2008-11-07 Pavel Roskin <proski@gnu.org>
42046
42047 * gendistlist.sh: Use C locale for sorting to ensure consistent
42048 output on all systems.
42049
42050 * util/grub.d/00_header.in: Remove incorrect space before
42051 "serial".
42052
42053 2008-11-07 Robert Millan <rmh@aybabtu.com>
42054
42055 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42056 per specification.
42057 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42058 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42059 (based on find_multi_boot1_header).
42060 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42061 using find_multi_boot2_header(), and abort if neither Multiboot or
42062 Multiboot headers were found.
42063
42064 2008-11-07 Robert Millan <rmh@aybabtu.com>
42065
42066 Modularize at_keyboard.mod:
42067
42068 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42069 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42070 (at_keyboard_mod_LDFLAGS): New variables.
42071
42072 Actual terminal split:
42073
42074 * include/grub/term.h (struct grub_term): Split in ...
42075 (struct grub_term_input): ... this, and ...
42076 (struct grub_term_output): ... this. Update all users.
42077 (grub_term_set_current): Split in ...
42078 (grub_term_set_current_input): ... this, and ...
42079 (grub_term_set_current_output): ... this.
42080 (grub_term_get_current): Split in ...
42081 (grub_term_get_current_input): ... this, and ...
42082 (grub_term_get_current_output): ... this.
42083 (grub_term_register): Split in ...
42084 (grub_term_register_input): ... this, and ...
42085 (grub_term_register_output): ... this.
42086 (grub_term_unregister): Split in ...
42087 (grub_term_unregister_input): ... this, and ...
42088 (grub_term_unregister_output): ... this.
42089 (grub_term_iterate): Split in ...
42090 (grub_term_iterate_input): ... this, and ...
42091 (grub_term_iterate_output): ... this.
42092
42093 * kern/term.c (grub_term_list): Split in ...
42094 (grub_term_list_input): ... this, and ...
42095 (grub_term_list_output): ... this. Update all users.
42096 (grub_cur_term): Split in ...
42097 (grub_cur_term_input): ... this, and ...
42098 (grub_cur_term_output): ... this. Update all users.
42099 (grub_term_set_current): Split in ...
42100 (grub_term_set_current_input): ... this, and ...
42101 (grub_term_set_current_output): ... this.
42102 (grub_term_get_current): Split in ...
42103 (grub_term_get_current_input): ... this, and ...
42104 (grub_term_get_current_output): ... this.
42105 (grub_term_register): Split in ...
42106 (grub_term_register_input): ... this, and ...
42107 (grub_term_register_output): ... this.
42108 (grub_term_unregister): Split in ...
42109 (grub_term_unregister_input): ... this, and ...
42110 (grub_term_unregister_output): ... this.
42111 (grub_term_iterate): Split in ...
42112 (grub_term_iterate_input): ... this, and ...
42113 (grub_term_iterate_output): ... this.
42114
42115 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42116 a check for input and one for output (and only attempt to get keys
42117 from user when input works).
42118
42119 * util/grub-probe.c (grub_term_get_current): Split in ...
42120 (grub_term_get_current_input): ... this, and ...
42121 (grub_term_get_current_output): ... this.
42122 * util/grub-fstest.c: Likewise.
42123 * util/i386/pc/grub-setup.c: Likewise.
42124 * util/grub-editenv.c: Likewise.
42125
42126 Portability adjustments:
42127
42128 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42129 `term/i386/pc/at_keyboard.c'.
42130 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42131 grub_keyboard_controller_init() (now handled by terminal .init).
42132 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42133 grub_at_keyboard_init().
42134 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42135 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42136 at_keyboard.mod via input terminal interface).
42137 * include/grub/i386/coreboot/console.h: Convert into a stub for
42138 `<grub/i386/pc/console.h>'.
42139
42140 Migrate full terminals to new API:
42141
42142 * term/efi/console.c (grub_console_term): Split into ...
42143 (grub_console_term_input): ... this, and ...
42144 (grub_console_term_output): ... this. Update all users.
42145 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42146 (grub_ofconsole_init): Split into ...
42147 (grub_ofconsole_init_input): ... this, and ...
42148 (grub_ofconsole_init_output): ... this.
42149 (grub_ofconsole_term): Split into ...
42150 (grub_ofconsole_term_input): ... this, and ...
42151 (grub_ofconsole_term_output): ... this. Update all users.
42152 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42153 (grub_serial_term_input): ... this, and ...
42154 (grub_serial_term_output): ... this. Update all users.
42155 * term/i386/pc/console.c (grub_console_term): Split into ...
42156 (grub_console_term_input): ... this, and ...
42157 (grub_console_term_output): ... this. Update all users.
42158 (grub_console_term_input): Only enable it on PC/BIOS platform.
42159 (grub_console_init): Remove grub_keyboard_controller_init() call.
42160
42161 Migrate input terminals to new API:
42162
42163 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42164 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42165 i386-specific anyway).
42166 (grub_console_checkkey): Rename to ...
42167 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42168 users.
42169 (grub_keyboard_controller_orig): New variable.
42170 (grub_console_getkey): Rename to ...
42171 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42172 users.
42173 (grub_keyboard_controller_init): Static-ize. Save original
42174 controller value so that it can be restored ...
42175 (grub_keyboard_controller_fini): ... here (new function).
42176 (grub_at_keyboard_term): New structure.
42177 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42178 functions.
42179
42180 Migrate output terminals to new API:
42181
42182 * term/i386/pc/vga.c (grub_vga_term): Change type to
42183 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42184 members. Update all users.
42185 * term/gfxterm.c (grub_video_term): Change type to
42186 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42187 members. Update all users.
42188 * include/grub/i386/pc/console.h (grub_console_checkkey)
42189 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42190 etc).
42191
42192 Migrate `terminal' command and userland tools to new API:
42193
42194 * commands/terminal.c (grub_cmd_terminal): Split into ...
42195 (grub_cmd_terminal_input): ... this, and ...
42196 (grub_cmd_terminal_output): ... this.
42197 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42198 `terminal_input' and `terminal_output'.
42199 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42200 `terminal_input' / `terminal_output' API.
42201 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42202 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42203 provided ${GRUB_TERMINAL}, convert it).
42204
42205 2008-11-04 Robert Millan <rmh@aybabtu.com>
42206
42207 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42208 for FreeBSD.
42209 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42210
42211 2008-11-03 Bean <bean123ch@gmail.com>
42212
42213 * kern/elf.c (grub_elf32_load): Revert to previous code.
42214 (grub_elf64_load): Likewise.
42215
42216 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42217
42218 2008-11-01 Robert Millan <rmh@aybabtu.com>
42219
42220 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42221 (TARGET_CPPFLAGS): Likewise.
42222 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42223
42224 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42225
42226 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42227
42228 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42229
42230 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42231 addition of objects until the code is not going to be able to fail.
42232
42233 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42234
42235 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42236 (add a missing NULL check, and correct them by moving the pointer
42237 operations after the actual check).
42238
42239 2008-10-29 Robert Millan <rmh@aybabtu.com>
42240
42241 * util/i386/pc/grub-install.in: Handle empty string as output from
42242 make_system_path_relative_to_its_root().
42243
42244 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42245
42246 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42247 circular metadata worst case scenario. If the metadata is circular
42248 then copy the wrap in place.
42249 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42250 project lib/format_text/layout.h
42251 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42252
42253 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42254
42255 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42256
42257 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42258
42259 * util/update-grub_lib.in: Mention filename in warning message.
42260
42261 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42262
42263 * NEWS: Update for rename of update-grub to grub-mkconfig.
42264
42265 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42266
42267 * util/update-grub_lib.in: Copy to ...
42268 * util/grub-mkconfig_lib.in: ... this. Update all users.
42269 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42270 * util/update-grub.in: Rename to ...
42271 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42272 option. Add `--output' option to allow users to specify the generated
42273 configuration file. Default to stdout.
42274 (update_grub_dir): Rename to ...
42275 (grub_mkconfig_dir): ... this.
42276 (grub_cfg): Default to an empty string.
42277 * conf/common.rmk (update-grub): Rename to ...
42278 (grub-mkconfig): ... this.
42279 (update-grub_lib): Copy to ...
42280 (grub-mkconfig_lib): ... this.
42281 (update-grub_SCRIPTS): Copy to ...
42282 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42283 (update-grub_DATA): Rename to ...
42284 (grub-mkconfig_DATA): ... this.
42285
42286 2008-09-28 Robert Millan <rmh@aybabtu.com>
42287
42288 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42289 to `modified'. Add the real `created' field.
42290 (grub_iso9660_uuid): Use `modified' rather than `created' for
42291 constructing the UUID.
42292
42293 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42294
42295 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42296 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42297
42298 2008-09-28 Bean <bean123ch@gmail.com>
42299
42300 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42301 Thanks to Christian Franke for finding this bug.
42302
42303 2008-09-25 Robert Millan <rmh@aybabtu.com>
42304
42305 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42306 instances of grub_util_get_disk_name() (see previous commit).
42307
42308 2008-09-25 Robert Millan <rmh@aybabtu.com>
42309
42310 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42311 `util/i386/get_disk_name.c'.
42312 * conf/i386-efi.rmk: Likewise.
42313 * conf/x86_64-efi.rmk: Likewise.
42314 * conf/i386-coreboot.rmk: Likewise.
42315 * conf/i386-ieee1275.rmk: Likewise.
42316 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42317 `util/ieee1275/get_disk_name.c'.
42318 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42319 * util/ieee1275/get_disk_name.c: Remove file.
42320 * util/i386/get_disk_name.c: Remove file.
42321 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42322 "hd%d" for device.map entries, rather than using
42323 grub_util_get_disk_name().
42324
42325 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42326
42327 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42328 warning.
42329 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42330
42331 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42332
42333 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42334 Changed to 0x5100.
42335 (GRUB_TERM_PPAGE): Changed to 0x4900.
42336
42337 2008-09-24 Robert Millan <rmh@aybabtu.com>
42338
42339 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42340 macros (they were i386-pc specific).
42341 * include/grub/sparc64/ieee1275/console.h: Likewise.
42342 * include/grub/efi/console.h: Likewise.
42343
42344 2008-09-22 Bean <bean123ch@gmail.com>
42345
42346 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42347 resident and in attribute list.
42348
42349 * include/grub/ntfs.h (BMP_LEN): Removed.
42350
42351 2008-09-22 Bean <bean123ch@gmail.com>
42352
42353 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42354 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42355
42356 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42357 error occurs, as grub_disk_open will call grub_disk_close, which will
42358 call p->close (scsi).
42359
42360 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42361
42362 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42363 (AC_PREREQ): Bumped to 2.59.
42364 (AC_TRY_COMPILE): Replace obsolete macro with ...
42365 (AC_COMPILE_IFELSE): ... this.
42366 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42367 (AC_LINK_IFELSE): ... this.
42368
42369 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42370
42371 * autogen.sh: Add a call to `gendistlist.sh'.
42372
42373 2008-09-19 Christian Franke <franke@computer.org>
42374
42375 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42376 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42377 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42378 Export __enable_execute_stack() to modules.
42379 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42380 New function.
42381
42382 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42383
42384 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42385 Sort the list.
42386
42387 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42388
42389 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42390 #include <grub/util/hostdisk.h>.
42391
42392 2008-09-08 Robert Millan <rmh@aybabtu.com>
42393
42394 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42395 segments when their filesz is zero (grub_file_read() interprets
42396 zero-size as "read until EOF", which results in memory corruption).
42397 Use `lowest_segment' rather than 0 for calculating the current
42398 segment load address.
42399
42400 2008-09-08 Robert Millan <rmh@aybabtu.com>
42401
42402 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42403 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42404 clobbered useful information.
42405
42406 2008-09-08 Robert Millan <rmh@aybabtu.com>
42407
42408 * include/grub/util/biosdisk.h: Move to ...
42409 * include/grub/util/hostdisk.h: ... here. Update all users.
42410 * util/biosdisk.c: Move to ...
42411 * util/hostdisk.c: ... here. Update all users.
42412
42413 2008-09-07 Robert Millan <rmh@aybabtu.com>
42414
42415 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42416 variables.
42417 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42418 and length can be stored directly in the `mbi->mmap_addr' and
42419 `mbi->mmap_length' struct fields.
42420
42421 2008-09-07 Robert Millan <rmh@aybabtu.com>
42422
42423 * conf/i386.rmk: New file. Provides declaration for building
42424 `cpuid.mod'.
42425 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42426 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42427 variables.
42428 Include `conf/i386.mk'.
42429 * conf/i386-efi.rmk: Likewise.
42430 * conf/x86_64-efi.rmk: Likewise.
42431 * conf/i386-coreboot.rmk: Likewise.
42432 * conf/i386-ieee1275.rmk: Likewise.
42433
42434 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42435
42436 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42437 Adds optimization support for BGR based modes.
42438
42439 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42440 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42441 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42442 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42443 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42444 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42445 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42446 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42447 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42448 (grub_video_i386_vbeblit_index_index): Likewise.
42449 (grub_video_i386_vbeblit_replace_directN): Added.
42450 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42451 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42452 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42453 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42454 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42455 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42456 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42457 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42458 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42459 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42460 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42461 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42462 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42463
42464 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42465 (grub_video_i386_vbefill_R8G8B8): Likewise.
42466 (grub_video_i386_vbefill_index): Likewise.
42467 (grub_video_i386_vbefill_direct32): Added.
42468 (grub_video_i386_vbefill_direct24): Likewise.
42469 (grub_video_i386_vbefill_direct16): Likewise.
42470 (grub_video_i386_vbefill_direct8): Likewise.
42471
42472 * include/grub/video.h (grub_video_blit_format): Removed
42473 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42474 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42475 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42476 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42477 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42478
42479 * video/video.c (grub_video_get_blit_format): Updated to use new
42480 blit formats. Added handling for 16 bit color modes.
42481
42482 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42483 fillers.
42484 (common_blitter): Updated to use new blitters.
42485
42486 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42487 Removed.
42488 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42489 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42490 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42491 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42492 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42493 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42494 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42495 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42496 (grub_video_i386_vbeblit_index_index): Likewise.
42497 (grub_video_i386_vbeblit_replace_directN): Added.
42498 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42499 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42500 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42501 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42502 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42503 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42504 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42505 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42506 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42507 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42508 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42509 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42510 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42511
42512 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42513 (grub_video_i386_vbefill_R8G8B8): Likewise.
42514 (grub_video_i386_vbefill_index): Likewise.
42515 (grub_video_i386_vbefill_direct32): Added.
42516 (grub_video_i386_vbefill_direct24): Likewise.
42517 (grub_video_i386_vbefill_direct16): Likewise.
42518 (grub_video_i386_vbefill_direct8): Likewise.
42519
42520 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42521 types.
42522
42523 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42524 types.
42525
42526 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42527 blitter types.
42528
42529 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42530 types.
42531
42532 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42533
42534 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42535 RAID level 1.
42536
42537 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42538
42539 * fs/iso9660.c (grub_iso9660_date): New structure.
42540 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42541 (grub_iso9660_uuid): New function.
42542
42543 2008-09-05 Bean <bean123ch@gmail.com>
42544
42545 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42546
42547 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42548 insensitive bit for names in Win32 and Win32 & DOS namespace.
42549
42550 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42551
42552 * include/grub/types.h (LONG_MAX): Likewise.
42553
42554 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42555
42556 * util/getroot.c: Include <config.h>.
42557 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42558 add support for /dev/md/N devices and handle LVM double dash escaping.
42559
42560 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42561
42562 * config.guess: Update to latest version from config git.
42563 * config.sub: Likewise.
42564
42565 2008-09-03 Robert Millan <rmh@aybabtu.com>
42566
42567 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42568 `disk->total_sectors'.
42569
42570 2008-09-01 Colin D Bennett <colin@gibibit.com>
42571
42572 * include/grub/normal.h: Fixed incorrect comment for
42573 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42574
42575 2008-09-01 Colin D Bennett <colin@gibibit.com>
42576
42577 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42578 values with defines.
42579
42580 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42581 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42582 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42583 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42584 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42585 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42586 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42587 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42588 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42589 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42590 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42591 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42592 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42593 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42594 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42595 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42596 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42597 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42598 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42599
42600 2008-08-31 Robert Millan <rmh@aybabtu.com>
42601
42602 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42603 declaration.
42604 (grub_multiboot): Fix a few warnings.
42605
42606 2008-08-31 Robert Millan <rmh@aybabtu.com>
42607
42608 * loader/i386/pc/multiboot.c: Update comment not to say that
42609 boot_device support is unimplemented.
42610
42611 2008-08-31 Robert Millan <rmh@aybabtu.com>
42612
42613 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42614 or memory map support are unimplemented.
42615
42616 2008-08-31 Colin D Bennett <colin@gibibit.com>
42617
42618 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42619
42620 2008-08-31 Colin D Bennett <colin@gibibit.com>
42621
42622 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42623 total video memory in 'vbeinfo' output; show color format details for
42624 each video mode.
42625
42626 2008-08-30 Pavel Roskin <proski@gnu.org>
42627
42628 * util/genmoddep.c: Remove for real this time.
42629 * DISTLIST: Remove util/genmoddep.c.
42630
42631 2008-08-30 Robert Millan <rmh@aybabtu.com>
42632
42633 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42634 as required by Multiboot spec (it was already 4-byte aligned, but
42635 only by chance).
42636
42637 2008-08-29 Pavel Roskin <proski@gnu.org>
42638
42639 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42640 * kern/powerpc/ieee1275/startup.S: ... this.
42641 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42642 * DISTLIST: Likewise.
42643
42644 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42645 grub/cpu/kernel.h. Add start label for consistency with other
42646 platforms. Add grub_prefix immediately after start. Add jump
42647 to the code after grub_prefix.
42648 * include/grub/powerpc/kernel.h: Provide valid values for
42649 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42650
42651 2008-08-29 Bean <bean123ch@gmail.com>
42652
42653 * configure.ac: Change host_os to cygwin for mingw.
42654 (asprintf): New check for function.
42655
42656 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42657 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42658
42659 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42660 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42661 sync, sleep and grub_util_get_disk_size for mingw.
42662
42663 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42664 to get size in mingw.
42665 (open_device): Use flag O_BINARY if it's defined.
42666 (find_root_device): Add dummy code for mingw.
42667
42668 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42669 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42670 (get_scsi_disk_name): Return 0 for mingw.
42671
42672 * util/hostfs.c: #include <grub/util/misc.h>.
42673 (grub_hostfs_open): Use "rb" flag to open file, use
42674 grub_util_get_disk_size to get disk size for mingw.
42675
42676 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42677 (asprintf): New function if HAVE_ASPRINTF is not set.
42678 (sync): New function for mingw.
42679 (sleep): Likewise.
42680 (grub_util_get_disk_size): Likewise.
42681
42682 2008-08-28 Pavel Roskin <proski@gnu.org>
42683
42684 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42685 kern/time.c.
42686
42687 2008-08-28 Robert Millan <rmh@aybabtu.com>
42688
42689 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42690
42691 2008-08-28 Robert Millan <rmh@aybabtu.com>
42692
42693 Change find_grub_drive() syntax so it doesn't prevent it from
42694 detecting NULL names as errors.
42695
42696 * util/biosdisk.c (find_grub_drive): Move free slot search code
42697 from here ...
42698 (find_free_slot): ... to here.
42699 (read_device_map): Use find_free_slot() to search for free slots.
42700
42701 2008-08-27 Marco Gerards <marco@gnu.org>
42702
42703 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42704 (scsi_mod_SOURCES): New variable.
42705 (scsi_mod_CFLAGS): Likewise
42706 (scsi_mod_LDFLAGS): Likewise.
42707
42708 * disk/scsi.c: New file.
42709
42710 * include/grub/scsi.h: Likewise.
42711
42712 * include/grub/scsicmd.h: Likewise.
42713
42714 * disk/ata.c: Include <grub/scsi.h>.
42715 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42716 instead.
42717 (grub_ata_iterate): Skip ATAPI devices.
42718 (grub_ata_open): Only handle ATAPI devices.
42719 (struct grub_atapi_read): Removed.
42720 (grub_atapi_readsector): Likewise.
42721 (grub_ata_read): No longer handle ATAPI devices.
42722 (grub_ata_write): Likewise.
42723 (grub_atapi_iterate): New function.
42724 (grub_atapi_read): Likewise.
42725 (grub_atapi_write): Likewise.
42726 (grub_atapi_open): Likewise.
42727 (grub_atapi_close): Likewise.
42728 (grub_atapi_dev): New variable.
42729 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42730 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42731
42732 * include/grub/disk.h (enum grub_disk_dev_id): Add
42733 `GRUB_DISK_DEVICE_SCSI_ID'.
42734
42735 2008-08-26 Robert Millan <rmh@aybabtu.com>
42736
42737 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42738 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42739 descriptive.
42740
42741 2008-08-23 Bean <bean123ch@gmail.com>
42742
42743 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42744 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42745 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42746 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42747 dm_nv.mod.
42748 (raid5rec_mod_SOURCES): New macro.
42749 (raid5rec_mod_CFLAGS): Likewise.
42750 (raid5rec_mod_LDFLAGS): Likewise.
42751 (raid6rec_mod_SOURCES): Likewise.
42752 (raid6rec_mod_CFLAGS): Likewise.
42753 (raid6rec_mod_LDFLAGS): Likewise.
42754 (mdraid_mod_SOURCES): Likewise.
42755 (mdraid_mod_CFLAGS): Likewise.
42756 (mdraid_mod_LDFLAGS): Likewise.
42757 (dm_nv_mod_SOURCES): Likewise.
42758 (dm_nv_mod_CFLAGS): Likewise.
42759 (dm_nv_mod_LDFLAGS): Likewise.
42760
42761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42762 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42763 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42764
42765 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42766 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42767
42768 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42769
42770 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42771
42772 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42773
42774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42775
42776 * disk/raid5_recover.c: New file.
42777
42778 * disk/raid6_recover.c: Likewise.
42779
42780 * disk/mdraid_linux.c: Likewise.
42781
42782 * disk/dmraid_nvidia.c: Likewise.
42783
42784 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42785 ULONG_MAX.
42786
42787 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42788 calculate the size of raid device.
42789 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42790 different layout of raid5.
42791 (grub_raid_scan_device): Remove code specific to mdraid.
42792 (grub_raid_list): New variable.
42793 (free_array): New function.
42794 (grub_raid_register): Likewise.
42795 (grub_raid_unregister): Likewise.
42796 (grub_raid_rescan): Likewise.
42797 (GRUB_MOD_INIT): Don't iterate device here.
42798 (GRUB_MOD_FINI): Use free_array to release resource.
42799
42800 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42801 (grub_raid5_recover_func_t): New function variable type.
42802 (grub_raid6_recover_func_t): Likewise.
42803 (grub_raid5_recover_func): New variable.
42804 (grub_raid6_recover_func): Likewise.
42805 (grub_raid_register): New function.
42806 (grub_raid_unregister): Likewise.
42807 (grub_raid_rescan): Likewise.
42808 (grub_raid_block_xor): Likewise.
42809
42810 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42811 (CMD_CRC): New macro.
42812 (part): Removed.
42813 (read_file): Handle device as well as file.
42814 (cmd_crc): New function.
42815 (fstest): Handle multiple disks.
42816 (options): Remove part, raw and long, add root and diskcount.
42817 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42818 (main): Find the first non option entry and ignore subsequent options,
42819 add handling for the new options, support multiple disks.
42820
42821 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42822
42823 2008-08-23 Bean <bean123ch@gmail.com>
42824
42825 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42826
42827 * genfslist.sh: Ignore kernel.mod.
42828
42829 * genpartmaplist.sh: Likewise.
42830
42831 2008-08-23 Robert Millan <rmh@aybabtu.com>
42832
42833 * util/getroot.c (find_root_device): Skip anything that starts with
42834 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42835
42836 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42837
42838 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42839 * util/grub.d/00_header.in: Allow the administrator to change default
42840 gfxmode via ${GRUB_GFXMODE}.
42841
42842 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42843
42844 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42845
42846 2008-08-21 Robert Millan <rmh@aybabtu.com>
42847
42848 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42849 loader.
42850 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42851 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42852
42853 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42854
42855 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42856 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42857
42858 2008-08-19 Robert Millan <rmh@aybabtu.com>
42859
42860 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42861 (struct grub_virtual_screen): Remove `cursor_color'.
42862 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42863 initialization.
42864 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42865
42866 2008-08-18 Robert Millan <rmh@aybabtu.com>
42867
42868 Unify (identical) linux_normal.c files.
42869 * loader/i386/efi/linux_normal.c: Move from here ...
42870 * loader/linux_normal.c: ... to here. Update all users.
42871 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42872 * loader/i386/ieee1275/linux_normal.c: Likewise.
42873
42874 2008-08-18 Robert Millan <rmh@aybabtu.com>
42875
42876 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42877 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42878 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42879 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42880 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42881 New macros.
42882 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42883 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42884 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42885 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42886 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42887 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42888 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42889 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42890 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42891 portably using grub_getxy().
42892 Replace `-EFI' with `-bzImage' in boot message.
42893
42894 2008-08-17 Robert Millan <rmh@aybabtu.com>
42895
42896 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42897
42898 2008-08-17 Robert Millan <rmh@aybabtu.com>
42899
42900 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42901
42902 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42903 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42904 (grub_machine_mmap_iterate): New function declaration.
42905 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42906 structure.
42907 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42908 macros.
42909
42910 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42911 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42912 Move e820 parsing from here ...
42913 * kern/i386/pc/mmap.c: New file.
42914 (grub_machine_mmap_iterate): ... to here.
42915
42916 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42917 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42918 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42919 (grub_available_iterate): Redeclare to return `void', and redeclare
42920 its hook to use grub_uint64_t as addr and size parameters, and rename
42921 to ...
42922 (grub_machine_mmap_iterate): ... this. Update all users.
42923
42924 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42925 to make it more readable. Rename to ...
42926 (grub_machine_mmap_iterate): ... this.
42927
42928 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42929 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42930 (grub_multiboot): Allocate an extra region after the payload, and fill
42931 it with a Multiboot memory map. Adjust a.out loader to calculate size
42932 with the extra space.
42933 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42934 with the extra space.
42935
42936 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42937
42938 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42939
42940 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42941
42942 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42943 mdate-sh to the list `find' searches for.
42944 * DISTLIST: Regenerated.
42945
42946 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42947
42948 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42949 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42950 genmoddep.awk, gensymlist.sh.in.
42951 (DISTDIRS): Add bus, docs, hook, lib.
42952 * DISTLIST: Regenerated.
42953 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42954
42955 2008-08-16 Robert Millan <rmh@aybabtu.com>
42956
42957 * disk/raid.c (grub_raid_init): Handle/report errors set by
42958 grub_device_iterate().
42959 * disk/lvm.c (grub_lvm_init): Likewise.
42960
42961 2008-08-15 Bean <bean123ch@gmail.com>
42962
42963 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42964 and datehook.mod.
42965 (datetime_mod_SOURCES): New macro.
42966 (datetime_mod_CFLAGS): Likewise.
42967 (datetime_mod_LDFLAGS): Likewise.
42968 (date_mod_SOURCES): Likewise.
42969 (date_mod_CFLAGS): Likewise.
42970 (date_mod_LDFLAGS): Likewise.
42971 (datehook_mod_SOURCES): Likewise.
42972 (datehook_mod_CFLAGS): Likewise.
42973 (datehook_mod_LDFLAGS): Likewise.
42974
42975 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42976 and datehook.mod.
42977 (datetime_mod_SOURCES): New macro.
42978 (datetime_mod_CFLAGS): Likewise.
42979 (datetime_mod_LDFLAGS): Likewise.
42980 (date_mod_SOURCES): Likewise.
42981 (date_mod_CFLAGS): Likewise.
42982 (date_mod_LDFLAGS): Likewise.
42983 (datehook_mod_SOURCES): Likewise.
42984 (datehook_mod_CFLAGS): Likewise.
42985 (datehook_mod_LDFLAGS): Likewise.
42986
42987 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42988 and datehook.mod.
42989 (datetime_mod_SOURCES): New macro.
42990 (datetime_mod_CFLAGS): Likewise.
42991 (datetime_mod_LDFLAGS): Likewise.
42992 (date_mod_SOURCES): Likewise.
42993 (date_mod_CFLAGS): Likewise.
42994 (date_mod_LDFLAGS): Likewise.
42995 (datehook_mod_SOURCES): Likewise.
42996 (datehook_mod_CFLAGS): Likewise.
42997 (datehook_mod_LDFLAGS): Likewise.
42998
42999 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43000 and datehook.mod.
43001 (datetime_mod_SOURCES): New macro.
43002 (datetime_mod_CFLAGS): Likewise.
43003 (datetime_mod_LDFLAGS): Likewise.
43004 (date_mod_SOURCES): Likewise.
43005 (date_mod_CFLAGS): Likewise.
43006 (date_mod_LDFLAGS): Likewise.
43007 (datehook_mod_SOURCES): Likewise.
43008 (datehook_mod_CFLAGS): Likewise.
43009 (datehook_mod_LDFLAGS): Likewise.
43010
43011 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43012 and datehook.mod.
43013 (datetime_mod_SOURCES): New macro.
43014 (datetime_mod_CFLAGS): Likewise.
43015 (datetime_mod_LDFLAGS): Likewise.
43016 (date_mod_SOURCES): Likewise.
43017 (date_mod_CFLAGS): Likewise.
43018 (date_mod_LDFLAGS): Likewise.
43019 (datehook_mod_SOURCES): Likewise.
43020 (datehook_mod_CFLAGS): Likewise.
43021 (datehook_mod_LDFLAGS): Likewise.
43022
43023 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43024
43025 * commands/date.c: New file.
43026
43027 * hook/datehook.c: Likewise.
43028
43029 * include/grub/lib/datetime.h: Likewise.
43030
43031 * include/grub/i386/cmos.h: Likewise.
43032
43033 * lib/datetime.c: Likewise.
43034
43035 * lib/i386/datetime.c: Likewise.
43036
43037 * lib/efi/datetime.c: Likewise.
43038
43039 2008-08-14 Robert Millan <rmh@aybabtu.com>
43040
43041 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43042 (grub_mkelfimage_SOURCES): New variable.
43043 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43044
43045 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43046 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43047 * conf/powerpc-ieee1275.rmk: Likewise.
43048 * conf/i386-ieee1275.rmk: Likewise.
43049
43050 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43051 * kern/i386/coreboot/init.c: Likewise.
43052
43053 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43054 with `<grub/cpu/kernel.h>'.
43055 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43056 to ...
43057 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43058 * kern/i386/coreboot/startup.S: Likewise.
43059
43060 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43061 (GRUB_MOD_GAP): Remove.
43062 * include/grub/powerpc/kernel.h: New file.
43063 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43064 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43065 * include/grub/i386/kernel.h: New file.
43066 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43067 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43068 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43069
43070 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43071 `grub-mkelfimage'.
43072 Use --directory when invoking grub_mkimage.
43073
43074 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43075 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43076 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43077 and GRUB_KERNEL_CPU_PREFIX.
43078
43079 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43080
43081 * include/grub/err.h (grub_err_printf): New function prototype.
43082 * util/misc.c (grub_err_printf): New function.
43083 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43084 grub_printf.
43085 * kern/err.c (grub_print_error): Use grub_err_printf.
43086
43087 2008-08-13 Robert Millan <rmh@aybabtu.com>
43088
43089 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43090
43091 2008-08-13 Robert Millan <rmh@aybabtu.com>
43092
43093 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43094 boot entry.
43095
43096 2008-08-12 Robert Millan <rmh@aybabtu.com>
43097
43098 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43099 of the relocation code from here ...
43100 (grub_multiboot): ... to here.
43101 (forward_relocator, backward_relocator): Move from here ...
43102 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43103 (grub_multiboot_backward_relocator): ... to here.
43104 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43105 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43106 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43107 (grub_multiboot_forward_relocator_end)
43108 (grub_multiboot_backward_relocator)
43109 (grub_multiboot_backward_relocator_end): New variables.
43110
43111 2008-08-12 Bean <bean123ch@gmail.com>
43112
43113 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43114
43115 2008-08-11 Robert Millan <rmh@aybabtu.com>
43116
43117 * kern/i386/linuxbios/startup.S: Move from here ...
43118 * kern/i386/coreboot/startup.S: ... to here.
43119
43120 * kern/i386/linuxbios/init.c: Move from here ...
43121 * kern/i386/coreboot/init.c: ... to here.
43122
43123 * kern/i386/linuxbios/table.c: Move from here ...
43124 * kern/i386/coreboot/mmap.c: ... to here.
43125
43126 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43127
43128 2008-08-11 Robert Millan <rmh@aybabtu.com>
43129
43130 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43131 errors. Leave it to the upper layer to handle them.
43132
43133 2008-08-09 Christian Franke <franke@computer.org>
43134
43135 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43136 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43137 Install `grub.d/10_windows' only on Cygwin.
43138 * configure.ac: Add subst of `target_os'.
43139 Check `target_os' also before setting TARGET_OBJ2ELF.
43140 Add `--enable-grub-pe2elf'.
43141
43142 2008-08-08 Robert Millan <rmh@aybabtu.com>
43143
43144 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43145 (grub_last_time): Change type to grub_uint64_t.
43146 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43147 (grub_disk_close): Likewise.
43148
43149 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43150 (run_menu): Migrate code from to using grub_get_time_ms().
43151
43152 * util/misc.c (grub_get_time_ms): New function.
43153
43154 2008-08-08 Marco Gerards <marco@gnu.org>
43155
43156 * disk/ata.c (grub_ata_regget): Change return type to
43157 `grub_uint8_t'.
43158 (grub_ata_regget2): Likewise.
43159 (grub_ata_wait_status): New function.
43160 (grub_ata_wait_busy): Removed function, updated all users to use
43161 `grub_ata_wait_status'.
43162 (grub_ata_wait_drq): Likewise.
43163 (grub_ata_cmd): New function.
43164 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43165 error handling.
43166 (grub_ata_pio_write): Add error handling.
43167 (grub_atapi_identify): Likewise.
43168 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43169 handling.
43170 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43171 handling. Actually use the detected registers. Reorder the
43172 detection logic such that it is easier to read.
43173 (grub_ata_pciinit): Do not assign the same ID to each controller.
43174 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43175 handling.
43176 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43177
43178 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43179
43180 2008-08-08 Marco Gerards <marco@gnu.org>
43181
43182 * NEWS: Update.
43183
43184 2008-08-07 Bean <bean123ch@gmail.com>
43185
43186 * include/grub/x86_64/pci.h: New file.
43187
43188 2008-08-07 Christian Franke <franke@computer.org>
43189
43190 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43191 (TIMER2_GATE): Likewise.
43192 (grub_pit_wait): Add enable/disable of the timer2 gate
43193 bit of port 0x61. This fixes a possible infinite loop.
43194
43195 2008-08-07 Bean <bean123ch@gmail.com>
43196
43197 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43198 kern/i386/tsc.c and kern/i386/pit.c.
43199
43200 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43201 x86_64 platform.
43202
43203 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43204 <grub/i386/tsc.h>.
43205
43206 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43207
43208 2008-08-07 Bean <bean123ch@gmail.com>
43209
43210 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43211
43212 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43213
43214 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43215 multiple inclusion. Add #include <grub/types.h>.
43216
43217 2008-08-06 Christian Franke <franke@computer.org>
43218
43219 * conf/common.rmk: Build and install `10_windows'.
43220 * util/grub.d/10_windows.in: New script.
43221
43222 2008-08-06 Pavel Roskin <proski@gnu.org>
43223
43224 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43225
43226 2008-08-06 Robert Millan <rmh@aybabtu.com>
43227
43228 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43229 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43230
43231 2008-08-06 Bean <bean123ch@gmail.com>
43232
43233 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43234 (grub_pxefs_fs_int): Remove dummy definition.
43235 (grub_pxefs_open): Use data->block_size to store the current block
43236 size setting.
43237 (grub_pxefs_read): Use block size stored in data->block_size. As the
43238 value of grub_pxe_blksize can be changed after the file is opened.
43239
43240 2008-08-06 Bean <bean123ch@gmail.com>
43241
43242 * fs/i386/pc/pxe.c (curr_file): new variable.
43243 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43244 require the dummy internal file system anymore.
43245 (grub_pxefs_read): Removed.
43246 (grub_pxefs_close): Likewise.
43247 (grub_pxefs_fs_int): Likewise.
43248 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43249 connection when we switch file.
43250 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43251
43252 2008-08-06 Robert Millan <rmh@aybabtu.com>
43253
43254 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43255 `halt.mod'.
43256 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43257 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43258
43259 * kern/i386/halt.c: New file.
43260 * kern/i386/reboot.c: Likewise.
43261 * include/grub/i386/reboot.h: Likewise.
43262 * include/grub/i386/halt.h: Likewise.
43263
43264 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43265 Include `<grub/cpu/halt.h>'.
43266 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43267 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43268
43269 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43270 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43271 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43272 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43273 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43274 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43275 from here ...
43276 * include/grub/i386/at_keyboard.h: ... to here.
43277
43278 2008-08-05 Robert Millan <rmh@aybabtu.com>
43279
43280 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43281 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43282 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43283 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43284 `kern/generic/millisleep.c'.
43285
43286 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43287 instead of grub_get_rtc().
43288 (grub_tsc_init): Initialize `tsc_boot_time'.
43289
43290 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43291 (grub_machine_init): Use grub_tsc_init() rather than
43292 installing an RTC-based handler via grub_install_get_time_ms().
43293
43294 * kern/i386/pit.c: New file.
43295 * include/grub/i386/pit.h: Likewise.
43296
43297 2008-08-05 Bean <bean123ch@gmail.com>
43298
43299 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43300
43301 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43302 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43303 (pxe_mod_SOURCES): New macro.
43304 (pxe_mod_CFLAGS): Likewise.
43305 (pxe_mod_LDFLAGS): Likewise.
43306 (pxecmd_mod_SOURCES): Likewise.
43307 (pxecmd_mod_CFLAGS): Likewise.
43308 (pxecmd_mod_LDFLAGS): Likewise.
43309
43310 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43311 (grub_pxe_call): Likewise.
43312
43313 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43314
43315 * commands/i386/pc/pxecmd.c: New file.
43316
43317 * fs/i386/pc/pxe.c: Likewise.
43318
43319 * include/grub/i386/pc/pxe.h: Likewise.
43320
43321 2008-08-05 Bean <bean123ch@gmail.com>
43322
43323 * util/console.c (grub_console_cur_color): New variable.
43324 (grub_console_standard_color): Likewise.
43325 (grub_console_normal_color): Likewise.
43326 (grub_console_highlight_color): Likewise.
43327 (color_map): Likewise.
43328 (use_color): Likewise.
43329 (NUM_COLORS): New macro.
43330 (grub_ncurses_setcolorstate): Handle color properly.
43331 (grub_ncurses_setcolor): Don't change color here, just remember the
43332 settings, color will be set in grub_ncurses_setcolorstate.
43333 (grub_ncurses_getcolor): New function.
43334 (grub_ncurses_init): Initialize color pairs.
43335 (grub_ncurses_term): New member grub_ncurses_getcolor.
43336
43337 2008-08-05 Colin D Bennett <colin@gibibit.com>
43338
43339 High resolution timer support. Implemented for x86 CPUs using TSC.
43340 Extracted generic grub_millisleep() so it's linked in only as needed.
43341 This requires a Pentium compatible CPU; if the RDTSC instruction is
43342 not supported, then it falls back on the generic grub_get_time_ms()
43343 implementation that uses the machine's RTC.
43344
43345 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43346 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43347 `kern/generic/millisleep.c'.
43348
43349 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43350 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43351
43352 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43353 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43354
43355 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43356
43357 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43358 `kern/generic/millisleep.c'.
43359
43360 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43361
43362 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43363
43364 * kern/generic/rtc_get_time_ms.c: New file.
43365
43366 * kern/generic/millisleep.c: New file.
43367
43368 * kern/misc.c: Don't include
43369 <kern/time.h> anymore.
43370 (grub_millisleep_generic): Removed.
43371
43372 * commands/sleep.c (grub_interruptible_millisleep): Uses
43373 grub_get_time_ms() instead of grub_get_rtc().
43374
43375 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43376 function.
43377 (grub_cpu_is_cpuid_supported): New inline function.
43378 (grub_cpu_is_tsc_supported): New inline function.
43379 (grub_tsc_init): New function prototype.
43380 (grub_tsc_get_time_ms): New function prototype.
43381
43382 * kern/i386/tsc.c (grub_get_time_ms): New file.
43383
43384 * include/grub/time.h: Include <grub/types.h.
43385 (grub_millisleep_generic): Removed.
43386 (grub_get_time_ms): New prototype.
43387 (grub_install_get_time_ms): New prototype.
43388 (grub_rtc_get_time_ms): New prototype.
43389
43390 * kern/time.c (grub_get_time_ms): New function.
43391 (grub_install_get_time_ms): New function.
43392
43393 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43394 <grub/time.h> anymore.
43395 (grub_millisleep): Removed.
43396 (grub_machine_init): Call grub_tsc_init.
43397
43398 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43399 get_time_ms() implementation.
43400
43401 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43402 (ieee1275_get_time_ms): New function.
43403 (grub_machine_init): Install get_time_ms() implementation.
43404
43405 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43406 (grub_machine_init): Call grub_tsc_init().
43407 (grub_millisleep): Removed.
43408
43409 * kern/ieee1275/init.c (grub_millisleep): Removed.
43410 (grub_machine_init): Install ieee1275_get_time_ms()
43411 implementation.
43412 (ieee1275_get_time_ms): New function.
43413 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43414 real work.
43415
43416 2008-08-05 Marco Gerards <marco@gnu.org>
43417
43418 * disk/ata.c: Include <grub/pci.h>.
43419 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43420 (grub_ata_initialize): Rewritten.
43421 (grub_ata_device_initialize): New function.
43422
43423 2008-08-04 Pavel Roskin <proski@gnu.org>
43424
43425 * kern/main.c: Include grub/mm.h.
43426
43427 2008-08-04 Robert Millan <rmh@aybabtu.com>
43428
43429 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43430 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43431 corruption problem).
43432
43433 2008-08-04 Robert Millan <rmh@aybabtu.com>
43434
43435 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43436 warnings introduced in my last commit.
43437
43438 2008-08-03 Robert Millan <rmh@aybabtu.com>
43439
43440 Make PCI available on all i386 architectures.
43441
43442 * include/grub/i386/pc/pci.h: Move from here ...
43443 * include/grub/i386/pci.h: ... to here.
43444
43445 * include/grub/i386/pc/pci.h: Remove.
43446 * include/grub/i386/efi/pci.h: Remove.
43447 * include/grub/x86_64/efi/pci.h: Remove.
43448
43449 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43450 `<grub/cpu/pci.h>'.
43451
43452 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43453 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43454 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43455
43456 * conf/i386-ieee1275.rmk: Likewise.
43457
43458 2008-08-03 Robert Millan <rmh@aybabtu.com>
43459
43460 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43461 (grub_console_setcursor): Make it possible to set cursor off.
43462
43463 2008-08-03 Robert Millan <rmh@aybabtu.com>
43464
43465 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43466 of modules instead of assuming which platform provides what.
43467 * util/update-grub.in: Likewise.
43468
43469 2008-08-03 Robert Millan <rmh@aybabtu.com>
43470
43471 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43472 instead of `grub_install_dos_part' to determine whether a drive needs
43473 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43474 because it can be overridden when loading GRUB via Multiboot).
43475
43476 2008-08-02 Robert Millan <rmh@aybabtu.com>
43477
43478 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43479
43480 2008-08-02 Robert Millan <rmh@aybabtu.com>
43481
43482 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43483 of informational grub_dprintf() calls.
43484
43485 2008-08-02 Robert Millan <rmh@aybabtu.com>
43486
43487 * disk/memdisk.c (memdisk_size): Don't initialize.
43488 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43489
43490 * include/grub/i386/pc/kernel.h
43491 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43492 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43493 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43494 (grub_arch_memdisk_size): Remove.
43495
43496 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43497 field (was only used to transfer a constant). Add `type' field to
43498 support multiple module types.
43499 (grub_module_iterate): New function.
43500
43501 * kern/device.c (grub_device_open): Do not hide error messages
43502 when grub_disk_open() fails. Use grub_print_error() instead.
43503
43504 * kern/i386/pc/init.c (grub_arch_modules_addr)
43505 (grub_arch_memdisk_size): Remove functions.
43506 (grub_arch_modules_addr): Return the module address in high memory
43507 (now that it isn't copied anymore).
43508
43509 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43510 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43511 decompression routine (grub_total_module_size already includes that
43512 now). Don't copy modules back to low memory.
43513
43514 * kern/main.c: Include `<grub/mm.h>'.
43515 (grub_load_modules): Split out (and use) ...
43516 (grub_module_iterate): ... this function, which iterates through
43517 module objects and runs a hook.
43518 Comment out grub_mm_init_region() call, as it would cause non-ELF
43519 modules to be overwritten.
43520
43521 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43522 the memdisk image in its own region, make it part of the module list.
43523 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43524 (main): Parse --memdisk|-m option, and pass user-provided path as
43525 parameter to generate_image().
43526 (add_segments): Pass `memdisk_path' down to load_modules().
43527 (load_modules): Embed memdisk image in module section when requested.
43528 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43529 `header.type' instead of `header.offset'.
43530
43531 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43532 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43533 (memdisk_mod_LDFLAGS): New variables.
43534 * conf/i386-coreboot.rmk: Likewise.
43535 * conf/i386-ieee1275.rmk: Likewise.
43536
43537 2008-08-02 Robert Millan <rmh@aybabtu.com>
43538
43539 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43540 (backward_relocator): New variables. Used to allocate and relocate
43541 the payload, respectively.
43542 (grub_multiboot_load_elf32): Load into heap instead of requested
43543 address, install the appropriate relocator code in each bound of
43544 the payload, and set the entry point such that
43545 grub_multiboot_real_boot() will jump to one of them.
43546
43547 * kern/i386/loader.S (grub_multiboot_payload_size)
43548 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43549 (grub_multiboot_payload_entry_offset): New variables.
43550 (grub_multiboot_real_boot): Set cpu context to what the relocator
43551 expects, and jump to the relocator instead of the payload.
43552
43553 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43554 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43555 (grub_multiboot_payload_entry_offset): Export.
43556
43557 2008-08-01 Bean <bean123ch@gmail.com>
43558
43559 * normal/menu_entry.c (editor_getline): Don't return the original
43560 string as result, as it will be released by lexer once it has done
43561 using it.
43562
43563 2008-08-01 Robert Millan <rmh@aybabtu.com>
43564
43565 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43566 within menuentries, not before them.
43567 util/grub.d/10_hurd.in: Likewise.
43568
43569 2008-08-01 Bean <bean123ch@gmail.com>
43570
43571 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43572 (bufio_mod_SOURCES): New macro.
43573 (bufio_mod_CFLAGS): Likewise.
43574 (bufio_mod_LDFLAGS): Likewise.
43575
43576 * include/grub/bufio.h: New file.
43577
43578 * io/bufio.c: Likewise.
43579
43580 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43581 (grub_video_reader_png): Use grub_buffile_open to open file.
43582
43583 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43584 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43585
43586 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43587 (grub_video_reader_tga): Use grub_buffile_open to open file.
43588
43589 * font/manager.c: Include <grub/bufio.h>.
43590 (add_font): Use grub_buffile_open to open file.
43591
43592 2008-07-31 Robert Millan <rmh@aybabtu.com>
43593
43594 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43595 ELF segments, use a macro for arbitrarily accessing any of them instead
43596 of preparing a pointer that allows access to one at a time.
43597 (grub_multiboot_load_elf64): Likewise.
43598
43599 2008-07-31 Bean <bean123ch@gmail.com>
43600
43601 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43602 GRUB_KERNEL_MACHINE_DATA_END.
43603
43604 2008-07-30 Robert Millan <rmh@aybabtu.com>
43605
43606 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43607 Increase from 0x50 to 0x60.
43608 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43609 use UUIDs to identify the root drive for them. If that's not
43610 possible, abort.
43611 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43612 check, for cross-disk installs.
43613
43614 2008-07-30 Robert Millan <rmh@aybabtu.com>
43615
43616 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43617 is non-empty, use it to set the `prefix' environment variable instead
43618 of the usual approach.
43619 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43620 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43621 environment variable instead of dummy make_install_device().
43622
43623 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43624 (start): Insert a data section, with `grub_prefix' variable.
43625 * kern/i386/linuxbios/startup.S: Likewise.
43626
43627 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43628 New variable reference.
43629 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43630 New macro. Defines offset of `grub_prefix' within startup.S (relative
43631 to `start').
43632 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43633 section within startup.S (relative to `start').
43634 * include/grub/i386/coreboot/kernel.h: Likewise.
43635
43636 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43637 Overwrite grub_prefix with its contents, at the beginning of the
43638 first segment.
43639 (main): Understand -p|--prefix.
43640
43641 2008-07-30 Robert Millan <rmh@aybabtu.com>
43642
43643 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43644
43645 2008-07-30 Robert Millan <rmh@aybabtu.com>
43646
43647 * term/i386/pc/vga_text.c (grub_console_cls): Use
43648 grub_console_gotoxy() to go back to beginning of the screen.
43649 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43650
43651 2008-07-29 Christian Franke <franke@computer.org>
43652
43653 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43654 Add conversion of emulated mount points on Cygwin.
43655
43656 2008-07-29 Christian Franke <franke@computer.org>
43657
43658 * util/update-grub.in: Add a check for admin
43659 group on Cygwin.
43660 Remove old `grub.cfg.new' before creation.
43661 Add `-f' to `mv' to handle the different filesystem
43662 semantics of Windows.
43663
43664 2008-07-29 Bean <bean123ch@gmail.com>
43665
43666 * normal/main.c (get_line): Fix buffer overflow bug.
43667
43668 2008-07-28 Robert Millan <rmh@aybabtu.com>
43669
43670 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43671 (struct grub_apple_header): New struct. Describes the layout of
43672 the partmap header.
43673 (apple_partition_map_iterate): Check the header magic as well as the
43674 partition magic (which was already being checked).
43675
43676 2008-07-28 Pavel Roskin <proski@gnu.org>
43677
43678 * genmk.rb: Add a warning to the beginning of the output that
43679 it's a generated file and should not be edited.
43680
43681 2008-07-28 Robert Millan <rmh@aybabtu.com>
43682
43683 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43684 with the same number are found, just use issue a warning with
43685 grub_dprintf(), as this error has been reported to be non-fatal.
43686
43687 2008-07-27 Robert Millan <rmh@aybabtu.com>
43688
43689 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43690 information.
43691
43692 2008-07-27 Bean <bean123ch@gmail.com>
43693
43694 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43695 (grub_fat_find_dir): Ignore case when comparing filename.
43696
43697 2008-07-27 Bean <bean123ch@gmail.com>
43698
43699 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43700 smallino, as it's more descriptive, and i8count can be confused with
43701 the other field count.
43702 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43703 inode type.
43704
43705 2008-07-27 Bean <bean123ch@gmail.com>
43706
43707 * commands/crc.c: New file.
43708
43709 * lib/crc.c: Likewise.
43710
43711 * include/grub/lib/crc.h: Likewise.
43712
43713 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43714
43715 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43716 (hexdump): Move this function to ...
43717
43718 * lib/hexdump.c: ... here.
43719
43720 * include/grub/hexdump.h: Renamed to ...
43721
43722 * include/grub/lib/hexdump.h: ... this.
43723
43724 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43725
43726 * util/grub-editenv.c: Likewise.
43727
43728 * include/envblk.h: Renamed to ...
43729
43730 * include/lib/envblk.h: ... this.
43731
43732 * util/envblk.c: Renamed to ...
43733
43734 * lib/envblk.c: ... this.
43735
43736 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43737 lib/hexdump.c.
43738 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43739 (pkglib_MODULES): Add crc.mod.
43740 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43741 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43742 (crc_mod_SOURCES): New macro.
43743 (crc_mod_CFLAGS): Likewise.
43744 (crc_mod_LDFLAGS): Likewise.
43745
43746 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43747
43748 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43749
43750 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43751
43752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43753
43754 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43755
43756 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43757
43758 * commands/help.c: Include <grub/term.h>.
43759 (TERM_WIDTH): Removed. Updated all users.
43760
43761 2008-07-27 Pavel Roskin <proski@gnu.org>
43762
43763 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43764 spurious warnings about a comment within a comment.
43765
43766 2008-07-25 Robert Millan <rmh@aybabtu.com>
43767
43768 * util/getroot.c (find_root_device): Skip devices that match
43769 /dev/dm-[0-9]. This lets the real device be found for any type of
43770 abstraction (LVM, EVMS, RAID..).
43771 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43772 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43773 device is found first, find_root_device() will now skip it.
43774
43775 2008-07-24 Pavel Roskin <proski@gnu.org>
43776
43777 * include/grub/types.h: Use __builtin_bswap32() and
43778 __builtin_bswap64() with gcc 4.3 and newer.
43779
43780 2008-07-24 Christian Franke <franke@computer.org>
43781
43782 * util/i386/pc/grub-install.in: If `--debug' is specified,
43783 pass `--verbose' to grub-setup.
43784 Abort script if make_system_path_relative_to_its_root() fails.
43785
43786 2008-07-24 Bean <bean123ch@gmail.com>
43787
43788 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43789 variable `target_platform' should be `platform'.
43790
43791 2008-07-24 Bean <bean123ch@gmail.com>
43792
43793 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43794 (grub_png_init_fixed_block): New function.
43795 (grub_png_decode_image_data): Handle fixed huffman code compression.
43796
43797 2008-07-24 Bean <bean123ch@gmail.com>
43798
43799 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43800 (grub_pe2elf_SOURCES): New macro.
43801 (CLEANFILES): Add grub-pe2elf.
43802
43803 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43804 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43805 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43806 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43807 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43808 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43809 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43810 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43811 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43812 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43813 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43814 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43815 (GRUB_PE32_DT_FUNCTION): Likewise.
43816 (GRUB_PE32_REL_I386_DIR32): Likewise.
43817 (GRUB_PE32_REL_I386_REL32): Likewise.
43818 (grub_pe32_symbol): New structure.
43819 (grub_pe32_reloc): Likewise.
43820
43821 * util/grub-pe2elf.c: New file.
43822
43823 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43824 start symbol in non pc platform.
43825
43826 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43827
43828 The following patches are from Christian Franke.
43829
43830 * include/grub/dl.h: Remove .previous, gas supports this only
43831 for ELF format.
43832
43833 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43834 Remove .type, gas supports this only for ELF format.
43835
43836 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43837 nullbytes in symbol table. This fixes an infinite loop if table is
43838 zero filled.
43839
43840 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43841 TARGET_IMG_LDFLAGS and EXEEXT.
43842
43843 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43844 TARGET_IMG_LDFLAGS_AC.
43845 (grub_CHECK_STACK_ARG_PROBE): New function.
43846
43847 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43848
43849 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43850
43851 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43852 to set TARGET_IMG_LD* accordingly.
43853 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43854 Add call to grub_CHECK_STACK_ARG_PROBE.
43855 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43856
43857 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43858
43859 * genmk.rb: Add EXEEXT to CLEANFILES.
43860
43861 2008-07-23 Robert Millan <rmh@aybabtu.com>
43862
43863 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43864 define the codes for arrows and lines used for the menu).
43865 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43866 as well.
43867
43868 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43869 fonts, because the latter are too slow.
43870
43871 2008-07-21 Bean <bean123ch@gmail.com>
43872
43873 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43874 a20. Run keyboard test last, as it will cause macbook to halt.
43875
43876 2008-07-18 Pavel Roskin <proski@gnu.org>
43877
43878 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43879 load foreign architecture modules correctly anyway. Keep
43880 support for loading host architecture modules, whether we
43881 compile them or not.
43882
43883 2008-07-17 Pavel Roskin <proski@gnu.org>
43884
43885 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43886 change target_cpu. The compiler default can mismatch target_cpu
43887 in any case.
43888
43889 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43890 * kern/efi/efi.c: Likewise.
43891
43892 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43893 target compiler is functional.
43894 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43895 are set up.
43896
43897 * configure.ac: Default to efi platform for x86_64-apple. Allow
43898 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43899 adjustments from the rest, only do them if target is not
43900 explicitly given. Merge other adjustments with the final sanity
43901 check. Remove an extraneous check for supported CPU. Be
43902 specific which CPU and which platform is not supported.
43903
43904 * configure.ac: Default to pc platform for x86_64.
43905
43906 2008-07-17 Robert Millan <rmh@aybabtu.com>
43907
43908 Partial LinuxBIOS -> Coreboot rename.
43909
43910 * conf/i386-linuxbios.rmk: Renamed to ...
43911 * conf/i386-coreboot.rmk: ... this.
43912 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43913 * configure.ac: Accept "coreboot" as input platform (but maintain
43914 compatibility with "linuxbios").
43915 * include/grub/i386/linuxbios: Renamed to ...
43916 * include/grub/i386/coreboot: ... this.
43917
43918 2008-07-17 Bean <bean123ch@gmail.com>
43919
43920 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43921 (appleldr_mod_SOURCE): New variable.
43922 (appleldr_mod_CFLAGS): Likewise.
43923 (appleldr_mod_LDFLAGS): Likewise.
43924 (pci_mod_SOURCES): Likewise.
43925 (pci_mod_CFLAGS): Likewise.
43926 (pci_mod_LDFLAGS): Likewise.
43927 (lspci_mod_SOURCES): Likewise.
43928 (lspci_mod_CFLAGS): Likewise.
43929 (lspci_mod_LDFLAGS): Likewise.
43930
43931 * conf/x86_64-efi.rmk: New file.
43932
43933 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43934 macro.
43935 (grub_efidisk_write): Likewise.
43936
43937 * include/efi/api.h (efi_call_0): New macro.
43938 (efi_call_1): Likewise.
43939 (efi_call_2): Likewise.
43940 (efi_call_3): Likewise.
43941 (efi_call_4): Likewise.
43942 (efi_call_5): Likewise.
43943 (efi_call_6): Likewise.
43944
43945 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43946 grub_rescue_cmd_chainloader.
43947
43948 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43949 (grub_pe32_optional_header): Change some fields based on i386 or
43950 x86_64 platform.
43951 (GRUB_PE32_PE32_MAGIC): Likewise.
43952
43953 * include/grub/efi/uga_draw.h: New file.
43954
43955 * include/grub/elf.h (STN_ABS): New constant.
43956 (R_X86_64_NONE): Relocation constant for x86_64.
43957 (R_X86_64_64): Likewise.
43958 (R_X86_64_PC32): Likewise.
43959 (R_X86_64_GOT32): Likewise.
43960 (R_X86_64_PLT32): Likewise.
43961 (R_X86_64_COPY): Likewise.
43962 (R_X86_64_GLOB_DAT): Likewise.
43963 (R_X86_64_JUMP_SLOT): Likewise.
43964 (R_X86_64_RELATIVE): Likewise.
43965 (R_X86_64_GOTPCREL): Likewise.
43966 (R_X86_64_32): Likewise.
43967 (R_X86_64_32S): Likewise.
43968 (R_X86_64_16): Likewise.
43969 (R_X86_64_PC16): Likewise.
43970 (R_X86_64_8): Likewise.
43971 (R_X86_64_PC8): Likewise.
43972
43973 * include/grub/i386/efi/pci.h: New file.
43974
43975 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43976 Change it value based on platform.
43977 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43978 (GRUB_E820_RAM): Likewise.
43979 (GRUB_E820_RESERVED): Likewise.
43980 (GRUB_E820_ACPI): Likewise.
43981 (GRUB_E820_NVS): Likewise.
43982 (GRUB_E820_EXEC_CODE): Likewise.
43983 (GRUB_E820_MAX_ENTRY): Likewise.
43984 (grub_e820_mmap): New structure.
43985 (linux_kernel_header): Change the efi field according to different
43986 kernel version, also field from linux_kernel_header.
43987
43988 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43989
43990 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43991 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43992 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43993 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43994 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43995 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43996 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43997 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43998 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43999 (GRUB_PCI_ADDR_IO_MASK): Likewise.
44000
44001 * include/grub/x86_64/efi/kernel.h: New file.
44002
44003 * include/grub/x86_64/efi/loader.h: Likewise.
44004
44005 * include/grub/x86_64/efi/machine.h: Likewise.
44006
44007 * include/grub/x86_64/efi/pci.h: Likewise.
44008
44009 * include/grub/x86_64/efi/time.h: Likewise.
44010
44011 * include/grub/x86_64/linux.h: Likewise.
44012
44013 * include/grub/x86_64/setjmp.h: Likewise.
44014
44015 * include/grub/x86_64/time.h: Likewise.
44016
44017 * include/grub/x86_64/types.h: Likewise.
44018
44019 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44020 GRUB_TARGET_SIZEOF_VOID_P.
44021
44022 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44023 (grub_efi_locate_handle): Likewise.
44024 (grub_efi_open_protocol): Likewise.
44025 (grub_efi_set_text_mode): Likewise.
44026 (grub_efi_stall): Likewise.
44027 (grub_exit): Likewise.
44028 (grub_reboot): Likewise.
44029 (grub_halt): Likewise.
44030 (grub_efi_exit_boot_services): Likewise.
44031 (grub_get_rtc): Likewise.
44032
44033 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44034 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44035 (grub_efi_allocate_pages): Wrap efi calls.
44036 (grub_efi_free_pages): Wrap efi calls.
44037 (grub_efi_get_memory_map): Wrap efi calls.
44038
44039 * kern/x86_64/dl.c: New file.
44040
44041 * kern/x86_64/efi/callwrap.S: Likewise.
44042
44043 * kern/x86_64/efi/startup.S: Likewise.
44044
44045 * loader/efi/appleloader.c: Likewise.
44046
44047 * loader/efi/chainloader.c (cmdline): New variable.
44048 (grub_chainloader_unload): Wrap efi calls.
44049 (grub_chainloader_boot): Likewise.
44050 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44051 command line.
44052
44053 * loader/efi/chainloader_normal.c (chainloader_command):
44054 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44055 command line.
44056
44057 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44058 method.
44059 (grub_e820_add_region): New function.
44060 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44061 booting.
44062 (grub_find_video_card): New function.
44063 (grub_linux_setup_video): New function.
44064 (grub_rescue_cmd_linux): Probe for video information.
44065
44066 * normal/x86_64/setjmp.S: New file.
44067
44068 * term/efi/console.c (map_char): New function.
44069 (grub_console_putchar): Map unicode char.
44070 (grub_console_checkkey): Wrap efi calls.
44071 (grub_console_getkey): Likewise.
44072 (grub_console_getwh): Likewise.
44073 (grub_console_gotoxy): Likewise.
44074 (grub_console_cls): Likewise.
44075 (grub_console_setcolorstate): Likewise.
44076 (grub_console_setcursor): Likewise.
44077
44078 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44079
44080 2008-07-16 Pavel Roskin <proski@gnu.org>
44081
44082 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44083 format strings.
44084
44085 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44086 pointer, not an integer. This fixes a warning and prevents
44087 precision loss on 64-bit systems.
44088 (relocate_addresses): Remove unneeded cast.
44089
44090 2008-07-15 Pavel Roskin <proski@gnu.org>
44091
44092 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44093
44094 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44095
44096 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44097 Fix comparison between signed and unsigned.
44098
44099 * include/grub/i386/ieee1275/console.h: Declare
44100 grub_console_init() and grub_console_fini().
44101
44102 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44103 It's empty and unused.
44104
44105 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44106 beginning to avoid warnings with some compilers.
44107
44108 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44109 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44110
44111 2008-07-14 Pavel Roskin <proski@gnu.org>
44112
44113 * kern/env.c (grub_register_variable_hook): Don't copy empty
44114 string, it leaks memory. Pass "" to grub_env_set(), it should
44115 handle constant strings.
44116
44117 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44118 * commands/cmp.c (grub_cmd_cmp): Likewise.
44119 * kern/dl.c (grub_dl_flush_cache): Likewise.
44120 (grub_dl_load_core): Likewise.
44121 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44122 (grub_elf64_load_phdrs): Likewise.
44123
44124 2008-07-13 Pavel Roskin <proski@gnu.org>
44125
44126 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44127 between signed and unsigned.
44128 (LzmaEnc_Finish): Fix warning about an unused parameter.
44129
44130 2008-07-13 Bean <bean123ch@gmail.com>
44131
44132 * Makefile.in (enable_lzo): New rule.
44133
44134 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44135
44136 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44137
44138 * boot/i386/pc/lnxboot.S: #include <config.h>.
44139
44140 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44141 its value according to the compression algorithm used, lzo or lzma.
44142
44143 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44144 compression algorithm according to configure macro.
44145
44146 * kern/i386/pc/startup.S (codestart): Likewise.
44147
44148 * kern/i386/pc/lzma_decode.S: New file.
44149
44150 * include/grub/lib/LzFind.h: Likewise.
44151
44152 * include/grub/lib/LzHash.h: Likewise.
44153
44154 * include/grub/lib/LzmaDec.h: Likewise.
44155
44156 * include/grub/lib/LzmaEnc.h: Likewise.
44157
44158 * include/grub/lib/LzmaTypes.h: Likewise.
44159
44160 * lib/LzFind.c: Likewise.
44161
44162 * lib/LzmaDec.c: Likewise.
44163
44164 * lib/LzmaEnc.c: Likewise.
44165
44166 2008-07-13 Bean <bean123ch@gmail.com>
44167
44168 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44169 (grub_ext4_extent_header): New structure.
44170 (grub_ext4_extent): Likewise.
44171 (grub_ext4_extent_idx): Likewise.
44172 (grub_ext4_find_leaf): New function.
44173 (grub_ext2_read_block): Handle extents.
44174
44175 2008-07-12 Robert Millan <rmh@aybabtu.com>
44176
44177 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44178
44179 2008-07-11 Robert Millan <rmh@aybabtu.com>
44180
44181 * util/grub.d/40_custom.in: New file. Example on how to add custom
44182 entries to /etc/grub.d.
44183 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44184 40_custom (implicitly, by merging all the grub.d rules).
44185
44186 2008-07-11 Pavel Roskin <proski@gnu.org>
44187
44188 * commands/read.c (grub_getline): Fix invalid memory access.
44189 Don't add newline to the variable value.
44190
44191 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44192 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44193 (serial_hw_get_port): Check validity of the port number.
44194 (grub_cmd_serial): Check return value of serial_hw_get_port().
44195
44196 2008-07-07 Pavel Roskin <proski@gnu.org>
44197
44198 * boot/i386/pc/diskboot.S (notification_string): Replace
44199 "Loading kernel" with just "loading". This is shorter, less
44200 confusing and saves a few bytes for possible future changes.
44201
44202 2008-07-05 Pavel Roskin <proski@gnu.org>
44203
44204 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44205 size for ATAPI devices, they are undefined. Output sector
44206 number in decimal form.
44207
44208 * disk/ata.c: Use named constants for status bits.
44209
44210 2008-07-04 Pavel Roskin <proski@gnu.org>
44211
44212 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44213 grub_addr_t before casting it to the void pointer to fix a
44214 warning. Non-addressable regions are discarded earlier.
44215 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44216 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44217 (check_signature): Don't shadow table_header.
44218 (grub_linuxbios_table_iterate): Cast numeric constants to
44219 grub_linuxbios_table_header_t.
44220 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44221 grub_stop().
44222
44223 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44224 prevent warnings.
44225
44226 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44227 pointer, which can cause warnings. Support 64-bit addresses.
44228
44229 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44230 of sizeof(long). This fixes PowerPC image generation on x86_64.
44231
44232 2008-07-04 Robert Millan <rmh@aybabtu.com>
44233
44234 This fixes a performance issue when pc & gpt partmap iterators
44235 didn't abort iteration even after our hook found what it was
44236 looking for (often causing expensive probes of non-existent drives).
44237
44238 Some callers relied on previous buggy behaviour, since they would
44239 raise an error when their own hooks caused early abortion of its
44240 iteration.
44241
44242 * kern/device.c (grub_device_open): Improve error message.
44243 * disk/lvm.c (grub_lvm_open): Likewise.
44244 * disk/raid.c (grub_raid_open): Likewise.
44245
44246 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44247 when hook requests it, independently of grub_errno.
44248 (pc_partition_map_probe): Do not fail when find_func() caused
44249 early abortion of pc_partition_map_iterate().
44250
44251 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44252 when hook requests it, independently of grub_errno.
44253 (gpt_partition_map_probe): Do not fail when find_func() caused
44254 early abortion of gpt_partition_map_iterate().
44255
44256 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44257 when hook requests it, independently of grub_errno. Do not fail when
44258 part_map_iterate_hook() caused early abortion of p->iterate().
44259
44260 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44261 when grub_partition_iterate() returned with non-zero.
44262
44263 2008-07-03 Pavel Roskin <proski@gnu.org>
44264
44265 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44266 like we do in grub_ata_pio_read().
44267 (grub_ata_readwrite): Always write individual sectors. Fix the
44268 sector count for the remainder.
44269 (grub_ata_write): Enable writing to ATA devices. Correctly
44270 report error for ATAPI devices.
44271
44272 2008-07-02 Pavel Roskin <proski@gnu.org>
44273
44274 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44275 warning.
44276
44277 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44278 for every read sector, we already increment it for the whole
44279 batch. This fixes reading more than 256 sectors at once.
44280
44281 * util/grub-editenv.c (cmd_info): Cast argument to long
44282 explicitly. ptrdiff_t reduces to int on i386.
44283
44284 * util/grub-editenv.c (main): Be specific which parameter is
44285 missing.
44286
44287 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44288 (memdisk): Make memdisk_orig_addr a pointer.
44289
44290 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44291 for file offsets, use grub_off_t instead. Fix printf format
44292 warnings.
44293
44294 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44295 there. Real unexpected warnings should not drown in the noise
44296 about known problems.
44297
44298 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44299 grub_disk_addr_t for memory addresses.
44300
44301 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44302 explicitly to fix a warning.
44303
44304 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44305
44306 * Makefile.in (MODULE_LDFLAGS): New variable.
44307 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44308 the linker accepts --build-id=none.
44309 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44310 MODULE_LDFLAGS.
44311 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44312
44313 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44314 those in Linux XFS code. Provide a way to access 64-bit parent
44315 inode.
44316 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44317 the end of struct grub_xfs_dir_header.
44318
44319 2008-07-02 Bean <bean123ch@gmail.com>
44320
44321 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44322 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44323 and GRUB_IEEE1275_FLAG_NO_ANSI.
44324
44325 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44326 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44327 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44328
44329 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44330 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44331
44332 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44333 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44334
44335 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44336 esc sequence on non ANSI terminal.
44337 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44338
44339 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44340 beginning of file.
44341
44342 2008-07-02 Bean <bean123ch@gmail.com>
44343
44344 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44345 (grub_editenv_SOURCES): New variable.
44346 (pkglib_MODULES): Add loadenv.mod.
44347 (loadenv_mod_SOURCES): New variable.
44348 (loadenv_mod_CFLAGS): Likewise.
44349 (loadenv_mod_LDFLAGS): Likewise.
44350
44351 * include/grub/envblk.h: New file.
44352
44353 * util/envblk.c: New file.
44354
44355 * util/grub-editenv.c: New file.
44356
44357 * commands/loadenv.c: New file.
44358
44359 2008-07-01 Pavel Roskin <proski@gnu.org>
44360
44361 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44362 not unsigned char. This fixes warnings and is consistent with
44363 other tags.
44364
44365 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44366
44367 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44368
44369 * term/tparm.c (analyze): Always set *popcount.
44370
44371 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44372 cast to fix a warning.
44373
44374 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44375 cast to suppress a warning.
44376
44377 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44378 grub_fshelp_read_file() expects.
44379
44380 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44381 write uuid as a 32-bit value in CPU byte order, so declare and
44382 use it as such.
44383
44384 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44385 long if the format specifier expects it.
44386 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44387 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44388 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44389 long to fix a warning.
44390 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44391 grub_dprintf() arguments to fix warnings.
44392
44393 2008-06-30 Pavel Roskin <proski@gnu.org>
44394
44395 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44396 install_bsd_part immediately before core.img is embedded or
44397 modified on disk. This fixes core.img verification if core.img
44398 cannot be embedded.
44399
44400 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44401 core_path to calculate the blocklist.
44402 Patch from Javier Martín <lordhabbit@gmail.com>
44403
44404 2008-06-29 Robert Millan <rmh@aybabtu.com>
44405
44406 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44407 block to disk block.
44408 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44409 Patch from Niels Böhm <bitbucket@arcor.de>
44410
44411 2008-06-29 Robert Millan <rmh@aybabtu.com>
44412
44413 * util/update-grub_lib.in (font_path): Search for fonts in
44414 /boot/grub first, which is more likely to be readable (we aren't
44415 deciding where fonts live, just looking for them).
44416
44417 2008-06-26 Pavel Roskin <proski@gnu.org>
44418
44419 * util/biosdisk.c (read_device_map): Don't leave dead map
44420 entries for devices failing stat() check.
44421
44422 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44423 core_path_dev for the core.img path on the target device.
44424
44425 2008-06-26 Robert Millan <rmh@aybabtu.com>
44426
44427 * disk/fs_uuid.c: New file.
44428 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44429 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44430 (fs_uuid_mod_LDFLAGS): New variables.
44431 * include/grub/disk.h (grub_disk_dev_id): Add
44432 `GRUB_DISK_DEVICE_UUID_ID'.
44433 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44434 implement iterate().
44435
44436 2008-06-26 Robert Millan <rmh@aybabtu.com>
44437
44438 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44439 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44440 Linux image includes no initrd.
44441
44442 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44443
44444 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44445 call to resolve the core image location that effectively appended the
44446 name twice.
44447
44448 2008-06-21 Robert Millan <rmh@aybabtu.com>
44449
44450 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44451 call from here ...
44452
44453 * util/grub.d/10_hurd.in: ... to here ...
44454 * util/grub.d/10_linux.in: ... and here.
44455
44456 2008-06-19 Robert Millan <rmh@aybabtu.com>
44457
44458 * kern/main.c (grub_main): Export `prefix' variable immediately
44459 after it has been set by grub_machine_set_prefix().
44460
44461 2008-06-19 Robert Millan <rmh@aybabtu.com>
44462
44463 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44464 search result when not saving to variable, not the other way around.
44465 When saving to variable, abort iteration as soon as a match is found.
44466
44467 2008-06-19 Robert Millan <rmh@aybabtu.com>
44468
44469 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44470 check for partition that provides /boot/grub. Its logic is flawed,
44471 as it prevents prepare_grub_to_access_device() from being called
44472 multiple times.
44473
44474 2008-06-19 Robert Millan <rmh@aybabtu.com>
44475
44476 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44477 "insmod" command directly when abstraction modules are needed,
44478 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44479 since it had already been processed).
44480
44481 2008-06-19 Pavel Roskin <proski@gnu.org>
44482
44483 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44484 changed. This is needed in case GRUB_LIBDIR changes.
44485 * conf/i386-ieee1275.rmk: Likewise.
44486 * conf/i386-linuxbios.rmk: Likewise.
44487 * conf/i386-pc.rmk: Likewise.
44488 * conf/powerpc-ieee1275.rmk: Likewise.
44489
44490 2008-06-18 Pavel Roskin <proski@gnu.org>
44491
44492 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44493 kernel_elf_symlist.c to symlist.c for consistency with other
44494 architectures. Update all users.
44495 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44496
44497 2008-06-18 Robert Millan <rmh@aybabtu.com>
44498
44499 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44500 it in prefix.
44501
44502 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44503 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44504 a RAID device, run setup() for all members independently on whether
44505 LVM abstraction is being used.
44506 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44507 If grub-mkimage has set `*install_dos_part == -2', don't override this
44508 value.
44509 Perform *install_dos_part adjustments independently on whether
44510 we're embedding or not.
44511 Clarify error message when image is too big for embedding.
44512 Remove duplicate *install_dos_part stanza.
44513
44514 2008-06-17 Robert Millan <rmh@aybabtu.com>
44515
44516 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44517 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44518 variables.
44519 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44520 values in grub_ofconsole_normal_color and
44521 grub_ofconsole_highlight_color (they're not directly related to
44522 background and foreground).
44523 (grub_ofconsole_setcolorstate): Extract background and foreground
44524 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44525
44526 2008-06-17 Robert Millan <rmh@aybabtu.com>
44527
44528 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44529 /boot/grub for the check in last commit, not /boot (they could be
44530 different partitions).
44531
44532 2008-06-16 Robert Millan <rmh@aybabtu.com>
44533
44534 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44535 asked to setup access for the same partition that provides /boot,
44536 don't bother using UUIDs since our root already has the value we
44537 want.
44538
44539 2008-06-16 Robert Millan <rmh@aybabtu.com>
44540
44541 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44542 I2O devices.
44543 Patch from Sven Mueller <sven@debian.org>.
44544
44545 2008-06-16 Robert Millan <rmh@aybabtu.com>
44546
44547 * util/update-grub.in: Check for $EUID instead of $UID.
44548 Reported by Vincent Zweije.
44549
44550 2008-06-16 Bean <bean123ch@gmail.com>
44551
44552 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44553 (grub_ext2_read_block): Likewise.
44554 (grub_ext2_read_inode): Likewise.
44555 (grub_ext2_mount): Likewise.
44556 (grub_ext2_close): Likewise.
44557 (grub_ext3_get_journal): Removed.
44558
44559 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44560 (grub_reiserfs_read_symlink): Likewise.
44561 (grub_reiserfs_mount): Likewise.
44562 (grub_reiserfs_open): Likewise.
44563 (grub_reiserfs_read): Likewise.
44564 (grub_reiserfs_close): Likewise.
44565 (grub_reiserfs_get_journal): Removed.
44566
44567 * fs/fshelp.c (grub_fshelp_read): Removed.
44568 (grub_fshelp_map_block): Likewise.
44569
44570 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44571 (grub_fshelp_journal): Likewise.
44572 (grub_fshelp_read): Likewise.
44573 (grub_fshelp_map_block): Likewise.
44574
44575 2008-06-16 Pavel Roskin <proski@gnu.org>
44576
44577 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44578 floating point anymore.
44579 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44580
44581 2008-06-15 Pavel Roskin <proski@gnu.org>
44582
44583 * commands/ls.c (grub_ls_list_files): Use integer calculations
44584 for human readable format, avoid floating point use.
44585 * kern/misc.c (grub_ftoa): Remove.
44586 (grub_vsprintf): Remove floating point support.
44587
44588 2008-06-15 Robert Millan <rmh@aybabtu.com>
44589
44590 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44591 devices.
44592 Reported by Max Vozeler.
44593
44594 2008-06-15 Robert Millan <rmh@aybabtu.com>
44595
44596 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44597 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44598 skipped later.
44599 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44600 the beginning of the prefix.
44601
44602 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44603 It is assumed that if we have a memdisk, grub-mkimage has set
44604 grub_prefix to include the "(memdisk)" drive in it.
44605
44606 2008-06-15 Robert Millan <rmh@aybabtu.com>
44607
44608 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44609 Initialize keyboard controller after registering the terminal, so that
44610 grub_printf() can be called from grub_keyboard_controller_init().
44611
44612 2008-06-15 Robert Millan <rmh@aybabtu.com>
44613
44614 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44615 extent-btree which is written as big endian on disk.
44616 Reported by Alain Greppin <al@chilibi.org>.
44617
44618 2008-06-14 Robert Millan <rmh@aybabtu.com>
44619
44620 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44621 * util/i386/pc/grub-install.in (modules): Likewise.
44622
44623 2008-06-13 Pavel Roskin <proski@gnu.org>
44624
44625 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44626
44627 2008-06-13 Bean <bean123ch@gmail.com>
44628
44629 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44630
44631 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44632
44633 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44634 to indicate sparse block.
44635
44636 2008-06-12 Pavel Roskin <proski@gnu.org>
44637
44638 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44639 number, grub_fshelp_read() does it for us.
44640
44641 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44642 linear disk read with journal translation.
44643 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44644 * include/grub/fshelp.h: Declare grub_fshelp_read().
44645
44646 2008-06-09 Pavel Roskin <proski@gnu.org>
44647
44648 * fs/minix.c (grub_minix_mount): Handle error reading
44649 superblock.
44650
44651 2008-06-08 Robert Millan <rmh@aybabtu.com>
44652
44653 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44654 don't append the RAID prefix afterwards.
44655 Reported by Clint Adams.
44656
44657 2008-06-08 Robert Millan <rmh@aybabtu.com>
44658
44659 Based on description from Pavel:
44660 * kern/disk.c (grub_disk_check_range): Rename to ...
44661 (grub_disk_adjust_range): ... this. Add a comment explaining the
44662 tasks performed by this function.
44663
44664 2008-06-08 Robert Millan <rmh@aybabtu.com>
44665
44666 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44667 `num_serial' (for consistency with other variables).
44668 (struct grub_ntfs_data): Add `uuid' member.
44669 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44670 (grub_ntfs_uuid): New function.
44671 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44672
44673 2008-06-07 Pavel Roskin <proski@gnu.org>
44674
44675 * util/biosdisk.c (open_device): Revert last change to the
44676 function, it broke installation. The sector needs to be
44677 different dependent on which device is opened.
44678
44679 2008-06-06 Robert Millan <rmh@aybabtu.com>
44680
44681 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44682 rest of GRUB, and breakage doesn't happen if its value were modified.
44683
44684 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44685 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44686 a constant (same value).
44687 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44688 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44689
44690 2008-06-06 Robert Millan <rmh@aybabtu.com>
44691
44692 * util/biosdisk.c (open_device): Do not modify sector offset when
44693 accessing a partition. kern/disk.c already handles this for us.
44694
44695 2008-06-06 Robert Millan <rmh@aybabtu.com>
44696
44697 * util/grub-emu.c (grub_machine_init): Move code in this function from
44698 here ...
44699 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44700 segfault in case grub_printf() is called).
44701
44702 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44703 grub_probe. Update all users not to explicitly add it again.
44704 (grub_device): New variable; contains corresponding device for grubdir.
44705 (fs_module, partmap_module, devabstraction_module): Pass
44706 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44707 every time.
44708
44709 2008-06-05 Robert Millan <rmh@aybabtu.com>
44710
44711 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44712 is found, print it (same layout as with labels).
44713
44714 2008-06-04 Robert Millan <rmh@aybabtu.com>
44715
44716 * util/biosdisk.c (get_drive): Rename to ...
44717 (find_grub_drive): ... this. Update all users.
44718
44719 (get_os_disk): Rename to ...
44720 (convert_system_partition_to_system_disk): ... this. Update all users.
44721
44722 (find_drive): Rename to ...
44723 (find_system_device): ... this. Update all users.
44724
44725 2008-06-04 Robert Millan <rmh@aybabtu.com>
44726
44727 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44728 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44729 (make_device_map): Likewise.
44730
44731 2008-06-01 Robert Millan <rmh@aybabtu.com>
44732
44733 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44734 before dereferencing it.
44735
44736 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44737 union with fat12/fat16-specific ones. Add some new fields, including
44738 `num_serial' for both versions.
44739 (struct grub_fat_data): Add `uuid' member.
44740 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44741 names. Initialize `data->uuid' using `num_serial'.
44742 (grub_fat_uuid): New function.
44743 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44744
44745 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44746 (grub_reiserfs_uuid): New function.
44747 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44748 member.
44749
44750 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44751 (grub_xfs_uuid): New function.
44752 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44753
44754 2008-06-01 Robert Millan <rmh@aybabtu.com>
44755
44756 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44757 code that is backward compatible with pre-uuid search command.
44758
44759 2008-05-31 Robert Millan <rmh@aybabtu.com>
44760
44761 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44762 floppies after everything else, to ensure floppy drive isn't accessed
44763 unnecessarily (patch from Bean).
44764
44765 2008-05-31 Robert Millan <rmh@aybabtu.com>
44766
44767 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44768 not print device names when we were asked to set a variable.
44769
44770 2008-05-31 Robert Millan <rmh@aybabtu.com>
44771
44772 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44773 using "cursor-on" and "cursor-off" commands (understood at least by
44774 the Open Firmware flavour on OLPC).
44775
44776 2008-05-31 Michael Gorven <michael@gorven.za.net>
44777
44778 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44779 on and off sequences.
44780
44781 2008-05-31 Robert Millan <rmh@aybabtu.com>
44782
44783 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44784 * util/update-grub.in: Likewise.
44785
44786 2008-05-30 Pavel Roskin <proski@gnu.org>
44787
44788 * util/biosdisk.c (linux_find_partition): Simplify logic and
44789 make the code more universal. Keep special processing for
44790 devfs, but use a simple rule for all other devices. If the
44791 device ends with a number, append 'p' and the partition number.
44792 Otherwise, append only the partition number.
44793
44794 2008-05-30 Robert Millan <rmh@aybabtu.com>
44795
44796 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44797 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44798 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44799 the `root' parameter to Linux.
44800
44801 2008-05-30 Robert Millan <rmh@aybabtu.com>
44802
44803 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44804 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44805 --fs_uuid with --fs-uuid.
44806 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44807 all filesystems support them).
44808
44809 2008-05-30 Robert Millan <rmh@aybabtu.com>
44810
44811 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44812 grub_printf() flags, since we're printing in units of 2 bytes.
44813
44814 2008-05-30 Robert Millan <rmh@aybabtu.com>
44815
44816 * util/grub.d/00_header.in: Remove obsolete comment referencing
44817 convert_system_path_to_grub_path().
44818 * util/update-grub.in: Likewise.
44819 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44820 (convert_system_path_to_grub_path): Add a warning message explaining
44821 that this function is deprecated. Rely on is_path_readable_by_grub()
44822 for the readability checks.
44823 (font_path): Use is_path_readable_by_grub() for the readability
44824 check rather than convert_system_path_to_grub_path().
44825
44826 2008-05-30 Robert Millan <rmh@aybabtu.com>
44827
44828 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44829 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44830 converting it first.
44831 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44832 grub.cfg for access to font file, and afterwards call it again to set
44833 the root device.
44834
44835 2008-05-30 Robert Millan <rmh@aybabtu.com>
44836
44837 * commands/search.c (options): Add --fs_uuid option.
44838 (search_fs_uuid): New function.
44839 (grub_cmd_search): Fix --set argument passing.
44840 Use search_fs_uuid() when requested via --fs_uuid.
44841 (grub_search_init): Update help message.
44842 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44843 and redeclare it as an array of 16-bit words.
44844 (grub_ext2_uuid): New function.
44845 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44846 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44847 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44848 (GRUB_DEVICE_BOOT_UUID): New variables.
44849 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44850 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44851 whenever possible.
44852 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44853 just assume `root' variable has the right value.
44854 * util/grub.d/10_linux.in: Likewise.
44855 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44856 via PRINT_FS_UUID.
44857 (main): Recognise `-t fs_uuid' argument.
44858
44859 2008-05-30 Robert Millan <rmh@aybabtu.com>
44860
44861 * util/biosdisk.c (map): Redefine structure to hold information
44862 about GRUB drive name.
44863 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44864 drive names.
44865 (call_hook): Remove.
44866 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44867 member. Assume drive has partitions.
44868 (grub_util_biosdisk_open): Access device names via `.device' struct
44869 member.
44870 (open_device): Likewise.
44871 (find_drive): Likewise.
44872 (read_device_map): Adjust map[] usage to match the new struct
44873 definition. Don't check for duplicates (still possible, but not cheap
44874 anymore).
44875 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44876 (make_device_name): Remove assumption of BIOS-like drive names.
44877
44878 2008-05-30 Pavel Roskin <proski@gnu.org>
44879
44880 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44881 compiling execute.c doesn't need grub_script.tab.h anymore.
44882 (normal/command.c_DEPENDENCIES): Likewise.
44883 (normal/function.c_DEPENDENCIES): Likewise.
44884 * conf/i386-ieee1275.rmk: Likewise.
44885 * conf/i386-linuxbios.rmk: Likewise.
44886 * conf/i386-pc.rmk: Likewise.
44887 * conf/powerpc-ieee1275.rmk: Likewise.
44888 * conf/sparc64-ieee1275.rmk: Likewise.
44889
44890 2008-05-29 Pavel Roskin <proski@gnu.org>
44891
44892 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44893 when scanning metadata for volume group name.
44894
44895 * include/grub/script.h: Don't include grub_script.tab.h. It's
44896 a generated file, which may only be included from the files with
44897 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44898 use union YYSTYPE, as the later allows forward declaration.
44899 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44900
44901 2008-05-29 Robert Millan <rmh@aybabtu.com>
44902
44903 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44904 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44905 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44906 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44907 scan codes.
44908
44909 2008-05-29 Robert Millan <rmh@aybabtu.com>
44910
44911 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44912 control key combinations.
44913
44914 2008-05-29 Robert Millan <rmh@aybabtu.com>
44915
44916 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44917 * util/ieee1275/grub-install.in: ... to here.
44918 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44919 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44920 (grub_install_SOURCES): Likewise.
44921
44922 2008-05-29 Robert Millan <rmh@aybabtu.com>
44923
44924 * fs/affs.c: Update copyright year.
44925 * fs/ext2.c: Likewise.
44926 * fs/fshelp.c: Likewise.
44927 * fs/hfsplus.c: Likewise.
44928 * fs/ntfs.c: Likewise.
44929 * fs/xfs.c: Likewise.
44930 * include/grub/fshelp.h: Likewise.
44931 * util/grub-mkdevicemap.c: Likewise.
44932
44933 2008-05-28 Robert Millan <rmh@aybabtu.com>
44934
44935 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44936 might need to be fatfs to support some firmware implementations
44937 (e.g. OFW or EFI).
44938
44939 2008-05-28 Robert Millan <rmh@aybabtu.com>
44940
44941 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44942 devices.
44943 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44944 (make_device_map): Likewise.
44945
44946 2008-05-20 Bean <bean123ch@gmail.com>
44947
44948 * fs/fshelp.c (grub_fshelp_map_block): New function.
44949 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44950 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44951
44952 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44953 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44954 (grub_fshelp_journal): New structure.
44955 (grub_fshelp_map_block): New function prototype.
44956 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44957 (grub_fshelp_map_block): Likewise.
44958
44959 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44960 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44961 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44962 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44963 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44964 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44965 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44966 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44967 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44968 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44969 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44970 (grub_ext2_sblock): New members for journal support.
44971 (grub_ext3_journal_header): New structure.
44972 (grub_ext3_journal_revoke_header): Likewise.
44973 (grub_ext3_journal_block_tag): Likewise.
44974 (grub_ext3_journal_sblock): Likewise.
44975 (grub_fshelp_node): New members logfile and journal.
44976 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44977 grub_fshelp_map_block to get real block number.
44978 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44979 number.
44980 (grub_ext2_read_inode): Likewise.
44981 (grub_ext3_get_journal): New function.
44982 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44983 (grub_ext2_close): Release memory used by journal.
44984
44985 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44986 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44987 (grub_reiserfs_transaction_header): Renamed to
44988 grub_reiserfs_description_block, replace field data with real_blocks.
44989 (grub_reiserfs_commit_block): New structure.
44990 (grub_reiserfs_data): New member journal.
44991 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44992 number.
44993 (grub_reiserfs_read_symlink): Likewise.
44994 (grub_reiserfs_iterate_dir): Likewise.
44995 (grub_reiserfs_open): Likewise.
44996 (grub_reiserfs_read): Likewise.
44997 (grub_reiserfs_get_journal): New function.
44998 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44999 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45000 using grub_reiserfs_get_journal.
45001 (grub_reiserfs_close): Release memory used by journal.
45002
45003 * fs/affs.c (grub_affs_read_block): Change block type to
45004 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45005
45006 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45007
45008 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45009
45010 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45011
45012 * fs/udf.c (grub_udf_read_block): Change block type to
45013 grub_disk_addr_t. Use type cast to avoid warning.
45014
45015 * fs/xfs.c (grub_xfs_read_block): Likewise.
45016
45017 2008-05-16 Christian Franke <franke@computer.org>
45018
45019 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45020 to ensure that break with ESC will always work.
45021 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45022 Remove ESC from keyboard queue.
45023
45024 2008-05-16 Christian Franke <franke@computer.org>
45025
45026 * util/biosdisk.c: [__CYGWIN__] Add includes.
45027 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45028 (get_os_disk): Move variable declarations to OS specific
45029 parts to avoid warning.
45030 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45031 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45032 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45033 Cygwin.
45034 * util/getroot.c: [__CYGWIN__] Add includes.
45035 (strip_extra_slashes): Fix "/" case.
45036 [__CYGWIN__] (get_win32_path): New function.
45037 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45038 [__CYGWIN__] (find_root_device): Disable.
45039 [__CYGWIN__] (get_bootsec_serial): New function.
45040 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45041 [__linux__] (grub_guess_root_device): Add early returns to simplify
45042 structure.
45043 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45044 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45045 check for Linux only.
45046
45047 2008-05-15 Bean <bean123ch@gmail.com>
45048
45049 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45050 keyboard hang problem in apple's intel mac.
45051
45052 2008-05-09 Robert Millan <rmh@aybabtu.com>
45053
45054 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45055 devices.
45056 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45057 (make_device_map): Likewise.
45058 Reported by Aurelien Jarno <aurel32@debian.org>
45059
45060 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45061
45062 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45063 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45064 (make_device_map): Output entries for xvd type disks.
45065
45066 2008-05-07 Robert Millan <rmh@aybabtu.com>
45067
45068 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45069 devices.
45070 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45071 (make_device_map): Likewise.
45072 Reported by Roland Dreier <rdreier@cisco.com>
45073
45074 2008-05-07 Robert Millan <rmh@aybabtu.com>
45075
45076 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45077 grub_strstr() call. Correct a few mistakes in failure path handling.
45078
45079 2008-05-06 Robert Millan <rmh@aybabtu.com>
45080
45081 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45082 Do not print a trailing slash (therefore, the root directory is an
45083 empty string).
45084 (convert_system_path_to_grub_path): Do not remove trailing slash
45085 from make_system_path_relative_to_its_root() output.
45086
45087 * util/i386/pc/grub-install.in: Add trailing slash to output from
45088 make_system_path_relative_to_its_root().
45089
45090 2008-05-06 Robert Millan <rmh@aybabtu.com>
45091
45092 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45093 ensures that output lines aren't intermangled with those sent to
45094 stderr (via grub_util_info()).
45095 * util/grub-probe.c (grub_refresh): Likewise.
45096 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45097
45098 2008-05-05 Christian Franke <franke@computer.org>
45099
45100 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45101 Add Cygwin device names.
45102 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45103 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45104 (check_device): Return error instead of success on empty name.
45105 (make_device_map): Move label inside linux specific code to
45106 prevent compiler warning.
45107
45108 2008-04-30 Robert Millan <rmh@aybabtu.com>
45109
45110 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45111 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45112 first boot option.
45113 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45114
45115 2008-04-29 Robert Millan <rmh@aybabtu.com>
45116
45117 * docs/grub.cfg: New file (example GRUB configuration).
45118
45119 2008-04-26 Robert Millan <rmh@aybabtu.com>
45120
45121 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45122 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45123 and `disk/ieee1275/nand.c'.
45124
45125 2008-04-25 Bean <bean123ch@gmail.com>
45126
45127 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45128 i386-linuxbios.
45129
45130 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45131 change the buffer size to 4096 for cdrom device.
45132
45133 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45134 and nand.mod.
45135 (_linux_mod_SOURCES): New variable.
45136 (_linux_mod_CFLAGS): Likewise.
45137 (_linux_mod_LDFLAGS): Likewise.
45138 (linux_mod_SOURCES): Likewise.
45139 (linux_mod_CFLAGS): Likewise.
45140 (linux_mod_LDFLAGS): Likewise.
45141 (nand_mod_SOURCES): Likewise.
45142 (nand_mod_CFLAGS): Likewise.
45143 (nand_mod_LDFLAGS): Likewise.
45144
45145 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45146 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45147 type property. (nand device in olpc don't have this property)
45148
45149 * include/grub/disk.h (grub_disk_dev_id): New macro
45150 GRUB_DISK_DEVICE_NAND_ID.
45151
45152 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45153 function prototype.
45154 (grub_rescue_cmd_initrd): Likewise.
45155
45156 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45157 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45158 ofw_cif_handler and ofw_idt, adjust padding number.
45159
45160 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45161 GRUB_MACHINE_IEEE1275 is defined.
45162
45163 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45164 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45165
45166 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45167 on nested function heap_init.
45168 (grub_upper_mem): New variable for i386-ieee1275.
45169 (grub_get_extended_memory): New function for i386-ieee1275.
45170 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45171
45172 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45173 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45174 property.
45175
45176 * loader/i386/ieee1275/linux.c: New file.
45177
45178 * loader/i386/ieee1275/linux_normal.c: New file.
45179
45180 * disk/ieee1275/nand.c: New file.
45181
45182 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45183
45184 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45185 value.
45186 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45187
45188 2008-04-18 Robert Millan <rmh@aybabtu.com>
45189
45190 Restructures early code path on ieee1275 to unify grub_main() as
45191 the first C function that is executed in every platform.
45192
45193 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45194 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45195 cmain().
45196 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45197 * kern/ieee1275/cmain.c (cmain): Rename to ...
45198 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45199 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45200 at the beginning.
45201
45202 2008-04-18 Robert Millan <rmh@aybabtu.com>
45203
45204 * util/update-grub.in: Fix syntax error when setting
45205 `GRUB_PRELOAD_MODULES'.
45206 Reported by Stephane Chazelas <stephane@artesyncp.com>
45207
45208 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45209
45210 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45211 section into account, newer toolchains generate unique build ids
45212 * configure.ac: remove the test for --build-id=none acceptance,
45213 we want build ids to be preserved
45214 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45215 far from other sections don't cause the raw binary images grow
45216 size
45217
45218 2008-04-15 Robert Millan <rmh@aybabtu.com>
45219
45220 * disk/lvm.c: Update copyright year.
45221 * kern/misc.c: Likewise.
45222
45223 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45224
45225 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45226 there is no memory left for physical volume name.
45227
45228 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45229
45230 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45231 volume name mapping to support bigger than 9 character names properly.
45232
45233 2008-04-13 Robert Millan <rmh@aybabtu.com>
45234
45235 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45236 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45237
45238 2008-04-13 Christian Franke <franke@computer.org>
45239
45240 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45241 to create a floppy emulation boot CD when non emulation mode
45242 does not work.
45243 Enable Joliet CD filesystem extension.
45244
45245 2008-04-13 Robert Millan <rmh@aybabtu.com>
45246
45247 * kern/misc.c (grub_strncat): Fix off-by-one error.
45248 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45249
45250 * kern/env.c (grub_env_context_close): Clear current context, not
45251 previous one.
45252 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45253
45254 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45255
45256 2008-04-13 Robert Millan <rmh@aybabtu.com>
45257
45258 Improve robustness when handling LVM.
45259
45260 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45261 (and leave `*p' unmodified).
45262 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45263 through it.
45264 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45265 iterating through it.
45266 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45267 through it.
45268 (grub_lvm_scan_device): Check the return value (and fail gracefully
45269 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45270 Don't assume `vg->pvs != NULL' when iterating through it.
45271
45272 2008-04-13 Robert Millan <rmh@aybabtu.com>
45273
45274 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45275 * genmk.rb (partmap): New variable.
45276 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45277 (#{partmap}): New target rule.
45278 * genpartmaplist.sh: New file.
45279 * Makefile.in (pkglib_DATA): Add partmap.lst.
45280 (partmap.lst): New target rule.
45281 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45282 modules (including all partition maps), instead of preloading them.
45283
45284 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45285
45286 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45287 `linux-boot-prober' (if installed) to detect other operating
45288 systems which are installed on the computer and add them to
45289 the boot menu.
45290 * conf/common.rmk: Build and install 30_os-prober.
45291
45292 2008-04-12 Robert Millan <rmh@aybabtu.com>
45293
45294 * kern/powerpc/ieee1275/init.c: Move from here ...
45295 * kern/ieee1275/init.c: ... to here. Update all users.
45296
45297 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45298 * kern/ieee1275/cmain.c: ... to here. Update all users.
45299
45300 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45301 * kern/ieee1275/openfw.c: ... to here. Update all users.
45302
45303 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45304 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45305
45306 2008-04-10 Pavel Roskin <proski@gnu.org>
45307
45308 * configure.ac: Always use "_cv_" in cache variables for
45309 compatibility with Autoconf 2.62.
45310
45311 2008-04-07 Robert Millan <rmh@aybabtu.com>
45312
45313 Revert grub/machine/init.h addition by Pavel (since it breaks on
45314 i386-ieee1275 and others):
45315 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45316 * util/powerpc/ieee1275/misc.c: Likewise.
45317
45318 2008-04-07 Robert Millan <rmh@aybabtu.com>
45319
45320 * util/grub-probe.c (probe): Improve error message.
45321
45322 2008-04-07 Robert Millan <rmh@aybabtu.com>
45323
45324 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45325 (this prevents the presence of a bogus entry from ruining the whole
45326 thing).
45327
45328 2008-04-06 Pavel Roskin <proski@gnu.org>
45329
45330 * util/biosdisk.c: Include grub/util/biosdisk.h.
45331 * util/grub-fstest.c (execute_command): Make static.
45332 * util/grub-mkdevicemap.c (check_device): Likewise.
45333 * util/i386/pc/misc.c: Include grub/machine/init.h.
45334 * util/powerpc/ieee1275/misc.c: Likewise.
45335 * util/lvm.c: Include grub/util/lvm.h.
45336 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45337 grub/cache.h.
45338 * util/raid.c: Include grub/util/raid.h.
45339 (grub_util_getdiskname): Make static.
45340
45341 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45342 grub_hostfs_fini(), as they are called from grub_init_all() and
45343 grub_fini_all() respectively. This fixes an infinite loop in
45344 grub-fstest due to double registration of hostfs.
45345 Reported by Christian Franke <Christian.Franke@t-online.de>
45346
45347 2008-04-05 Pavel Roskin <proski@gnu.org>
45348
45349 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45350 all 8 functions. Otherwise, probe function 0 only.
45351
45352 2008-04-04 Pavel Roskin <proski@gnu.org>
45353
45354 * commands/lspci.c (grub_lspci_iter): Print the bus number
45355 correctly.
45356
45357 * commands/lspci.c (grub_pci_classes): Fix typos.
45358 (grub_lspci_iter): Don't print func twice. Print vendor ID
45359 before device ID, as it's normally done.
45360
45361 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45362 Fix signedness warnings.
45363 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45364 Likewise.
45365 * util/ieee1275/get_disk_name.c: Include config.h so that
45366 _GNU_SOURCE is defined and getline() is declared. Mark an
45367 unused argument as such. Fix a signedness warning.
45368
45369 2008-04-02 Pavel Roskin <proski@gnu.org>
45370
45371 * genkernsyms.sh.in: Use more robust assignments for CC and
45372 srcdir. Quote srcdir.
45373 * gensymlist.sh.in: Likewise. Assert at the compile time that
45374 the symbol table is not empty.
45375
45376 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45377 * fs/cpio.c (grub_cpio_read): Likewise.
45378
45379 2008-04-01 Pavel Roskin <proski@gnu.org>
45380
45381 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45382 * disk/host.c (grub_host_open): Likewise.
45383 * disk/loopback.c (grub_loopback_open): Likewise.
45384 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45385 disk->id as in disk/host.c, not a multi-character constant.
45386
45387 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45388 later is obsolete, potentially dangerous and sets a bad example.
45389 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45390 * util/misc.c (grub_util_get_image_size): Likewise.
45391
45392 * disk/loopback.c (options): Improve help for "--partitions".
45393
45394 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45395 options to align them with the short options, e.g. "echo -e".
45396
45397 2008-03-31 Bean <bean123ch@gmail.com>
45398
45399 * video/reader/png.c (grub_png_data): New member is_16bit and
45400 image_data.
45401 (grub_png_decode_image_header): Detect 16 bit png image.
45402 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45403 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45404 (grub_video_reader_png): Release memory occupied by image_data.
45405
45406 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45407 4096 bytes.
45408 (grub_nfs_mount): Skip the test for sector per cluster.
45409
45410 * include/grub/ntfs.h (MAX_SPC): Removed.
45411
45412 2008-03-31 Bean <bean123ch@gmail.com>
45413
45414 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45415 (grub_probe_SOURCES): Add fs/afs.c.
45416 (grub_fstest_SOURCES): Likewise.
45417 (afs_mod_SOURCES): New variable.
45418 (afs_mod_CFLAGS): Likewise.
45419 (afs_mod_LDFLAGS): Likewise.
45420
45421 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45422 (grub_emu_SOURCES): Likewise.
45423
45424 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45425
45426 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45427
45428 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45429
45430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45431
45432 * fs/afs.c: New file.
45433
45434 2008-03-30 Pavel Roskin <proski@gnu.org>
45435
45436 * disk/host.c: Include grub/misc.h to fix a warning.
45437 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45438 warnings about implicit declarations.
45439
45440 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45441 variable.
45442 * include/grub/i386/loader.h: Change declaration of
45443 grub_linux_boot() to match what grub_loader_set() expects.
45444 * util/getroot.c (grub_guess_root_device): Return const char* to
45445 fix a warning.
45446 * util/grub-probe.c (probe): Fix a warning about uninitialized
45447 abstraction_name variable.
45448 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45449 second argument as unused to fix a warning.
45450
45451 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45452 missing grub_error() call.
45453
45454 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45455 2.60 and newer uses it to define datadir.
45456
45457 * commands/sleep.c: Fix warning about implicit declaration.
45458 * disk/memdisk.c: Likewise.
45459 * loader/aout.c: Likewise.
45460 * loader/i386/bsd_normal.c: Likewise.
45461 * util/grub-probe.c: Likewise.
45462
45463 * commands/i386/cpuid.c (has_longmode): Make static.
45464 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45465 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45466
45467 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45468 GDT. This is more robust, as %ds can change.
45469 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45470 calling real_to_prot().
45471 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45472
45473 2008-03-28 Pavel Roskin <proski@gnu.org>
45474
45475 * kern/i386/pc/startup.S: Assert that uncompressed functions
45476 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45477 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45478 code, as they push parts of the code (error handlers) beyond
45479 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45480 code as correctness and size.
45481
45482 2008-03-28 Pavel Roskin <proski@gnu.org>
45483
45484 * kern/i386/pc/startup.S
45485 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45486 data block address to the real mode, keep offset minimal. This
45487 works around a bug in AWARD BIOS on old Athlon systems, which
45488 makes CD detection hang.
45489
45490 2008-03-26 Pavel Roskin <proski@gnu.org>
45491
45492 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45493 const.
45494 * include/grub/normal.h: Add grub_parse_color_name_pair()
45495 declaration.
45496
45497 2008-03-24 Bean <bean123ch@gmail.com>
45498
45499 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45500 (cd_count): Removed.
45501 (cd_drive): New variable.
45502 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45503 (grub_biosdisk_call_hook): Likewise.
45504 (grub_biosdisk_iterate): Change cdrom detection method.
45505 (grub_biosdisk_open): Replace cd_start with cd_drive.
45506 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45507 detect cdrom device.
45508
45509 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45510 Removed.
45511 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45512 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45513 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45514 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45515 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45516 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45517 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45518 (grub_biosdisk_cdrp): New structure.
45519 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45520
45521 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45522
45523 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45524 device.
45525
45526 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45527 New function.
45528
45529 2008-03-20 Robert Millan <rmh@aybabtu.com>
45530
45531 Remove 2 TiB limit in ata.mod.
45532 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45533 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45534 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45535 grub_uint64_t instead of grub_uint32_t.
45536
45537 2008-03-05 Bean <bean123ch@gmail.com>
45538
45539 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45540 (grub_multiboot): Set boot device.
45541
45542 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45543
45544 2008-03-02 Bean <bean123ch@gmail.com>
45545
45546 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45547 symlink_buffer.
45548
45549 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45550
45551 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45552 texinfo.tex.
45553
45554 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45555 modified.
45556
45557 * docs/fdl.texi: New file.
45558
45559 * docs/mdate-sh: New file. Copied from gnulib.
45560 * docs/texinfo.tex: Likewise.
45561
45562 * config.guess: Updated from gnulib.
45563 * install-sh: Likewise.
45564
45565 2008-02-28 Robert Millan <rmh@aybabtu.com>
45566
45567 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45568 (aout_mod_SOURCES): New variable.
45569 (aout_mod_CFLAGS): Likewise.
45570 (aout_mod_LDFLAGS): Likewise.
45571
45572 * conf/i386-ieee1275.rmk: Likewise.
45573
45574 2008-02-28 Robert Millan <rmh@aybabtu.com>
45575
45576 * util/update-grub.in: Reorganise terminal validity check. Accept
45577 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45578 Based on suggestion by Franklin PIAT.
45579
45580 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45581
45582 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45583 function.
45584 * util/getroot.c (grub_util_check_block_device): New function that
45585 returns the given argument if it is a block device and returns NULL else.
45586 * util/grub-probe.c (argument_is_device): New variable.
45587 (probe): Promote device_name from a variable to an argument. Receive
45588 device_name from grub_util_check_block_device() if path is NULL and from
45589 grub_guess_root_device() else. Do not free() device_name anymore.
45590 (options): Introduce new parameter '-d, --device'.
45591 (main): Add description of the new parameter to the help screen.
45592 Rename path variable to argument. Set argument_is_device if the '-d'
45593 option is given. Pass argument to probe() depending on
45594 argument_is_device.
45595
45596 2008-02-24 Bean <bean123ch@gmail.com>
45597
45598 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45599 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45600 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45601 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45602 (GRUB_ISO9660_VOLDESC_END): Likewise.
45603 (grub_iso9660_primary_voldesc): New member escape.
45604 (grub_iso9660_data): New member joliet.
45605 (grub_iso9660_convert_string): New function.
45606 (grub_iso9660_mount): Detect joliet extension.
45607 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45608 (grub_iso9660_iso9660_label): Likewise.
45609
45610 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45611 (grub_setup_SOURCES): Add fs/udf.c.
45612 (grub_fstest_SOURCES): Likewise.
45613 (udf_mod_SOURCES): New variable.
45614 (udf_mod_CFLAGS): Likewise.
45615 (udf_mod_LDFLAGS): Likewise.
45616
45617 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45618 (grub_emu_SOURCES): Likewise.
45619
45620 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45621
45622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45623
45624 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45625
45626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45627
45628 * fs/udf.c: New file.
45629
45630 2008-02-24 Robert Millan <rmh@aybabtu.com>
45631
45632 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45633 (normal/lexer.c_DEPENDENCIES): New variables.
45634 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45635 (normal/lexer.c_DEPENDENCIES): Likewise.
45636 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45637 (normal/lexer.c_DEPENDENCIES): Likewise.
45638 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45639 (normal/lexer.c_DEPENDENCIES): Likewise.
45640 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45641 (normal/lexer.c_DEPENDENCIES): Likewise.
45642 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45643 (normal/lexer.c_DEPENDENCIES): Likewise.
45644
45645 2008-02-23 Robert Millan <rmh@aybabtu.com>
45646
45647 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45648 since they were intended to be in hex. This didn't break previously
45649 because of a bug in gpt_partition_map_iterate() (see below).
45650
45651 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45652 when checking the validity of GPT header.
45653 Remove `partno', since it always provides the same information as `i'.
45654
45655 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45656
45657 * include/grub/efi/time.h: Fix a wrong comment.
45658
45659 2008-02-19 Pavel Roskin <proski@gnu.org>
45660
45661 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45662 message.
45663
45664 2008-02-19 Bean <bean123ch@gmail.com>
45665
45666 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45667 (aout_mod_SOURCES): New variable.
45668 (aout_mod_CFLAGS): Likewise.
45669 (aout_mod_LDFLAGS): Likewise.
45670 (_bsd_mod_SOURCES): New variable.
45671 (_bsd_mod_CFLAGS): Likewise.
45672 (_bsd_mod_LDFLAGS): Likewise.
45673 (bsd_mod_SOURCES): New variable.
45674 (bsd_mod_CFLAGS): Likewise.
45675 (bsd_mod_LDFLAGS): Likewise.
45676
45677 * include/grub/aout.h: New file.
45678
45679 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45680
45681 * include/grub/i386/bsd.h: New file.
45682
45683 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45684 to make it public.
45685
45686 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45687 function is called, so that it's possible to change it inside the hook.
45688 (grub_elf64_load): Likewise.
45689 (grub_elf_file): Don't close the file if elf header is not found.
45690 (grub_elf_close): Close the file if grub_elf_file fails (The new
45691 grub_elf_file won't close it).
45692 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45693 (grub_elf64_size): Likewise.
45694
45695 * kern/i386/loader.S (grub_unix_real_boot): New function.
45696
45697 * loader/aout.c: New file.
45698
45699 * loader/i386/bsd.c: New file.
45700
45701 * loader/i386/bsd_normal.c: New file.
45702
45703 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45704
45705 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45706 can test other formats.
45707
45708 2008-02-19 Robert Millan <rmh@aybabtu.com>
45709
45710 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45711 (grub_gpt_partition_type_empty): Redefine with macro from
45712 `<grub/gpt_partition.h>'.
45713 (gpt_partition_map_iterate): Adjust partition type comparison.
45714
45715 Export `entry' as partmap-specific `part.data' struct.
45716 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45717
45718 * include/grub/gpt_partition.h (grub_gpt_header)
45719 (grub_gpt_partentry): ... to here (new file).
45720
45721 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45722
45723 (grub_gpt_partition_type_bios_boot): New const variable, defined
45724 with macro from `<grub/gpt_partition.h>'.
45725
45726 (setup): Replace `first_start' with `embed_region', which keeps
45727 track of the embed region (and is partmap-agnostic).
45728
45729 Replace find_first_partition_start() with find_usable_region(),
45730 which finds a usable region for embedding using partmap-specific
45731 knowledge (supports PC/MSDOS and GPT).
45732
45733 Fix all assumptions that the embed region start at sector 1, using
45734 `embed_region.start' from now on. Similarly, use `embed_region.end'
45735 rather than `first_start' to calculate available size.
45736
45737 In grub_util_info() message, replace "into after the MBR" with an
45738 indication of the specific sector our embed region starts at.
45739
45740 2008-02-19 Robert Millan <rmh@aybabtu.com>
45741
45742 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45743 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45744 `commands/reboot.c'.
45745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45746 (halt_mod_SOURCES): Likewise.
45747 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45748 (halt_mod_SOURCES): Likewise.
45749
45750 2008-02-17 Christian Franke <franke@computer.org>
45751
45752 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45753
45754 2008-02-17 Robert Millan <rmh@aybabtu.com>
45755
45756 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45757 set `first_start' to 0 for non-PC/MSDOS partition maps.
45758
45759 2008-02-16 Robert Millan <rmh@aybabtu.com>
45760
45761 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45762 do not assume partition map is PC/MSDOS before performing checks that
45763 are specific to that layout.
45764
45765 2008-02-13 Robert Millan <rmh@aybabtu.com>
45766
45767 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45768 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45769 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45770
45771 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45772
45773 * configure.ac: Only a cosmetic change on the handling of
45774 -fno-stack-protector.
45775
45776 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45777
45778 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45779 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45780 reboot.c.
45781 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45782 (halt_mod_SOURCES): New variable.
45783 (halt_mod_CFLAGS): Likewise.
45784 (halt_mod_LDFLAGS): Likewise.
45785 (reboot_mod_SOURCES): Likewise.
45786 (reboot_mod_CFLAGS): Likewise.
45787 (reboot_mod_LDFLAGS): Likewise.
45788
45789 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45790 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45791 reboot.c.
45792 (halt_mod_SOURCES): Likewise.
45793 (reboot_mod_SOURCES): Likewise.
45794
45795 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45796 commands/i386/pc/reboot.c by commands/reboot.c.
45797 (reboot_mod_SOURCES): Likewise.
45798
45799 * commands/i386/pc/reboot.c: merge this file ...
45800
45801 * commands/ieee1275/reboot.c: ... and this file ...
45802
45803 * commands/reboot.c: ... to this file.
45804 Add some precompiler directive to include the correct header for
45805 each machine.
45806
45807 * commands/ieee1275/halt.c: move this file ...
45808
45809 * commands/halt.c: ... to here.
45810 Add some precompiler directive to include the correct header for
45811 each machine.
45812
45813 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45814 (grub_halt): Likewise.
45815
45816 * kern/efi/efi.c (grub_reboot): New function.
45817 (grub_halt): Likewise.
45818
45819 2008-02-12 Robert Millan <rmh@aybabtu.com>
45820
45821 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45822 /dev (like it is done for /dev/mapper). This doesn't provide support
45823 for EVMS, but at least it is now easy to identify the problem when it
45824 arises.
45825
45826 2008-02-11 Robert Millan <rmh@aybabtu.com>
45827
45828 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45829 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45830 comparing it with -1, not 0.
45831
45832 2008-02-10 Robert Millan <rmh@aybabtu.com>
45833
45834 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45835 `disk/lvm.c'.
45836 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45837 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45838
45839 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45840 `disk/lvm.c' to the end of the list.
45841 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45842 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45843
45844 2008-02-10 Robert Millan <rmh@aybabtu.com>
45845
45846 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45847 grub_print_error() instead. This will let user know why we're entering
45848 rescue mode.
45849 Based on suggestions from Sam Morris.
45850
45851 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45852
45853 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45854 on remaining N args, instead of "--" arg N times.
45855
45856 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45857
45858 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45859 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45860 pattern for unknown glyphs.
45861
45862 2008-02-09 Robert Millan <rmh@aybabtu.com>
45863
45864 * configure.ac: Probe for `help2man'.
45865 * Makefile.in (builddir): New variable.
45866 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45867 or otherwise add a few flags/options to it.
45868 (install-local): For every executable utility or script that is
45869 installed, invoke $(HELP2MAN) to install a manpage based on --help
45870 output.
45871
45872 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45873 that it doesn't prevent --help from working in build tree.
45874
45875 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45876 with `bug-grub@gnu.org'.
45877 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45878 * util/update-grub.in (usage): New function.
45879 Implement proper argument check, with support for --help and --version
45880 (as well as existing -y).
45881
45882 2008-02-09 Christian Franke <franke@computer.org>
45883
45884 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45885 avoid overwriting previous output.
45886 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45887
45888 2008-02-09 Robert Millan <rmh@aybabtu.com>
45889
45890 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45891 drawing the menu.
45892
45893 2008-02-09 Robert Millan <rmh@aybabtu.com>
45894
45895 * commands/sleep.c: New file.
45896 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45897 (sleep_mod_SOURCES): New variable.
45898 (sleep_mod_CFLAGS): Likewise.
45899 (sleep_mod_LDFLAGS): Likewise.
45900
45901 2008-02-09 Robert Millan <rmh@aybabtu.com>
45902
45903 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45904 situations in which we can deduce the RAID size and the superblock
45905 doesn't match it.
45906
45907 2008-02-09 Robert Millan <rmh@aybabtu.com>
45908
45909 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45910 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45911 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45912
45913 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45914 and return a grub_diskmemberlist_t composed of physical array members.
45915 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45916
45917 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45918 prototype.
45919 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45920 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45921 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45922
45923 * util/grub-probe.c (probe): Move partmap probing code from here ...
45924 (probe_partmap): ... to here.
45925 (probe): Use probe_partmap() once for the disk we're probing, and
45926 additionally, when such disk contains a memberlist() struct member,
45927 once for each disk that is contained in the structure returned by
45928 memberlist().
45929
45930 2008-02-09 Robert Millan <rmh@aybabtu.com>
45931
45932 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45933 environment variable to 'all' in order to obtain debug output from
45934 non-util/ code.
45935 * util/i386/pc/grub-setup.c (main): Likewise.
45936
45937 2008-02-08 Robert Millan <rmh@aybabtu.com>
45938
45939 * disk/raid.c (grub_raid_scan_device): Check for
45940 `array->device[sb.this_disk.number]' rather than for
45941 `array->device[sb.this_disk.number]->name', since the latter is not
45942 guaranteed to be accessible.
45943
45944 2008-02-08 Robert Millan <rmh@aybabtu.com>
45945
45946 * disk/raid.c: Update copyright.
45947 * fs/cpio.c: Likewise.
45948 * include/grub/raid.h: Likewise.
45949 * loader/i386/pc/multiboot.c: Likewise.
45950 * util/hostfs.c: Likewise.
45951
45952 2008-02-08 Robert Millan <rmh@aybabtu.com>
45953
45954 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45955 to a grub_disk_t array.
45956 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45957 `device[x]'.
45958 (grub_raid_scan_device): Replace `device[x].name' accesses with
45959 `device[x]->name'. Simplify initialization of `array->device[x]'.
45960
45961 2008-02-08 Robert Millan <rmh@aybabtu.com>
45962
45963 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45964 grub_dprintf() calls.
45965 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45966 error message.
45967
45968 2008-02-07 Christian Franke <franke@computer.org>
45969
45970 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45971 instead of fseek and ftell to support large files.
45972 (grub_hostfs_read): Likewise.
45973
45974 2008-02-07 Robert Millan <rmh@aybabtu.com>
45975
45976 Patch from Jeroen Dekkers.
45977 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45978 failure, since successfully reading all array members might not be
45979 required.
45980
45981 2008-02-06 Robert Millan <rmh@aybabtu.com>
45982
45983 * util/grub-probe.c (probe): Simplify partmap probing (with the
45984 assumption that the first word up to the underscore equals to
45985 the module name).
45986
45987 2008-02-06 Christian Franke <franke@computer.org>
45988
45989 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45990 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45991 last block of a cpio or tar stream.
45992 Check for "TRAILER!!!" instead of any empty data
45993 block to detect last block of a cpio stream.
45994 (grub_cpio_dir): Fix constness of variable np.
45995 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45996 cpio or tar trailer is detected. This fixes a crash
45997 on open of a non existing file.
45998
45999 2008-02-05 Bean <bean123ch@gmail.com>
46000
46001 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46002 address of entry.
46003 (grub_multiboot_load_elf64): Likewise.
46004 (grub_multiboot): Initialize mbi structure.
46005
46006 * util/grub-fstest.c: Don't include unused header file script.h.
46007
46008 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
46009 of file.
46010 (grub_fstest_SOURCES): Likewise.
46011
46012 2008-02-05 Robert Millan <rmh@aybabtu.com>
46013
46014 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46015 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46016 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46017 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46018
46019 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46020 (translation_table): Replace hardcoded values with macros
46021 provided by `<grub/term.h>'.
46022
46023 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46024 (keyboard_map): Correct/add a few values, with macros provided
46025 by `<grub/term.h>'.
46026 (keyboard_map_shift): Zero values that don't differ from their
46027 `keyboard_map' equivalents.
46028 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46029 Discard the second scan code that is always sent by Caps lock.
46030 Only use `keyboard_map_shift' when it provides a non-zero value,
46031 otherwise fallback to `keyboard_map'.
46032
46033 2008-02-04 Bean <bean123ch@gmail.com>
46034
46035 * Makefile.in (enable_grub_fstest): New variable.
46036
46037 * conf/common.rmk (grub_fstest_init.lst): New rule.
46038 (grub_fstest_init.h): Likewise.
46039 (grub_fstest_init.c): Likewise.
46040 (util/grub-fstest.c_DEPENDENCIES): New variable.
46041 (grub_fstest_SOURCES): Likewise.
46042
46043 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46044
46045 * util/grub-fstest.c: New file.
46046
46047 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46048
46049 Make grub-setup handle a separate root device.
46050
46051 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46052 so that the root device can be compared with the destination
46053 device.
46054 When embedding the core image, if the root and destination devices
46055 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46056 0xFF.
46057 When not embedding, set ROOT_DRIVE to 0xFF.
46058
46059 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46060
46061 Add support for having a grub directory in a different drive. This
46062 is still only the data handling part.
46063
46064 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46065 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46066 (grub_root_drive): New variable.
46067
46068 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46069 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46070 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46071 as it was.
46072
46073 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46074
46075 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46076 macro.
46077 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46078
46079 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46080 is bogus, because PXE booting does not specify any drive
46081 correctly.
46082
46083 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46084 am not sure if this is really correct.
46085
46086 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46087 is always identical to the boot drive when booting from a CD.
46088
46089 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46090 longer.
46091 (root_drive): New variable.
46092 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46093 (setup_sectors): Push %dx right after popping it, because %dh will
46094 be modified later.
46095 (copy_buffer): Restore %dx.
46096
46097 2008-02-03 Robert Millan <rmh@aybabtu.com>
46098
46099 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46100 use `cdboot.img' for cdrom images.
46101
46102 2008-02-03 Robert Millan <rmh@aybabtu.com>
46103
46104 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46105 only setup gfxterm when `font' command has succeeded.
46106
46107 2008-02-03 Robert Millan <rmh@aybabtu.com>
46108
46109 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46110 (grub_rescue_cmd_multiboot_loader)
46111 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46112
46113 2008-02-03 Pavel Roskin <proski@gnu.org>
46114
46115 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46116 %edx and %esi from stack only after grub_gate_a20() is called.
46117 grub_gate_a20() clobbers %edx.
46118
46119 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46120
46121 * configure.ac (AC_INIT): Bumped to 1.96.
46122
46123 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46124 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46125 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46126 video/readers/png.c.
46127
46128 2008-02-03 Bean <bean123ch@gmail.com>
46129
46130 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46131 (cdboot_img_SOURCES): New variable.
46132 (cdboot_img_ASFLAGS): New variable.
46133 (cdboot_img_LDFLAGS): New variable.
46134
46135 * boot/i386/pc/cdboot.S: New file.
46136
46137 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46138 (cd_count): Likewise.
46139 (grub_biosdisk_get_drive): Add support for cd device.
46140 (grub_biosdisk_call_hook): Likewise.
46141 (grub_biosdisk_iterate): Likewise.
46142 (grub_biosdisk_open): Likewise.
46143 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46144 (grub_biosdisk_rw): Support reading from cd device.
46145 (GRUB_MOD_INIT): Iterate cd devices.
46146
46147 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46148 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46149 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46150
46151 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46152
46153 2008-02-02 Robert Millan <rmh@aybabtu.com>
46154
46155 * commands/read.c: New file.
46156 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46157 (read_mod_SOURCES): New variable.
46158 (read_mod_CFLAGS): Likewise.
46159 (read_mod_LDFLAGS): Likewise.
46160
46161 2008-02-02 Robert Millan <rmh@aybabtu.com>
46162
46163 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46164 determining whether menu has to be displayed.
46165
46166 2008-02-02 Marco Gerards <marco@gnu.org>
46167
46168 * bus/pci.c: New file.
46169
46170 * include/grub/pci.h: Likewise.
46171
46172 * include/grub/i386/pc/pci.h: Likewise.
46173
46174 * commands/lspci.c: Likewise.
46175
46176 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46177 `lspci.mod'.
46178 (pci_mod_SOURCES): New variable.
46179 (pci_mod_CFLAGS): Likewise.
46180 (pci_mod_LDFLAGS): Likewise.
46181 (lspci_mod_SOURCES): Likewise.
46182 (lspci_mod_CFLAGS): Likewise.
46183 (lspci_mod_LDFLAGS): Likewise.
46184
46185 2008-02-02 Bean <bean123ch@gmail.com>
46186
46187 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46188 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46189
46190 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46191 (grub_xfs_btree_node): New structure.
46192 (grub_xfs_btree_root): New structure.
46193 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46194 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46195 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46196 (GRUB_XFS_EXTENT_SIZE): Likewise.
46197 (grub_xfs_read_block): Support btree format type.
46198 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46199 Use directory block as basic unit.
46200
46201 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46202
46203 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46204 __attribute__ ((__regparm__ (1))).
46205
46206 2008-02-01 Robert Millan <rmh@aybabtu.com>
46207
46208 Correct a mistake in previous commit.
46209
46210 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46211 top.
46212 (normal/command.c_DEPENDENCIES): New variable.
46213
46214 2008-02-01 Robert Millan <rmh@aybabtu.com>
46215
46216 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46217 top.
46218 (normal/command.c_DEPENDENCIES): New variable.
46219 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46220 * conf/i386-ieee1275.rmk: Likewise.
46221 * conf/i386-linuxbios.rmk: Likewise.
46222 * conf/i386-pc.rmk: Likewise.
46223 * conf/sparc64-ieee1275.rmk: Likewise.
46224 * conf/powerpc-ieee1275.rmk: Likewise.
46225 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46226
46227 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46228
46229 2008-02-01 Robert Millan <rmh@aybabtu.com>
46230
46231 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46232 call at beginning of function.
46233
46234 2008-01-31 Pavel Roskin <proski@gnu.org>
46235
46236 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46237 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46238 (grub_mkrescue_SOURCES): Likewise.
46239 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46240
46241 2008-01-30 Robert Millan <rmh@aybabtu.com>
46242
46243 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46244 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46245 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46246 (grub_probe_SOURCES): ... to here.
46247
46248 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46249 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46250 * conf/i386-ieee1275.rmk: Likewise.
46251 * conf/i386-linuxbios.rmk: Likewise.
46252 * conf/powerpc-ieee1275.rmk: Likewise.
46253
46254 2008-01-30 Tristan Gingold <gingold@free.fr>
46255
46256 * kern/rescue.c: Silently accept empty lines.
46257
46258 2008-01-29 Bean <bean123ch@gmail.com>
46259
46260 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46261 (real_code_2): Code cleanup and change comment style.
46262 (move_memory): Avoid using 32-bit address mode.
46263
46264 2008-01-29 Bean <bean123ch@gmail.com>
46265
46266 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46267 (png_mod_SOURCES): New variable.
46268 (png_mod_CFLAGS): Likewise.
46269 (png_mod_LDFLAGS): Likewise.
46270
46271 * video/readers/png.c: New file.
46272
46273 2008-01-28 Robert Millan <rmh@aybabtu.com>
46274
46275 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46276 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46277 `ifndef GRUB_MOD_GAP' hack.
46278 * util/elf/grub-mkimage.c (add_segments): Likewise.
46279
46280 2008-01-27 Robert Millan <rmh@aybabtu.com>
46281
46282 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46283 `GRUB_MOD_GAP' for platforms in which it's not defined.
46284 * util/elf/grub-mkimage.c (add_segments): Likewise.
46285
46286 2008-01-27 Robert Millan <rmh@aybabtu.com>
46287
46288 Get grub-emu to build again (including parallel builds).
46289
46290 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46291 Split into ...
46292 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46293 (normal/execute.c_DEPENDENCIES): ... this, ...
46294 (grub-emu_DEPENDENCIES): ... and this.
46295
46296 * conf/i386-efi.rmk: Likewise.
46297 * conf/i386-linuxbios.rmk: Likewise.
46298 * conf/i386-ieee1275.rmk: Likewise.
46299 * conf/powerpc-ieee1275.rmk: Likewise.
46300 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46301
46302 2008-01-27 Robert Millan <rmh@aybabtu.com>
46303
46304 * NEWS: Add a few items.
46305
46306 2008-01-27 Robert Millan <rmh@aybabtu.com>
46307
46308 Fix parallel builds with grub-emu. Based on earlier commit for
46309 grub-probe and grub-setup.
46310
46311 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46312 (util/grub-emu.c_DEPENDENCIES): ... this.
46313 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46314 (util/grub-emu.c_DEPENDENCIES): ... this.
46315 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46316 (util/grub-emu.c_DEPENDENCIES): ... this.
46317 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46318 (util/grub-emu.c_DEPENDENCIES): ... this.
46319 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46320 (util/grub-emu.c_DEPENDENCIES): ... this.
46321
46322 2008-01-27 Pavel Roskin <proski@gnu.org>
46323
46324 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46325 to create a gap between _end and the modules added to the image
46326 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46327 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46328 * util/elf/grub-mkimage.c (add_segments): Likewise.
46329
46330 2008-01-26 Pavel Roskin <proski@gnu.org>
46331
46332 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46333 just return an error.
46334
46335 2008-01-26 Bean <bean123ch@gmail.com>
46336
46337 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46338 (grub_reiserfs_get_item): Save offset of the next item.
46339 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46340
46341 2008-01-25 Robert Millan <rmh@aybabtu.com>
46342
46343 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46344 make all filesystem sources appear together (possibly fixing omissions
46345 while at it).
46346 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46347 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46348 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46349 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46350
46351 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46352 add `kern/file.c'.
46353 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46354 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46355 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46356 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46357
46358 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46359 (probe): Add a sanity check to make sure of our ability to read
46360 requested files when probing for filesystem type.
46361
46362 * genmk.rb: Update copyright year (2007).
46363
46364 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46365 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46366 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46367 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46368 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46369 : Remove function prototypes.
46370
46371 2008-01-25 Robert Millan <rmh@aybabtu.com>
46372
46373 Revert my previous commits (based on wrong assumption of how grub_errno
46374 works).
46375
46376 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46377 * kern/file.c (grub_file_open): Likewise.
46378
46379 2008-01-24 Pavel Roskin <proski@gnu.org>
46380
46381 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46382 that hang if GRUB tries to setup colors.
46383 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46384 colors for firmwares that don't support it.
46385 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46386 Recognize Open Hack'Ware, set flags to work around its
46387 limitations.
46388
46389 2008-01-24 Robert Millan <rmh@aybabtu.com>
46390
46391 * kern/file.c (grub_file_open): Do not account previous failures of
46392 unrelated functions when grub_errno is checked for.
46393 Reported by Oleg Strikov.
46394
46395 2008-01-24 Bean <bean123ch@gmail.com>
46396
46397 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46398 (grub_ufs_sblock): New member volume name.
46399 (grub_ufs_find_file): Fix string copy bug.
46400 (grub_ufs_label): Implement this function properly.
46401
46402 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46403 (grub_hfs_iterate_records): Use the correct file number for extents
46404 and catalog file. Fix problem in next index calculation.
46405 (grub_hfs_find_node): Replace recursive function call with loop.
46406 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46407
46408 2008-01-23 Robert Millan <rmh@aybabtu.com>
46409
46410 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46411 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46412 (grub_multiboot2_real_boot): New function prototype.
46413
46414 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46415 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46416
46417 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46418 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46419
46420 2008-01-23 Robert Millan <rmh@aybabtu.com>
46421
46422 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46423 #ifdef'ed out grub_printf().
46424
46425 2008-01-23 Robert Millan <rmh@aybabtu.com>
46426
46427 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46428 grub_dprintf calls, since they make "debug=all" mode unusable.
46429 (grub_console_checkkey): Likewise.
46430
46431 2008-01-23 Robert Millan <rmh@aybabtu.com>
46432
46433 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46434 `term/i386/pc/at_keyboard.c'.
46435 (pkglib_MODULES): Add `serial.mod'.
46436 (serial_mod_SOURCES): New variable.
46437 (serial_mod_CFLAGS): Likewise.
46438 (serial_mod_LDFLAGS): Likewise.
46439
46440 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46441 `<grub/powerpc/ieee1275/console.h>'.
46442 (grub_keyboard_controller_init): New function prototype.
46443 (grub_console_checkkey): Likewise.
46444 (grub_console_getkey): Likewise.
46445
46446 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46447 keyboard on i386.
46448
46449 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46450 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46451
46452 2008-01-23 Robert Millan <rmh@aybabtu.com>
46453
46454 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46455 present, "(memdisk)/boot/grub" becomes the default prefix.
46456
46457 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46458 a memdisk tarball with all the modules. Add --overlay=DIR option that
46459 allows users to overlay additional files into the image.
46460
46461 2008-01-23 Robert Millan <rmh@aybabtu.com>
46462
46463 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46464 and `machine/memory.h'.
46465 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46466 (_multiboot_mod_SOURCES): New variable.
46467 (_multiboot_mod_CFLAGS): Likewise.
46468 (_multiboot_mod_LDFLAGS): Likewise.
46469 (multiboot_mod_SOURCES): Likewise.
46470 (multiboot_mod_CFLAGS): Likewise.
46471 (multiboot_mod_LDFLAGS): Likewise.
46472
46473 * include/grub/i386/ieee1275/loader.h: New file.
46474
46475 * include/grub/i386/ieee1275/machine.h: Likewise.
46476
46477 * include/grub/i386/ieee1275/memory.h: Likewise.
46478
46479 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46480 variable declaration.
46481 (grub_os_area_size): Likewise.
46482
46483 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46484 (grub_lower_mem, grub_upper_mem): New variables.
46485 (grub_stop_floppy): New function (just to make
46486 grub_multiboot2_real_boot() happy).
46487
46488 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46489 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46490 (grub_stop): New function.
46491 Include `"../realmode.S"' and `"../loader.S"'.
46492
46493 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46494 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46495
46496 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46497 rely on grub_multiboot2_real_boot() for final boot.
46498
46499 2008-01-22 Robert Millan <rmh@aybabtu.com>
46500
46501 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46502 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46503 device that doesn't look like an SD card.
46504 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46505 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46506 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46507 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46508 found.
46509
46510 2008-01-22 Robert Millan <rmh@aybabtu.com>
46511
46512 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46513 avoid claiming over our own code.
46514
46515 2008-01-22 Bean <bean123ch@gmail.com>
46516
46517 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46518 (jpeg_mod_SOURCES): New variable.
46519 (jpeg_mod_CFLAGS): Likewise.
46520 (jpeg_mod_LDFLAGS): Likewise.
46521
46522 * video/readers/jpeg.c : New file.
46523
46524 2008-01-22 Bean <bean123ch@gmail.com>
46525
46526 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46527 there are no more items.
46528
46529 2008-01-21 Robert Millan <rmh@aybabtu.com>
46530
46531 * kern/mm.c (grub_mm_init_region): Improve debug message.
46532
46533 2008-01-21 Robert Millan <rmh@aybabtu.com>
46534
46535 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46536 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46537 address.
46538 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46539 a C macro.
46540 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46541 Indicates start of upper memory.
46542 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46543 (generate_image): Abort when image size is big enough to corrupt
46544 upper memory.
46545
46546 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46547 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46548 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46549 instead of hardcoding 0xA0000.
46550 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46551 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46552 instead of hardcoding 0xA0000.
46553
46554 2008-01-21 Robert Millan <rmh@aybabtu.com>
46555
46556 * disk/memdisk.c (memdisk_size): New variable.
46557 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46558 `memdisk_size'.
46559 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46560 image to dynamic memory.
46561 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46562 `memdisk_size'. Free memdisk block.
46563
46564 2008-01-21 Robert Millan <rmh@aybabtu.com>
46565
46566 Fix detection of very small filesystems (like tar).
46567
46568 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46569 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46570 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46571 a problem with this disk).
46572
46573 2008-01-21 Robert Millan <rmh@aybabtu.com>
46574
46575 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46576 on grub_biosdisk_rw_standard() error.
46577
46578 2008-01-21 Robert Millan <rmh@aybabtu.com>
46579
46580 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46581 recent changes.
46582 * kern/elf.c: Likewise.
46583 * kern/ieee1275/ieee1275.c: Likewise.
46584 * kern/powerpc/ieee1275/openfw.c: Likewise.
46585 * term/ieee1275/ofconsole.c: Likewise.
46586
46587 2008-01-21 Robert Millan <rmh@aybabtu.com>
46588
46589 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46590
46591 * include/grub/kernel.h (grub_arch_memdisk_addr)
46592 (grub_arch_memdisk_size): Moved from here ...
46593
46594 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46595 (grub_arch_memdisk_size): ... to here.
46596
46597 2008-01-21 Robert Millan <rmh@aybabtu.com>
46598
46599 Mostly based on bugfix from Bean.
46600
46601 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46602 attribute with hook() parameter.
46603 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46604 declaration.
46605 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46606 attribute with hook() parameter.
46607 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46608 declaration.
46609
46610 2008-01-21 Robert Millan <rmh@aybabtu.com>
46611
46612 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46613 (pkglib_MODULES): Add `memdisk.mod'.
46614 (memdisk_mod_SOURCES): New variable.
46615 (memdisk_mod_CFLAGS): Likewise.
46616 (memdisk_mod_LDFLAGS): Likewise.
46617
46618 * disk/memdisk.c: New file.
46619
46620 * include/grub/disk.h (grub_disk_dev_id): Add
46621 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46622
46623 * include/grub/i386/pc/kernel.h
46624 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46625 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46626 (grub_kernel_image_size): New variable declaration.
46627 (grub_total_module_size): Likewise.
46628 (grub_memdisk_image_size): Likewise.
46629
46630 * include/grub/i386/pc/memory.h
46631 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46632
46633 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46634 (grub_arch_memdisk_addr): New variable declaration.
46635 (grub_arch_memdisk_size): Likewise.
46636
46637 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46638 (grub_arch_memdisk_size): Likewise.
46639
46640 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46641 (codestart): Replace hardcoded `0x100000' with
46642 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46643
46644 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46645 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46646 not NULL, append the contents of the file it refers to, at the end of
46647 the compressed kernel image. Initialize `grub_memdisk_image_size'
46648 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46649 (options): Add "memdisk"|'m' option.
46650 (main): Parse --memdisk|-m option, and pass user-provided path as
46651 parameter to generate_image().
46652
46653 2008-01-20 Robert Millan <rmh@aybabtu.com>
46654
46655 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46656 grub_dprintf() calls from here ...
46657 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46658
46659 2008-01-20 Robert Millan <rmh@aybabtu.com>
46660
46661 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46662
46663 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46664 declaration.
46665 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46666 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46667 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46668 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46669 property).
46670 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46671 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46672
46673 2008-01-19 Robert Millan <rmh@aybabtu.com>
46674
46675 Get rid of confusing function (superseded by
46676 `grub_ieee1275_get_integer_property')
46677 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46678 prototype.
46679 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46680 function.
46681 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46682 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46683 in native endianness from grub_ieee1275_get_integer_property().
46684
46685 2008-01-19 Robert Millan <rmh@aybabtu.com>
46686
46687 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46688 command after "shut-down", since implementations differ on which
46689 the command for halt is.
46690
46691 2008-01-19 Robert Millan <rmh@aybabtu.com>
46692
46693 * include/grub/i386/linuxbios/console.h: Add header protection.
46694 (grub_keyboard_controller_init): New function prototype.
46695 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46696 (KEYBOARD_COMMAND_READ): Likewise.
46697 (KEYBOARD_COMMAND_WRITE): Likewise.
46698 (KEYBOARD_SCANCODE_SET1): Likewise.
46699 (grub_keyboard_controller_write): New function.
46700 (grub_keyboard_controller_read): Likewise.
46701 (grub_keyboard_controller_init): Likewise.
46702
46703 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46704 (grub_console_init): On coreboot/LinuxBIOS, call
46705 grub_keyboard_controller_init().
46706
46707 2008-01-19 Robert Millan <rmh@aybabtu.com>
46708
46709 PowerPC changes provided by Pavel Roskin.
46710
46711 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46712 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46713 don't rely on cmain() doing it.
46714 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46715 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46716
46717 2008-01-16 Robert Millan <rmh@aybabtu.com>
46718
46719 * include/grub/i386/linuxbios/memory.h
46720 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46721 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46722 receive `table_header' as argument. Instead, probe for it in the
46723 known memory ranges where it can be present.
46724 (grub_available_iterate): Do not pass a fixed `table_header' address
46725 to grub_linuxbios_table_iterate().
46726
46727 2008-01-15 Robert Millan <rmh@aybabtu.com>
46728
46729 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46730 * conf/i386-ieee1275.rmk: New file.
46731 * include/grub/i386/ieee1275/console.h: Likewise.
46732 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46733 * include/grub/i386/ieee1275/kernel.h: Likewise.
46734 * include/grub/i386/ieee1275/time.h: Likewise.
46735 * kern/i386/ieee1275/init.c: Likewise.
46736 * kern/i386/ieee1275/startup.S: Likewise.
46737
46738 2008-01-15 Robert Millan <rmh@aybabtu.com>
46739
46740 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46741 when pointers are 32-bit (but still do set it to one when they are
46742 64-bit).
46743
46744 2008-01-15 Robert Millan <rmh@aybabtu.com>
46745
46746 * include/grub/ieee1275/ieee1275.h
46747 (grub_ieee1275_get_integer_property): New function prototype.
46748
46749 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46750 (grub_ieee1275_get_integer_property): New function. Wraps around
46751 grub_ieee1275_get_property() to handle endianness.
46752
46753 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46754 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46755 where appropriate.
46756 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46757 (grub_map): Likewise.
46758 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46759
46760 2008-01-15 Bean <bean123ch@gmail.com>
46761
46762 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46763 (grub_script_execute_cmdline): Reset grub_errno.
46764
46765 * normal/main.c (read_config_file): Reset grub_errno.
46766
46767 * normal/parse.y (script_init): New.
46768 (script): Move function and menuentry here.
46769 (delimiter): New.
46770 (command): Add delimiter at the end of command.
46771 (commands): Adjust to match the new command.
46772 (commandblock): Remove grub_script_lexer_record_start.
46773 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46774 (if): Use the new commands.
46775
46776 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46777
46778 2008-01-15 Robert Millan <rmh@aybabtu.com>
46779
46780 * normal/menu.c (run_menu): Move timeout message from here ...
46781 (print_timeout): ... to here.
46782 (run_menu): Use print_timeout() once during initial draw to print
46783 the whole message, and again in every clock tick to update only
46784 the number of seconds.
46785
46786 2008-01-15 Robert Millan <rmh@aybabtu.com>
46787
46788 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46789 actual size of `available' from grub_ieee1275_get_property(), and
46790 restrict parsing to that bound.
46791
46792 2008-01-15 Christian Franke <franke@computer.org>
46793
46794 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46795 (argp_program_version): Remove variable.
46796 (argp_program_bug_address): Likewise.
46797 (options): Convert from struct argp_option to struct option.
46798 (struct arguments): Remove.
46799 (parse_opt): Remove.
46800 (usage): New function.
46801 (main): Replace struct args members by simple variables.
46802 Replace argp_parse() by getopt_long().
46803 Add switch to evaluate options.
46804 Add missing "(...)" around root_dev in prefix string.
46805
46806 2008-01-14 Robert Millan <rmh@aybabtu.com>
46807
46808 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46809 for grub_ieee1275_exit(), in order to improve portability.
46810
46811 2008-01-14 Robert Millan <rmh@aybabtu.com>
46812
46813 * util/grub.d/10_linux.in (prefix): Define.
46814 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46815
46816 2008-01-13 Pavel Roskin <proski@gnu.org>
46817
46818 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46819 grub_errno if no errors have been detected.
46820
46821 2008-01-12 Robert Millan <rmh@aybabtu.com>
46822
46823 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46824 (grub_util_get_dev_abstraction): New function prototype.
46825
46826 * util/getroot.c: Include `<grub/util/getroot.h>'
46827 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46828 (grub_util_get_dev_abstraction): ... here (new function).
46829
46830 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46831 `PRINT_ABSTRACTION'.
46832 (probe): Probe for abstraction type when requested.
46833 (main): Understand `--target=abstraction'.
46834
46835 * util/i386/efi/grub-install.in: Add abstraction module to core
46836 image when it is found to be necessary.
46837 * util/i386/pc/grub-install.in: Likewise.
46838 * util/powerpc/ieee1275/grub-install.in: Likewise.
46839
46840 * util/update-grub_lib.in (font_path): Return system path without
46841 converting to GRUB path.
46842 * util/update-grub.in: Convert system path returned by font_path()
46843 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46844 abstraction module is needed for loading fonts (if any). Export
46845 that as `GRUB_PRELOAD_MODULES'.
46846 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46847 insmod commands).
46848
46849 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46850
46851 Remove some unused code from reiserfs.
46852
46853 * fs/reiserfs.c (struct grub_reiserfs_key)
46854 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46855 (struct grub_reiserfs_node_body): Removed.
46856 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46857 Likewise.
46858 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46859 Likewise.
46860 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46861 Likewise.
46862 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46863 Likewise.
46864 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46865 Likewise.
46866 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46867 Likewise.
46868 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46869 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46870 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46871
46872 2008-01-10 Robert Millan <rmh@aybabtu.com>
46873
46874 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46875 Determines if a file is garbage left by packaging systems, etc.
46876 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46877 for processing /etc/grub.d scripts.
46878 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46879 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46880 as a condition for processing Linux images.
46881
46882 2008-01-10 Pavel Roskin <proski@gnu.org>
46883
46884 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46885 to compile reiserfs.c on PowerPC.
46886
46887 2008-01-10 Robert Millan <rmh@aybabtu.com>
46888
46889 * kern/device.c (grub_device_iterate): Do not abort device iteration
46890 when one of the devices cannot be opened.
46891 * kern/disk.c (grub_disk_open): Do not account previous failures of
46892 unrelated functions when grub_errno is checked for.
46893
46894 2008-01-08 Robert Millan <rmh@aybabtu.com>
46895
46896 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46897 `! grub_linux_is_bzimage', change order of address comparison to make
46898 it more intuitive, and improve "too big zImage" error message.
46899
46900 2008-01-08 Robert Millan <rmh@aybabtu.com>
46901
46902 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46903 `$(update-grub_DATA)'.
46904 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46905 targets.
46906
46907 2008-01-07 Robert Millan <rmh@aybabtu.com>
46908
46909 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46910 which instruction is modified by grub-setup during installation
46911 (since it wasn't obvious by only looking at this file).
46912
46913 2008-01-07 Robert Millan <rmh@aybabtu.com>
46914
46915 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46916 listing actual TODO items.
46917
46918 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46919
46920 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46921 correctly.
46922 (grub_reiserfs_get_key_offset): Likewise.
46923 (grub_reiserfs_set_key_offset): Likewise.
46924 (grub_reiserfs_set_key_type): Likewise.
46925 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46926
46927 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46928 better to remove the bitfield version completely.
46929
46930 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46931
46932 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46933 allocated from the heap, due to the fshelp implementation.
46934 (grub_reiserfs_dir): Free NODE, due to the same reason.
46935
46936 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46937
46938 Mostly from Vincent Pelletier:
46939
46940 * fs/reiserfs.c: New file.
46941
46942 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46943 (reiserfs_mod_SOURCES): New variable.
46944 (reiserfs_mod_CFLAGS): Likewise.
46945 (reiserfs_mod_LDFLAGS): Likewise.
46946
46947 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46948 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46949 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46950 normal/color.c.
46951
46952 2008-01-06 Robert Millan <rmh@aybabtu.com>
46953
46954 * normal/color.c: Remove `<grub/env.h>'.
46955
46956 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46957
46958 * include/grub/normal.h: Include <grub/env.h>.
46959
46960 2008-01-05 Robert Millan <rmh@aybabtu.com>
46961
46962 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46963 usage example with `(hd0,1)'.
46964 Reported by Samuel Thibault.
46965
46966 2008-01-05 Robert Millan <rmh@aybabtu.com>
46967
46968 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46969 (grub_linux_boot_zimage): Rename to ...
46970 (grub_linux_boot): ... this.
46971 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46972 (grub_linux_boot_zimage): Conditionalize zImage copy.
46973
46974 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46975 (grub_linux_boot_bzimage): Remove prototype.
46976 (grub_linux_boot_zimage): Rename to ...
46977 (grub_linux_boot): ... this.
46978
46979 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46980 (grub_linux_boot): Remove function.
46981
46982 2008-01-05 Robert Millan <rmh@aybabtu.com>
46983
46984 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46985 (grub_env_write_color_highlight): Likewise.
46986 (grub_wait_after_message): Likewise.
46987
46988 * normal/color.c: New file.
46989
46990 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46991 (normal_mod_DEPENDENCIES): Likewise.
46992
46993 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46994 (normal_mod_DEPENDENCIES): Likewise.
46995
46996 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46997 (normal_mod_DEPENDENCIES): Likewise.
46998
46999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47000 (normal_mod_DEPENDENCIES): Likewise.
47001
47002 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47003 for waiting after a message is printed.
47004 * normal/main.c (read_config_file): Likewise.
47005 (grub_normal_init): Register grub_env_write_color_normal() and
47006 grub_env_write_color_highlight() hooks. Mark `color_normal' and
47007 `color_highlight' variables as global.
47008
47009 * normal/menu.c (grub_wait_after_message): New function.
47010 (grub_color_menu_normal): New variable. Replaces ...
47011 (GRUB_COLOR_MENU_NORMAL): ... this macro.
47012 (grub_color_menu_highlight): New variable. Replaces ...
47013 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47014 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47015 `GRUB_TERM_COLOR_STANDARD'.
47016 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47017 `normal_code' and `highlight_code' to `old_color_normal' and
47018 `old_color_highlight', respectively.
47019 (grub_menu_init_page): Update colors when drawing the menu, based on
47020 `menu_color_normal' and `menu_color_highlight' variables.
47021 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47022 a message is printed.
47023
47024 2008-01-05 Robert Millan <rmh@aybabtu.com>
47025
47026 * kern/env.c (grub_env_context_open): Propagate hooks for global
47027 variables to new context.
47028
47029 * kern/main.c (grub_set_root_dev): Export `root' variable.
47030
47031 2008-01-05 Robert Millan <rmh@aybabtu.com>
47032
47033 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47034 discs unconditionally, since udev and others have options to provide
47035 them.
47036
47037 2008-01-05 Robert Millan <rmh@aybabtu.com>
47038
47039 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47040
47041 2008-01-04 Christian Franke <franke@computer.org>
47042
47043 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47044 of eisa_mmap.
47045
47046 2008-01-03 Pavel Roskin <proski@gnu.org>
47047
47048 * kern/i386/linuxbios/init.c: Put "void" to all function
47049 declarations with no arguments.
47050 * kern/powerpc/ieee1275/init.c: Likewise.
47051 * term/i386/pc/at_keyboard.c: Likewise.
47052 * term/i386/pc/vga_text.c: Likewise.
47053 * util/grub-mkdevicemap.c: Likewise.
47054
47055 2008-01-02 Robert Millan <rmh@aybabtu.com>
47056
47057 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47058 message when loaded image is out of bounds.
47059 (grub_multiboot_load_elf64): Likewise.
47060
47061 2008-01-02 Pavel Roskin <proski@gnu.org>
47062
47063 * util/grub.d/10_linux.in: Try version without ".old" when
47064 looking for initrd. It's better to use initrd from the newer
47065 kernel of the same version than no initrd at all.
47066
47067 2008-01-01 Robert Millan <rmh@aybabtu.com>
47068
47069 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47070
47071 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47072
47073 * include/grub/video.h: Added grub_video_unmap_color and
47074 grub_video_get_active_render_target.
47075 (grub_video_adapter): Added unmap_color and get_active_render_target.
47076
47077 * video/video.c: Added grub_video_unmap_color and
47078 grub_video_get_active_render_target.
47079 (grub_video_get_info): Changed method to accept NULL pointer as an
47080 argument to allow detection of active video adapter.
47081
47082 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47083 grub_video_vbe_unmap_color_int.
47084 Added grub_video_vbe_unmap_color and
47085 grub_video_vbe_get_active_render_target.
47086 (grub_video_vbe_adapter): Added unmap_color and
47087 get_active_render_target.
47088
47089 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47090 with grub_video_vbe_unmap_color_int.
47091
47092 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47093 (DEFAULT_NORMAL_COLOR): Likewise.
47094 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47095 (DEFAULT_FG_COLOR): Removed.
47096 (DEFAULT_BG_COLOR): Likewise.
47097 (DEFAULT_CURSOR_COLOR): Changed value.
47098 (grub_virtual_screen): Added standard_color_setting,
47099 normal_color_setting, highlight_color_setting and term_color.
47100 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47101 (bitmap_width): Added.
47102 (bitmap_height): Likewise.
47103 (bitmap): Likewise.
47104 (set_term_color): Likewise.
47105 (grub_virtual_screen_setup): Changed to use new terminal coloring
47106 settings.
47107 (grub_gfxterm_init): Added init for bitmap.
47108 (grub_gfxterm_fini): Added destroy for bitmap.
47109 (redraw_screen_rect): Updated to use background bitmap and new
47110 terminal coloring.
47111 (scroll_up): Added optimization for case when there is no bitmap.
47112 (grub_gfxterm_cls): Fixed to use correct background color.
47113 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47114 coloring.
47115 (grub_virtual_screen_setcolor): Likewise.
47116 (grub_virtual_screen_getcolor): Added.
47117 (grub_gfxterm_background_image_cmd): Likewise.
47118 (grub_video_term): Added setcolor and getcolor.
47119 (MOD_INIT): Added registration of background_image command.
47120 (MOD_TERM): Added unregistration for background_image command.
47121
47122 2007-12-30 Pavel Roskin <proski@gnu.org>
47123
47124 * loader/multiboot_loader.c: Fix multiboot command
47125 unregistration. Fix all typos in the word "multiboot".
47126
47127 2007-12-29 Pavel Roskin <proski@gnu.org>
47128
47129 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47130 support for initrd names used in Fedora.
47131
47132 2007-12-26 Bean <bean123ch@gmail.com>
47133
47134 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47135 (cpio_mod_SOURCES): New variable.
47136 (cpio_mod_CFLAGS): Likewise.
47137 (cpio_mod_LDFLAGS): Likewise.
47138
47139 * fs/cpio.c: New file.
47140
47141 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47142
47143 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47144
47145 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47146
47147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47148
47149 2007-12-25 Robert Millan <rmh@aybabtu.com>
47150
47151 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47152 (grub_getcolor): New function.
47153
47154 * kern/term.c (grub_getcolor): New function.
47155 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47156 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47157 (print_entry): Set normal and highlight colors to
47158 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47159 respectively, before printing and restore them to old
47160 values afterwards.
47161 (grub_menu_init_page): Likewise. Fill an additional colored space
47162 that would otherwise be left blank.
47163
47164 * term/efi/console.c (grub_console_getcolor): New function.
47165 (struct grub_console_term.getcolor): New variable.
47166 * term/i386/pc/console.c (grub_console_getcolor): New function.
47167 (struct grub_console_term.getcolor): New variable.
47168 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47169 (struct grub_console_term.getcolor): New variable.
47170
47171 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47172 (struct grub_console_term.setcolor): Remove variable.
47173 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47174 (struct grub_console_term.setcolor): Remove variable.
47175 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47176 (struct grub_console_term.setcolor): Remove variable.
47177 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47178 (struct grub_console_term.setcolor): Remove variable.
47179
47180 2007-12-25 Robert Millan <rmh@aybabtu.com>
47181
47182 * configure.ac: Search for possible unifont.hex locations, and
47183 define UNIFONT_HEX if found.
47184
47185 * Makefile.in (UNIFONT_HEX): Define variable.
47186 (DATA): Rename to ...
47187 (PKGLIB): ... this. Update all users.
47188 (PKGDATA): New variable.
47189 (pkgdata_IMAGES): Rename to ...
47190 (pkglib_IMAGES): ... this. Update all users.
47191 (pkgdata_MODULES): Rename to ...
47192 (pkglib_MODULES): ... this. Update all users.
47193 (pkgdata_PROGRAMS): Rename to ...
47194 (pkglib_PROGRAMS): ... this. Update all users.
47195 (pkgdata_DATA): Rename to ...
47196 (pkglib_DATA): ... this. Update all users.
47197 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47198 (unicode.pff, ascii.pff): New rules.
47199 (all-local): Add `$(PKGDATA)' dependency.
47200 (install-local): Process `$(PKGDATA)'.
47201
47202 * util/update-grub_lib.in (font_path): Search for *.pff files in
47203 a few more locations, including `${pkgdata}'.
47204
47205 2007-12-23 Robert Millan <rmh@aybabtu.com>
47206
47207 Patch from Bean <bean123ch@gmail.com>:
47208 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47209 `size'.
47210
47211 2007-12-21 Bean <bean123ch@gmail.com>
47212
47213 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47214 (ntfscomp_mod_SOURCES): New variable.
47215 (ntfscomp_mod_CFLAGS): Likewise.
47216 (ntfscomp_mod_LDFLAGS): Likewise.
47217
47218 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47219 (grub_probe_SOURCES): Likewise.
47220 (grub_emu_SOURCES): Likewise.
47221
47222 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47223 (grub_emu_SOURCES): Likewise.
47224
47225 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47226 (grub_emu_SOURCES): Likewise.
47227
47228 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47229 (grub_emu_SOURCES): Likewise.
47230
47231 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47232 (read_run_list): Renamed to grub_ntfs_read_run_list.
47233 (decomp_nextvcn): Moved to ntfscomp.c.
47234 (decomp_getch): Likewise.
47235 (decomp_get16): Likewise.
47236 (decomp_block): Likewise.
47237 (read_block): Likewise.
47238 (read_data): Partially moved to ntfscomp.c.
47239 (fixup): Change unsigned to grub_uint16_t.
47240 (read_mft): Change unsigned long to grub_uint32_t.
47241 (read_attr): Likewise.
47242 (read_data): Likewise.
47243 (read_run_data): Likewise.
47244 (read_run_list): Likewise.
47245 (read_mft): Likewise.
47246
47247 * fs/ntfscomp.c: New file.
47248
47249 * include/grub/ntfs.h: New file.
47250
47251 2007-12-16 Robert Millan <rmh@aybabtu.com>
47252
47253 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47254 IDE disk check, since Linux is known to support 20 IDE disks.
47255 Reported by Colin Watson.
47256
47257 2007-12-15 Bean <bean123ch@gmail.com>
47258
47259 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47260 (lnxboot_img_SOURCES): New variable.
47261 (lnxboot_img_ASFLAGS): Likewise.
47262 (lnxboot_img_LDFLAGS): Likewise.
47263
47264 * boot/i386/pc/lnxboot.S: New file.
47265
47266 2007-11-24 Pavel Roskin <proski@gnu.org>
47267
47268 * configure.ac: Test if '--build-id=none' is supported by the
47269 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47270 objcopy to generate incorrect binary files (binutils
47271 2.17.50.0.18-1 as shipped by Fedora 8).
47272 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47273 linking, so that build ID doesn't break the test.
47274
47275 2007-11-24 Pavel Roskin <proski@gnu.org>
47276
47277 * include/grub/i386/time.h: use "void" in the argument list
47278 of grub_cpu_idle().
47279 * include/grub/powerpc/time.h: Likewise.
47280 * include/grub/sparc64/time.h: Likewise.
47281
47282 2007-11-18 Christian Franke <franke@computer.org>
47283
47284 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47285 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47286 This fixes the problem that function keys did not work in grub-emu.
47287
47288 2007-11-18 Christian Franke <franke@computer.org>
47289
47290 * disk/host.c (grub_host_open): Remove attribute unused from
47291 name parameter. Add check for "host". This fixes the problem
47292 that grub-emu does not find partitions.
47293
47294 2007-11-18 Christian Franke <franke@computer.org>
47295
47296 * util/hostfs.c (is_dir): New function.
47297 (grub_hostfs_dir): Handle missing dirent.d_type case.
47298 (grub_hostfs_read): Add missing fseek().
47299 (grub_hostfs_label): Clear label pointer. This fixes a crash
47300 of grub-emu on "ls (host)".
47301
47302 2007-11-18 Christian Franke <franke@computer.org>
47303
47304 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47305 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47306 to 64 bit boundary by default.
47307
47308 2007-11-18 Bean <bean123ch@gmail.com>
47309
47310 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47311 (hexdump_mod_SOURCES): New variable.
47312 (hexdump_mod_CFLAGS): Likewise.
47313 (hexdump_mod_LDFLAGS): Likewise.
47314
47315 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47316
47317 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47318
47319 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47320
47321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47322
47323 * include/grub/hexdump.h: New file.
47324
47325 * commands/hexdump.c: New file.
47326
47327 2007-11-10 Robert Millan <rmh@aybabtu.com>
47328
47329 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47330 in grub_outb() calls.
47331 (beep_on): Likewise.
47332
47333 2007-11-10 Christian Franke <franke@computer.org>
47334
47335 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47336 (grub_menu_run): Likewise.
47337
47338 2007-11-10 Robert Millan <rmh@aybabtu.com>
47339
47340 * include/grub/i386/efi/machine.h: New file.
47341 * include/grub/i386/linuxbios/machine.h: Likewise.
47342 * include/grub/i386/pc/machine.h: Likewise.
47343 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47344 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47345
47346 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47347 (serial_hw_io_addr): New variable.
47348 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47349 instead of `(unsigned short *) 0x400'.
47350
47351 2007-11-10 Bean <bean123ch@gmail.com>
47352
47353 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47354
47355 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47356
47357 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47358 (vga_mod_SOURCES): Added.
47359 (vga_mod_CFLAGS): Likewise.
47360 (vga_mod_LDFLAGS): Likewise.
47361
47362 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47363 grub_outb() calls.
47364 (set_map_mask): Likewise.
47365 (set_read_map): Likewise.
47366 (set_read_address): Likewise.
47367 (vga_font): Removed variable.
47368 (get_vga_glyph): Removed function.
47369 (invalidate_char): Likewise.
47370 (write_char): Changed to use grub_font_get_glyph() for font
47371 information.
47372 (grub_vga_putchar): Likewise.
47373 (grub_vga_getcharwidth): Likewise.
47374
47375 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47376
47377 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47378 flags.
47379 (pxeboot_img_LDFLAGS): Likewise.
47380 (diskboot_img_LDFLAGS): Likewise.
47381 (kernel_img_LDFLAGS): Likewise.
47382
47383 2007-11-06 Robert Millan <rmh@aybabtu.com>
47384
47385 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47386 in grub_outb() calls.
47387 (serial_hw_init): Likewise.
47388
47389 2007-11-05 Robert Millan <rmh@aybabtu.com>
47390
47391 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47392 spaces. Skip non-regular files.
47393
47394 2007-11-05 Robert Millan <rmh@aybabtu.com>
47395
47396 * kern/disk.c (grub_disk_firmware_fini)
47397 (grub_disk_firmware_is_tainted): New variables.
47398
47399 * include/grub/disk.h (grub_disk_firmware_fini)
47400 (grub_disk_firmware_is_tainted): Likewise.
47401
47402 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47403 (grub_disk_biosdisk_fini): ... to here.
47404 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47405 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47406 is set. Register grub_disk_biosdisk_fini() in
47407 `grub_disk_firmware_fini'.
47408
47409 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47410 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47411 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47412 to finish existing firmware disk interface.
47413
47414 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47415 (ata_mod_SOURCES): New variable.
47416 (ata_mod_CFLAGS): Likewise.
47417 (ata_mod_LDFLAGS): Likewise.
47418
47419 2007-11-05 Robert Millan <rmh@aybabtu.com>
47420
47421 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47422 (grub_ata_wait): Reimplement using grub_millisleep().
47423
47424 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47425 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47426
47427 2007-11-03 Marco Gerards <marco@gnu.org>
47428
47429 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47430 (CRTC_ADDR_PORT): New macro.
47431 (CRTC_DATA_PORT): Likewise.
47432 (CRTC_CURSOR): Likewise.
47433 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47434 (CRTC_CURSOR_ADDR_LOW): Likewise.
47435 (update_cursor): New function.
47436 (grub_console_real_putchar): Call `update_cursor'.
47437 (grub_console_gotoxy): Likewise.
47438 (grub_console_cls): Set the default color when clearing the
47439 screen.
47440 (grub_console_setcursor): Implemented.
47441
47442 2007-11-03 Marco Gerards <marco@gnu.org>
47443
47444 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47445 become activate.
47446 (grub_ata_pio_write): Likewise.
47447
47448 (grub_atapi_identify): Wait after issuing an ATA command.
47449 (grub_atapi_packet): Likewise.
47450 (grub_ata_identify): Likewise.
47451 (grub_ata_readwrite): Likewise.
47452
47453 2007-11-03 Marco Gerards <marco@gnu.org>
47454
47455 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47456 (grub_ata_pio_write): Likewise.
47457 (grub_ata_readwrite): Use `grub_error', instead of
47458 returning `grub_errno'.
47459
47460 2007-11-03 Marco Gerards <marco@gnu.org>
47461
47462 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47463 grub_ata_pio_write once for every single sector, instead of for
47464 multiple sectors.
47465
47466 2007-10-31 Robert Millan <rmh@aybabtu.com>
47467
47468 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47469
47470 * conf/i386-linuxbios.rmk: New file.
47471
47472 * kern/i386/pc/hardware.c: Likewise.
47473 * term/i386/pc/at_keyboard.c: Likewise.
47474 * term/i386/pc/vga_text.c: Likewise.
47475
47476 * include/grub/i386/linuxbios/boot.h: Likewise.
47477 * include/grub/i386/linuxbios/console.h: Likewise.
47478 * include/grub/i386/linuxbios/init.h: Likewise.
47479 * include/grub/i386/linuxbios/kernel.h: Likewise.
47480 * include/grub/i386/linuxbios/loader.h: Likewise.
47481 * include/grub/i386/linuxbios/memory.h: Likewise.
47482 * include/grub/i386/linuxbios/serial.h: Likewise.
47483 * include/grub/i386/linuxbios/time.h: Likewise.
47484
47485 * kern/i386/linuxbios/init.c: Likewise.
47486 * kern/i386/linuxbios/startup.S: Likewise.
47487 * kern/i386/linuxbios/table.c: Likewise.
47488
47489 2007-10-31 Marco Gerards <marco@gnu.org>
47490
47491 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47492 (ata_mod_SOURCES): New variable.
47493 (ata_mod_CFLAGS): Likewise.
47494 (ata_mod_LDFLAGS): Likewise.
47495
47496 * disk/ata.c: New file.
47497
47498 * include/grub/disk.h (grub_disk_dev_id): Add
47499 `GRUB_DISK_DEV_ATA_ID'.
47500
47501 2007-10-31 Robert Millan <rmh@aybabtu.com>
47502
47503 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47504 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47505
47506 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47507 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47508
47509 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47510 `<grub/types.h>'.
47511
47512 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47513
47514 2007-10-27 Robert Millan <rmh@aybabtu.com>
47515
47516 * include/grub/types.h (ULONG_MAX): Define macro.
47517
47518 2007-10-22 Robert Millan <rmh@aybabtu.com>
47519
47520 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47521 `"../realmode.S"'.
47522 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47523
47524 2007-10-22 Robert Millan <rmh@aybabtu.com>
47525
47526 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47527 (pkgdata_MODULES): Add `biosdisk.mod'.
47528 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47529 variables.
47530
47531 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47532 (grub_biosdisk_init): Replace with ...
47533 (GRUB_MOD_INIT(biosdisk)): ... this.
47534 (grub_biosdisk_fini): Replace with ...
47535 (GRUB_MOD_FINI(biosdisk)): ... this.
47536
47537 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47538 (grub_machine_init): Remove call to grub_biosdisk_init().
47539 (grub_machine_fini): Remove call to grub_machine_fini().
47540
47541 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47542
47543 2007-10-22 Robert Millan <rmh@aybabtu.com>
47544
47545 * include/grub/time.h: New file.
47546 * include/grub/i386/time.h: Likewise.
47547 * include/grub/powerpc/time.h: Likewise.
47548 * include/grub/sparc64/time.h: Likewise.
47549
47550 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47551 instances to ...
47552 (KERNEL_MACHINE_TIME_HEADER): ... this.
47553 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47554 instances to ...
47555 (KERNEL_MACHINE_TIME_HEADER): ... this.
47556 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47557 instances to ...
47558 (KERNEL_MACHINE_TIME_HEADER): ... this.
47559
47560 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47561 (grub_millisleep): New function.
47562 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47563 (grub_millisleep): New function.
47564 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47565 Remove `grub/machine/time.h' include.
47566 (grub_millisleep): New function.
47567 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47568 Remove `grub/machine/time.h' include.
47569 (grub_millisleep): New function.
47570
47571 * include/grub/misc.h (grub_div_roundup): New function.
47572
47573 * kern/misc.c: Include `<grub/time.h>'.
47574 (grub_millisleep_generic): New function.
47575
47576 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47577 Add `time.h'.
47578 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47579 Add `time.h'.
47580 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47581 `machine/time.h'. Add `time.h'.
47582 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47583
47584 2007-10-21 Robert Millan <rmh@aybabtu.com>
47585
47586 * include/grub/misc.h (grub_max): New function.
47587
47588 2007-10-21 Robert Millan <rmh@aybabtu.com>
47589
47590 * util/misc.c (grub_util_info): Call fflush() before returning.
47591
47592 2007-10-20 Robert Millan <rmh@aybabtu.com>
47593
47594 * genmk.rb (Image): Copy `extra_flags' from here ...
47595 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47596
47597 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47598 to `argc' and `args' arguments.
47599
47600 2007-10-17 Robert Millan <rmh@aybabtu.com>
47601
47602 * kern/i386/loader.S: New file.
47603
47604 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47605 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47606 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47607 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47608 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47609 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47610 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47611 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47612 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47613 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47614 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47615 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47616 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47617 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47618
47619 * kern/i386/realmode.S: New file.
47620
47621 * kern/i386/pc/startup.S (protstack): Moved from here ...
47622 * kern/i386/realmode.S (protstack)... to here.
47623 * kern/i386/pc/startup.S (gdt): Moved from here ...
47624 * kern/i386/realmode.S (gdt)... to here.
47625 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47626 * kern/i386/realmode.S (prot_to_real)... to here.
47627
47628 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47629 `kern/i386/realmode.S'.
47630
47631 2007-10-17 Robert Millan <rmh@aybabtu.com>
47632
47633 * include/grub/i386/loader.h: New file.
47634
47635 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47636 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47637 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47638 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47639 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47640 * include/grub/i386/loader.h (grub_linux_prot_size)
47641 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47642 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47643 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47644 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47645
47646 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47647
47648 2007-10-15 Robert Millan <rmh@aybabtu.com>
47649
47650 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47651 filesystem when dev->disk is unset.
47652 Do probe for filesystem even when dev->disk->has_partitions is set.
47653 In case a filesystem is found, always report it.
47654 In case it isn't, if dev->disk->has_partitions is set, report that
47655 a partition table was found instead of reporting that no filesystem
47656 could be identified.
47657
47658 2007-10-12 Robert Millan <rmh@aybabtu.com>
47659
47660 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47661 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47662
47663 * include/grub/types.h (grub_host_to_target16): New macro.
47664 (grub_host_to_target32): Likewise.
47665 (grub_host_to_target64): Likewise.
47666 (grub_target_to_host16): Likewise.
47667 (grub_target_to_host32): Likewise.
47668 (grub_target_to_host64): Likewise.
47669
47670 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47671 Renamed from to ...
47672 (GRUB_MOD_ALIGN): ...this. Update all users.
47673
47674 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47675 grub_host_to_target32.
47676 Replace grub_be_to_cpu32 with grub_target_to_host32.
47677 (load_modules): Likewise.
47678 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47679 Replace grub_be_to_cpu32 with grub_target_to_host32.
47680 Replace grub_cpu_to_be16 with grub_host_to_target16.
47681 Replace grub_cpu_to_be32 grub_host_to_target32.
47682
47683 2007-10-12 Robert Millan <rmh@aybabtu.com>
47684
47685 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47686 * util/elf/grub-mkimage.c: ... here.
47687
47688 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47689 `util/powerpc/ieee1275/grub-mkimage.c'.
47690
47691 2007-10-07 Robert Millan <rmh@aybabtu.com>
47692
47693 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47694 and make it easier to figure out.
47695 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47696 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47697 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47698 leave us with less than HEAP_MIN_SIZE total heap.
47699 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47700
47701 2007-10-03 Robert Millan <rmh@aybabtu.com>
47702
47703 * include/grub/i386/io.h: New file.
47704 * commands/i386/pc/play.c (inb): Removed.
47705 (outb): Removed.
47706 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47707 with grub_outb().
47708 * term/i386/pc/serial.c (inb): Removed.
47709 (outb): Removed.
47710 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47711 with grub_outb().
47712 * term/i386/pc/vga.c (inb): Removed.
47713 (outb): Removed.
47714 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47715 with grub_outb().
47716
47717 2007-10-02 Robert Millan <rmh@aybabtu.com>
47718
47719 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47721 Reported by Marcin Kurek.
47722
47723 2007-09-07 Robert Millan <rmh@aybabtu.com>
47724
47725 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47726 SmartFirmware version updates (as released by Sven Luther), and avoid
47727 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47728 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47729 known broken.
47730
47731 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47732
47733 From Hitoshi Ozeki:
47734 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47735 when merging two regions.
47736
47737 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47738
47739 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47740 * normal/completion.c (grub_normal_do_completion): Likewise.
47741 Reported by Hitoshi Ozeki.
47742
47743 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47744
47745 Do not use devices at boot in chainloading.
47746
47747 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47748 (boot_part_addr): Likewise.
47749 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47750 with BOOT_DRIVE and BOOT_PART_ADDR.
47751 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47752 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47753
47754 2007-08-29 Robert Millan <rmh@aybabtu.com>
47755
47756 Patch from Simon Peter <dn.tlp@gmx.net>:
47757 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47758 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47759 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47760 util/i386/pc/grub-setup.c_DEPENDENCIES.
47761 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47762 util/grub-probe.c_DEPENDENCIES.
47763 * conf/powerpc-ieee1275.rmk: Likewise.
47764
47765 2007-08-28 Robert Millan <rmh@aybabtu.com>
47766
47767 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47768 to tell grub-mkdevicemap how to name devices.
47769 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47770 feature).
47771
47772 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47773 util/i386/get_disk_name.c.
47774 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47775 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47776 util/ieee1275/get_disk_name.c.
47777
47778 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47779
47780 * DISTLIST: Add util/i386/get_disk_name.c and
47781 util/ieee1275/get_disk_name.c.
47782
47783 * util/grub-mkdevicemap.c: Replace device naming logic with
47784 grub_util_get_disk_name() calls.
47785
47786 2007-08-20 Robert Millan <rmh@aybabtu.com>
47787
47788 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47789 (so that it works for both plural and singular quantities).
47790
47791 2007-08-05 Robert Millan <rmh@aybabtu.com>
47792
47793 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47794 so that [xz] isn't taken into account when determining order.
47795
47796 2007-08-02 Marco Gerards <marco@gnu.org>
47797
47798 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47799 `include/multiboot2.h', `include/grub/elfload.h',
47800 `include/multiboot.h', `include/grub/multiboot.h',
47801 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47802 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47803 `kern/elf.c', `loader/multiboot_loader.c',
47804 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47805 `loader/i386/pc/multiboot2.c',
47806 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47807 `util/i386/pc/grub-mkrescue.in'. Remove
47808 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47809 `include/grub/i386/pc/util/biosdisk.h' and
47810 `include/grub/powerpc/ieee1275/multiboot.h'.
47811
47812 2007-08-02 Bean <bean123ch@gmail.com>
47813
47814 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47815 (ntfs_mod_SOURCES): New variable.
47816 (ntfs_mod_CFLAGS): Likewise.
47817 (ntfs_mod_LDFLAGS): Likewise.
47818
47819 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47820 (grub_probe_SOURCES): Likewise.
47821 (grub_emu_SOURCES): Likewise.
47822
47823 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47824 (grub_emu_SOURCES): Likewise.
47825
47826 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47827 (grub_emu_SOURCES): Likewise.
47828
47829 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47830
47831 * fs/ntfs.c: New file.
47832
47833 2007-08-02 Bean <bean123ch@gmail.com>
47834
47835 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47836
47837 * file.h (grub_file): Likewise.
47838
47839 * fshelp.h (grub_fshelp_read_file): Likewise.
47840
47841 * util/i386/pc/grub-setup.c (setup): Likewise.
47842 (save_first_sector): Likewise.
47843 (save_blocklists): Likewise.
47844
47845 * fs/affs.c (grub_affs_read_file): Likewise.
47846
47847 * fs/ext2.c (grub_ext2_read_file): Likewise.
47848
47849 * fs/fat.c (grub_fat_read_data): Likewise.
47850
47851 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47852
47853 * fs/hfs.c (grub_hfs_read_file): Likewise.
47854
47855 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47856
47857 * fs/jfs.c (grub_jfs_read_file): Likewise.
47858
47859 * fs/minix.c (grub_minix_read_file): Likewise.
47860
47861 * fs/sfs.c (grub_sfs_read_file): Likewise.
47862
47863 * fs/ufs.c (grub_ufs_read_file): Likewise.
47864
47865 * fs/xfs.c (grub_xfs_read_file): Likewise.
47866
47867 * command/blocklist.c (read_blocklist): Likewise.
47868 (print_blocklist): Likewise.
47869
47870 2007-08-02 Marco Gerards <marco@gnu.org>
47871
47872 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47873 `util/hostfs.c'.
47874
47875 * disk/host.c: New file.
47876
47877 * util/hostfs.c: Likewise.
47878
47879 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47880 return `GRUB_ERR_BAD_FS'.
47881 * fs/sfs.c (grub_sfs_mount): Likewise.
47882 * fs/xfs.c (grub_xfs_mount): Likewise.
47883
47884 * include/grub/disk.h (enum grub_disk_dev_id): Add
47885 `GRUB_DISK_DEVICE_HOST_ID'.
47886
47887 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47888
47889 2007-07-24 Jerone Young <jerone@gmail.com>
47890
47891 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47892 modules for compilation.
47893 * conf/powerpc-ieee1275.rmk: Likewise.
47894
47895 * include/multiboot.h: Move multiboot definitions to one file. Rename
47896 many definitions to not get grub specific.
47897 * include/multiboot2.h: Create header with multiboot 2 definitions.
47898 * include/grub/multiboot.h: Header for grub specific function
47899 prototypes and definitions.
47900 * include/grub/multiboot2.h: Likewise.
47901 * include/grub/multiboot_loader.h: Likewise.
47902 * include/grub/i386/pc/multiboot.h: Removed.
47903 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47904
47905 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47906 and 2 to allow for one multiboot and module commands.
47907 * loader/multiboot2.c: Add multiboot2 functionality.
47908 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47909 and definition names.
47910 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47911 2 functions.
47912 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47913 ieee1275 specific multiboot2 code.
47914
47915 * kern/i386/pc/startup.S: Change headers and definition names for
47916 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47917
47918 2007-07-22 Robert Millan <rmh@aybabtu.com>
47919
47920 * geninitheader.sh: Process file specified in first parameter rather
47921 than hardcoding grub_modules_init.lst.
47922 * geninit.sh: Likewise. Also, construct header name dynamically rather
47923 than hardcoding grub_modules_init.h.
47924
47925 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47926 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47927 grub_probe_init.[ch] and grub_setup_init.[ch].
47928
47929 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47930 grub_modules_init.h with grub_emu_init.h.
47931 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47932 grub_probe_init.[ch] files.
47933 * conf/i386-efi.rmk: Likewise.
47934 * conf/i386-pc.rmk: Likewise.
47935 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47936 grub_setup_init.[ch] files.
47937
47938 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47939 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47940 to initialize modules rather than a list of hardcoded functions.
47941 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47942 grub_init_all() to initialize modules rather than a list of hardcoded
47943 functions.
47944
47945 2007-07-22 Robert Millan <rmh@aybabtu.com>
47946
47947 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47948 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47949
47950 2007-07-22 Robert Millan <rmh@aybabtu.com>
47951
47952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47953 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47954 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47955 flag when running on SmartFirmware.
47956 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47957 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47958 was set.
47959
47960 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47961 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47962 rather than decreasing it.
47963
47964 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47965 there's not enough space to do it, fail in the same way as when it
47966 can't be done because there are no partitions.
47967
47968 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47969 when nvsetenv failed.
47970
47971 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47972
47973 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47974 because this rule is automatically generated.
47975 (grub-mkrescue): Removed for the same reason as above.
47976
47977 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47978
47979 Migrate to GNU General Public License Version 3.
47980
47981 * COPYING: Replaced with the plain text version of GPLv3.
47982
47983 * config.guess: Updated from gnulib.
47984 * config.sub: Likewise.
47985
47986 * geninit.sh: Output a GPLv3 copyright notice.
47987 * geninitheader.sh: Likewise.
47988 * genmodsrc.sh: Likewise.
47989 * gensymlist.sh.in: Likewise.
47990
47991 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47992 * boot/i386/pc/diskboot.S: Likewise.
47993 * boot/i386/pc/pxeboot.S: Likewise.
47994 * commands/blocklist.c: Likewise.
47995 * commands/boot.c: Likewise.
47996 * commands/cat.c: Likewise.
47997 * commands/cmp.c: Likewise.
47998 * commands/configfile.c: Likewise.
47999 * commands/echo.c: Likewise.
48000 * commands/help.c: Likewise.
48001 * commands/ls.c: Likewise.
48002 * commands/search.c: Likewise.
48003 * commands/terminal.c: Likewise.
48004 * commands/test.c: Likewise.
48005 * commands/videotest.c: Likewise.
48006 * commands/i386/cpuid.c: Likewise.
48007 * commands/i386/pc/halt.c: Likewise.
48008 * commands/i386/pc/play.c: Likewise.
48009 * commands/i386/pc/reboot.c: Likewise.
48010 * commands/i386/pc/vbeinfo.c: Likewise.
48011 * commands/i386/pc/vbetest.c: Likewise.
48012 * commands/ieee1275/halt.c: Likewise.
48013 * commands/ieee1275/reboot.c: Likewise.
48014 * commands/ieee1275/suspend.c: Likewise.
48015 * disk/loopback.c: Likewise.
48016 * disk/lvm.c: Likewise.
48017 * disk/raid.c: Likewise.
48018 * disk/efi/efidisk.c: Likewise.
48019 * disk/i386/pc/biosdisk.c: Likewise.
48020 * disk/ieee1275/ofdisk.c: Likewise.
48021 * font/manager.c: Likewise.
48022 * fs/affs.c: Likewise.
48023 * fs/ext2.c: Likewise.
48024 * fs/fat.c: Likewise.
48025 * fs/fshelp.c: Likewise.
48026 * fs/hfs.c: Likewise.
48027 * fs/hfsplus.c: Likewise.
48028 * fs/iso9660.c: Likewise.
48029 * fs/jfs.c: Likewise.
48030 * fs/minix.c: Likewise.
48031 * fs/sfs.c: Likewise.
48032 * fs/ufs.c: Likewise.
48033 * fs/xfs.c: Likewise.
48034 * hello/hello.c: Likewise.
48035 * include/grub/acorn_filecore.h: Likewise.
48036 * include/grub/arg.h: Likewise.
48037 * include/grub/bitmap.h: Likewise.
48038 * include/grub/boot.h: Likewise.
48039 * include/grub/cache.h: Likewise.
48040 * include/grub/device.h: Likewise.
48041 * include/grub/disk.h: Likewise.
48042 * include/grub/dl.h: Likewise.
48043 * include/grub/elfload.h: Likewise.
48044 * include/grub/env.h: Likewise.
48045 * include/grub/err.h: Likewise.
48046 * include/grub/file.h: Likewise.
48047 * include/grub/font.h: Likewise.
48048 * include/grub/fs.h: Likewise.
48049 * include/grub/fshelp.h: Likewise.
48050 * include/grub/gzio.h: Likewise.
48051 * include/grub/hfs.h: Likewise.
48052 * include/grub/kernel.h: Likewise.
48053 * include/grub/loader.h: Likewise.
48054 * include/grub/lvm.h: Likewise.
48055 * include/grub/misc.h: Likewise.
48056 * include/grub/mm.h: Likewise.
48057 * include/grub/net.h: Likewise.
48058 * include/grub/normal.h: Likewise.
48059 * include/grub/parser.h: Likewise.
48060 * include/grub/partition.h: Likewise.
48061 * include/grub/pc_partition.h: Likewise.
48062 * include/grub/raid.h: Likewise.
48063 * include/grub/rescue.h: Likewise.
48064 * include/grub/script.h: Likewise.
48065 * include/grub/setjmp.h: Likewise.
48066 * include/grub/symbol.h: Likewise.
48067 * include/grub/term.h: Likewise.
48068 * include/grub/terminfo.h: Likewise.
48069 * include/grub/tparm.h: Likewise.
48070 * include/grub/types.h: Likewise.
48071 * include/grub/video.h: Likewise.
48072 * include/grub/efi/api.h: Likewise.
48073 * include/grub/efi/chainloader.h: Likewise.
48074 * include/grub/efi/console.h: Likewise.
48075 * include/grub/efi/console_control.h: Likewise.
48076 * include/grub/efi/disk.h: Likewise.
48077 * include/grub/efi/efi.h: Likewise.
48078 * include/grub/efi/pe32.h: Likewise.
48079 * include/grub/efi/time.h: Likewise.
48080 * include/grub/i386/linux.h: Likewise.
48081 * include/grub/i386/setjmp.h: Likewise.
48082 * include/grub/i386/types.h: Likewise.
48083 * include/grub/i386/efi/kernel.h: Likewise.
48084 * include/grub/i386/efi/loader.h: Likewise.
48085 * include/grub/i386/efi/time.h: Likewise.
48086 * include/grub/i386/pc/biosdisk.h: Likewise.
48087 * include/grub/i386/pc/boot.h: Likewise.
48088 * include/grub/i386/pc/chainloader.h: Likewise.
48089 * include/grub/i386/pc/console.h: Likewise.
48090 * include/grub/i386/pc/init.h: Likewise.
48091 * include/grub/i386/pc/kernel.h: Likewise.
48092 * include/grub/i386/pc/loader.h: Likewise.
48093 * include/grub/i386/pc/memory.h: Likewise.
48094 * include/grub/i386/pc/multiboot.h: Likewise.
48095 * include/grub/i386/pc/serial.h: Likewise.
48096 * include/grub/i386/pc/time.h: Likewise.
48097 * include/grub/i386/pc/vbe.h: Likewise.
48098 * include/grub/i386/pc/vbeblit.h: Likewise.
48099 * include/grub/i386/pc/vbefill.h: Likewise.
48100 * include/grub/i386/pc/vbeutil.h: Likewise.
48101 * include/grub/i386/pc/vga.h: Likewise.
48102 * include/grub/ieee1275/ieee1275.h: Likewise.
48103 * include/grub/ieee1275/ofdisk.h: Likewise.
48104 * include/grub/powerpc/libgcc.h: Likewise.
48105 * include/grub/powerpc/setjmp.h: Likewise.
48106 * include/grub/powerpc/types.h: Likewise.
48107 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48108 * include/grub/powerpc/ieee1275/console.h: Likewise.
48109 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48110 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48111 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48112 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48113 * include/grub/powerpc/ieee1275/time.h: Likewise.
48114 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48115 * include/grub/sparc64/libgcc.h: Likewise.
48116 * include/grub/sparc64/setjmp.h: Likewise.
48117 * include/grub/sparc64/types.h: Likewise.
48118 * include/grub/sparc64/ieee1275/console.h: Likewise.
48119 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48120 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48121 * include/grub/sparc64/ieee1275/time.h: Likewise.
48122 * include/grub/util/biosdisk.h: Likewise.
48123 * include/grub/util/getroot.h: Likewise.
48124 * include/grub/util/lvm.h: Likewise.
48125 * include/grub/util/misc.h: Likewise.
48126 * include/grub/util/raid.h: Likewise.
48127 * include/grub/util/resolve.h: Likewise.
48128 * io/gzio.c: Likewise.
48129 * kern/device.c: Likewise.
48130 * kern/disk.c: Likewise.
48131 * kern/dl.c: Likewise.
48132 * kern/elf.c: Likewise.
48133 * kern/env.c: Likewise.
48134 * kern/err.c: Likewise.
48135 * kern/file.c: Likewise.
48136 * kern/fs.c: Likewise.
48137 * kern/loader.c: Likewise.
48138 * kern/main.c: Likewise.
48139 * kern/misc.c: Likewise.
48140 * kern/mm.c: Likewise.
48141 * kern/parser.c: Likewise.
48142 * kern/partition.c: Likewise.
48143 * kern/rescue.c: Likewise.
48144 * kern/term.c: Likewise.
48145 * kern/efi/efi.c: Likewise.
48146 * kern/efi/init.c: Likewise.
48147 * kern/efi/mm.c: Likewise.
48148 * kern/i386/dl.c: Likewise.
48149 * kern/i386/efi/init.c: Likewise.
48150 * kern/i386/efi/startup.S: Likewise.
48151 * kern/i386/pc/init.c: Likewise.
48152 * kern/i386/pc/lzo1x.S: Likewise.
48153 * kern/i386/pc/startup.S: Likewise.
48154 * kern/ieee1275/ieee1275.c: Likewise.
48155 * kern/powerpc/cache.S: Likewise.
48156 * kern/powerpc/dl.c: Likewise.
48157 * kern/powerpc/ieee1275/cmain.c: Likewise.
48158 * kern/powerpc/ieee1275/crt0.S: Likewise.
48159 * kern/powerpc/ieee1275/init.c: Likewise.
48160 * kern/powerpc/ieee1275/openfw.c: Likewise.
48161 * kern/sparc64/cache.S: Likewise.
48162 * kern/sparc64/dl.c: Likewise.
48163 * kern/sparc64/ieee1275/init.c: Likewise.
48164 * kern/sparc64/ieee1275/openfw.c: Likewise.
48165 * loader/efi/chainloader.c: Likewise.
48166 * loader/efi/chainloader_normal.c: Likewise.
48167 * loader/i386/efi/linux.c: Likewise.
48168 * loader/i386/efi/linux_normal.c: Likewise.
48169 * loader/i386/pc/chainloader.c: Likewise.
48170 * loader/i386/pc/chainloader_normal.c: Likewise.
48171 * loader/i386/pc/linux.c: Likewise.
48172 * loader/i386/pc/linux_normal.c: Likewise.
48173 * loader/i386/pc/multiboot.c: Likewise.
48174 * loader/i386/pc/multiboot_normal.c: Likewise.
48175 * loader/powerpc/ieee1275/linux.c: Likewise.
48176 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48177 * normal/arg.c: Likewise.
48178 * normal/cmdline.c: Likewise.
48179 * normal/command.c: Likewise.
48180 * normal/completion.c: Likewise.
48181 * normal/execute.c: Likewise.
48182 * normal/function.c: Likewise.
48183 * normal/lexer.c: Likewise.
48184 * normal/main.c: Likewise.
48185 * normal/menu.c: Likewise.
48186 * normal/menu_entry.c: Likewise.
48187 * normal/misc.c: Likewise.
48188 * normal/parser.y: Likewise.
48189 * normal/script.c: Likewise.
48190 * normal/i386/setjmp.S: Likewise.
48191 * normal/powerpc/setjmp.S: Likewise.
48192 * normal/sparc64/setjmp.S: Likewise.
48193 * partmap/acorn.c: Likewise.
48194 * partmap/amiga.c: Likewise.
48195 * partmap/apple.c: Likewise.
48196 * partmap/gpt.c: Likewise.
48197 * partmap/pc.c: Likewise.
48198 * partmap/sun.c: Likewise.
48199 * term/gfxterm.c: Likewise.
48200 * term/terminfo.c: Likewise.
48201 * term/efi/console.c: Likewise.
48202 * term/i386/pc/console.c: Likewise.
48203 * term/i386/pc/serial.c: Likewise.
48204 * term/i386/pc/vesafb.c: Likewise.
48205 * term/i386/pc/vga.c: Likewise.
48206 * term/ieee1275/ofconsole.c: Likewise.
48207 * util/biosdisk.c: Likewise.
48208 * util/console.c: Likewise.
48209 * util/genmoddep.c: Likewise.
48210 * util/getroot.c: Likewise.
48211 * util/grub-emu.c: Likewise.
48212 * util/grub-mkdevicemap.c: Likewise.
48213 * util/grub-probe.c: Likewise.
48214 * util/lvm.c: Likewise.
48215 * util/misc.c: Likewise.
48216 * util/raid.c: Likewise.
48217 * util/resolve.c: Likewise.
48218 * util/update-grub.in: Likewise.
48219 * util/update-grub_lib.in: Likewise.
48220 * util/grub.d/00_header.in: Likewise.
48221 * util/grub.d/10_hurd.in: Likewise.
48222 * util/grub.d/10_linux.in: Likewise.
48223 * util/i386/efi/grub-install.in: Likewise.
48224 * util/i386/efi/grub-mkimage.c: Likewise.
48225 * util/i386/pc/grub-install.in: Likewise.
48226 * util/i386/pc/grub-mkimage.c: Likewise.
48227 * util/i386/pc/grub-mkrescue.in: Likewise.
48228 * util/i386/pc/grub-setup.c: Likewise.
48229 * util/i386/pc/misc.c: Likewise.
48230 * util/powerpc/ieee1275/grub-install.in: Likewise.
48231 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48232 * util/powerpc/ieee1275/misc.c: Likewise.
48233 * video/bitmap.c: Likewise.
48234 * video/video.c: Likewise.
48235 * video/i386/pc/vbe.c: Likewise.
48236 * video/i386/pc/vbeblit.c: Likewise.
48237 * video/i386/pc/vbefill.c: Likewise.
48238 * video/i386/pc/vbeutil.c: Likewise.
48239 * video/readers/tga.c: Likewise.
48240
48241 2007-07-02 Robert Millan <rmh@aybabtu.com>
48242
48243 * conf/i386-efi.rmk: Replace obsolete reference to
48244 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48245 with util/getroot.c.
48246 * conf/powerpc-ieee1275.rmk: Likewise.
48247 * conf/sparc64-ieee1275.rmk: Likewise.
48248
48249 * util/grub-emu.c (main): Fix unchecked pointer handling.
48250
48251 2007-07-02 Robert Millan <rmh@aybabtu.com>
48252
48253 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48254 invocation to fail, in order to support partition-less media.
48255
48256 * util/i386/pc/grub-install.in: Likewise.
48257
48258 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48259 which fs or partmap modules are needed (akin to its sister scripts).
48260
48261 Also use grub-probe to get rid of unportable /proc/mounts check.
48262
48263 Print the same informational message that the other scripts do, before
48264 exiting.
48265
48266 2007-06-23 Robert Millan <rmh@aybabtu.com>
48267
48268 * util/update-grub_lib.in (font_path): New function. Determine whether
48269 a font file can be found and, if so, echo the GRUB path to it.
48270
48271 * util/update-grub.in: Handle multiple terminals depending on user
48272 input, platform availability and font file presence. Propagate
48273 variables of our findings to /etc/grub.d/ children.
48274
48275 * util/grub.d/00_header.in: Handle multiple terminals, based on
48276 environment setup by update-grub.
48277
48278 2007-06-23 Robert Millan <rmh@aybabtu.com>
48279
48280 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48281
48282 2007-06-21 Robert Millan <rmh@aybabtu.com>
48283
48284 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48285 indicate end of data section in kernel image.
48286 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48287 GRUB_KERNEL_MACHINE_DATA_END.
48288
48289 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48290 space for it.
48291 * kern/i386/efi/startup.S: Likewise.
48292
48293 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48294 during image generation. Implement --prefix option to override this
48295 patch.
48296 * util/i386/efi/grub-mkimage.c: Likewise.
48297
48298 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48299 code to make path relative to its root into a separate function.
48300
48301 * util/i386/pc/grub-install.in: Use newly provided
48302 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48303 pass the result to grub-install --prefix.
48304
48305 2007-06-13 Robert Millan <rmh@aybabtu.com>
48306
48307 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48308 DEFAULT_DEVICE_MAP.
48309 * util/grub-emu.c: Use above definitions from misc.h instead of
48310 defining them.
48311 * util/grub-mkdevicemap.c: Likewise.
48312 * util/i386/pc/grub-setup.c: Likewise.
48313 * util/grub-probe.c: Likewise.
48314 (probe): Abort with grub_util_error() when either
48315 grub_guess_root_device or grub_util_get_grub_dev fails.
48316
48317 2007-06-12 Robert Millan <rmh@aybabtu.com>
48318
48319 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48320 "pager" assignment.
48321 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48322 "pcdata".
48323 * util/grub-probe.c (probe): Likewise for "drive_name".
48324
48325 2007-06-11 Robert Millan <rmh@aybabtu.com>
48326
48327 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48328 not just the cdrom one.
48329
48330 2007-06-11 Robert Millan <rmh@aybabtu.com>
48331
48332 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48333 Add --pkglibdir=DIR option to override pkglibdir.
48334 Mention --image-type=TYPE in help output.
48335 Fix --grub-mkimage (it was a no-op).
48336 Abort gracefully when no parameter is given.
48337
48338 2007-06-11 Robert Millan <rmh@aybabtu.com>
48339
48340 * util/i386/pc/grub-mkrescue.in: New file.
48341 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48342 * Makefile.in: Handle bin_SCRIPTS.
48343
48344 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48345
48346 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48347 list of video modes.
48348
48349 2007-06-06 Robert Millan <rmh@aybabtu.com>
48350
48351 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48352 file doesn't exist, or if it is in a filesystem grub can't read.
48353
48354 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48355 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48356 header comment to fit in 80 columns when the variables are resolved.
48357
48358 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48359 could be identified by update-grub. Remove redundant check for
48360 unifont.pff existence (since convert_system_path_to_grub_path now
48361 handles that).
48362
48363 2007-06-04 Robert Millan <rmh@aybabtu.com>
48364
48365 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48366
48367 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48368
48369 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48370
48371 2007-06-04 Robert Millan <rmh@aybabtu.com>
48372
48373 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48374
48375 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48376 grub_apple_partition_map_fini.
48377
48378 * util/biosdisk.c
48379 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48380 to access >2 TiB disks).
48381
48382 Print disk->total_sectors with %llu instead of %lu, since this
48383 variable is always 64-bit (prevents wrong disk size from being displayed
48384 on either >2 TiB disk or big-endian CPU).
48385
48386 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48387 into a generic case that supports all (sane) partition maps.
48388
48389 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48390 breaks big-endian.
48391
48392 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48393 and grub_apple_partition_map_fini() after that.
48394
48395 2007-06-01 Robert Millan <rmh@aybabtu.com>
48396
48397 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48398
48399 * util/grub.d/00_header.in: Only enable gfxterm when
48400 convert_system_path_to_grub_path() succeeds.
48401
48402 2007-05-20 Robert Millan <rmh@aybabtu.com>
48403
48404 * util/update-grub_lib.in: New file.
48405 * DISTLIST: Add update-grub_lib.in.
48406 * conf/common.rmk: Generate update-grub_lib and install it in
48407 $(lib_DATA).
48408 * Makefile.in: Add install routine for $(lib_DATA).
48409
48410 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48411 function provided by update-grub_lib to support arbitrary paths of
48412 unifont.pff.
48413 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48414 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48415
48416 2007-05-19 Robert Millan <rmh@aybabtu.com>
48417
48418 * commands/i386/cpuid.c: New module.
48419 * DISTLIST: Add it.
48420 * conf/i386-efi.rmk: Enable cpuid.mod.
48421 * conf/i386-pc.rmk: Likewise.
48422
48423 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48424
48425 * kern/disk.c (grub_disk_read): Check return value of
48426 grub_realloc().
48427
48428 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48429
48430 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48431 arrays.
48432 * disk/raid.c (grub_raid_open): Likewise.
48433
48434 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48435
48436 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48437 stack instead of on the heap.
48438
48439 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48440 before doing a read on it.
48441
48442 * configure.ac: Only use -fno-stack-protector for the target
48443 environment.
48444
48445 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48446
48447 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48448 __attribute_ ((unused)) to mode_type argument.
48449
48450 * util/getroot.c (grub_guess_root_device): Fix #endif.
48451
48452 * kern/misc.c (memcmp): Fix prototype.
48453
48454 * include/grub/partition.h [GRUB_UTIL]
48455 (grub_gpt_partition_map_init): Add prototype.
48456 (grub_gpt_partition_map_fini): Likewise.
48457
48458 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48459 at the right place.
48460
48461 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48462 (grub_fat_read_data): Likewise.
48463 (grub_fat_find_dir): Likewise.
48464
48465 * font/manager.c (find_glyph): Make table a const.
48466 (grub_font_get_glyph): Remove bitmap from if statement.
48467
48468 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48469
48470 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48471 code, first search for device in /dev/mapper, then in /dev.
48472 (grub_util_get_grub_dev): New function.
48473 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48474 prototype.
48475 * util/grub-probe.c (probe): Remove check for RAID, call
48476 grub_util_get_grub_dev() instead of
48477 grub_util_biosdisk_get_grub_dev().
48478 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48479 grub_util_biosdisk_get_grub_dev().
48480 * util/i386/pc/grub-setup.c (main): Likewise.
48481
48482 2007-05-16 Robert Millan <rmh@aybabtu.com>
48483
48484 * DISTLIST: Update for the latest changes.
48485 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48486 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48487 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48488 grub/util/biosdisk.h.
48489 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48490 grub/util/biosdisk.h.
48491
48492 2007-05-16 Robert Millan <rmh@aybabtu.com>
48493
48494 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48495
48496 2007-05-16 Robert Millan <rmh@aybabtu.com>
48497
48498 * util/i386/efi/grub-install.in: New.
48499 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48500 newly added grub-install.
48501 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48502 include.
48503 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48504 grub/util/biosdisk.h.
48505 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48506 grub/util/biosdisk.h.
48507
48508 2007-05-16 Robert Millan <rmh@aybabtu.com>
48509
48510 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48511 * include/grub/util/biosdisk.h: ... here.
48512 * util/i386/pc/biosdisk.c: Moved to ...
48513 * util/biosdisk.c: ... here.
48514 * util/i386/pc/getroot.c: Moved to ...
48515 * util/getroot.c: ... here.
48516 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48517 * util/grub-mkdevicemap.c: ... here.
48518 * util/i386/pc/grub-probe.c: Moved to ...
48519 * util/grub-probe.c: ... here.
48520
48521 2007-05-15 Robert Millan <rmh@aybabtu.com>
48522
48523 * util/update-grub.in: Remove duplicated line in grub.cfg header
48524 message.
48525
48526 2007-05-13 Robert Millan <rmh@aybabtu.com>
48527
48528 * util/update-grub.in: Fix a few assumptions about the devices holding
48529 /, /boot and /boot/grub being the same.
48530 * util/grub.d/00_header.in: Likewise.
48531 * util/grub.d/10_hurd.in: Likewise.
48532 * util/grub.d/10_linux.in: Likewise.
48533
48534 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48535 patterns. Use that to define the `.old' suffix as older than `'.
48536
48537 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48538
48539 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48540 the grub.cfg header message.
48541
48542 2007-05-11 Robert Millan <rmh@aybabtu.com>
48543
48544 * util/update-grub.in: Create device.map if it doesn't already exist,
48545 before attempting to run grub-probe.
48546 Check for grub-probe and grub-mkdevicemap with the same code
48547 grub-install is using.
48548 Remove test mode.
48549
48550 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48551
48552 * Makefile.in: Add the datarootdir autoconf variable.
48553
48554 2007-05-09 Robert Millan <rmh@aybabtu.com>
48555
48556 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48557 fail gracefully if dev->disk->partition == NULL.
48558
48559 2007-05-07 Robert Millan <rmh@aybabtu.com>
48560
48561 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48562 determine partition map module.
48563 * util/i386/pc/grub-install.in: Use this feature to decide which
48564 partition module to load, instead of hardcoding pc and gpt.
48565
48566 2007-05-07 Robert Millan <rmh@aybabtu.com>
48567
48568 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48569 source directory differs from build directory.
48570
48571 2007-05-05 Robert Millan <rmh@aybabtu.com>
48572
48573 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48574 initialisation.
48575
48576 2007-05-05 Robert Millan <rmh@aybabtu.com>
48577
48578 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48579
48580 2007-05-05 Robert Millan <rmh@aybabtu.com>
48581
48582 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48583 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48584
48585 2007-05-05 Robert Millan <rmh@aybabtu.com>
48586
48587 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48588 (grub_probe_SOURCES): Likewise.
48589 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48590 GPT and initialize dos_part and bsd_part accordingly.
48591 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48592 install_bsd_part.
48593 (main): Activate gpt module for use during partition identification,
48594 and deactivate it afterwards.
48595 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48596 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48597 partition identification, and deactivate it afterwards.
48598
48599 2007-05-05 Robert Millan <rmh@aybabtu.com>
48600
48601 * term/i386/pc/console.c (grub_console_fini): Call
48602 grub_term_set_current() before grub_term_unregister().
48603
48604 2007-05-04 Robert Millan <rmh@aybabtu.com>
48605
48606 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48607 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48608 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48609 and update-grub_DATA.
48610 * conf/common.rmk: Build and install update-grub components.
48611 * conf/common.mk: Regenerate.
48612 * util/update-grub.in: New. Core of update-grub.
48613 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48614 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48615 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48616 * util/grub.d/README: New. Document grub.d directory layout.
48617
48618 2007-05-01 Robert Millan <rmh@aybabtu.com>
48619
48620 * util/grub-emu.c: Move initialization functions
48621 grub_util_biosdisk_init() and grub_init_all() before
48622 grub_util_biosdisk_get_grub_dev(), which relies on them.
48623
48624 2007-04-19 Robert Millan <rmh@aybabtu.com>
48625
48626 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48627 it is used later.
48628
48629 2007-04-18 Jerone Young <jerone@gmail.com>
48630
48631 * kernel/elf.c: Add missing parenthesis for conditional statement
48632 stanza.
48633
48634 2007-04-10 Jerone Young <jerone@gmail.com>
48635
48636 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48637 continue on and look for device node with real device name.
48638
48639 2007-04-10 Jerone Young <jerone@gmail.com>
48640
48641 * configure.ac: Add argument for autoconf to use transformation
48642 ability.
48643 * Makefile.in: Add autoconf package transformation code.
48644 * util/i386/pc/grub-install.in: Likewise.
48645 * util/powerpc/ieee1275/grub-install.in: Likewise.
48646
48647 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48648
48649 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48650 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48651 (EXT2_REVISION): Likewise.
48652 (EXT2_INODE_SIZE): Likewise.
48653 (struct grub_ext2_block_group): Added a missing member
48654 "used_dirs".
48655 (grub_ext2_read_inode): Divide by the inode size in a superblock
48656 instead of 128 to obtain INODES_PER_BLOCK.
48657 Use the macro EXT2_INODE_SIZE instead of directly using
48658 SBLOCK->INODE_SIZE.
48659
48660 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48661
48662 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48663 superblock instead of the structure size to compute an
48664 offset. This fixes the problem that GRUB could not read a
48665 filesystem when inode size is different from 128-byte.
48666
48667 2007-03-05 Marco Gerards <marco@gnu.org>
48668
48669 * normal/main.c (read_config_file): When "menu" is not set, create
48670 an initial context.
48671
48672 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48673
48674 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48675 (HEAP_LIMIT): New macro.
48676 (grub_claim_heap): Claim memory up to `heaplimit'.
48677
48678 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48679
48680 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48681 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48682 (_start): Likewise.
48683 (grub_arch_modules_addr): Return address after `_end'.
48684 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48685 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48686 (add_segments): Calculate `_end' from phdr size and location.
48687 (ALIGN_UP): Moved to ...
48688 * include/grub/misc.h: here.
48689 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48690 New macro.
48691 (GRUB_IEEE1275_MODULE_BASE): Removed.
48692
48693 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48694
48695 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48696 loop boundary.
48697
48698 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48699
48700 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48701 All users updated.
48702 (grub_elf64_load_hook_t): Likewise.
48703 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48704 debug output.
48705
48706 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48707
48708 * kern/mm.c: Update copyright.
48709 (grub_mm_debug): Correct syntax error.
48710 (grub_mm_dump_free): New function.
48711 (grub_debug_free): Call `grub_free'.
48712 * include/grub/mm.h: Update copyright.
48713 (grub_mm_dump_free): Add declaration.
48714
48715 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48716
48717 * include/grub/ieee1275/ieee1275.h: Update copyright.
48718 * kern/powerpc/ieee1275/init.c: Likewise.
48719 * kern/powerpc/ieee1275/openfw.c: Likewise.
48720
48721 * loader/powerpc/ieee1275/linux.c: Likewise.
48722 * include/grub/elfload.h: Likewise.
48723 * kern/elf.c: Likewise.
48724 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48725 callers.
48726 (grub_elf64_load): Likewise.
48727 (grub_elf32_load_segment): Move to a nested function.
48728 (grub_elf64_load_segment): Likewise.
48729
48730 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48731
48732 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48733 prototype.
48734 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48735 (grub_heap_len): Likewise.
48736 (HEAP_SIZE): New macro.
48737 (grub_claim_heap): New function.
48738 (grub_machine_init): Don't claim heap directly. Call
48739 `grub_claim_heap'.
48740 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48741 (grub_available_iterate): New function.
48742
48743 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48744
48745 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48746 * configure.ac: Use it for testing the HOST and TARGET compilers.
48747
48748 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48749
48750 * Makefile.in (enable_grub_emu): New variable.
48751 * configure.ac (--enable-grub-emu): New option.
48752 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48753 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48754 * conf/i386-pc.rmk: Likewise.
48755 * conf/powerpc-ieee1275.rmk: Likewise.
48756 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48757
48758 2006-12-12 Marco Gerards <marco@gnu.org>
48759
48760 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48761
48762 * kern/env.c (grub_env_unset): Don't free the member `value' when
48763 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48764 pointer.
48765
48766 * normal/main.c (current_menu): Removed.
48767 (free_menu): Unset the `menu' environment variable.
48768 (grub_normal_menu_addentry): Make use of the environment variable
48769 `menu', instead of using the global `current_menu'. Allocate
48770 memory for the sourcecode of this entry.
48771 (read_config_file): New argument `nested', changed all callers.
48772 Only in the case of a new context, initialize a new menu. Set the
48773 `menu' environment variable.
48774 (grub_normal_execute): Don't set and unset the environment
48775 variable `menu' here anymore. Only free the menu when leaving the
48776 context.
48777
48778 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48779 leak.
48780
48781 2006-12-11 Marco Gerards <marco@gnu.org>
48782
48783 * normal/menu_entry.c (run): Fix off by one bug so the last line
48784 is executed. Move the loader check to outside the loop.
48785
48786 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48787
48788 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48789
48790 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48791
48792 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48793 the number of sectors. Reported by Andrey Shuvikov
48794 <mr_hyro@yahoo.com>.
48795
48796 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48797
48798 * kern/disk.c (grub_disk_read): When there is a read error, always
48799 try to read only the necessary data.
48800
48801 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48802 disk/raid.c.
48803 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48804 prototype.
48805 [GRUB_UTIL] (grub_raid_fini): Likewise.
48806 [GRUB_UTIL] (grub_lvm_init): Likewise.
48807 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48808 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48809 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48810 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48811 and grub_raid_fini().
48812
48813 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48814
48815 * include/grub/types.h (__unused): Rename to UNUSED.
48816 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48817 (grub_elf64_size): Likewise.
48818
48819 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48820
48821 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48822 grub_error_push and grub_error_pop in the error-handling path.
48823 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48824 length.
48825
48826 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48827
48828 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48829 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48830 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48831 (kernel_elf_SOURCES): Likewise.
48832 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48833 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48834 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48835 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48836 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48837 (elf_mod_SOURCES): New variable.
48838 (elf_mod_CFLAGS): Likewise.
48839 (elf_mod_LDFLAGS): Likewise.
48840 * include/grub/types.h (__unused): New macro.
48841 * include/grub/elfload.h: New file.
48842 * kern/elf.c: Likewise.
48843 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48844 (ELF32_LOADMASK): New macro.
48845 (ELF64_LOADMASK): Likewise.
48846 (vmlinux): Removed.
48847 (grub_linux_load32): New function.
48848 (grub_linux_load64): Likewise.
48849 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48850 Use grub_elf_t instead of grub_file_t.
48851
48852 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48853
48854 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48855 `catch_result' to struct set_color_args.
48856
48857 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48858
48859 * normal/menu.c: Include grub/script.h.
48860 * normal/menu_entry.c: Likewise.
48861 * include/grub/normal.h: Do not include grub/script.h.
48862
48863 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48864
48865 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48866
48867 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48868
48869 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48870 disk.
48871 (grub_disk_close): Print debug messages when closing a disk.
48872 (grub_disk_read): Print debug messages when disk read fails.
48873 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48874 filesystem type.
48875 * kern/partition.c: Include misc.h.
48876 (grub_partition_iterate): Print debug messages when detecting
48877 partition type.
48878
48879 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48880
48881 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48882 is negative.
48883 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48884
48885 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48886
48887 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48888 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48889
48890 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48891
48892 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48893 instead of sizeof(lv). Patch by Michael Guntsche.
48894
48895 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48896
48897 * disk/lvm.c: Rename VGS to VG_LIST.
48898 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48899 (grub_lvm_open): Likewise.
48900 Thanks to Michael Guntsche for finding this bug.
48901
48902 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48903
48904 * configure.ac (AC_INIT): Bumped to 1.95.
48905
48906 2006-10-14 Robert Millan <rmh@aybabtu.com>
48907
48908 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48909 with "/dev/.static/dev/md".
48910
48911 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48912
48913 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48914 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48915 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48916 DRIVE_NAME are always freed.
48917
48918 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48919 DOS_PART, as a DOS partition is counted from one instead of zero
48920 now. Reported by Robert Millan.
48921
48922 2006-10-14 Robert Millan <rmh@aybabtu.com>
48923
48924 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48925 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48926 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48927 string returned by grub_guess_root_device.
48928 * util/i386/pc/grub-setup.c: Likewise.
48929 * util/i386/pc/grub-probefs.c: Likewise.
48930
48931 * util/i386/pc/grub-probefs.c: Rename to ...
48932 * util/i386/pc/grub-probe.c: ... this.
48933 * DISTLIST: Remove grub-probefs, add grub-probe.
48934 * conf/i386-efi.rmk: Likewise.
48935 * conf/i386-pc.rmk: Likewise.
48936 * util/i386/pc/grub-install.in: Likewise.
48937
48938 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48939 choose which information we want to print.
48940
48941 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48942
48943 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48944 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48945 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48946 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48947 video/readers/tga.c and video/i386/pc/vbeutil.c.
48948
48949 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48950
48951 Added support for RAID and LVM.
48952
48953 * disk/lvm.c: New file.
48954 * disk/raid.c: Likewise.
48955 * include/grub/lvm.h: Likewise.
48956 * include/grub/raid.h: Likewise.
48957 * include/grub/util/lvm.h: Likewise.
48958 * include/grub/util/raid.h: Likewise.
48959 * util/lvm.c: Likewise.
48960 * util/raid.c: Likewise.
48961
48962 * include/grub/disk.h (grub_disk_dev_id): Add
48963 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48964 (grub_disk_get_size): New prototype.
48965 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48966 returns a partition.
48967 (grub_disk_get_size): New function.
48968
48969 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48970 verbatim if grub_install_dos_part is -2.
48971
48972 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48973 and LVM devices.
48974
48975 * util/i386/pc/grub-setup.c (setup): New argument
48976 MUST_EMBED. Force embedding of GRUB when the argument is
48977 true. Close FILE before returning.
48978 (main): Add support for RAID and LVM.
48979
48980 * conf/common.rmk: Add RAID and LVM modules.
48981 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48982 util/lvm.c.
48983 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48984
48985 * kern/misc.c (grub_strstr): New function.
48986 * include/grub/misc.h (grub_strstr): New prototype.
48987
48988 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48989
48990 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48991
48992 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48993
48994 * kern/misc.c (grub_strtoull): Guess the base only if not
48995 specified.
48996
48997 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48998
48999 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49000 PowerMac support.
49001
49002 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49003
49004 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49005
49006 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49007 Remove `flags' argument. All callers changed.
49008 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49009 (IEEE1275_IHANDLE_INVALID): New variable.
49010 (IEEE1275_CELL_INVALID): New variable.
49011 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49012 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49013 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49014 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49015 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49016 codes from Open Firmware. All callers updated.
49017 (grub_ieee1275_next_property): Directly return Open Firmware return
49018 code.
49019 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49020 Standardize error checking from `grub_ieee1275_get_property'.
49021 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49022 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49023
49024 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49025
49026 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49027 `instance_to_package_args' to `instance_to_path_args'.
49028
49029 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49030 `grub_ieee1275_chosen'.
49031
49032 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49033 `grub_ieee1275_interpret'.
49034
49035 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49036
49037 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49038
49039 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49040
49041 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49042 (__cmpdi): Likewise.
49043
49044 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49045 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49046 `grub_ssize_t'.
49047
49048 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49049
49050 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49051 to type `grub_ssize_t'.
49052 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49053
49054 2006-09-22 Marco Gerards <marco@gnu.org>
49055
49056 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49057 newlines.
49058
49059 2006-09-22 Marco Gerards <marco@gnu.org>
49060
49061 * commands/echo.c: New file.
49062
49063 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49064
49065 * conf/common.rmk (echo_mod_SOURCES): New variable.
49066 (echo_mod_CFLAGS): Likewise.
49067 (echo_mod_LDFLAGS): Likewise.
49068
49069 2006-09-22 Marco Gerards <marco@gnu.org>
49070
49071 * normal/main.c (get_line): Malloc memory instead of using
49072 preallocated memory. Removed the arguments `cmdline' and
49073 `max_len'. Updated all callers.
49074
49075 2006-09-22 Marco Gerards <marco@gnu.org>
49076
49077 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49078 (normal_mod_DEPENDENCIES): Likewise.
49079
49080 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49081 (normal_mod_DEPENDENCIES): Likewise.
49082
49083 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49084
49085 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49086
49087 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49088 programs.
49089 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49090 (normal_mod_DEPENDENCIES): Likewise.
49091 * conf/i386-pc.mk: Regenerate.
49092 * conf/i386-efi.mk: Likewise
49093 * conf/common.mk: Likewise.
49094 * conf/powerpc-ieee1275.mk: Likewise.
49095 * conf/sparc64-ieee1275.mk: Likewise.
49096
49097 2006-09-22 Robert Millan <rmh@aybabtu.com>
49098
49099 Sync with i386 version.
49100 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49101 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49102
49103 2006-09-21 Robert Millan <rmh@aybabtu.com>
49104
49105 Import from GRUB Legacy (lib/device.c):
49106 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49107 (init_device_map) [__linux__]: Add support for I2O devices.
49108
49109 2006-09-14 Marco Gerards <marco@gnu.org>
49110
49111 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49112 `-melf_i386'.
49113
49114 2006-09-14 Robert Millan <rmh@aybabtu.com>
49115
49116 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49117 /boot/grub/*.lst.
49118
49119 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49120
49121 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49122 before adding it to device.map.
49123
49124 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49125
49126 * genmk.rb: Let GCC generate dependencies the first time it
49127 compiles a file; using the -MD option.
49128 * conf/common.mk: Regenerate.
49129 * conf/i386-pc.mk: Likewise.
49130 * conf/i386-efi.mk: Likewise.
49131 * conf/powerpc-ieee1275.mk: Likewise.
49132 * conf/sparc64-ieee1275.mk: Likewise.
49133
49134 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49135
49136 Move the prototypes of grub_setjmp and grub_longjmp to
49137 cpu/setjmp.h, so that each architecture may specify different
49138 attributes.
49139
49140 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49141 (grub_longjmp): Likewise.
49142 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49143 (grub_longjmp): Likewise.
49144 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49145 (grub_longjmp): Likewise.
49146
49147 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49148 [!GRUB_UTIL] (grub_longjmp): Removed.
49149
49150 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49151
49152 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49153 "color!" method does not return any value.
49154
49155 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49156
49157 * include/grub/bitmap.h: New file.
49158
49159 * include/grub/i386/pc/vbeutil.h: Likewise.
49160
49161 * video/bitmap.c: Likewise.
49162
49163 * video/readers/tga.c: Likewise.
49164
49165 * video/i386/pc/vbeutil.c: Likewise.
49166
49167 * commands/videotest.c: Code cleanup and updated to reflect to new
49168 video API.
49169
49170 * term/gfxterm.c: Likewise.
49171
49172 * video/video.c: Likewise.
49173
49174 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49175 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49176 (bitmap_mod_SOURCES): New entry.
49177 (bitmap_mod_CFLAGS): Likewise.
49178 (bitmap_mod_LDFLAGS): Likewise.
49179 (tga_mod_SOURCES): Likewise.
49180 (tga_mod_CFLAGS): Likewise.
49181 (tga_mod_LDFLAGS): Likewise.
49182
49183 * include/grub/video.h (grub_video_blit_operators): New enum type.
49184 (grub_video_render_target): Changed as forward declaration and moved
49185 actual definition to be video driver specific.
49186 (grub_video_adapter.blit_bitmap): Added blitting operator.
49187 (grub_video_adapter.blit_render_target): Likewise.
49188 (grub_video_blit_bitmap): Likewise.
49189 (grub_video_blit_render_target): Likewise.
49190
49191 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49192 driver specific render target definition.
49193 (grub_video_vbe_map_rgba): Added driver internal helper.
49194 (grub_video_vbe_unmap_color): Updated to use
49195 grub_video_i386_vbeblit_info.
49196 (grub_video_vbe_get_video_ptr): Likewise.
49197
49198 * include/grub/i386/pc/vbeblit.h
49199 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49200 grub_video_i386_vbeblit_info.
49201 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49202 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49203 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49204 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49205 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49206 (grub_video_i386_vbeblit_index_index): Likewise.
49207 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49208 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49209 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49210 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49211 operator.
49212 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49213 operator.
49214
49215 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49216 include/grub/i386/pc/vbeblit.h.
49217
49218 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49219 Updated to use grub_video_i386_vbeblit_info.
49220 (grub_video_i386_vbefill_R8G8B8): Likewise.
49221 (grub_video_i386_vbefill_index): Likewise.
49222 (grub_video_i386_vbefill): Added generic filler.
49223
49224 * video/i386/pc/vbefill.c: Updated to reflect changes on
49225 include/grub/i386/pc/vbefill.h.
49226
49227 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49228 grub_video_i386_vbeblit_info.
49229 (grub_video_vbe_unmap_color): Likewise.
49230 (grub_video_vbe_blit_glyph): Likewise.
49231 (grub_video_vbe_scroll): Likewise.
49232 (grub_video_vbe_draw_pixel): Removed function.
49233 (grub_video_vbe_get_pixel): Likewise.
49234 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49235 updated code to use it.
49236 (common_blitter): Added common blitter for render target and bitmap.
49237 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49238 (grub_video_vbe_blit_render_target): Likewise.
49239
49240 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49241
49242 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49243 is in text mode if there is no console control protocol instance
49244 available.
49245
49246 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49247
49248 * include/grub/video.h: Code cleanup.
49249
49250 * include/grub/i386/pc/vbe.h: Likewise.
49251
49252 * video/i386/pc/vbe.c: Likewise.
49253
49254 * video/i386/pc/vbeblit.c: Likewise.
49255
49256 * video/i386/pc/vbefill.c: Likewise.
49257
49258 * video/video.c: Likewise. Also added more comments.
49259
49260 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49261
49262 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49263 (struct grub_biosdisk_dap): Likewise.
49264
49265 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49266 linkage settings for all functions.
49267
49268 2006-07-12 Marco Gerards <marco@gnu.org>
49269
49270 * configure.ac (--enable-mm-debug): Fix typo.
49271
49272 * genkernsyms.sh.in: Use proper quoting for `CC'.
49273
49274 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49275
49276 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49277 (normal_mod_ASFLAGS): Remove "-m32".
49278
49279 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49280
49281 * util/misc.c: Include config.h.
49282 [!HAVE_MEMALIGN]: Do not include malloc.h.
49283 (grub_memalign): Use posix_memalign, if present. Then, use
49284 memalign, if present. Otherwise, emit an error.
49285
49286 * util/grub-emu.c: Do not include malloc.h.
49287
49288 * include/grub/util/misc.h: Include unistd.h. This is required for
49289 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49290 D. Eades III <hde@foobar-qux.org>.
49291
49292 * configure.ac (AC_GNU_SOURCE): Added.
49293 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49294 type.
49295
49296 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49297
49298 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49299 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49300
49301 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49302
49303 * include/grub/types.h (grub_host_addr_t): Rename to
49304 grub_target_addr_t.
49305 (grub_host_off_t): Rename to grub_target_off_t.
49306 (grub_host_size_t): Rename to grub_target_size_t.
49307 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49308 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49309
49310 * include/grub/kernel.h (struct grub_module_header): Change type
49311 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49312 (grub_module_info): Likewise.
49313
49314 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49315
49316 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49317 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49318 Velazquez <jesus.velazquez@gmail.com>.
49319
49320 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49321
49322 Count partitions from 1 instead of 0 in the string representation
49323 of partitions. Still use 0-based internally.
49324
49325 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49326 (sun_partition_map_iterate): Use grub_partition_t instead of
49327 struct grub_partition *. Cast DESC->START_CYLINDER to
49328 grub_uint64_t after converting the endian.
49329 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49330 (sun_partition_map_get_name): Add 1 to P->INDEX.
49331
49332 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49333 PCDATA->DOS_PART.
49334 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49335
49336 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49337 zero instead of one.
49338 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49339 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49340
49341 * partmap/apple.c (apple_partition_map_iterate): Change the type
49342 of POS to unsigned.
49343 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49344 (apple_partition_map_get_name): Add 1 into P->INDEX.
49345
49346 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49347 of POS to unsigned.
49348 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49349 calculate the offset of a partition.
49350 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49351 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49352
49353 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49354 SECTOR to grub_disk_addr_t.
49355 (acorn_partition_map_iterate): Likewise.
49356 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49357 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49358 top.
49359 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49360
49361 * kern/i386/pc/init.c (make_install_device): Add 1 into
49362 GRUB_INSTALL_DOS_PART.
49363
49364 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49365 conditional.
49366
49367 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49368
49369 Clean up the code to support 64-bit addressing in disks and
49370 files. This change is not enough for filesystems yet.
49371
49372 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49373 type of "start" to grub_uint64_t.
49374 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49375 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49376 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49377 convert addresses.
49378
49379 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49380 to grub_disk_addr_t.
49381
49382 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49383 string.
49384
49385 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49386
49387 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49388 to char *.
49389
49390 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49391
49392 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49393
49394 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49395
49396 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49397 to grub_off_t, to detect an error from grub_file_seek.
49398 (grub_multiboot_load_elf32): Likewise.
49399
49400 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49401 maximum unsigned long value when an overflow is detected.
49402 (grub_strtoull): New function.
49403 (grub_divmod64): Likewise.
49404 (grub_lltoa): use grub_divmod64.
49405
49406 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49407 grub_disk_addr_t.
49408 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49409 the pointer to next character. Use grub_strtoull instead of
49410 grub_strtoul.
49411 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49412 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49413 respectively.
49414
49415 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49416 return value is signed.
49417 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49418 test if OFFSET is less than zero, as OFFSET is unsigned now.
49419
49420 * kern/disk.c (struct grub_disk_cache): Change the type of
49421 "sector" to grub_disk_addr_t.
49422 (grub_disk_cache_get_index): Change the type of SECTOR to
49423 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49424 unsigned after shifting.
49425 (grub_disk_cache_invalidate): Change the type of SECTOR to
49426 grub_disk_addr_t.
49427 (grub_disk_cache_unlock): Likewise.
49428 (grub_disk_cache_store): Likewise.
49429 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49430 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49431 grub_disk_addr_t and grub_uint64_t, respectively.
49432 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49433 body, as the value of OFFSET is tweaked by
49434 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49435 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49436 respectively.
49437 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49438 body, as the value of OFFSET is tweaked by
49439 grub_disk_check_range. Change the types of LEN and N to
49440 grub_size_t.
49441
49442 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49443 and "saved_offset" to grub_off_t.
49444 (test_header): Cast BUF to char *.
49445 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49446 to char *.
49447 (grub_gzio_read): Change the types of OFFSET and SIZE to
49448 grub_off_t and grub_size_t, respectively.
49449
49450 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49451 Removed.
49452 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49453 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49454 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49455 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49456 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49457
49458 * include/grub/types.h (grub_off_t): Unconditionally set to
49459 grub_uint64_t.
49460 (grub_disk_addr_t): Changed to grub_uint64_t.
49461
49462 * include/grub/partition.h (struct grub_partition): Change the
49463 types of "start", "len" and "offset" to grub_disk_addr_t,
49464 grub_uint64_t and grub_disk_addr_t, respectively.
49465 (grub_partition_get_start): Return grub_disk_addr_t.
49466 (grub_partition_get_len): Return grub_uint64_t.
49467
49468 * include/grub/misc.h (grub_strtoull): New prototype.
49469 (grub_divmod64): Likewise.
49470
49471 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49472 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49473 grub_off_t, respectively.
49474 All callers and references changed.
49475
49476 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49477 grub_size_t in "read".
49478 All callers and references changed.
49479
49480 * include/grub/file.h (struct grub_file): Change the types of
49481 "offset" and "size" to grub_off_t and grub_off_t,
49482 respectively. Change the type of SECTOR to grub_disk_addr_t in
49483 "read_hook".
49484 (grub_file_read): Change the type of LEN to grub_size_t.
49485 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49486 grub_off_t.
49487 (grub_file_size): Return grub_off_t.
49488 (grub_file_tell): Likewise.
49489 All callers and references changed.
49490
49491 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49492 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49493 "write".
49494 (struct grub_disk): Change the type of "total_sectors" to
49495 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49496 "read_hook".
49497 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49498 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49499 (grub_disk_write): Likewise.
49500 All callers and references changed.
49501
49502 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49503 char * for grub_strncmp to silence gcc.
49504 (grub_iso9660_mount): Likewise.
49505 (grub_iso9660_mount): Likewise.
49506 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49507 return statement.
49508 (grub_iso9660_iterate_dir): Likewise.
49509 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49510
49511 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49512 LEN to grub_disk_addr_t and grub_size_t, respectively.
49513
49514 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49515
49516 * fs/jfs.c (grub_jfs_read_file): Likewise.
49517
49518 * fs/minix.c (grub_jfs_read_file): Likewise.
49519
49520 * fs/sfs.c (grub_jfs_read_file): Likewise.
49521
49522 * fs/ufs.c (grub_jfs_read_file): Likewise.
49523
49524 * fs/xfs.c (grub_jfs_read_file): Likewise.
49525
49526 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49527 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49528 respectively.
49529
49530 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49531 BLKNR to -1 instead of returning GRUB_ERRNO.
49532 (grub_ext2_read_file): Change the types of SECTOR and
49533 LEN to grub_disk_addr_t and grub_size_t, respectively.
49534
49535 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49536 LEN to grub_disk_addr_t and grub_size_t, respectively.
49537
49538 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49539 grub_file_read.
49540
49541 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49542 string. Do not cast SECTOR explicitly.
49543
49544 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49545 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49546 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49547 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49548 over 2TB and LBA mode is not supported, raise an error.
49549 (get_safe_sectors): New function.
49550 (grub_biosdisk_read): Use get_safe_sectors.
49551 (grub_biosdisk_write): Likewise.
49552
49553 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49554 (grub_efidisk_write): Likewise.
49555
49556 * disk/loopback.c (delete_loopback): Cosmetic changes.
49557 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49558 correctly.
49559 (grub_loopback_open): Likewise.
49560 (grub_loopback_read): Likewise. Also, change the type of POS to
49561 grub_off_t, and fix the usage of grub_memset.
49562
49563 * commands/i386/pc/play.c: Include grub/machine/time.h.
49564
49565 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49566 print FILE->SIZE.
49567
49568 * commands/configfile.c: Include grub/env.h.
49569
49570 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49571 GRUB_ERRNO directly instead. Change the type of POS to
49572 grub_off_t. Follow the coding standard.
49573
49574 * commands/blocklist.c: Include grub/partition.h.
49575 (grub_cmd_blocklist): Return an error if the underlying device is
49576 not a disk. Take the starting sector of a partition into account,
49577 if a partition is used.
49578
49579 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49580 a length field.
49581 (lba_mode): Support 64-bit addresses.
49582 (chs_mode): Likewise.
49583 (copy_buffer): Adapted to the new offsets of a length field and a
49584 segment field.
49585 (blocklist_default_start): Allocate 64-bit space.
49586
49587 * boot/i386/pc/boot.S (force_lba): Removed.
49588 (boot_drive): Moved to under KERNEL_SECTOR.
49589 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49590 space.
49591 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49592 is useless.
49593 (lba_mode): Refactored to support a 64-bit address. More size
49594 optimization.
49595 (setup_sectors): Likewise.
49596
49597 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49598
49599 * DISTLIST: Added include/grub/i386/linux.h. Removed
49600 include/grub/i386/pc/linux.h
49601
49602 * configure.ac (AC_INIT): Bumped to 1.94.
49603
49604 * config.guess: Updated from gnulib.
49605 * config.sub: Likewise.
49606 * install-sh: Likewise.
49607 * mkinstalldirs: Likewise.
49608
49609 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49610
49611 * conf/common.rmk (grub_modules_init.lst): Depended on
49612 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49613 MODSRCFILES.
49614
49615 * genmk.rb (PModule::rule): Reverted the previous change.
49616
49617 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49618
49619 * conf/common.rmk (grub_modules_init.lst): Depends on
49620 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49621 that the target does not exist before producing.
49622 (grub_modules_init.h): Remove the target before generating.
49623 (grub_emu_init.c): Likewise.
49624
49625 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49626
49627 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49628
49629 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49630 for the target-specific tests. Make sure that we also have the
49631 up-to-date target variables for those tests.
49632
49633 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49634
49635 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49636 (PModule::rule): Likewise.
49637
49638 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49639
49640 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49641 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49642 target-specific flags should be prefixed.
49643 (PModule::rule): Likewise.
49644
49645 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49646
49647 * configure.ac (CMP): Check if cmp is available explicitly.
49648
49649 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49650
49651 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49652 (target_cpu): New variable.
49653 (pkglibdir): Use target_cpu instead of host_cpu.
49654
49655 * util/i386/pc/grub-install.in (host_cpu): Removed.
49656 (target_cpu): New variable.
49657 (pkglibdir): Use target_cpu instead of host_cpu.
49658
49659 * util/genmoddep.c: Removed.
49660
49661 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49662 instead of GRUB_HOST_SIZEOF_VOID_P.
49663 * kern/dl.c: Likewise.
49664
49665 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49666 ...
49667 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49668 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49669 (GRUB_TARGET_SIZEOF_LONG): ... this.
49670 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49671 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49672 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49673 to ...
49674 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49675 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49676 (GRUB_TARGET_SIZEOF_LONG): ... this.
49677 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49678 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49679 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49680 to ...
49681 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49682 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49683 (GRUB_TARGET_SIZEOF_LONG): ... this.
49684 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49685 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49686
49687 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49688 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49689 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49690 instead of GRUB_HOST_SIZEOF_LONG.
49691 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49692 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49693 GRUB_CPU_WORDS_BIGENDIAN.
49694 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49695 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49696 grub_host_ssize_t.
49697
49698 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49699 (genmoddep_SOURCES): Likewise.
49700 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49701 (genmoddep_SOURCES): Likewise.
49702 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49703 (genmoddep_SOURCES): Likewise.
49704 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49705 Likewise.
49706 (genmoddep_SOURCES): Likewise.
49707
49708 * genmoddep.awk: New file.
49709
49710 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49711 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49712 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49713 (PModule::rule): Likewise.
49714 (Program::rule): Likewise.
49715 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49716 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49717 respectively.
49718
49719 * configure.ac: Rewritten intensively to use host and target
49720 instead of build and host, respectively.
49721
49722 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49723 (host_cpu): Removed.
49724 (target_cpu): New variable.
49725 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49726 (BUILD_CC): Removed.
49727 (BUILD_CFLAGS): Likewise.
49728 (BUILD_CPPFLAGS): Likewise.
49729 (TARGET_CC): New variable.
49730 (TARGET_CFLAGS): Likewise.
49731 (TARGET_CPPFLAGS): Likewise.
49732 (TARGET_LDFLAGS): Likewise.
49733 (AWK): Likewise.
49734 (include): Use target_cpu instead of host_cpu.
49735 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49736
49737 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49738
49739 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49740
49741 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49742 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49743 field 'false' to 'exec_on_false'.
49744 (grub_script_create_cmdif): Renamed argument names to reflect above
49745 changes.
49746
49747 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49748
49749 * normal/script.c (grub_script_create_cmdif): Likewise.
49750
49751 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49752
49753 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49754 top.
49755 (grub_hfsplus_btree_recptr): Likewise.
49756 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49757 FILEBLOCK both to pass a block number and store next block
49758 number.
49759 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49760 overflow file correctly. Specify errors appropriately, because
49761 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49762 grub_hfsplus_btree_recptr to get the pointer to a found key.
49763 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49764 is found.
49765
49766 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49767 linux.mod.
49768 (_linux_mod_SOURCES): New variable.
49769 (_linux_mod_CFLAGS): Likewise.
49770 (_linux_mod_LDFLAGS): Likewise.
49771 (linux_mod_SOURCES): Likewise.
49772 (linux_mod_CFLAGS): Likewise.
49773 (linux_mod_LDFLAGS): Likewise.
49774
49775 * DISTLIST: Added loader/i386/efi/linux.c,
49776 loader/i386/efi/linux_normal.c and
49777 include/grub/i386/efi/loader.h.
49778
49779 * loader/i386/efi/linux.c: New file.
49780 * loader/i386/efi/linux_normal.c: Likewise.
49781 * include/grub/i386/efi/loader.h: Likewise.
49782
49783 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49784
49785 * commands/blocklist.c: New file.
49786
49787 * DISTLIST: Added commands/blocklist.c.
49788
49789 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49790 color for the background, and a darker color for the foreground.
49791 (grub_console_checkkey): Return READ_KEY.
49792 (grub_console_cls): Set the background to
49793 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49794
49795 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49796
49797 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49798 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49799
49800 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49801 prototype.
49802
49803 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49804 BG. The spec is wrong again.
49805
49806 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49807 prototype.
49808 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49809
49810 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49811 commands/blocklist.c.
49812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49813
49814 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49815 (blocklist_mod_SOURCES): New variable.
49816 (blocklist_mod_CFLAGS): Likewise.
49817 (blocklist_mod_LDFLAGS): Likewise.
49818
49819 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49820
49821 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49822 duplication.
49823 (lba_mode): Use %eax more intensively to reduce the code size.
49824
49825 2006-05-20 Marco Gerards <marco@gnu.org>
49826
49827 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49828
49829 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49830 for `menuentry'.
49831 (script): Accept leading newlines.
49832 (newlines): New rule to describe 0 or more newlines.
49833 (commands): Accept `command' with trailing newline. Fixed the
49834 order in which arguments were passed to `grub_script_add_cmd'.
49835 Accept commands separated by newlines.
49836 (function): Changed to accept newlines.
49837 (menuentry) Rewritten.
49838
49839 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49840 front of the list, instead of to the end.
49841
49842 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49843
49844 * util/i386/pc/grub-install.in (bindir): New variable.
49845 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49846 Shaver <lbgwjl@gmail.com>.
49847
49848 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49849
49850 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49851 grub/machine/linux.h
49852 * loader/i386/pc/linux.c: Likewise.
49853
49854 * include/grub/i386/pc/linux.h: Moved to ...
49855 * include/grub/i386/linux.h: ... here.
49856
49857 * include/grub/i386/linux.h (struct linux_kernel_params): New
49858 struct.
49859
49860 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49861
49862 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49863 checking.
49864 (grub_video_vbe_blit_glyph): Likewise.
49865 (grub_video_vbe_blit_bitmap): Likewise.
49866 (grub_video_vbe_blit_render_target): Likewise.
49867
49868 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49869
49870 * configure.ac (--with-platform): Properly quote the square
49871 brackets.
49872
49873 2006-05-08 Marco Gerards <marco@gnu.org>
49874
49875 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49876 this...
49877 (kernel_elf_HEADERS): ...to this. Updated all users.
49878 (grubof_symlist.c): Renamed from this...
49879 (kernel_elf_symlist.c): ...to this. Updated all users.
49880 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49881 (grubof_SOURCES): Renamed from this...
49882 (kernel_elf_SOURCES): ...to this.
49883 (grubof_HEADERS): Renamed from this...
49884 (kernel_elf_HEADERS): ...to this.
49885 (grubof_CFLAGS): Renamed from this...
49886 (kernel_elf_CFLAGS): ...to this.
49887 (grubof_ASFLAGS): Renamed from this...
49888 (kernel_elf_ASFLAGS): ...to this.
49889 (grubof_LDFLAGS): Renamed from this...
49890 (kernel_elf_LDFLAGS): ...to this.
49891
49892 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49893 this...
49894 (kernel_elf_HEADERS): ...to this. Updated all users.
49895 (grubof_symlist.c): Renamed from this...
49896 (kernel_elf_symlist.c): ...to this. Updated all users.
49897 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49898 (grubof_SOURCES): Renamed from this...
49899 (kernel_elf_SOURCES): ...to this.
49900 (grubof_HEADERS): Renamed from this...
49901 (kernel_elf_HEADERS): ...to this.
49902 (grubof_CFLAGS): Renamed from this...
49903 (kernel_elf_CFLAGS): ...to this.
49904 (grubof_ASFLAGS): Renamed from this...
49905 (kernel_elf_ASFLAGS): ...to this.
49906 (grubof_LDFLAGS): Renamed from this...
49907 (kernel_elf_LDFLAGS): ...to this.
49908
49909 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49910 `kernel.elf' instead of `grubof'.
49911
49912 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49913
49914 Add --with-platform to configure. Use pkglibdir instead of
49915 pkgdatadir. This is reported by Roger Leigh.
49916
49917 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49918 (host_vendor): Likewise.
49919 (host_os): Likewise.
49920 (pkgdatadir): Likewise.
49921 (platform): New variable.
49922 (pkglibdir): Likewise.
49923 Use PKGLIBDIR instead of PKGDATADIR.
49924
49925 * util/i386/pc/grub-install.in (datadir): Removed.
49926 (host_vendor): Likewise.
49927 (host_os): Likewise.
49928 (pkgdatadir): Likewise.
49929 (platform): New variable.
49930 (pkglibdir): Likewise.
49931 Use PKGLIBDIR instead of PKGDATADIR.
49932
49933 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49934 instead of GRUB_DATADIR.
49935 (main): Likewise.
49936 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49937 (main): Likewise.
49938 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49939 (main): Likewise.
49940
49941 * configure.ac (--with-platform): New option.
49942 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49943
49944 * Makefile.in: Include a makefile based on PLATFORM instead of
49945 HOST_VENDOR.
49946 (pkgdatadir): Not appended by the machine type.
49947 (pkglibdir): Appended by the machine type.
49948 (host_vendor): Removed.
49949 (platform): New variable.
49950 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49951 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49952 (uninstall): Likewise.
49953
49954 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49955
49956 Use the environment context in the menu. Remove the commands
49957 "default" and "timeout", and use variables instead.
49958
49959 * normal/menu.c: Include grub/env.h.
49960 (print_entry): Cast TITLE to silence gcc.
49961 (get_timeout): New function.
49962 (set_timeout): Likewise.
49963 (get_entry_number): Likewise.
49964 (run_menu): Use a default entry, a fallback entry and a timeout
49965 in the environment variables "default", "fallback" and
49966 "timeout". Also, tweak the default entry if it is not within the
49967 current menu entries.
49968 (grub_menu_run): Use a fallback entry in the environment variable
49969 "fallback".
49970
49971 * normal/main.c (read_config_file): Do not initialize
49972 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49973 NEWMENU->TIMEOUT.
49974 (grub_normal_execute): Use a data slot to store the menu.
49975
49976 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49977 fallback_entry and timeout.
49978 (struct grub_menu_list): Removed.
49979 (grub_menu_list_t): Likewise.
49980 (struct grub_context): Likewise.
49981 (grub_context_t): Likewise.
49982 (grub_context_get): Likewise.
49983 (grub_context_get_current_menu): Likewise.
49984 (grub_context_push_menu): Likewise.
49985 (grub_context_pop_menu): Likewise.
49986 (grub_default_init): Likewise.
49987 (grub_default_fini): Likewise.
49988 (grub_timeout_init): Likewise.
49989 (grub_timeout_fini): Likewise.
49990
49991 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49992 and timeout.mod.
49993 (normal_mod_SOURCES): Removed normal/context.c.
49994
49995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49996 commands/default.c, commands/timeout.c and normal/context.c.
49997 (normal_mod_SOURCES): Removed normal/context.c.
49998
49999 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50000 commands/timeout.c and normal/context.c.
50001 (normal_mod_SOURCES): Removed normal/context.c.
50002
50003 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50004 commands/default.c, commands/timeout.c and normal/context.c.
50005 (normal_mod_SOURCES): Removed normal/context.c.
50006
50007 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50008 timeout.mod.
50009 (default_mod_SOURCES): Removed.
50010 (default_mod_CFLAGS): Likewise.
50011 (default_mod_LDFLAGS): Likewise.
50012 (timeout_mod_SOURCES): Removed.
50013 (timeout_mod_CFLAGS): Likewise.
50014 (timeout_mod_LDFLAGS): Likewise.
50015
50016 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50017 normal/context.c.
50018
50019 * commands/default.c: Removed.
50020 * commands/timeout.c: Likewise.
50021 * normal/context.c: Likewise.
50022
50023 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50024
50025 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50026
50027 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50028
50029 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50030 "next" to "prev" for readability.
50031 (struct grub_env_sorted_var): New struct.
50032 (grub_env_context): Renamed to ...
50033 (initial_context): ... this.
50034 (grub_env_var_context): Renamed to ...
50035 (current_context): ... this.
50036 (grub_env_find): Look only at CURRENT_CONTEXT.
50037 (grub_env_context_open): Rewritten to copy exported variables from
50038 previous context.
50039 (grub_env_context_close): Rewritten according to the new
50040 scheme. Also, add an assertion to prevent the initial context from
50041 removed.
50042 (grub_env_insert): Removed the code for the sorted list.
50043 (grub_env_remove): Likewise.
50044 (grub_env_export): Simply mark the variable with
50045 GRUB_ENV_VAR_GLOBAL.
50046 (grub_env_set): A cosmetic change for naming consistency.
50047 (grub_env_get): Likewise.
50048 (grub_env_unset): Likewise.
50049 (grub_env_iterate): Rewritten to sort variables within this
50050 function.
50051 (grub_register_variable_hook): Fixed for naming consistency. Call
50052 grub_env_find again, only if NAME is not found at the first time.
50053 (mangle_data_slot_name): New function.
50054 (grub_env_set_data_slot): Likewise.
50055 (grub_env_get_data_slot): Likewise.
50056 (grub_env_unset_data_slot): Likewise.
50057
50058 * include/grub/env.h (grub_env_var_type): New enum.
50059 (GRUB_ENV_VAR_LOCAL): New constant.
50060 (GRUB_ENV_VAR_GLOBAL): Likewise.
50061 (GRUB_ENV_VAR_DATA): Likewise.
50062 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50063 "type".
50064 (grub_env_set): Replace VAR with NAME for consistency.
50065 (grub_register_variable_hook): Likewise.
50066 (grub_env_export): Specify the name of the argument.
50067 (grub_env_set_data_slot): New prototype.
50068 (grub_env_get_data_slot): Likewise.
50069 (grub_env_unset_data_slot): Likewise.
50070
50071 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50072
50073 Extend the loader so that GRUB can accept a loader which comes
50074 back to GRUB when a loaded image exits. Also, this change adds
50075 support for a chainloader on EFI.
50076
50077 * term/efi/console.c: Include grub/misc.h.
50078 (grub_console_checkkey): Display a scan code on the top for
50079 debugging. This will be removed once the EFI port gets stable.
50080 Correct the scan code mapping.
50081
50082 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50083 allocate memory from larger regions, in order to reduce the number
50084 of allocated regions. Otherwise, the MacOSX loader panics.
50085 (filter_memory_map): Avoid less than 1MB for compatibility with
50086 other loaders.
50087 (add_memory_regions): Allocate from the tail of a region, if
50088 possible, to avoid allocating a region near to 1MB, for the MacOSX
50089 loader.
50090
50091 * kern/efi/init.c (grub_efi_set_prefix): Specify
50092 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50093
50094 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50095 argument IMAGE_HANDLE and specify it to get a loaded image.
50096 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50097 grub_efi_get_loaded_image.
50098 (grub_efi_get_filename): Divide the length by the size of
50099 grub_efi_char16_t.
50100 (grub_efi_get_device_path): New function.
50101 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50102 the length by the size of grub_efi_char16_t for a file path device
50103 path node.
50104
50105 * kern/loader.c (grub_loader_noreturn): New variable.
50106 (grub_loader_set): Accept a new argument NORETURN. Set
50107 GRUB_LOADER_NORETURN to NORETURN.
50108 All callers changed.
50109 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50110 grub_machine_fini.
50111
50112 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50113 prototype.
50114 (grub_efi_get_loaded_image): Take an argument to specify an image
50115 handle.
50116
50117 * include/grub/loader.h (grub_loader_set): Added one more argument
50118 NORETURN.
50119
50120 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50121 instead of grub_efi_open_protocol.
50122 (grub_efidisk_get_device_name): Likewise.
50123 (grub_efidisk_close): Print a newline.
50124 (grub_efidisk_get_device_handle): Fixed to use
50125 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50126 GRUB_EFI_DEVICE_PATH_TYPE.
50127
50128 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50129 * kern/efi/efi.c (device_path_guid): ... here.
50130
50131 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50132 chain.mod.
50133 (kernel_mod_HEADERS): Added efi/disk.h.
50134 (_chain_mod_SOURCES): New variable.
50135 (_chain_mod_CFLAGS): Likewise.
50136 (_chain_mod_LDFLAGS): Likewise.
50137 (chain_mod_SOURCES): Likewise.
50138 (chain_mod_CFLAGS): Likewise.
50139 (chain_mod_LDFLAGS): Likewise.
50140
50141 * DISTLIST: Added include/grub/efi/chainloader.h,
50142 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50143
50144 * include/grub/efi/chainloader.h: New file.
50145 * loader/efi/chainloader.c: Likewise.
50146 * loader/efi/chainloader_normal.c: Likewise.
50147
50148 2006-04-30 Marco Gerards <marco@gnu.org>
50149
50150 * commands/configfile.c (grub_cmd_source): New function.
50151 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50152 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50153
50154 2006-04-30 Marco Gerards <marco@gnu.org>
50155
50156 * normal/execute.c (grub_script_execute_cmd): Change the return
50157 type to `grub_err_t'. Correctly return the error.
50158 (grub_script_execute_cmdline): In case a command line is not a
50159 command or a function, try to interpret it as an assignment.
50160
50161 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50162
50163 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50164 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50165 skip a node whose name is obviously invalid as UTF-16,
50166 i.e. contains a NUL character. Stop the iteration when the last
50167 directory entry is found. Instead of using the return value of
50168 grub_hfsplus_btree_iterate_node, store the value in RET and use
50169 it, because the iterator can be stopped by the last directory
50170 entry.
50171
50172 2006-04-30 Marco Gerards <marco@gnu.org>
50173
50174 * include/grub/env.h (grub_env_export): New prototype. Reported
50175 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50176
50177 2006-04-30 Marco Gerards <marco@gnu.org>
50178
50179 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50180 size of the extents in a catalog file record.
50181
50182 2006-04-29 Marco Gerards <marco@gnu.org>
50183
50184 * commands/configfile.c (grub_cmd_configfile): Execute the
50185 configfile within its own context.
50186
50187 * include/grub/env.h (grub_env_context_open): New prototype.
50188 (grub_env_context_close): Likewise.
50189
50190 * kern/env.c (grub_env): Removed.
50191 (grub_env_sorted): Likewise.
50192 (grub_env_context): New variable.
50193 (grub_env_var_context): Likewise.
50194 (grub_env_find): Search both the active context and the global
50195 context.
50196 (grub_env_context_open): New function.
50197 (grub_env_context_close): Likewise.
50198 (grub_env_insert): Likewise.
50199 (grub_env_remove): Likewise.
50200 (grub_env_export): Likewise.
50201 (grub_env_set): Changed to use helper functions to avoid code
50202 duplication.
50203 (grub_env_iterate): Rewritten so both the current context and the
50204 global context are being used.
50205
50206 * normal/command.c (export_command): New function.
50207 (grub_command_init): Register the `export' function.
50208
50209 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50210
50211 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50212 explicitly to suppress gcc's warnings.
50213 * fs/fat.c (grub_fat_find_dir): Likewise.
50214 (grub_fat_label): Likewise.
50215 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50216 (grub_xfs_mount): Likewise.
50217 (grub_xfs_label): Likewise.
50218 * fs/affs.c (grub_affs_mount): Likewise.
50219 (grub_affs_label): Likewise.
50220 (grub_affs_iterate_dir): Likewise.
50221 * fs/sfs.c (grub_sfs_mount): Likewise.
50222 (grub_sfs_iterate_dir): Likewise.
50223 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50224 * fs/hfs.c (grub_hfs_mount): Likewise.
50225 (grub_hfs_cmp_catkeys): Likewise.
50226 (grub_hfs_find_dir): Likewise.
50227 (grub_hfs_dir): Likewise.
50228 (grub_hfs_label): Likewise.
50229 * fs/jfs.c (grub_jfs_mount): Likewise.
50230 (grub_jfs_opendir): Likewise.
50231 (grub_jfs_getent): Likewise.
50232 (grub_jfs_lookup_symlink): Likewise.
50233 (grub_jfs_label): Likewise.
50234 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50235 (grub_hfsplus_iterate_dir): Likewise.
50236 (grub_hfsplus_btree_iterate_node): Made static.
50237
50238 * util/grub-emu.c (prefix): New variable.
50239 (grub_machine_set_prefix): New function.
50240 (main): Do not set the environment variable "prefix" here. Only
50241 set PREFIX, which is used later by grub_machine_set_prefix.
50242
50243 * include/grub/video.h: Do not include grub/symbol.h.
50244 (grub_video_register): Not exported. This symbol is not defined in
50245 the kernel.
50246 (grub_video_unregister): Likewise.
50247 (grub_video_iterate): Likewise.
50248 (grub_video_setup): Likewise.
50249 (grub_video_restore): Likewise.
50250 (grub_video_get_info): Likewise.
50251 (grub_video_get_blit_format): Likewise.
50252 (grub_video_set_palette): Likewise.
50253 (grub_video_get_palette): Likewise.
50254 (grub_video_set_viewport): Likewise.
50255 (grub_video_get_viewport): Likewise.
50256 (grub_video_map_color): Likewise.
50257 (grub_video_map_rgb): Likewise.
50258 (grub_video_map_rgba): Likewise.
50259 (grub_video_fill_rect): Likewise.
50260 (grub_video_blit_glyph): Likewise.
50261 (grub_video_blit_bitmap): Likewise.
50262 (grub_video_blit_render_target): Likewise.
50263 (grub_video_scroll): Likewise.
50264 (grub_video_swap_buffers): Likewise.
50265 (grub_video_create_render_target): Likewise.
50266 (grub_video_delete_render_target): Likewise.
50267 (grub_video_set_active_render_target): Likewise.
50268
50269 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50270 Undefined.
50271 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50272
50273 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50274 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50275 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50276 instead of $(srcdir)/genkernsyms.sh.
50277
50278 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50279 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50280 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50281 instead of $(srcdir)/genkernsyms.sh.
50282
50283 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50284 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50285 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50286 instead of $(srcdir)/genkernsyms.sh.
50287
50288 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50289 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50290 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50291 instead of $(srcdir)/genkernsyms.sh.
50292
50293 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50294 genkernsyms.sh.
50295
50296 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50297 genkernsyms.sh.
50298 (gensymlist.sh): New target.
50299 (genkernsyms.sh): Likewise.
50300
50301 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50302 genkernsyms.sh.in and gensymlist.sh.in.
50303
50304 * genkernsyms.sh: Removed.
50305 * gensymlist.sh: Likewise.
50306
50307 * genkernsyms.sh.in: New file.
50308 * gensymlist.sh.in: Likewise.
50309
50310 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50311
50312 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50313 clobber "prefix", since we may have already set it manually.
50314
50315 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50316
50317 * kern/misc.c (abort): New alias for grub_abort.
50318
50319 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50320
50321 A new machine-specific function "grub_machine_set_prefix" is
50322 defined. This is called after loading modules, so that a prefix
50323 initialization can use modules. Also, this change adds an
50324 intensive debugging feature for the memory manager via the
50325 configure option "--enable-mm-debug".
50326
50327 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50328 PART.LEN.
50329
50330 * kern/sparc64/ieee1275/init.c (abort): Removed.
50331 (grub_stop): Likewise.
50332 (grub_exit): New function.
50333 (grub_set_prefix): Renamed to ...
50334 (grub_machine_set_prefix): ... this.
50335 (grub_machine_init): Do not call grub_set_prefix.
50336
50337 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50338 (grub_machine_set_prefix): ... this.
50339 (grub_machine_init): Do not call grub_set_prefix.
50340
50341 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50342 (grub_machine_init): Do not set the prefix here.
50343
50344 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50345
50346 * kern/efi/init.c: Include grub/mm.h.
50347 (grub_efi_set_prefix): New function.
50348
50349 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50350 (grub_efi_get_filename): New function.
50351 (grub_print_device_path): Renamed to ...
50352 (grub_efi_print_device_path): ... this.
50353
50354 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50355 [MM_DEBUG] (grub_realloc): Likewise.
50356 [MM_DEBUG] (grub_free): Likewise.
50357 [MM_DEBUG] (grub_memalign): Likewise.
50358 [MM_DEBUG] (grub_mm_debug): New variable.
50359 [MM_DEBUG] (grub_debug_malloc): New function.
50360 [MM_DEBUG] (grub_debug_free): New function.
50361 [MM_DEBUG] (grub_debug_realloc): New function.
50362 [MM_DEBUG] (grub_debug_memalign): New function.
50363
50364 * kern/misc.c (grub_abort): Print a newline to distinguish
50365 the message.
50366
50367 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50368 grub_set_root_dev after loading modules. This is necessary when
50369 setting a prefix depends on modules.
50370
50371 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50372 (grub_efi_print_device_path): ... this.
50373 (grub_efi_get_filename): New prototype.
50374 (grub_efi_set_prefix): Likewise.
50375
50376 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50377 and grub/disk.h.
50378 (grub_efidisk_get_device_handle): New prototype.
50379 (grub_efidisk_get_device_name): Likewise.
50380
50381 * include/grub/mm.h: Include config.h.
50382 (MM_DEBUG): Removed.
50383 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50384 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50385 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50386 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50387 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50388 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50389 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50390 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50391 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50392
50393 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50394
50395 * disk/efi/efidisk.c: Include grub/partition.h.
50396 (iterate_child_devices): New function.
50397 (add_device): First, compare only last device path nodes, so that
50398 devices are sorted by the types.
50399 (grub_efidisk_get_device_handle): New function.
50400 (grub_efidisk_get_device_name): Likewise.
50401
50402 * configure.ac (--enable-mm-debug): New option to enable the
50403 memory manager debugging feature. This makes the binary much
50404 bigger, so is disabled by default.
50405
50406 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50407
50408 Use grub_abort instead of grub_stop, and grub_exit must be
50409 define in each architecture now. Also, this change adds support
50410 for EFI disks.
50411
50412 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50413 (grub_getkey): New function.
50414 (grub_term_get_current): Likewise.
50415
50416 * util/i386/pc/grub-setup.c: Include grub/term.h.
50417 (grub_getkey): New function.
50418 (grub_term_get_current): Likewise.
50419
50420 * util/misc.c (grub_stop): Renamed to ...
50421 (grub_exit): ... this.
50422
50423 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50424 (grub_exit): ... this.
50425 (grub_machine_init): Use grub_abort instead of abort.
50426 (grub_stop): Removed.
50427
50428 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50429 abort.
50430
50431 * kern/i386/pc/startup.S (grub_exit): New function.
50432 (cold_reboot): New label.
50433
50434 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50435 (grub_efi_init): Call grub_efidisk_init.
50436 (grub_efi_fini): Call grub_efidisk_fini.
50437
50438 * kern/efi/efi.c: Include grub/mm.h.
50439 (grub_efi_console_control_guid): Renamed to ...
50440 (console_control_guid): ... this.
50441 (grub_efi_loaded_image_guid): Renamed to ...
50442 (loaded_image_guid): ... this.
50443 (grub_efi_locate_handle): New function.
50444 (grub_efi_open_protocol): Likewise.
50445 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50446 GRUB_EFI_CONSOLE_CONTROL_GUID.
50447 (grub_efi_exit): Removed.
50448 (grub_stop): Likewise.
50449 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50450 (grub_exit): New function.
50451 (grub_print_device_path): Likewise.
50452
50453 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50454 (grub_enter_rescue_mode): Register "exit".
50455
50456 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50457 (grub_abort): New function.
50458
50459 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50460
50461 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50462
50463 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50464
50465 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50466 (grub_print_device_path): New prototype.
50467 (grub_efi_locate_handle): Likewise.
50468 (grub_efi_open_protocol): Likewise.
50469
50470 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50471 * disk/efi/efidisk.c: Likewise.
50472
50473 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50474
50475 * include/grub/efi/console_control.h
50476 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50477
50478 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50479 last 8 bytes as an array.
50480 (GRUB_EFI_DISK_IO_GUID): New macro.
50481 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50482 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50483 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50484 grub_uint8_t.
50485 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50486 (struct grub_efi_device_path): Rename the member "sub_type" to
50487 "subtype".
50488 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50489 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50490 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50491 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50492 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50493 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50494 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50495 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50496 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50497 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50498 (struct grub_efi_pci_device_path): New structure.
50499 (grub_efi_pci_device_path_t): New type.
50500 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50501 (struct grub_efi_pccard_device_path): New structure.
50502 (grub_efi_pccard_device_path_t): New type.
50503 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50504 (struct grub_efi_memory_mapped_device_path): New structure.
50505 (grub_efi_memory_mapped_device_path_t): New type.
50506 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50507 (struct grub_efi_vendor_device_path): New structure.
50508 (grub_efi_vendor_device_path_t): New type.
50509 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50510 (struct grub_efi_controller_device_path): New structure.
50511 (grub_efi_controller_device_path_t): New type.
50512 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50513 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50514 (struct grub_efi_acpi_device_path): New structure.
50515 (grub_efi_acpi_device_path_t): New type.
50516 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50517 (struct grub_efi_expanded_acpi_device_path): New structure.
50518 (grub_efi_expanded_acpi_device_path_t): New type.
50519 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50520 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50521 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50522 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50523 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50524 (struct grub_efi_atapi_device_path): New structure.
50525 (grub_efi_atapi_device_path_t): New type.
50526 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50527 (struct grub_efi_fibre_channel_device_path): New structure.
50528 (grub_efi_fibre_channel_device_path_t): New type.
50529 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50530 (struct grub_efi_1394_device_path): New structure.
50531 (grub_efi_1394_device_path_t): New type.
50532 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50533 (struct grub_efi_usb_device_path): New structure.
50534 (grub_efi_usb_device_path_t): New type.
50535 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50536 (struct grub_efi_usb_class_device_path): New structure.
50537 (grub_efi_usb_class_device_path_t): New type.
50538 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50539 (struct grub_efi_i2o_device_path): New structure.
50540 (grub_efi_i2o_device_path_t): New type.
50541 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50542 (struct grub_efi_mac_address_device_path): New structure.
50543 (grub_efi_mac_address_device_path_t): New type.
50544 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50545 (struct grub_efi_ipv4_device_path): New structure.
50546 (grub_efi_ipv4_device_path_t): New type.
50547 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50548 (struct grub_efi_ipv6_device_path): New structure.
50549 (grub_efi_ipv6_device_path_t): New type.
50550 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50551 (struct grub_efi_infiniband_device_path): New structure.
50552 (grub_efi_infiniband_device_path_t): New type.
50553 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50554 (struct grub_efi_uart_device_path): New structure.
50555 (grub_efi_uart_device_path_t): New type.
50556 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50557 (struct grub_efi_vendor_messaging_device_path): New structure.
50558 (grub_efi_vendor_messaging_device_path_t): New type.
50559 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50560 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50561 (struct grub_efi_hard_drive_device_path): New structure.
50562 (grub_efi_hard_drive_device_path_t): New type.
50563 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50564 (struct grub_efi_cdrom_device_path): New structure.
50565 (grub_efi_cdrom_device_path_t): New type.
50566 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50567 (struct grub_efi_vendor_media_device_path): New structure.
50568 (grub_efi_vendor_media_device_path_t): New type.
50569 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50570 (struct grub_efi_file_path_device_path): New structure.
50571 (grub_efi_file_path_device_path_t): New type.
50572 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50573 (struct grub_efi_protocol_device_path): New structure.
50574 (grub_efi_protocol_device_path_t): New type.
50575 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50576 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50577 (struct grub_efi_bios_device_path): New structure.
50578 (grub_efi_bios_device_path_t): New type.
50579 (struct grub_efi_disk_io): New structure.
50580 (grub_efi_disk_io_t): New type.
50581 (struct grub_efi_block_io_media): New structure.
50582 (grub_efi_block_io_media_t): New type.
50583 (struct grub_efi_block_io): New structure.
50584 (grub_efi_block_io_t): New type.
50585
50586 * include/grub/misc.h (grub_stop): Removed.
50587 (grub_exit): New prototype.
50588 (grub_abort): Likewise.
50589
50590 * include/grub/disk.h (enum grub_disk_dev_id): Added
50591 GRUB_DISK_DEVICE_EFIDISK_ID.
50592
50593 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50594 disk/efi/efidisk.c.
50595 (kernel_syms.lst): Remove the target if an error occurs.
50596
50597 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50598
50599 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50600 as it was simply too buggy.
50601
50602 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50603
50604 * kern/misc.c (grub_lltoa): New function.
50605 (grub_vsprintf): Added support for the long long suffix,
50606 i.e. "ll".
50607
50608 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50609
50610 * Makefile.in (LDFLAGS): Add variable.
50611 (LD): Remove variable.
50612 * configure.ac: Add -m32 to LDFLAGS.
50613 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50614 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50615 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50616 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50617 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50618 variables.
50619 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50620 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50621 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50622
50623 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50624
50625 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50626 length for unknown glyph.
50627
50628 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50629
50630 Add support for pre-loaded modules into the EFI port.
50631
50632 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50633 completely. Accept one more argument DIR. The caller has changed.
50634
50635 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50636
50637 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50638 (grub_efi_loaded_image_guid): New variable.
50639 (grub_efi_get_loaded_image): New function.
50640 (grub_arch_modules_addr): Likewise.
50641
50642 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50643 prototype.
50644
50645 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50646 (struct grub_efi_loaded_image): New structure.
50647 (grub_efi_loaded_image_t): New type.
50648
50649 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50650
50651 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50652 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50653 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50654
50655 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50656
50657 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50658
50659 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50660
50661 * DISTLIST: Added include/grub/efi/console.h,
50662 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50663 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50664
50665 * include/grub/efi/console.h: New file.
50666 * include/grub/efi/time.h: Likewise.
50667 * include/grub/i386/efi/kernel.h: Likewise.
50668 * kern/efi/init.c: Likewise.
50669 * kern/efi/mm.c: Likewise.
50670 * term/efi/console.c: Likewise.
50671
50672 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50673 (grub_stop): Removed.
50674 (grub_get_rtc): Likewise.
50675 (grub_machine_init): Simply call grub_efi_init.
50676 (grub_machine_fini): Call grub_efi_fini.
50677
50678 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50679 (grub_efi_output_string): Removed.
50680 (grub_efi_stall): New function.
50681 (grub_stop): Likewise.
50682 (grub_get_rtc): Likewise.
50683
50684 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50685 (grub_efi_stall): New prototype.
50686 (grub_efi_allocate_pages): Likewise.
50687 (grub_efi_free_pages): Likewise.
50688 (grub_efi_get_memory_map): Likewise.
50689 (grub_efi_mm_init): Likewise.
50690 (grub_efi_mm_fini): Likewise.
50691 (grub_efi_init): Likewise.
50692 (grub_efi_fini): Likewise.
50693
50694 * include/grub/i386/efi/time.h: Do not include
50695 grub/symbol.h. Include grub/efi/time.h.
50696 (GRUB_TICKS_PER_SECOND): Removed.
50697 (grub_get_rtc): Likewise.
50698
50699 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50700 Added padding. The EFI spec is buggy.
50701 (GRUB_EFI_BLACK): New macro.
50702 (GRUB_EFI_BLUE): Likewise.
50703 (GRUB_EFI_GREEN): Likewise.
50704 (GRUB_EFI_CYAN): Likewise.
50705 (GRUB_EFI_RED): Likewise.
50706 (GRUB_EFI_MAGENTA): Likewise.
50707 (GRUB_EFI_BROWN): Likewise.
50708 (GRUB_EFI_LIGHTGRAY): Likewise.
50709 (GRUB_EFI_BRIGHT): Likewise.
50710 (GRUB_EFI_DARKGRAY): Likewise.
50711 (GRUB_EFI_LIGHTBLUE): Likewise.
50712 (GRUB_EFI_LIGHTGREEN): Likewise.
50713 (GRUB_EFI_LIGHTCYAN): Likewise.
50714 (GRUB_EFI_LIGHTRED): Likewise.
50715 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50716 (GRUB_EFI_YELLOW): Likewise.
50717 (GRUB_EFI_WHITE): Likewise.
50718 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50719 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50720 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50721 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50722 (GRUB_EFI_BACKGROUND_RED): Likewise.
50723 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50724 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50725 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50726 (GRUB_EFI_TEXT_ATTR): Likewise.
50727
50728 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50729 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50730 (kernel_mod_HEADERS): Added efi/time.h.
50731
50732 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50733
50734 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50735 include/grub/efi/api.h, include/grub/efi/console_control.h,
50736 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50737 include/grub/i386/efi/time.h, kern/efi/efi.c,
50738 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50739 and util/i386/efi/grub-mkimage.c.
50740
50741 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50742
50743 * genmk.rb (PModule#rule): Do not export symbols if
50744 #{prefix}_EXPORTS is set to "no".
50745
50746 * conf/i386-efi.mk: New file.
50747 * conf/i386-efi.rmk: Likewise.
50748 * include/grub/efi/api.h: Likewise.
50749 * include/grub/efi/console_control.h: Likewise.
50750 * include/grub/efi/efi.h: Likewise.
50751 * include/grub/efi/pe32.h: Likewise.
50752 * include/grub/i386/efi/time.h: Likewise.
50753 * kern/efi/efi.c: Likewise.
50754 * kern/i386/efi/init.c: Likewise.
50755 * kern/i386/efi/startup.S: Likewise.
50756 * util/i386/efi/grub-mkimage.c: Likewise.
50757
50758 2006-04-17 Marco Gerards <marco@gnu.org>
50759
50760 * include/grub/script.h: Include <grub/parser.h> and
50761 "grub_script.tab.h".
50762 (struct grub_lexer_param): New struct.
50763 (struct grub_parser_param): Likewise.
50764 (grub_script_create_arglist): Pass the state in an argument.
50765 (grub_script_add_arglist): Likewise.
50766 (grub_script_create_cmdline): Likewise.
50767 (grub_script_create_cmdblock): Likewise.
50768 (grub_script_create_cmdif): Likewise.
50769 (grub_script_create_cmdmenu): Likewise.
50770 (grub_script_add_cmd): Likewise.
50771 (grub_script_arg_add): Likewise.
50772 (grub_script_lexer_ref): Likewise.
50773 (grub_script_lexer_deref): Likewise.
50774 (grub_script_lexer_record_start): Likewise.
50775 (grub_script_lexer_record_stop): Likewise.
50776 (grub_script_mem_record): Likewise.
50777 (grub_script_mem_record_stop): Likewise.
50778 (grub_script_malloc): Likewise.
50779 (grub_script_yylex): Likewise.
50780 (grub_script_yyparse): Likewise.
50781 (grub_script_yyerror): Likewise.
50782 (grub_script_yylex): Likewise.
50783 (grub_script_lexer_init): Return the state.
50784
50785 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50786 (grub_script_lexer_done): Likewise.
50787 (grub_script_lexer_getline): Likewise.
50788 (grub_script_lexer_refs): Likewise.
50789 (script): Likewise.
50790 (newscript): Likewise.
50791 (record): Likewise.
50792 (recording): Likewise.
50793 (recordpos): Likewise.
50794 (recordlen): Likewise.
50795 (grub_script_lexer_init): Return the state instead of setting
50796 global variables.
50797 (grub_script_lexer_ref): Use the newly added argument for state
50798 instead of globals.
50799 (grub_script_lexer_deref): Likewise.
50800 (grub_script_lexer_record_start): Likewise.
50801 (grub_script_lexer_record_stop): Likewise.
50802 (recordchar): Likewise.
50803 (nextchar): Likewise.
50804 (grub_script_yylex2): Likewise.
50805 (grub_script_yylex): Likewise.
50806 (grub_script_yyerror): Likewise.
50807
50808 * normal/parser.y (func_mem): Removed variable.
50809 (menu_entry): Likewise.
50810 (err): Likewise.
50811 (%lex-param): New parser option.
50812 (%parse-param): Likewise.
50813 (script): Always return the AST.
50814 (argument): Pass the state around.
50815 (arguments): Likewise.
50816 (grubcmd): Likewise.
50817 (commands): Likewise.
50818 (function): Likewise.
50819 (menuentry): Likewise.
50820 (if_statement): Likewise.
50821 (if): Likewise.
50822
50823 * normal/script.c (grub_script_memused): Removed variable.
50824 (grub_script_parsed): Likewise.
50825 (grub_script_malloc): Added a state argument. Use that instead of
50826 global variables.
50827 (grub_script_mem_record): Likewise.
50828 (grub_script_mem_record_stop): Likewise.
50829 (grub_script_arg_add): Likewise.
50830 (grub_script_add_arglist): Likewise.
50831 (grub_script_create_cmdline): Likewise.
50832 (grub_script_create_cmdif): Likewise.
50833 (grub_script_create_cmdmenu): Likewise.
50834 (grub_script_add_cmd): Likewise.
50835 (grub_script_parse): Setup the state before calling the parser.
50836
50837 2006-04-16 Marco Gerards <marco@gnu.org>
50838
50839 * normal/command.c (grub_command_init): Remove the title command.
50840
50841 * normal/lexer.c (grub_script_yylex): Renamed from this...
50842 (grub_script_yylex2): ... to this.
50843 (grub_script_yylex): New function. Temporary
50844 introduced to filter some tokens.
50845 (grub_script_yyerror): Print a newline.
50846
50847 * normal/main.c (read_config_file): Output information about the
50848 lines that contain errors. Wait for a key after all lines have
50849 been processed. Don't return an empty menu.
50850
50851 * normal/parser.y (func_mem): Don't initialize.
50852 (menu_entry): Likewise.
50853 (err): New variable.
50854 (script): Don't return anything when an error was encountered.
50855 (ws, returns): Removed rules.
50856 (argument): Disabled concatenated variable support.
50857 (arguments): Remove explicit separators.
50858 (grubcmd): Likewise.
50859 (function): Likewise.
50860 (menuentry): Likewise.
50861 (if): Likewise.
50862 (commands): Likewise. Add error handling.
50863
50864 * normal/script.c (grub_script_create_cmdline): If
50865 `grub_script_parsed' is 0, assume the parser encountered an error.
50866
50867 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50868
50869 * configure.ac: Add support for EFI. Fix the typo
50870 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50871
50872 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50873
50874 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50875 foreign multibyte characters should be shown correctly.
50876
50877 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50878
50879 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50880 calculation.
50881 (read_config_file): Made it to close file before returning.
50882
50883 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50884
50885 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50886 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50887 video/i386/pc/vbefill.c.
50888
50889 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50890 video/i386/pc/vbefill.c.
50891
50892 * include/grub/video.h (grub_video_blit_format): New enum.
50893 (grub_video_mode_info): Added new member blit_format.
50894 (grub_video_get_blit_format): New function prototype.
50895
50896 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50897 function prototype.
50898 (grub_video_vbe_map_rgb): Likewise.
50899 (grub_video_vbe_unmap_color): Likewise.
50900
50901 * include/grub/i386/pc/vbeblit.h: New file.
50902
50903 * include/grub/i386/pc/vbefill.h: New file.
50904
50905 * video/video.c (grub_video_get_blit_format): New function.
50906 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50907 (grub_video_vbe_map_rgb): Likewise.
50908 (grub_video_vbe_unmap_color): Likewise.
50909
50910 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50911 optimized fills.
50912 (grub_video_vbe_blit_render_target): Changed to use more optimized
50913 blits.
50914 (grub_video_vbe_setup): Added detection for optimized settings.
50915 (grub_video_vbe_create_render_target): Likewise.
50916
50917 * video/i386/pc/vbeblit.c: New file.
50918
50919 * video/i386/pc/vbefill.c: New file.
50920
50921 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50922
50923 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50924 here...
50925
50926 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50927 parsing to support both hex and dec ranges. If filename was missing
50928 show usage information.
50929
50930 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50931
50932 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50933 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50934
50935 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50936 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50937 (video_mod_SOURCES): Added.
50938 (video_mod_CFLAGS): Likewise.
50939 (video_mod_LDFLAGS): Likewise.
50940 (gfxterm_mod_SOURCES): Likewise.
50941 (gfxterm_mod_CFLAGS): Likewise.
50942 (gfxterm_mod_LDFLAGS): Likewise.
50943 (videotest_mod_SOURCES): Likewise.
50944 (videotest_mod_CFLAGS): Likewise.
50945 (videotest_mod_LDFLAGS): Likewise.
50946 (vesafb_mod_SOURCES): Removed.
50947 (vesafb_mod_CFLAGS): Likewise.
50948 (vesafb_mod_LDFLAGS): Likewise.
50949 (vga_mod_SOURCES): Likewise.
50950 (vga_mod_CFLAGS): Likewise.
50951 (vga_mod_LDFLAGS): Likewise.
50952
50953 * commands/videotest.c: New file.
50954
50955 * font/manager.c (fill_with_default_glyph): Modified to use
50956 grub_font_glyph.
50957 (grub_font_get_glyph): Likewise.
50958 (fontmanager): Renamed from this...
50959 (font_manager): ... to this.
50960
50961 * include/grub/font.h (grub_font_glyph): Added new structure.
50962 (grub_font_get_glyph): Modified to use grub_font_glyph.
50963
50964 * include/grub/misc.h (grub_abs): Added as inline function.
50965
50966 * include/grub/video.h: New file.
50967
50968 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50969 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50970 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50971 (grub_vbe_get_controller_info): Renamed from this...
50972 (grub_vbe_bios_get_controller_info): ... to this.
50973 (grub_vbe_get_mode_info): Renamed from this...
50974 (grub_vbe_bios_get_mode_info): ... to this.
50975 (grub_vbe_set_mode): Renamed from this...
50976 (grub_vbe_bios_set_mode): ... to this.
50977 (grub_vbe_get_mode): Renamed from this...
50978 (grub_vbe_bios_get_mode): ... to this.
50979 (grub_vbe_set_memory_window): Renamed from this...
50980 (grub_vbe_bios_set_memory_window): ... to this.
50981 (grub_vbe_get_memory_window): Renamed from this...
50982 (grub_vbe_bios_get_memory_window): ... to this.
50983 (grub_vbe_set_scanline_length): Renamed from this...
50984 (grub_vbe_set_scanline_length): ... to this.
50985 (grub_vbe_get_scanline_length): Renamed from this...
50986 (grub_vbe_bios_get_scanline_length): ... to this.
50987 (grub_vbe_set_display_start): Renamed from this...
50988 (grub_vbe_bios_set_display_start): ... to this.
50989 (grub_vbe_get_display_start): Renamed from this...
50990 (grub_vbe_bios_get_display_start): ... to this.
50991 (grub_vbe_set_palette_data): Renamed from this...
50992 (grub_vbe_bios_set_palette_data): ... to this.
50993 (grub_vbe_set_pixel_rgb): Removed.
50994 (grub_vbe_set_pixel_index): Likewise.
50995
50996 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50997 from this...
50998 (grub_vbe_bios_get_controller_info): ... to this.
50999 (grub_vbe_get_mode_info): Renamed from this...
51000 (grub_vbe_bios_get_mode_info): ... to this.
51001 (grub_vbe_set_mode): Renamed from this...
51002 (grub_vbe_bios_set_mode): ... to this.
51003 (grub_vbe_get_mode): Renamed from this...
51004 (grub_vbe_bios_get_mode): ... to this.
51005 (grub_vbe_set_memory_window): Renamed from this...
51006 (grub_vbe_bios_set_memory_window): ... to this.
51007 (grub_vbe_get_memory_window): Renamed from this...
51008 (grub_vbe_bios_get_memory_window): ... to this.
51009 (grub_vbe_set_scanline_length): Renamed from this...
51010 (grub_vbe_set_scanline_length): ... to this.
51011 (grub_vbe_get_scanline_length): Renamed from this...
51012 (grub_vbe_bios_get_scanline_length): ... to this.
51013 (grub_vbe_set_display_start): Renamed from this...
51014 (grub_vbe_bios_set_display_start): ... to this.
51015 (grub_vbe_get_display_start): Renamed from this...
51016 (grub_vbe_bios_get_display_start): ... to this.
51017 (grub_vbe_set_palette_data): Renamed from this...
51018 (grub_vbe_bios_set_palette_data): ... to this.
51019 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51020 getting corrupted after calling it. Added more pushes and pops.
51021 (grub_vbe_bios_set_mode): Likewise.
51022 (grub_vbe_bios_get_mode): Likewise.
51023 (grub_vbe_bios_get_memory_window): Likewise.
51024 (grub_vbe_bios_set_scanline_length): Likewise.
51025 (grub_vbe_bios_get_scanline_length): Likewise.
51026 (grub_vbe_bios_get_display_start): Likewise.
51027 (grub_vbe_bios_set_palette_data): Likewise.
51028
51029 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51030 (cl_insert): Likewise.
51031 (cl_delete): Likewise.
51032
51033 * term/gfxterm.c: New file.
51034
51035 * term/i386/pc/vesafb.c: Removed file.
51036
51037 * video/video.c: New file.
51038
51039 * video/i386/pc/vbe.c (real2pm): Added new function.
51040 (grub_video_vbe_draw_pixel): Likewise.
51041 (grub_video_vbe_get_video_ptr): Likewise.
51042 (grub_video_vbe_get_pixel): Likewise
51043 (grub_video_vbe_init): Likewise.
51044 (grub_video_vbe_fini): Likewise.
51045 (grub_video_vbe_setup): Likewise.
51046 (grub_video_vbe_get_info): Likewise.
51047 (grub_video_vbe_set_palette): Likewise.
51048 (grub_video_vbe_get_palette): Likewise.
51049 (grub_video_vbe_set_viewport): Likewise.
51050 (grub_video_vbe_get_viewport): Likewise.
51051 (grub_video_vbe_map_color): Likewise.
51052 (grub_video_vbe_map_rgb): Likewise.
51053 (grub_video_vbe_map_rgba): Likewise.
51054 (grub_video_vbe_unmap_color): Likewise.
51055 (grub_video_vbe_fill_rect): Likewise.
51056 (grub_video_vbe_blit_glyph): Likewise.
51057 (grub_video_vbe_blit_bitmap): Likewise.
51058 (grub_video_vbe_blit_render_target): Likewise.
51059 (grub_video_vbe_scroll): Likewise.
51060 (grub_video_vbe_swap_buffers): Likewise.
51061 (grub_video_vbe_create_render_target): Likewise.
51062 (grub_video_vbe_delete_render_target): Likewise.
51063 (grub_video_vbe_set_active_render_target): Likewise.
51064 (grub_vbe_set_pixel_rgb): Remove function.
51065 (grub_vbe_set_pixel_index): Likewise.
51066 (index_color_mode): Remove static variable.
51067 (active_mode): Likewise.
51068 (framebuffer): Likewise.
51069 (bytes_per_scan_line): Likewise.
51070 (grub_video_vbe_adapter): Added new static variable.
51071 (framebuffer): Likewise.
51072 (render_target): Likewise.
51073 (initial_mode): Likewise.
51074 (mode_in_use): Likewise.
51075 (mode_list): Likewise.
51076
51077 2006-03-10 Marco Gerards <marco@gnu.org>
51078
51079 * configure.ac (AC_INIT): Bumped to 1.93.
51080
51081 * DISTLIST: Added `include/grub/hfs.h'.
51082
51083 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51084
51085 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51086 18H, which might help the BIOS falling back to next boot media.
51087
51088 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51089
51090 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51091 Poe Chen <poe.poechen@gmail.com>.
51092
51093 2006-01-17 Marco Gerards <marco@gnu.org>
51094
51095 * include/grub/normal.h: Include <grub/script.h>.
51096 (grub_command_list): Removed struct.
51097 (grub_command_list_t): Removed type.
51098 (grub_menu_entry): Remove members `num' and `command_list'. Add
51099 members `commands' and `sourcecode'.
51100 * include/grub/script.h: Add inclusion guards.
51101 (grub_script_cmd_menuentry): New struct.
51102 (grub_script_execute_menuentry): New prototype.
51103 (grub_script_lexer_record_start): Likewise.
51104 (grub_script_lexer_record_stop): Likewise.
51105 * normal/execute.c (grub_script_execute_menuentry): New function.
51106 * normal/lexer.c (record, recording, recordpos, recordlen): New
51107 variables.
51108 (grub_script_lexer_record_start): New function.
51109 (grub_script_lexer_record_stop): Likewise.
51110 (recordchar): Likewise.
51111 (nextchar): Likewise.
51112 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51113 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51114 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51115 (current_menu): New variable.
51116 (free_menu): Mainly rewritten.
51117 (grub_normal_menu_addentry): New function.
51118 (read_config_file): Rewritten.
51119 * normal/menu.c (run_menu_entry): Mainly rewritten.
51120 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51121 the menu entry.
51122 (run): Mainly rewritten.
51123 * normal/parser.y (menu_entry): New variable.
51124 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51125 (menuentry): New rule.
51126 (command): Add `menuentry'.
51127 (if_statement): Allow additional returns before `fi'.
51128 * normal/script.c (grub_script_create_cmdmenu): New function.
51129
51130 2006-01-03 Marco Gerards <marco@gnu.org>
51131
51132 * INSTALL: GNU Bison is required.
51133 * configure.ac: Rewritten the test to detect Bison.
51134 * Makefile.in (YACC): New variable. Reported by Xun Sun
51135 <xun.sun.cn@gmail.com>.
51136
51137 2006-01-03 Marco Gerards <marco@gnu.org>
51138
51139 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51140 the HFS+ filesystem to filesystem blocks.
51141 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51142 GCC warning is silenced.
51143
51144 2006-01-03 Marco Gerards <marco@gnu.org>
51145
51146 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51147 read from disk from big endian to host byte order.
51148
51149 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51150
51151 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51152 documentation.
51153 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51154 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51155 embedded HFS+ filesystem.
51156 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51157 (grub_hfs_sblock): Move from here...
51158 * include/grub/hfs.h: To here... New file.
51159 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51160 documentation.
51161 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51162 New macros.
51163 (grub_hfsplus_volheader): Change type of member `magic' to
51164 `grub_uint16_t'.
51165 (grub_hfsplus_data): Add new member `embedded_offset'.
51166 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51167 returned block.
51168 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51169 Calculate the offset.
51170
51171 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51172
51173 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51174 Removed.
51175 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51176
51177 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51178
51179 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51180 ENV->NAME is NULL after allocating ENV->VALUE.
51181
51182 2005-12-25 Marco Gerards <marco@gnu.org>
51183
51184 * kern/env.c (grub_env_set): Rewritten the error handling code.
51185
51186 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51187
51188 * geninit.sh: Made more robust, and more portable.
51189
51190 2005-12-25 Marco Gerards <marco@gnu.org>
51191
51192 Add support for Apple HFS+ filesystems.
51193
51194 * fs/hfsplus.c: New file.
51195
51196 * DISTLIST: Added `fs/hfsplus.c'.
51197
51198 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51199 (hfsplus_mod_SOURCES): New variable.
51200 (hfsplus_mod_CFLAGS): Likewise.
51201 (hfsplus_mod_LDFLAGS): Likewise.
51202 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51203 (grub_setup_SOURCES): Likewise.
51204 (grub_mkdevicemap_SOURCES): Likewise.
51205 (grub_emu_SOURCES): Likewise.
51206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51207
51208 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51209
51210 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51211
51212 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51213
51214 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51215 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51216 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51217 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51218 normal/lexer.c, normal/parser.y, normal/script.c, and
51219 partmap/gpt.c.
51220 Removed kern/sparc64/cache.c.
51221
51222 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51223 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51224 grub_emu_init.c.
51225
51226 * configure.ac (AC_INIT): Bumped to 1.92.
51227
51228 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51229
51230 * kern/err.c (grub_error_push): Added new function to support error
51231 stacks.
51232 (grub_error_pop): Likewise.
51233 (grub_error_stack_items): New local variable to support error stacks.
51234 (grub_error_stack_pos): Likewise.
51235 (grub_error_stack_assert): Likewise.
51236 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51237 stack depth.
51238 (grub_print_error): Added support to print errors from error stack.
51239
51240 * include/grub/err.h (grub_error_push): Added function prototype.
51241 (grub_error_pop): Likewise.
51242
51243 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51244
51245 * configure.ac: Accept `powerpc64' as host_cpu.
51246 (amd64): Rename to `biarch32'.
51247
51248 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51249 non-cacheline-aligned addresses.
51250
51251 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51252 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51253 if `size' is non-zero.
51254
51255 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51256
51257 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51258 and `cd' to make sure the filename is not prefixed with a
51259 directory name.
51260 (pkgdata_MODULES): Add `gpt.mod'.
51261 (gpt_mod_SOURCES): New variable.
51262 (gpt_mod_CFLAGS): Likewise.
51263 (gpt_mod_LDFLAGS): Likewise.
51264
51265 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51266
51267 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51268 New macro.
51269
51270 * partmap/gpt.c: New file.
51271
51272 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51273 GPT partition map is detected.
51274
51275 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51276
51277 * commands/i386/pc/play.c: New file.
51278 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51279 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51280 macros.
51281
51282 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51283
51284 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51285 ((unused))' to silence gcc warning.
51286
51287 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51288
51289 * configure.ac: Correct `AC_PROG_YACC' test.
51290
51291 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51292
51293 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51294 check before installing files.
51295
51296 2005-11-22 Mike Small <smallm@panix.com>
51297
51298 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51299 number regex so multidigit numbers are recognized correctly.
51300
51301 2005-11-22 Mike Small <smallm@panix.com>
51302
51303 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51304 debugging message before attempting to claim memory.
51305 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51306 multiple addresses in case of failure.
51307
51308 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51309
51310 * term/tparm.c (get_space): Remove empty `if' statement.
51311
51312 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51313
51314 * kern/parser.c (check_varstate): Rename `state' to 's'.
51315
51316 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51317
51318 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51319 variable definitions to the beginning of each function. Sort stack
51320 variables by size.
51321 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51322 `buf' argument to `char *'.
51323
51324 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51325
51326 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51327 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51328 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51329 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51330 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51331 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51332 configfile.mod, search.mod, gzio.mod and test.mod.
51333 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51334 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51335 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51336 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51337 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51338 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51339 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51340 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51341 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51342 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51343 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51344 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51345 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51346 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51347 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51348 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51349 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51350 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51351 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51352 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51353 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51354 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51355 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51356
51357 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51358 `grep --include'.
51359 (pkgdata_MODULES): Add test.mod.
51360
51361 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51362
51363 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51364 appending to variables with "+=".
51365 (PModule): Use full pathname to generate *.lst filenames.
51366
51367 * Makefile.in: Fixed list rules moved from genmk.rb.
51368 (.DELETE_ON_ERROR): New special target.
51369 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51370
51371 * conf/i386-pc.rmk: Include conf/common.mk.
51372 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51373 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51374 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51375 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51376 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51377 configfile.mod, search.mod, gzio.mod and test.mod.
51378 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51379 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51380 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51381 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51382 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51383 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51384 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51385 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51386 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51387 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51388 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51389 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51390 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51391 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51392 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51393 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51394 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51395 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51396 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51397 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51398 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51399 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51400 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51401 here...
51402 * conf/common.rmk: ... to here. New file.
51403
51404 * conf/common.mk: New file.
51405
51406 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51407
51408 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51409 (grub_script.tab.c): ... here.
51410
51411 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51412 (grub_script.tab.c): ... here.
51413
51414 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51415 (grub_script.tab.c): ... here.
51416
51417 * normal/command.c (grub_command_find): Fixed a memory leak of
51418 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51419
51420 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51421
51422 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51423 "@" which marks the start of a comment on ARM.
51424 (VARIABLE): Likewise.
51425
51426 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51427
51428 Add support for Linux/ADFS partition tables.
51429
51430 * partmap/acorn.c: New file.
51431
51432 * include/grub/acorn_filecore.h: Likewise.
51433
51434 * DISTLIST: Added `partmap/acorn.c' and
51435 `include/grub/acorn_filecore.h'.
51436
51437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51438 `partmap/acorn.c'.
51439 (pkgdata_MODULES): Add `acorn.mod'.
51440 (acorn_mod_SOURCES): New variable.
51441 (acorn_mod_CFLAGS): Likewise.
51442
51443 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51444 `partmap/acorn.c'.
51445 (pkgdata_MODULES): Add `acorn.mod'.
51446 (acorn_mod_SOURCES): New variable.
51447 (acorn_mod_CFLAGS): Likewise.
51448
51449 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51450 (pkgdata_MODULES): Add `acorn.mod'.
51451 (acorn_mod_SOURCES): New variable.
51452 (acorn_mod_CFLAGS): Likewise.
51453 (acorn_mod_LDFLAGS): Likewise.
51454
51455 * include/types.h (grub_disk_addr_t): New typedef.
51456
51457 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51458
51459 * geninit.sh: New file.
51460
51461 * geninitheader.sh: Likewise.
51462
51463 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51464 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51465 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51466 * commands/configfile.c (grub_configfile_init)
51467 (grub_configfile_fini): Likewise.
51468 * commands/default.c (grub_default_init, grub_default_fini):
51469 Likewise.
51470 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51471 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51472 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51473 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51474 Likewise.
51475 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51476 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51477 Likewise.
51478 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51479 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51480 Likewise.
51481 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51482 Likewise.
51483 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51484 Likewise.
51485 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51486 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51487 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51488 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51489 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51490 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51491 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51492 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51493 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51494 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51495 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51496 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51497 * partmap/amiga.c (grub_amiga_partition_map_init)
51498 (grub_amiga_partition_map_fini): Likewise.
51499 * partmap/apple.c (grub_apple_partition_map_init)
51500 (grub_apple_partition_map_fini): Likewise.
51501 * partmap/pc.c (grub_pc_partition_map_init)
51502 (grub_pc_partition_map_fini): Likewise.
51503 * partmap/sun.c (grub_sun_partition_map_init,
51504 grub_sun_partition_map_fini): Likewise.
51505 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51506 Likewise.
51507
51508 * util/grub-emu.c: Include <grub_modules_init.h>.
51509 (main): Don't initialize and de-initialize any modules directly,
51510 use `grub_init_all' and `grub_fini_all' instead.
51511
51512 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51513 `grub_vesafb_mod_init'.
51514 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51515 all users.
51516 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51517 `grub_vga_mod_init'. Updated all users.
51518 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51519
51520 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51521 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51522 rules.
51523
51524 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51525 Generate a function to initialize the module in utilities.
51526 Updated all callers.
51527 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51528 initialize the module in utilities. Updated all callers.
51529
51530 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51531
51532 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51533 escape sequence and a literal ^L to clear the screen.
51534
51535 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51536 when returning from Open Firmware.
51537
51538 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51539
51540 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51541 (grub_ofconsole_height): Likewise.
51542 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51543 manually insert a '\n'.
51544 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51545 `grub_ofconsole_height'. Return early if these are already set.
51546
51547 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51548
51549 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51550 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51551 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51552 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51553 and `normal/script.c'.
51554 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51555 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51556 (test_mod_SOURCES): New variable.
51557 (test_mod_CFLAGS): Likewise.
51558 (test_mod_LDFLAGS): Likewise.
51559 (pkgdata_MODULES): Add `test.mod'.
51560 (grub_script.tab.c): New rule.
51561 (grub_script.tab.h): Likewise.
51562
51563 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51564
51565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51566 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51567 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51568 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51569 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51570 (test_mod_SOURCES): New variable.
51571 (test_mod_CFLAGS): Likewise.
51572 (pkgdata_MODULES): Add `test.mod'.
51573 (grub_script.tab.c): New rule.
51574 (grub_script.tab.h): Likewise.
51575
51576 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51577
51578 Add initial scripting support.
51579
51580 * commands/test.c: New file.
51581 * include/grub/script.h: Likewise.
51582 * normal/execute.c: Likewise.
51583 * normal/function.c: Likewise.
51584 * normal/lexer.c: Likewise.
51585 * normal/parser.y: Likewise.
51586 * normal/script.c: Likewise.
51587
51588 * configure.ac: Add `AC_PROG_YACC' test.
51589
51590 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51591 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51592 `normal/function.c' and `normal/script.c'.
51593 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51594 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51595 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51596 variables.
51597 (pkgdata_MODULES): Add `test.mod'.
51598 (grub_script.tab.c): New rule.
51599 (grub_script.tab.h): Likewise.
51600
51601 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51602
51603 * include/grub/normal.h (grub_test_init): New prototype.
51604 (grub_test_fini): Likewise.
51605
51606 * normal/command.c: Include <grub/script.h>.
51607 (grub_command_execute): Rewritten.
51608
51609 * util/grub-emu.c (main): Call `grub_test_init' and
51610 `grub_test_fini'.
51611
51612 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51613
51614 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51615 to 0.
51616 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51617 there are no pending characters.
51618
51619 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51620
51621 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51622 `grub_strndup' to drop device arguments. Replace unnecessary
51623 `grub_strndup' with `grub_strdup'.
51624
51625 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51626
51627 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51628 `debug' environment variable has been set.
51629
51630 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51631
51632 * Makefile.in (install-local): Use $(DATA).
51633 (uninstall): Likewise.
51634 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51635 (sbin_UTILITIES): ... to here.
51636 (sbin_SCRIPTS): New variable.
51637 (grub_install_SOURCES): New variable.
51638 * util/powerpc/ieee1275/grub-install.in: New file.
51639 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51640 variable.
51641 (add_segments): Call `grub_util_get_path'.
51642
51643 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51644
51645 From Timothy Baldwin:
51646 * commands/ls.c (grub_ls_list_files): Close FILE with
51647 grub_file_close.
51648 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51649
51650 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51651
51652 * include/grub/parser.h: New file.
51653
51654 * kern/parser.c: Likewise.
51655
51656 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51657 (grub_setup_SOURCES): Likewise.
51658 (grub_probefs_SOURCES): Likewise.
51659 (grub_emu_SOURCES): Likewise.
51660 (kernel_img_HEADERS): Add `parser.h'.
51661
51662 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51663 (grub_emu_SOURCES): Add `kern/parser.c'.
51664 (grubof_SOURCES): Likewise.
51665
51666 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51667 (grubof_SOURCES): Add `kern/parser.c'.
51668
51669 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51670
51671 * kern/misc.c (grub_split_cmdline): Removed function.
51672
51673 * kern/rescue.c: Include <grub/parser.h>.
51674 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51675 of `grub_split_cmdline'.
51676
51677 * normal/command.c: Include <grub/parser.h>.
51678 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51679 of `grub_split_cmdline'.
51680
51681 * normal/completion.c: Include <grub/parser.h>.
51682 (cmdline_state): New variable.
51683 (iterate_dir): End the filename with a quote depending on the
51684 command line state.
51685 (get_state): new function.
51686 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51687 split the arguments and determine the current argument. When the
51688 argument string is not quoted, escape all spaces.
51689
51690 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51691
51692 * normal/sparc64/setjmp.S: New file.
51693
51694 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51695
51696 * include/grub/sparc64/libgcc.h: New file.
51697 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51698 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51699 normal/sparc64/setjmp.c.
51700
51701 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51702
51703 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51704 * kern/sparc64/cache.S: New file.
51705 * kern/sparc64/cache.c: Removed.
51706 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51707 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51708 -mtune=ultrasparc.
51709 (COMMON_LDFLAGS): Add -melf64_sparc.
51710 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51711 (grubof_SOURCES): Use cache.S instead of cache.c.
51712 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51713 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51714 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51715 commented though.
51716 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51717 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51718 (linux_mod_CFLAGS): Commented out.
51719 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51720 out because module isn't built.
51721 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51722 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51723 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51724 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51725 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51726 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51727 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51728 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51729 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51730 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51731 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51732 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51733 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51734 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51735
51736 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51737
51738 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51739 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51740 longer, because HFS should not be used on PC.
51741
51742 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51743
51744 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51745 consistently within the loop.
51746
51747 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51748
51749 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51750 directory can not be read.
51751
51752 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51753
51754 * configure.ac (AC_INIT): Increase the version number to 1.91.
51755
51756 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51757 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51758 term/i386/pc/serial.c.
51759
51760 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51761
51762 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51763 file size must be permitted.
51764
51765 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51766 between %ah and %al.
51767
51768 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51769
51770 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51771 grub_uint64_t.
51772 Call the hook with a NUL-terminated filename.
51773 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51774 grub_cpu_to_be32.
51775
51776 * kern/term.c (cursor_state): New variable.
51777 (grub_term_set_current): Reset the cursor state on a new
51778 terminal.
51779 (grub_setcursor): Rewritten to use CURSOR_STATE.
51780 (grub_getcursor): New function.
51781
51782 * include/grub/term.h (grub_getcursor): New prototype.
51783
51784 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51785 integers on ARM. Reported by Timothy Baldwin
51786 <T.E.Baldwin99@members.leeds.ac.uk>.
51787
51788 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51789
51790 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51791 allocated.
51792 (grub_sfs_dir): Likewise.
51793
51794 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51795
51796 Add support for the SFS filesystem.
51797
51798 * fs/sfs.c: New file.
51799
51800 * DISTLIST: Added `fs/sfs.c'.
51801
51802 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51803 (grub_probefs_SOURCES): Likewise.
51804 (grub_emu_SOURCES): Likewise.
51805 (pkgdata_MODULES): Add `sfs.mod'.
51806 (sfs_mod_SOURCES): New variable.
51807 (sfs_mod_CFLAGS): Likewise.
51808 (sfs_mod_LDFLAGS): Likewise.
51809
51810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51811 (pkgdata_MODULES): Add `sfs.mod'.
51812 (sfs_mod_SOURCES): New variable.
51813 (sfs_mod_CFLAGS): Likewise.
51814
51815 * util/grub-emu.c (main): Call `grub_sfs_init' and
51816 `grub_sfs_fini'.
51817
51818 * include/grub/fs.h (grub_sfs_init): New prototype.
51819 (grub_sfs_fini): Likewise.
51820
51821 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51822
51823 Add support for the AFFS filesystem.
51824
51825 * fs/affs.c: New file.
51826
51827 * DISTLIST: Added `fs/affs.c'.
51828
51829 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51830 (grub_probefs_SOURCES): Likewise.
51831 (grub_emu_SOURCES): Likewise.
51832 (pkgdata_MODULES): Add `affs.mod'.
51833 (affs_mod_SOURCES): New variable.
51834 (affs_mod_CFLAGS): Likewise.
51835 (affs_mod_LDFLAGS): Likewise.
51836
51837 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51838 (pkgdata_MODULES): Add `affs.mod'.
51839 (affs_mod_SOURCES): New variable.
51840 (affs_mod_CFLAGS): Likewise.
51841
51842 * util/grub-emu.c (main): Call `grub_affs_init' and
51843 `grub_affs_fini'.
51844
51845 * include/grub/fs.h (grub_affs_init): New prototype.
51846 (grub_affs_fini): Likewise.
51847
51848 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51849
51850 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51851
51852 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51853
51854 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51855 `-m32' to CFLAGS.
51856
51857 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51858 linking.
51859
51860 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51861 (COMMON_LDFLAGS): New variable.
51862 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51863 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51864 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51865 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51866 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51867 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51868 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51869 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51870 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51871 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51872 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51873 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51874 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51875 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51876 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51877 variables.
51878 (normal_mod_ASFLAGS): Add `-m32'.
51879
51880 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51881 (grub_host_size_t, grub_host_ssize_t): New types.
51882 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51883 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51884 `GRUB_HOST_SIZEOF_VOID_P'.
51885
51886 * include/grub/kernel.h (struct grub_module_header): Type of
51887 member offset changed to `grub_host_off_t'. Type of member size
51888 changed to `grub_host_size_t'.
51889 (struct grub_module_info): Type of member offset changed to
51890 `grub_host_off_t'. Type of member size changed to
51891 `grub_host_size_t'.
51892
51893 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51894
51895 Make GRUB's kernel compliant to Multiboot Specification.
51896
51897 * kern/i386/pc/startup.S (multiboot_header): New label.
51898 (multiboot_entry): Likewise.
51899 (multiboot_trampoline): Likewise.
51900
51901 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51902 Increased to 0x4A0.
51903
51904 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51905 put parentheses after a question mark.
51906 [!GRUB_UTIL] (my_mod): New variable.
51907
51908 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51909
51910 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51911
51912 Adds support for the XFS filesystem. Btrees are not supported
51913 yet.
51914
51915 * fs/xfs.c: New file.
51916
51917 * DISTLIST: Added `fs/xfs.c'.
51918
51919 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51920 (grub_probefs_SOURCES): Likewise.
51921 (grub_emu_SOURCES): Likewise.
51922 (pkgdata_MODULES): Add `xfs.mod'.
51923 (xfs_mod_SOURCES): New variable.
51924 (xfs_mod_CFLAGS): Likewise.
51925
51926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51927 (pkgdata_MODULES): Add `xfs.mod'.
51928 (xfs_mod_SOURCES): New variable.
51929 (xfs_mod_CFLAGS): Likewise.
51930
51931 * util/grub-emu.c (main): Call `grub_xfs_init' and
51932 `grub_xfs_fini'.
51933
51934 * include/grub/fs.h (grub_xfs_init): New prototype.
51935 (grub_xfs_fini): Likewise.
51936
51937
51938 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51939
51940 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51941 color modes, allow greater than 16 colors to be configured as
51942 a default palette.
51943
51944 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51945
51946 * normal/completion.c (complete_arguments): Add the qualifier
51947 const into OPTIONS.
51948
51949 From Omniflux <omniflux+lists@omniflux.com>:
51950 * include/grub/terminfo.h: New file.
51951 * include/grub/tparm.h: Likewise.
51952 * include/grub/i386/pc/serial.h: Likewise.
51953 * term/terminfo.c: Likewise.
51954 * term/tparm.c: Likewise.
51955 * term/i386/pc/serial.c: Likewise.
51956 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51957 serial.mod.
51958 (terminfo_mod_SOURCES): New variable.
51959 (terminfo_mod_CFLAGS): Likewise.
51960 (serial_mod_SOURCES): Likewise.
51961 (serial_mod_CFLAGS): Likewise.
51962
51963 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51964
51965 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51966 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51967 and kern/powerpc/ieee1275/cmain.c, respectively.
51968
51969 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51970 * kern/powerpc/ieee1275/crt0.S: ... here.
51971
51972 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51973 * kern/powerpc/ieee1275/cmain.c: ... here.
51974
51975 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51976 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51977 instead of boot/powerpc/ieee1275/crt0.S and
51978 boot/powerpc/ieee1275/cmain.c, respectively.
51979
51980 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51981 sectors. It was not used anyway.
51982
51983 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51984
51985 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51986 `unused parameter' warning.
51987
51988 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51989
51990 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51991 function.
51992 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51993 getcharwidth.
51994
51995 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51996
51997 * include/grub/normal.h (enum grub_completion_type): Added
51998 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51999
52000 * normal/cmdline.c (print_completion): Handle
52001 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52002 * normal/menu_entry.c (store_completion): Likewise.
52003
52004 * normal/completion.c (complete_arguments): New function.
52005 (grub_normal_do_completion): Call `complete_arguments' when the
52006 current words start with a dash.
52007
52008 2005-08-27 Marco Gerards <metgerards@student.han.nl>
52009
52010 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52011 `gzio.mod' instead of `io.mod').
52012
52013 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
52014
52015 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52016 (DISTDIRS): Added io and video.
52017 Rewrite the search routine to make an output consistently.
52018
52019 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52020 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52021 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52022 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52023 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52024 util/powerpc/ieee1275/misc.c.
52025
52026 * include/grub/gzio.h: New file.
52027 * io/gzio.c: Likewise.
52028
52029 * kern/file.c (grub_file_close): Call grub_device_close only if
52030 FILE->DEVICE is not NULL.
52031
52032 * include/grub/mm.h [!NULL] (NULL): New macro.
52033
52034 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52035
52036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52037 (pkgdata_MODULES): Added gzio.mod.
52038 (gzio_mod_SOURCES): New variable.
52039 (gzio_mod_CFLAGS): Likewise.
52040
52041 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52042 (pkgdata_MODULES): Added gzio.mod.
52043 (gzio_mod_SOURCES): New variable.
52044 (gzio_mod_CFLAGS): Likewise.
52045
52046 * commands/cat.c: Include grub/gzio.h.
52047 (grub_cmd_cat): Use grub_gzfile_open instead of
52048 grub_file_open.
52049
52050 * commands/cmp.c: Include grub/gzio.h.
52051 (grub_cmd_cmp): Use grub_gzfile_open instead of
52052 grub_file_open.
52053
52054 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52055 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52056 grub_file_open.
52057 (grub_rescue_cmd_module): Likewise.
52058
52059 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52060
52061 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52062 kern/sparc64/ieee1275/init.c because it contains _start.
52063 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52064
52065 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52066
52067 * configure.ac: Add support for sparc64 host with ieee1275
52068 firmware.
52069 * configure: Generated from configure.ac.
52070 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52071 instead of int.
52072 (grub_ofdisk_read): Likewise.
52073 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52074 pointers as (void *) to remove a warning.
52075 (grub_ofdisk_close): Likewise.
52076 (grub_ofdisk_read): Likewise.
52077 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52078 returns, so make it return void to remove a warning.
52079 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52080 Corresponding prototype change.
52081 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52082 values, and cast the pointers as (void *) to remove a warning.
52083 (grub_mm_dump): Likewise.
52084 * conf/sparc64-ieee1275.mk: New file.
52085 * conf/sparc64-ieee1275.rmk: Likewise.
52086 * include/grub/sparc64/setjmp.h: Likewise.
52087 * include/grub/sparc64/types.h: Likewise.
52088 * include/grub/sparc64/ieee1275/console.h: Likewise.
52089 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52090 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52091 * include/grub/sparc64/ieee1275/time.h: Likewise.
52092 * kern/sparc64/cache.c: Likewise.
52093 * kern/sparc64/dl.c: Likewise.
52094 * kern/sparc64/ieee1275/init.c: Likewise.
52095 * kern/sparc64/ieee1275/openfw.c: Likewise.
52096
52097 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52098
52099 * util/console.c (grub_ncurses_putchar): If C is greater than
52100 0x7f, set C to a question mark.
52101 (grub_ncurses_getcharwidth): New function.
52102 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52103 getcharwidth.
52104
52105 * normal/menu.c (print_entry): Made aware of Unicode. First,
52106 convert TITLE to UCS-4, and predict the cursor position by
52107 grub_getcharwidth.
52108
52109 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52110 const to SRC.
52111 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52112
52113 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52114
52115 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52116 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52117 grub_strcat.
52118
52119 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52120 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52121 grub_strcpy and grub_strlen. Take it into account that a space
52122 character is inserted as a delimiter.
52123
52124 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52125
52126 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52127 invalid magic in the error.
52128
52129 * commands/search.c: New file.
52130
52131 * util/grub-emu.c (main): Call grub_search_init and
52132 grub_search_fini.
52133
52134 * kern/rescue.c (grub_rescue_print_disks): Removed.
52135 (grub_rescue_print_devices): New function.
52136 (grub_rescue_cmd_ls): Use grub_device_iterate with
52137 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52138 grub_rescue_print_disks.
52139
52140 * kern/partition.c (grub_partition_iterate): Return the result of
52141 PARTMAP->ITERATE instead of GRUB_ERRNO.
52142
52143 * kern/device.c: Include grub/partition.h.
52144 (grub_device_iterate): New function.
52145
52146 * include/grub/partition.h (grub_partition_iterate): Return int
52147 instead of grub_err_t.
52148
52149 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52150 prototype.
52151 [GRUB_UTIL] (grub_search_fini): Likewise.
52152
52153 * include/grub/device.h (grub_device_iterate): New prototype.
52154
52155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52156 commands/search.c.
52157 (pkgdata_MODULES): Added search.mod.
52158 (search_mod_SOURCES): New variable.
52159 (search_mod_CFLAGS): Likewise.
52160
52161 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52162 (pkgdata_MODULES): Added search.mod.
52163 (search_mod_SOURCES): New variable.
52164 (search_mod_CFLAGS): Likewise.
52165
52166 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52167 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52168 All callers changed.
52169
52170 * DISTLIST: Added commands/search.c.
52171
52172 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52173
52174 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52175 conversion.
52176 (grub_getcharwidth): New function.
52177
52178 * kern/misc.c (grub_utf8_to_ucs4): New function.
52179
52180 * include/grub/term.h (struct grub_term): Added a new member
52181 "getcharwidth".
52182 (grub_getcharwidth): New prototype.
52183
52184 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52185
52186 * term/i386/pc/console.c (map_char): New function. Segregated from
52187 grub_console_putchar.
52188 (grub_console_putchar): Use map_char.
52189 (grub_console_getcharwidth): New function.
52190 (grub_console_term): Specified grub_console_getcharwidth as
52191 getcharwidth.
52192
52193 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52194 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52195
52196 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52197 GRUB_ERRNO.
52198 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52199 on grub_strtoul completely.
52200 (write_char): Declare local variables in the beginning of the
52201 function.
52202 (grub_vesafb_getcharwidth): New function.
52203 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52204 getcharwidth.
52205
52206 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52207
52208 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52209 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52210 commands/i386/pc/vbetest.c.
52211
52212 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52213 call grub_vbe_get_controller_info again, because the returned
52214 information is volatile.
52215 (grub_vbe_set_video_mode): Mostly rewritten.
52216 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52217 grub_vbe_status_t correctly.
52218 (grub_vbe_get_video_mode_info): Likewise.
52219 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52220 several if statements.
52221
52222 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52223 * commands/i386/pc/vbeinfo.c: ... this.
52224
52225 * commands/i386/pc/vbe_test.c: Renamed to ...
52226 * commands/i386/pc/vbetest.c: ... this.
52227
52228 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52229 ...
52230 (grub_cmd_vbeinfo): ... this. Save video modes before
52231 iterating. Skip a video mode, if it is not available, not enough
52232 information is given or it is monochrome. Show the memory
52233 model. Leave the interpretation of MODEVAR to grub_strtoul
52234 completely.
52235 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52236 (GRUB_MOD_FINI): Likewise.
52237
52238 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52239 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52240 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52241 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52242 grub_strtoul completely.
52243 (real2pm): Removed.
52244 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52245 (GRUB_MOD_FINI): Likewise.
52246
52247 * normal/misc.c: Include grub/mm.h.
52248
52249 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52250 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52251 (vbe_list_modes_mod_SOURCES): Removed.
52252 (vbe_list_modes_mod_CFLAGS): Likewise.
52253 (vbe_test_mod_SOURCES): Likewise.
52254 (vbe_test_mod_CFLAGS): Likewise.
52255 (vbeinfo_mod_SOURCES): New variable.
52256 (vbeinfo_mod_CFLAGS): Likewise.
52257 (vbetest_mod_SOURCES): Likewise.
52258 (vbetest_mod_CFLAGS): Likewise.
52259
52260 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52261
52262 * normal/misc.c: New file.
52263
52264 * DISTLIST: Added normal/misc.c.
52265
52266 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52267 DISK to HOOK. Call HOOK with DISK.
52268 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52269 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52270 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52271
52272 * normal/menu_entry.c (struct screen): Added a new member
52273 "completion_shown".
52274 (completion_buffer): New global variable.
52275 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52276 (store_completion): New function.
52277 (complete): Likewise.
52278 (clear_completions): Likewise.
52279 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52280 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52281 a tab, call complete.
52282
52283 * normal/completion.c (disk_dev): Removed.
52284 (print_simple_completion): Likewise.
52285 (print_partition_completion): Likewise.
52286 (print_func): New global variable.
52287 (add_completion): Do not take the arguments WHAT or PRINT any
52288 longer. Added a new argument TYPE. Instead of printing directly,
52289 call PRINT_FUNC if not NULL.
52290 All callers changed.
52291 (complete_device): Use a local variable DEV instead of
52292 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52293 (grub_normal_do_completion): Take a new argument HOOK. Do not
52294 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52295 empty string, return NULL instead.
52296 All callers changed.
52297
52298 * normal/cmdline.c (print_completion): New function.
52299
52300 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52301 to HOOK.
52302 All callers changed.
52303
52304 * kern/disk.c (grub_print_partinfo): Removed.
52305
52306 * include/grub/partition.h (struct grub_partition_map): Add a new
52307 argument DISK into HOOK of ITERATE.
52308 (grub_partition_iterate): Add a new argument DISK to HOOK.
52309
52310 * include/grub/normal.h (enum grub_completion_type): New enum.
52311 (grub_completion_type_t): New type.
52312 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52313 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52314 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52315 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52316 (grub_normal_do_completion): Added a new argument HOOK.
52317 (grub_normal_print_device_info): New prototype.
52318
52319 * include/grub/disk.h (grub_print_partinfo): Removed.
52320
52321 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52322 (normal_mod_SOURCES): Likewise.
52323 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52324 (normal_mod_SOURCES): Likewise.
52325
52326 * commands/ls.c (grub_ls_list_disks): Use
52327 grub_normal_print_device_info instead of grub_print_partinfo. Free
52328 PNAME.
52329 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52330 duplicating the code.
52331
52332 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52333
52334 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52335 follow GCS more precisely.
52336 * commands/i386/pc/vbe_test.c: Likewise.
52337 * include/grub/i386/pc/vbe.h: Likewise.
52338 * term/i386/pc/vesafb.c: Likewise.
52339 * video/i386/pc/vbe.c: Likewise.
52340
52341 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52342
52343 * DISTLIST: Added term/i386/pc/vesafb.c
52344 DISTLIST: Added video/i386/pc/vbe.c
52345 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52346 DISTLIST: Added commands/i386/pc/vbe_test.c.
52347 * commands/i386/pc/vbe_list_modes.c: New file.
52348 * commands/i386/pc/vbe_test.c: Likewise.
52349 * term/i386/pc/vesafb.c: Likewise.
52350 * video/i386/pc/vbe.c: Likewise.
52351 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52352 (grub_vbe_probe) Added prototype.
52353 (grub_vbe_set_video_mode) Likewise.
52354 (grub_vbe_get_video_mode) Likewise.
52355 (grub_vbe_get_video_mode_info) Likewise.
52356 (grub_vbe_set_pixel_rgb) Likewise.
52357 (grub_vbe_set_pixel_index) Likewise.
52358 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52359 (pkgdata_MODULES): Added vesafb.mod.
52360 (pkgdata_MODULES): Added vbe_list_modes.mod.
52361 (pkgdata_MODULES): Added vbe_test.mod.
52362 (vbe_mod_SOURCES): Added.
52363 (vbe_mod_CFLAGS): Likewise.
52364 (vesafb_mod_SOURCES): Likewise.
52365 (vesafb_mod_CFLAGS): Likewise.
52366 (vbe_list_modes_mod_SOURCES): Likewise.
52367 (vbe_list_modes_mod_CFLAGS): Likewise.
52368 (vbe_test_mod_SOURCES): Likewise.
52369 (vbe_test_mod_CFLAGS): Likewise.
52370
52371 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52372
52373 * normal/command.c (grub_command_execute): If INTERACTIVE is
52374 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52375 CMDLINE. Disable the pager if INTERACTIVE is true.
52376 All callers are changed.
52377
52378 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52379 before reading a config file.
52380 * normal/main.c (read_config_file): Even if a command is not
52381 found, register it if it is within an entry.
52382
52383 * util/grub-emu.c: Include sys/types.h and unistd.h.
52384 (options): Added --hold.
52385 (struct arguments): Added a new member "hold".
52386 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52387 missing.
52388 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52389 cleared by a debugger, if it is not zero.
52390
52391 * include/grub/normal.h (grub_command_execute): Add an argument
52392 INTERACTIVE.
52393
52394 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52395
52396 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52397
52398 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52399
52400 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52401 program with another one, because the old one didn't detect a bug
52402 in gcc-3.4. Always use regparm 2, because the new test is still
52403 not enough for gcc-4.0. Someone must investigate a simple test
52404 case which detects a bug in gcc-4.0.
52405
52406 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52407
52408 * DISTLIST: Added normal/completion.c.
52409
52410 * normal/completion.c: New file.
52411
52412 * term/i386/pc/console.c (grub_console_getwh): New function.
52413 (grub_console_term): Assign grub_console_getwh to getwh.
52414
52415 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52416 function is defined in normal/completion.c as
52417 grub_normal_do_completion.
52418 (grub_cmdline_get): Use grub_normal_do_completion instead of
52419 grub_tab_complete.
52420
52421 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52422 returns non-zero, otherwise return 0.
52423 (grub_partition_iterate): First, probe the partition map. Then,
52424 call ITERATE only for this partition map.
52425
52426 * kern/misc.c (grub_strncmp): Rewritten.
52427
52428 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52429 returns non-zero. Otherwise return 0.
52430
52431 * include/grub/partition.h (grub_partition_map_iterate): Return
52432 int instead of void.
52433
52434 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52435
52436 * include/grub/misc.h (grub_strncmp): Change the type of N to
52437 grub_size_t.
52438
52439 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52440 of void.
52441
52442 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52443 unsigned explicitly before comparing it with I.
52444
52445 * kern/main.c (grub_env_write_root): Add the attribute unused into
52446 VAR.
52447
52448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52449 normal/completion.c.
52450 (normal_mod_SOURCES): Likewise.
52451 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52452 (normal_mod_SOURCES): Likewise.
52453
52454 * normal/command.c (grub_iterate_commands): If ITERATE returns
52455 non-zero, return one immediately.
52456
52457 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52458
52459 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52460 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52461 descriptions.
52462 (grub_vbe_get_controller_info): New function.
52463 (grub_vbe_get_mode_info): Likewise.
52464 (grub_vbe_set_mode): Likewise.
52465 (grub_vbe_get_mode): Likewise.
52466 (grub_vbe_set_memory_window): Likewise.
52467 (grub_vbe_get_memory_window): Likewise.
52468 (grub_vbe_set_scanline_length): Likewise.
52469 (grub_vbe_get_scanline_length): Likewise.
52470 (grub_vbe_set_display_start): Likewise.
52471 (grub_vbe_get_display_start): Likewise.
52472 (grub_vbe_set_palette_data): Likewise.
52473 * include/grub/i386/pc/vbe.h: New file.
52474
52475 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52476
52477 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52478 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52479 * DISTLIST: Likewise.
52480 * kern/ieee1275/of.c: Moved to ...
52481 * kern/ieee1275/ieee1275.c: ... here.
52482
52483 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52484
52485 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52486 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52487 Pass 0 as `end' parameter to grub_strtoul().
52488
52489 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52490
52491 * include/grub/powerpc/ieee1275/console.h: Do not include
52492 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52493 ifdef.
52494 (grub_console_cur_color): Remove i386-specific prototype.
52495 (grub_console_real_putchar): Likewise.
52496 (grub_console_checkkey): Likewise.
52497 (grub_console_getkey): Likewise.
52498 (grub_console_getxy): Likewise.
52499 (grub_console_gotoxy): Likewise.
52500 (grub_console_cls): Likewise.
52501 (grub_console_setcursor): Likewise.
52502 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52503 Include <grub/machine/console.h>.
52504 * term/ieee1275/ofconsole.c: Likewise.
52505
52506 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52507
52508 * Makefile.in (LIBLZO): New variable.
52509
52510 * configure.ac: Check for LZO version 2.
52511
52512 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52513 lzo/lzo1x.h instead of lzo1x.h.
52514
52515 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52516 of -llzo.
52517
52518 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52519 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52520
52521 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52522 copying the data from PARTITION to P.
52523
52524 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52525
52526 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52527 negative, unload the module.
52528
52529 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52530 map is "pc_partition_map" but not "pc".
52531 (usage): Fix the description. The options are --boot-image and
52532 --core-image but not --boot-file or --core-file.
52533 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52534 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52535 DEFAULT_DIRECTORY.
52536
52537 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52538 --core-file. Specify INSTALL_DEVICE as an argument.
52539
52540 * util/console.c: Include config.h.
52541 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52542 [HAVE_NCURSES_H]: Include ncurses.h.
52543 [HAVE_CURSES_H]: Include curses.h.
52544 [!A_NORMAL] (A_NORMAL): Defined as zero.
52545 [!A_STANDOUT] (A_STANDOUT): Likewise.
52546
52547 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52548 -lncurses.
52549 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52550
52551 * configure.ac: Check for curses libraries and headers.
52552
52553 * Makefile.in (LIBCURSES): New variable.
52554
52555 * genmk.rb (Script::rule): Set the executable bits.
52556
52557 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52558 name of the PC partition map is "pc_partition_map" but not "pc".
52559
52560 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52561
52562 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52563 (modules): Likewise.
52564 (usage): Added descriptions for --modules and --grub-probefs.
52565 Handle --modules and --grub-probefs. Save the arguments in MODULES
52566 and GRUB_PROBEFS, respectively.
52567 Auto-detect a filesystem module against GRUBDIR. If the result is
52568 empty and modules are not specified explicitly, abort the
52569 installation. Add the result to MODULES.
52570
52571 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52572 disk/powerpc/ieee1275/ofdisk.c,
52573 include/grub/powerpc/ieee1275/init.h and
52574 term/powerpc/ieee1275/ofconsole.c.
52575 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52576 term/ieee1275/ofconsole.c.
52577
52578 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52579
52580 * COPYING: Upgraded to the latest version. Only the address of the
52581 FSF office has changed.
52582
52583 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52584
52585 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52586 kern/ieee1275.c with kern/ieee1275/of.c.
52587
52588 * kern/ieee1275.c: Moved to ...
52589 * kern/ieee1275/of.c: ... here.
52590
52591 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52592
52593 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52594 readability.
52595
52596 * config.guess: Updated to the latest version from gnulib.
52597 * config.sub: Likewise.
52598 * install.sh: Likewise.
52599 * mkinstalldirs: Likewise.
52600
52601 * include/grub/console.h: Removed. This file is arch-specific. Do
52602 not put this in include/grub.
52603
52604 * include/grub/i386/pc/console.h: Resurrected.
52605
52606 * util/console.c: Include grub/machine/console.h instead of
52607 grub/console.h.
52608 * util/grub-emu.c: Likewise.
52609
52610 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52611
52612 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52613 hardcoded value.
52614
52615 From Vincent Pelletier <subdino2004@yahoo.fr>
52616 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52617 Redefined to use grub_getwh.
52618 (grub_term): New member named getwh.
52619 (grub_getwh): New prototype.
52620 * kern/term.c (grub_getwh): New function.
52621 * term/i386/pc/console.c (grub_console_getwh): New function.
52622 (grub_console_term): New member `getwh'.
52623 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52624 (grub_vga_term): New member `getwh'.
52625 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52626 grub_ssize_t.
52627 (grub_ofconsole_getw): New function.
52628 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52629 (grub_ofconsole_term): New field named getwh and new initial
52630 value.
52631
52632 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52633
52634 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52635 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52636 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52637 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52638 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52639 of <grub/machine/ieee1275.h>.
52640 * commands/ieee1275/reboot.c: Likewise.
52641 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52642 * kern/ieee1275.c: ... to here. All users updated. Change all
52643 parameter structs to use new type `grub_ieee1275_cell_t'.
52644 * term/powerpc/ieee1275/ofconsole.c: Move ...
52645 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52646 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52647 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52648 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52649 to return int.
52650 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52651 Remove unused prototypes. All users updated.
52652 * include/grub/powerpc/ieee1275/console.h: Removed.
52653 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52654 `grub_ieee1275_cell_t'.
52655 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52656 Cast comparisons with -1 to the correct type.
52657 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52658 type to match `grub_ieee1275_entry_fn'.
52659
52660 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52661
52662 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52663
52664 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52665 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52666 partmap/sun.c.
52667 (grub_probefs_SOURCES): New variable.
52668
52669 * util/i386/pc/grub-probefs.c: New file.
52670
52671 * util/i386/pc/grub-setup.c (main): Call
52672 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52673 grub_hfs_init and grub_jfs_init to initialize the system. Call
52674 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52675 grub_pc_partition_map_fini to finish the system.
52676
52677 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52678
52679 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52680 function.
52681 (grub_multiboot_load_elf32): Likewise.
52682 (grub_multiboot_is_elf64): Likewise.
52683 (grub_multiboot_load_elf64): Likewise.
52684 (grub_multiboot_load_elf): Likewise.
52685 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52686 an ELF32 or ELF64 file.
52687 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52688
52689 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52690 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52691 NULL before calling FS->LABEL.
52692 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52693 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52694 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52695 before calling FS->LABEL.
52696
52697 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52698
52699 * util/i386/pc/grub-install.in (datadir): New variable.
52700 (libdir): Removed.
52701 (pkgdatadir): New variable.
52702 (pkglibdir): Removed.
52703
52704 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52705
52706 * DISTLIST: Added util/i386/pc/grub-install.in.
52707
52708 * util/i386/pc/grub-install.in: New file.
52709
52710 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52711 (grub_install_SOURCES): Likewise.
52712
52713 * genmk.rb: Added support for scripts.
52714 (Script): New class.
52715 (scripts): New variable.
52716
52717 * Makefile.in (install-local): Install sbin_SCRIPTS by
52718 INSTALL_SCRIPT.
52719 (uninstall): Remove sbin_SCRIPTS.
52720
52721 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52722 device, try to get a GRUB device by
52723 grub_util_biosdisk_get_grub_dev.
52724 Free DEST_DEV.
52725
52726 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52727 description for --device-map.
52728
52729 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52730
52731 Change the semantics of variable hooks. They now return strings
52732 instead of error values.
52733
52734 * util/i386/pc/grub-setup.c: Include grub/env.h.
52735 (setup): Use grub_device_set_root instead of grub_env_set.
52736
52737 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52738 grub_env_get instead of grub_device_set_root and
52739 grub_device_get_root, respectively.
52740
52741 * kern/main.c (grub_env_write_root): New function.
52742 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52743 grub_env_set instead of grub_device_set_root.
52744
52745 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52746 many variables.
52747 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52748 rather than calling ENV->WRITE_HOOK afterwards.
52749 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52750 passing a pointer of a pointer.
52751 (grub_register_variable_hook): Change the types of "read_hook" and
52752 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52753 respectively.
52754 Allocate the default empty string on the heap, because this string
52755 may be freed later.
52756
52757 * kern/device.c: Include grub/env.h.
52758 (grub_device_set_root): Removed.
52759 (grub_device_get_root): Likewise.
52760 (grub_device_open): Use grub_env_get instead of
52761 grub_device_get_root.
52762
52763 * include/grub/env.h (grub_env_read_hook_t): New type.
52764 (grub_env_write_hook_t): Likewise.
52765 (grub_env_var): Change the types of "read_hook" and "write_hook"
52766 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52767 (grub_register_variable_hook): Likewise.
52768
52769 * include/grub/device.h (grub_device_set_root): Removed.
52770 (grub_device_set_root): Likewise.
52771
52772 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52773 make sure that DIRNAME terminates with '/', so that
52774 grub_fat_find_dir will fail if PATH is not a directory.
52775
52776 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52777 from DIRNAME.
52778 Use the qualifier auto for print_files and print_files_long.
52779 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52780 as a regular file.
52781 Put a newline only if there is no error.
52782 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52783 used.
52784
52785 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52786
52787 * kern/partition.c (grub_partition_probe): Initialize PART to
52788 NULL. Otherwise, when no partition map is registered, this returns
52789 a garbage.
52790
52791 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52792
52793 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52794 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52795 valid.
52796
52797 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52798
52799 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52800 information on each device, if it does not have partitions. Print
52801 "Device" instead of "Disk", because this function is not specific
52802 to disk devices.
52803
52804 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52805 static to ensure that it is put on the memory rather than a
52806 register.
52807
52808 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52809
52810 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52811 (grub_cat_init): Likewise.
52812 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52813 (options): Likewise.
52814 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52815 (grub_configfile_init): Likewise.
52816 * font/manager.c (GRUB_MOD_INIT): Likewise.
52817 * commands/help.c (GRUB_MOD_INIT): Likewise.
52818 (grub_help_init): Likewise.
52819 * normal/command.c (grub_command_init): Likewise.
52820 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52821 * disk/loopback.c (grub_loop_init): Likewise.
52822 (GRUB_MOD_INIT): Likewise.
52823 * commands/ls.c (grub_ls_init): Likewise.
52824 (GRUB_MOD_INIT): Likewise.
52825 (options): Likewise.
52826 * commands/boot.c (grub_boot_init): Likewise.
52827 (GRUB_MOD_INIT): Likewise.
52828 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52829 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52830 (GRUB_MOD_INIT): Likewise.
52831 * commands/cmp.c (grub_cmp_init): Likewise.
52832 (GRUB_MOD_INIT): Likewise.
52833
52834 * normal/arg.c: Use <> instead of "" to include header files.
52835 (SHORT_ARG_HELP): New macro.
52836 (SHORT_ARG_USAGE): Likewise.
52837 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52838 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52839 descriptions.
52840 (find_short): Check if C is 'h' or 'u' explicitly.
52841 (grub_arg_show_help): Use space characters instead of tabs. Treat
52842 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52843 are shown with --help and --usage only if they are not used for
52844 the command itself.
52845 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52846 'h' and 'u'.
52847
52848 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52849 const into "longarg". Change the type of "shortarg" to int.
52850
52851 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52852
52853 * boot/i386/pc/boot.S (boot_drive_check): New label.
52854
52855 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52856 macro.
52857
52858 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52859 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52860
52861 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52862
52863 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52864 When turning off Gate A20, skip the check and return immediately,
52865 because this is not fatal usually.
52866
52867 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52868
52869 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52870 be 0x7C00 instead of 0x8000.
52871
52872 * boot/i386/pc/pxeboot.S: Rewritten.
52873
52874 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52875 EXT_C.
52876 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52877 result.
52878
52879 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52880
52881 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52882 robustness. This routine now supports a BIOS call and System
52883 Control Port A to modify the gate A20.
52884
52885 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52886 Increased to 0x440.
52887
52888 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52889
52890 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52891 device path and resulting ihandle.
52892 (grub_ofdisk_close): dprintf the ihandle being closed.
52893 (grub_ofdisk_read): dprintf function parameters.
52894 * kern/mm.c (grub_mm_init_region): Likewise.
52895 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52896 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52897 size, and boot arguments.
52898 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52899 before loading into memory.
52900 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52901 before loading into memory.
52902
52903 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52904
52905 * kern/mm.c: Added much documentation.
52906 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52907 8, set to 5 instead of 8.
52908
52909 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52910
52911 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52912
52913 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52914 (grub_mkdevicemap_SOURCES): New variable.
52915
52916 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52917 lib/device.c of GRUB Legacy.
52918
52919 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52920
52921 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52922 instead of PATH is NULL.
52923
52924 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52925
52926 * commands/cmp.c (BUFFER_SIZE): New macro.
52927 (grub_cmd_cmp): Close the right file at the right time. Compare
52928 only data just read. Don't report files of different size as
52929 identical. Dynamically allocate buffers. Move variable
52930 declarations at the beginning of function.
52931
52932 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52933
52934 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52935 reverse.
52936
52937 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52938
52939 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52940 when backspace is pressed at beginning of line.
52941
52942 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52943
52944 * DISTLIST: Added genfslist.sh.
52945
52946 * normal/main.c (fs_module_list): New variable.
52947 (autoload_fs_module): New function.
52948 (read_fs_list): Likewise.
52949 (grub_normal_execute): Call read_fs_list.
52950
52951 * kern/fs.c (grub_fs_autoload_hook): New variable.
52952 (grub_fs_probe): Added support for auto-loading.
52953
52954 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52955 (grub_fs_module_list_t): New type.
52956
52957 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52958 (grub_fs_autoload_hook): New prototype.
52959
52960 * genfslist.sh: New file.
52961
52962 * genmk.rb: Added a rule to generate a filesystem list.
52963
52964 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52965
52966 * configure.ac: Fix the test for cross-compiling.
52967
52968 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52969 define GRUB_UTIL anymore.
52970
52971 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52972 so this function works on other systems than just big endian.
52973 (load_modules): Likewise.
52974 (add_segments): Likewise.
52975
52976 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52977
52978 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52979 contains `l' modifier, get a long from va_arg().
52980
52981 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52982
52983 * kern/mm.c (grub_free): If the next free block which is being
52984 merged is the first free block, set the first block to the block
52985 being freed.
52986 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52987
52988 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52989
52990 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52991 `grub_ieee1275_chosen'.
52992
52993 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52994
52995 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52996 (grub_ieee1275_chosen): New variable.
52997 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52998 `chosen'.
52999 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53000 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53001 Rename first argument to `phandle' for consistency.
53002 (grub_ieee1275_get_property_length): Likewise.
53003 (grub_ieee1275_next_property): Likewise. Change type of first argument
53004 to grub_ieee1275_phandle_t.
53005 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53006 Move export next to declaration.
53007 (grub_ieee1275_chosen): New variable.
53008 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53009 Correct cosmetic typo.
53010 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53011 `grub_ieee1275_chosen'.
53012 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53013 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53014 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53015 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53016 `grub_ieee1275_chosen'.
53017
53018 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53019
53020 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53021 /chosen/bootargs.
53022 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53023 /chosen/bootargs as "variable=value" pairs.
53024
53025 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53026
53027 * include/grub/misc.h (grub_dprintf): New macro.
53028 (grub_real_dprintf): New prototype.
53029 (grub_strword): Likewise.
53030 (grub_iswordseparator): Likewise.
53031 * kern/misc.c (grub_real_dprintf): New function.
53032 (grub_strword): Likewise.
53033 (grub_iswordseparator): Likewise.
53034
53035 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53036
53037 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53038 (roundup): Remove macro.
53039 (grub_ieee1275_flags): Make static.
53040 (grub_ieee1275_realmode): Remove.
53041 (grub_ieee1275_test_flag): New function.
53042 (grub_ieee1275_set_flag): Likewise.
53043 (find_options): Rename to `grub_ieee1275_find_options'; update
53044 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53045 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53046 (cmain): New prototype.
53047 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53048 `grub_ieee1275_flags' directly.
53049 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53050 machine/biosdisk.h.
53051 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53052 Don't include grub/machine/init.h.
53053 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53054 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53055 Remove prototype.
53056 (grub_ieee1275_realmode): Likewise.
53057 (grub_ieee1275_flag): New enum.
53058 (grub_ieee1275_test_flag): New prototype.
53059 (grub_ieee1275_set_flag): New prototype.
53060 * include/grub/powerpc/ieee1275/init.h: Remove file.
53061 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53062 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53063 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53064 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53065 comment.
53066 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53067 `grub_ieee1275_test_flag'.
53068 (grub_ieee1275_encode_devname): Likewise.
53069
53070 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53071
53072 * include/grub/powerpc/ieee1275/ieee1275.h
53073 (grub_ieee1275_encode_devname): New prototype.
53074 (grub_ieee1275_get_filename): Likewise.
53075 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53076 function.
53077 (grub_set_prefix): Likewise.
53078 (grub_machine_init): Call grub_set_prefix.
53079 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53080 (grub_parse_type): New enum.
53081 (grub_ieee1275_get_devargs): New function.
53082 (grub_ieee1275_get_devname): Likewise.
53083 (grub_ieee1275_parse_args): Likewise.
53084 (grub_ieee1275_get_filename): Likewise.
53085 (grub_ieee1275_encode_devname): Likewise.
53086
53087 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53088
53089 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53090 `grub_loader_unset'.
53091
53092 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53093
53094 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53095 instead of grub_ieee1275_interpret.
53096 (grub_halt_init): New function.
53097 (grub_halt_fini): Likewise.
53098 (GRUB_MOD_INIT): Correct message grammar.
53099 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53100 instead of grub_ieee1275_interpret.
53101 (grub_reboot_init): New function.
53102 (grub_reboot_fini): Likewise.
53103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53104 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53105 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53106 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53107 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53108 function.
53109 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53110 Add prototype.
53111 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53112 prototype.
53113 (grub_halt): Likewise.
53114 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53115 (cmain): Remove __attribute__((unused)).
53116 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53117 (grub_heap_len): Likewise.
53118 (grub_machine_fini): New function.
53119 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53120 (grub_halt): Likewise.
53121 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53122 function.
53123 * util/powerpc/ieee1275/misc.c: New file.
53124
53125 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53126
53127 * DISTLIST: New file.
53128 * gendistlist.sh: Likewise.
53129
53130 * Makefile.in (COMMON_DISTFILES): Removed.
53131 (BOOT_DISTFILES): Likewise.
53132 (CONF_DISTFILES): Likewise.
53133 (DISK_DISTFILES): Likewise.
53134 (FS_DISTFILES): Likewise.
53135 (INCLUDE_DISTFILES): Likewise.
53136 (KERN_DISTFILES): Likewise.
53137 (LOADER_DISTFILES): Likewise.
53138 (TERM_DISTFILES): Likewise.
53139 (UTIL_DISTFILES): Likewise.
53140 (DISTFILES): Likewise.
53141 (uninstall): Uninstall files in $(pkgdata_DATA).
53142 (DISTLIST): New target.
53143 (distdir): Use the contents of the file DISTLIST to get a list of
53144 distributed files.
53145
53146 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53147
53148 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53149 descriptor. This is ported from GRUB Legacy.
53150
53151 * gencmdlist.sh: Added an extra semicolon to make it work with
53152 old sed versions. Reported by Robert Bihlmeyer
53153 <robbe@orcus.priv.at>.
53154
53155 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53156
53157 Automatic loading of commands is supported.
53158
53159 * normal/main.c (read_command_list): New function.
53160 (grub_normal_execute): Call read_command_list.
53161
53162 * normal/command.c (grub_register_command): Return zero or CMD.
53163 Allocate CMD->NAME from the heap.
53164 Initialize CMD->MODULE_NAME to zero.
53165 Find the same name as well. If the same command is found and it is
53166 a dummy command, overwrite members. If it is not a dummy command,
53167 return zero.
53168 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53169 (grub_command_find): If a dummy command is found, load a module
53170 and retry to find a command only once.
53171
53172 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53173 make sure that each command is loaded.
53174
53175 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53176 macro.
53177 (struct grub_command): Remove const from the member `name'.
53178 Add a new member `module_name'.
53179 (grub_register_command): Return grub_command_t.
53180
53181 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53182 sure that each command is loaded.
53183
53184 * genmk.rb (PModule::rule): Specify a module name without the
53185 suffix ".mod" to gencmdlist.sh.
53186
53187 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53188
53189 * gencmdlist.sh: New file.
53190
53191 * genmk.rb (PModule::rule): Generate a rule for a command list.
53192 Clean command.lst.
53193 Generate command.lst from $(COMMANDFILES).
53194
53195 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53196 (DATA): Added $(pkgdata_DATA).
53197 (install-local): Install files in $(pkgdata_DATA).
53198
53199 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53200
53201 * term/i386/pc/vga.c (debug_command): Removed.
53202 (GRUB_MOD_INIT): Do not register the command "debug".
53203
53204 From Hollis Blanchard:
53205 * commands/configfile.c: New file.
53206 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53207 commands/configfile.c.
53208 (pkgdata_MODULES): Added configfile.mod.
53209 (configfile_mod_SOURCES): New variable.
53210 (configfile_mod_CFLAGS): Likewise.
53211 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53212 commands/configfile.c.
53213 (pkgdata_MODULES): Added configfile.mod.
53214 (configfile_mod_SOURCES): New variable.
53215 (configfile_mod_CFLAGS): Likewise.
53216 * util/grub-emu.c (main): Call grub_configfile_init and
53217 grub_configfile_fini.
53218 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53219 prototype.
53220 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53221
53222 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53223
53224 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53225 address.
53226
53227 * commands/help.c (grub_cmd_help): Do not print newlines after
53228 the last command in print_command_help.
53229
53230 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53231
53232 * commands/default.h: New file.
53233 * commands/timeout.h: Likewise.
53234 * normal/context.c: Likewise.
53235
53236 * util/misc.c: Do not include sys/times.h.
53237 Include sys/time.h and grub/machine/time.h.
53238 (grub_get_rtc): Rewritten with gettimeofday.
53239
53240 * util/grub-emu.c (main): Call grub_default_init and
53241 grub_timeout_init before grub_normal_init, and call
53242 grub_timeout_fini and grub_default_fini after grub_main.
53243
53244 * util/console.c (grub_ncurses_checkkey): Return the read
53245 character or -1.
53246
53247 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53248 timeouts.
53249
53250 * normal/main.c (read_config_file): Push MENU. If this fails,
53251 print an error and wait for a user input.
53252 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53253 If a menu is empty or an error occurs, pop MENU.
53254 (grub_normal_execute): Pop and free MENU after grub_menu_run
53255 returns.
53256
53257 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53258
53259 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53260 include time.h.
53261 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53262 without GRUB_UTIL.
53263 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53264 time.h.
53265 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53266 without GRUB_UTIL.
53267
53268 * include/grub/normal.h (struct grub_menu_list): New struct.
53269 (grub_menu_list_t): New type.
53270 (struct grub_context): New struct.
53271 (grub_context_t): New type.
53272 (grub_register_command): Got rid of EXPORT_FUNC.
53273 (grub_unregister_command): Likewise.
53274 (grub_context_get): New prototype.
53275 (grub_context_get_current_menu): Likewise.
53276 (grub_context_push_menu): Likewise.
53277 (grub_context_pop_menu): Likewise.
53278 [GRUB_UTIL] (grub_default_init): Likewise.
53279 [GRUB_UTIL] (grub_default_fini): Likewise.
53280 [GRUB_UTIL] (grub_timeout_init): Likewise.
53281 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53282
53283 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53284 commands/timeout.c and normal/context.c.
53285 (pkgdata_MODULES): Added default.mod and timeout.mod.
53286 (normal_mod_SOURCES): Added normal/context.c.
53287 (default_mod_SOURCES): New variable.
53288 (default_mod_CFLAGS): Likewise.
53289 (timeout_mod_SOURCES): Likewise.
53290 (timeout_mod_CFLAGS): Likewise.
53291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53292 conf/i386-pc.rmk.
53293 (pkgdata_MODULES): Added default.mod and timeout.mod.
53294 (normal_mod_SOURCES): Added normal/context.c.
53295 (default_mod_SOURCES): New variable.
53296 (default_mod_CFLAGS): Likewise.
53297 (timeout_mod_SOURCES): Likewise.
53298 (timeout_mod_CFLAGS): Likewise.
53299
53300 * Makefile.in (all-local): Added $(MKFILES).
53301
53302 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53303
53304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53305 (grub_emu_SOURCES): Likewise.
53306 (pkgdata_MODULES): Add `sun.mod'.
53307 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53309 `partmap/sun.c'.
53310 (pkgdata_MODULES): Add `sun.mod'.
53311 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53312 * include/grub/partition.h (grub_sun_partition_map_init): New
53313 prototype.
53314 (grub_sun_partition_map_fini): Likewise.
53315 * partmap/sun.c: New file.
53316 * util/grub-emu.c (main): Initialize and de-initialize the sun
53317 partitionmap support.
53318
53319 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53320
53321 This implements an Emacs-like menu entry editor.
53322
53323 * normal/menu_entry.c: New file.
53324
53325 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53326 characters to ASCII.
53327 (saved_char): New variable.
53328 (grub_ncurses_checkkey): Rewritten completely.
53329 (grub_ncurses_getkey): Likewise.
53330 (grub_ncurses_init): Call raw instead of cbreak.
53331
53332 * normal/menu.c (print_entry): Do not put a space.
53333 (init_page): Renamed to ...
53334 (grub_menu_init_page): ... this. All callers changed.
53335 (edit_menu_entry): Removed.
53336 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53337
53338 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53339
53340 * kern/misc.c (grub_vprintf): Call grub_refresh.
53341
53342 * normal/menu.c (DISP_LEFT): Renamed to ...
53343 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53344 * normal/menu.c (DISP_UP): Renamed to ...
53345 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53346 * normal/menu.c (DISP_RIGHT): Renamed to ...
53347 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53348 * normal/menu.c (DISP_DOWN): Renamed to ...
53349 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53350 * normal/menu.c (DISP_HLINE): Renamed to ...
53351 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53352 * normal/menu.c (DISP_VLINE): Renamed to ...
53353 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53354 * normal/menu.c (DISP_UL): Renamed to ...
53355 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53356 * normal/menu.c (DISP_UR): Renamed to ...
53357 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53358 * normal/menu.c (DISP_LL): Renamed to ...
53359 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53360 * normal/menu.c (DISP_LR): Renamed to ...
53361 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53362 * normal/menu.c (TERM_WIDTH): Renamed to ...
53363 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53364 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53365 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53366 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53367 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53368 * normal/menu.c (TERM_MARGIN): Renamed to ...
53369 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53370 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53371 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53372 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53373 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53374 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53375 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53376 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53377 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53378 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53379 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53380 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53381 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53382 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53383 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53384 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53385 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53386 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53387 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53388 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53389 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53390 All callers changed.
53391
53392 * include/grub/normal.h: New prototype.
53393
53394 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53395 normal/menu_entry.c.
53396 (normal_mod_SOURCES): Likewise.
53397 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53398 (normal_mod_SOURCES): Likewise.
53399
53400 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53401
53402 * include/grub/normal.h (grub_halt_init): New prototype.
53403 (grub_halt_fini): Likewise.
53404 (grub_reboot_init): Likewise.
53405 (grub_reboot_fini): Likewise.
53406
53407 * util/grub-emu.c: Include signal.h.
53408 (main_env): New global variable.
53409 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53410 catch C-c.
53411 (grub_machine_fini): New function.
53412 (main): Call grub_halt_init and grub_reboot_init before
53413 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53414 Call setjmp with MAIN_ENV to go back afterwards.
53415 Call grub_machine_fini right before return.
53416
53417 * include/grub/util/misc.h: Include setjmp.h.
53418 (main_env): New prototype.
53419
53420 * include/grub/kernel.h (grub_machine_fini): New prototype.
53421 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53422 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53423
53424 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53425 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53426 * term/i386/pc/console.c (grub_console_fini): Likewise.
53427
53428 * util/i386/pc/misc.c: New file.
53429
53430 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53431 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53432 commands/i386/pc/reboot.c.
53433
53434 2005-02-14 Guillem Jover <guillem@hadrons.org>
53435
53436 * include/grub/dl.h (grub_dl_check_header): New prototype.
53437 (grub_arch_dl_check_header): Change return type to grub_err_t,
53438 remove size parameter and export function. Update all callers.
53439 * kern/dl.c (grub_dl_check_header): New function.
53440 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53441 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53442 are inside the core.
53443 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53444 independent ELF header checks.
53445 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53446 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53447 `grub_dl_check_header' instead of explicit checks. Check for the
53448 ELF type.
53449 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53450 `grub_dl_check_header' instead of explicit checks. Remove arch
53451 specific ELF header checks.
53452
53453 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53454 argument SIZE.
53455
53456 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53457
53458 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53459 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53460
53461 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53462
53463 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53464 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53465 (part_map_iterate): Clear `grub_errno' and return 0 if
53466 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53467 * partmap/amiga.c (amiga_partition_map_iterate): Return
53468 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53469 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53470
53471 2005-02-01 Guillem Jover <guillem@hadrons.org>
53472
53473 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53474 help info.
53475
53476 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53477
53478 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53479 Removed prototype.
53480 (grub_rescue_cmd_linux): New prototype.
53481 (grub_rescue_cmd_initrd): Likewise.
53482 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53483 `bi_rec'.
53484 (grub_linux_release_mem): Release the memory for the initrd.
53485 (grub_load_linux): Renamed from this...
53486 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53487 Changed `entry' not to be static. Loop over memory regions to
53488 find another one when the default fails.
53489 (grub_rescue_cmd_initrd): New function.
53490 (grub_linux_init): Remove function.
53491 (grub_linux_fini): Likewise.
53492 (GRUB_MOD_INIT): Register `initrd'.
53493 (GRUB_MOD_FINI): Unregister `initrd'.
53494 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53495 Function removed.
53496 (grub_linux_normal_fini): Likewise.
53497 (GRUB_MOD_INIT): Register `initrd'.
53498 (GRUB_MOD_FINI): Unregister `initrd'.
53499
53500 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53501
53502 * commands/help.c: New file.
53503 * normal/arg.c (show_help): Renamed to...
53504 (grub_arg_show_help): ... this.
53505 * commands/i386/pc/halt.c: New file.
53506 * commands/i386/pc/reboot.c: Likewise.
53507 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53508 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53509 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53510 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53511 variables.
53512 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53513 `commands/help.c'.
53514 (pkgdata_MODULES): Add `help.mod'.
53515 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53516 * grub/i386/pc/init.h (grub_reboot): New prototype.
53517 (grub_halt): Likewise.
53518 * include/grub/normal.h (grub_arg_show_help): New prototype.
53519 (grub_help_init): Likewise.
53520 (grub_help_fini): Likewise.
53521 * util/grub-emu.c (main): Initialize and deinitialize the help
53522 command.
53523
53524 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53525
53526 * normal/command.c (grub_command_init): Fixed the description of
53527 the `set' and `unset' commands.
53528
53529 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53530
53531 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53532 function.
53533 * commands/ieee1275/halt.c: New file.
53534 * commands/ieee1275/reboot.c: Likewise.
53535 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53536 `__attribute__ ((unused))'. Some GCS related fixed.
53537 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53538 (grub_suspend_fini): Likewise.
53539 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53540 and `halt.mod'.
53541 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53542 (halt_mod_CFLAGS): New variables.
53543 * include/grub/powerpc/ieee1275/ieee1275.h
53544 (grub_ieee1275_interpret): New prototype.
53545
53546 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53547
53548 * include/grub/misc.h (memmove): New prototype.
53549 (memcpy): Likewise.
53550
53551 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53552
53553 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53554 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53555
53556 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53557
53558 * kern/misc.c (grub_strndup): Function rewritten.
53559
53560 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53561
53562 * normal/menu.c (TERM_WIDTH): Macro redefined.
53563 (TERM_TOP_BORDER_Y): Likewise.
53564 (draw_border): Replaced while-loop by a for-loop. Make the number
53565 of lines consistent with the number of lines displayed in
53566 print_entries. Added a margin below the rectangle.
53567 (print_entry): Make the entry fit in the rectangle.
53568 (print_entries): Display the scroll arrows next to the right
53569 border.
53570
53571 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53572
53573 * fs/minix.c (grub_minix_find_file): Reserve more space for
53574 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53575 `grub_strncpy' to copy `path' into it.
53576
53577 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53578
53579 Add the loopback device, a device via which files can be accessed
53580 as devices.
53581
53582 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53583 (pkgdata_MODULES): Add loopback.mod.
53584 (loopback_mod_SOURCES): New variable.
53585 (loopback_mod_CFLAGS): Likewise.
53586 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53587 `disk/loopback.c'.
53588 (pkgdata_MODULES): Add loopback.mod.
53589 (loopback_mod_SOURCES): New variable.
53590 (loopback_mod_CFLAGS): Likewise.
53591 * disk/loopback.c: new file.
53592 * include/grub/normal.h (grub_loop_init): New prototype.
53593 (grub_loop_fini): New prototype.
53594 * util/grub-emu.c (main): Initialize and de-initialize loopback
53595 support.
53596 * include/grub/disk.h (grub_disk_dev_id): Add
53597 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53598
53599 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53600
53601 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53602 function.
53603 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53604 (suspend_mod_SOURCES): New variable.
53605 (suspend_mod_CFLAGS): Likewise.
53606 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53607 New prototype.
53608 * commands/ieee1275/suspend.c: New file.
53609
53610 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53611
53612 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53613 ((unused))' to `__attribute__ ((used))'.
53614 (GRUB_MOD_FINI): Likewise.
53615 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53616 * genmk.rb (PModule): Assign space to common symbols when linking
53617 modules.
53618
53619 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53620
53621 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53622 `unsigned' arguments to `grub_size_t'.
53623 (grub_malloc): Likewise.
53624 (grub_realloc): Likewise.
53625 (grub_memalign): Likewise.
53626 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53627 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53628 * util/misc.c (grub_malloc): Likewise.
53629 (grub_realloc): Likewise.
53630 * kern/mm.c (get_header_from_pointer): Change the casts to
53631 `unsigned' into a cast to `grub_size_t'.
53632
53633 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53634 point to `currnode' when `currnode' is changed.
53635
53636 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53637 Schottelius <nico-linux@schottelius.org>.
53638
53639 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53640
53641 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53642 (note_path): Remove variable.
53643 (GRUB_IEEE1275_NOTE_NAME): New macro.
53644 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53645 (grub_ieee1275_note_hdr): New structure.
53646 (grub_ieee1275_note_desc): Likewise.
53647 (grub_ieee1275_note): Likewise.
53648 (load_note): Remove `dir' argument. All callers updated. Remove
53649 `note_img' and `path'. Do not load a file from `note_path'.
53650 Initialize a struct grub_ieee1275_note and write that to `out'.
53651 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53652
53653 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53654
53655 * util/misc.c (grub_util_read_image): Revert last change. It
53656 called `grub_util_read_at', which seeks from the beginning of the
53657 file.
53658
53659 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53660
53661 * TODO: Add note about endianness in grub-mkimage.
53662 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53663 section.
53664 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53665 (grub_mkimage_SOURCES): New target.
53666 * include/grub/kernel.h (grub_start_addr): Remove variable.
53667 (grub_end_addr): Likewise.
53668 (grub_total_module_size): Likewise.
53669 (grub_kernel_image_size): Likewise.
53670 (GRUB_MODULE_MAGIC): New constant.
53671 (grub_module_info): New structure.
53672 (grub_arch_modules_addr): New prototype.
53673 (grub_get_end_addr): Remove prototype.
53674 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53675 * include/grub/powerpc/ieee1275/kernel.h: New file.
53676 * include/grub/util/misc.h (grub_util_get_fp_size): New
53677 prototype.
53678 (grub_util_read_at): Likewise.
53679 (grub_util_write_image_at): Likewise.
53680 * kern/main.c (grub_get_end_addr): Remove function.
53681 (grub_load_modules): Call grub_arch_modules_addr instead of using
53682 grub_end_addr. Look for a grub_module_info struct in memory. Use
53683 the grub_module_info fields instead of calling grub_get_end_addr
53684 as loop conditions. Move grub_add_unused_region code here.
53685 (grub_add_unused_region): Remove function.
53686 * kern/i386/pc/init.c: Include grub/cache.h.
53687 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53688 one call to add_mem_region.
53689 (grub_arch_modules_addr): New function.
53690 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53691 (grub_total_module_size): Likewise.
53692 Include grub/machine/kernel.h.
53693 (grub_arch_modules_addr): New function.
53694 * util/grub-emu.c (grub_end_addr): Remove variable.
53695 (grub_total_module_size): Likewise.
53696 (grub_arch_modules_addr): New function.
53697 * util/misc.c: Include unistd.h.
53698 (grub_util_get_fp_size): New function.
53699 (grub_util_read_at): Likewise.
53700 (grub_util_write_image_at): Likewise.
53701 (grub_util_read_image): Call grub_util_read_at.
53702 (grub_util_write_image): Call grub_util_write_image_at.
53703 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53704 additional memory in kernel_img for a struct grub_module_info.
53705 Fill in that grub_module_info.
53706 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53707
53708 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53709
53710 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53711 New function.
53712 * include/grub/powerpc/ieee1275/ieee1275.h
53713 (grub_ieee1275_milliseconds): New prototype.
53714 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53715 Change to 1000.
53716 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53717 grub_ieee1275_milliseconds.
53718
53719 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53720
53721 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53722 variable.
53723 (find_options): New function.
53724 (cmain): Call find_options.
53725 * include/grub/powerpc/ieee1275/ieee1275.h
53726 (grub_ieee1275_realmode): New extern variable.
53727 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53728 grub_map if grub_ieee1275_realmode is false.
53729
53730 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53731
53732 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53733 lines are inserted and make it work like readline. Reported by
53734 Vincent Pelletier <subdino2004@yahoo.fr>.
53735
53736 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53737
53738 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53739
53740 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53741 `kern/powerpc/cache.S'.
53742
53743 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53744
53745 * genmk.rb: Handle the `Program' class in the main loop. Written
53746 by Johan Rydberg <jrydberg@gnu.org>.
53747 (Program): New class.
53748 (programs): New variable.
53749 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53750 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53751 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53752 (help_arch): Function removed.
53753 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53754 `powerpc/libgcc.h' and `loader.h'.
53755 (pkgdata_PROGRAMS): New variable.
53756 (sbin_UTILITIES): Variable removed.
53757 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53758 (grubof_SOURCES): Variable re-defined so it only includes the
53759 core functionality.
53760 (grubof_CFLAGS): Remove `-DGRUBOF'.
53761 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53762 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53763 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53764 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53765 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53766 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53767 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53768 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53769 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53770 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53771 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53772 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53773 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53774 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53775 (pc_mod_CFLAGS): New variables.
53776 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53777 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53778 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53779 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53780 Moved from here...
53781 * include/grub/i386/pc/init.h (grub_os_area_addr)
53782 (rub_os_area_size): ... to here.
53783 * include/grub/powerpc/ieee1275/ieee1275.h
53784 (grub_ieee1275_entry_fn): Export symbol.
53785 * include/grub/powerpc/ieee1275/init.h: New file.
53786 * include/grub/powerpc/libgcc.h: Likewise.
53787 * include/grub/cache.h: Likewise.
53788 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53789 <hollis@penguinppc.org>.
53790 * kern/dl.c: Include <grub/cache.h>.
53791 (grub_dl_flush_cache): New function.
53792 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53793 for this module.
53794 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53795 (grub_console_init): Removed prototypes.
53796 (grub_machine_init): Don't initialize the modules anymore.
53797 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53798 static.
53799 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53800 Macro undef removed.
53801 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53802 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53803 relocation `R_PPC_REL32'. Return an error when the relocation is
53804 unknown.
53805 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53806 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53807 * util/misc.c (grub_arch_sync_caches): Likewise.
53808
53809 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53810
53811 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53812 `symlist.c', add `grubof_symlist.c'.
53813 (symlist.c): Variable removed.
53814 (grubof_HEADERS): Variable added.
53815 (grubof_symlist.c): New target.
53816 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53817 `kernel_img_HEADERS'.
53818 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53819 * kern/powerpc/dl.c: New file.
53820 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53821 Function removed.
53822 (grub_arch_dl_relocate_symbols): Likewise.
53823 (grub_register_exported_symbols): Likewise.
53824
53825 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53826
53827 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53828 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53829 to fail instead. Reported by Vincent Pelletier
53830 <subdino2004@yahoo.fr>.
53831
53832 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53833 it is not allocated. Reported by Vincent Pelletier
53834 <subdino2004@yahoo.fr>.
53835
53836 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53837 output so the output looks better.
53838
53839 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53840
53841 Modulize the partition map support and add support for the amiga
53842 partition map.
53843
53844 * commands/ls.c: Include <grub/partition.h> instead of
53845 <grub/machine/partition.h>.
53846 * kern/disk.c: Likewise.
53847 * kern/rescue.c: Likewise.
53848 * loader/i386/pc/chainloader.c: Likewise.
53849 * normal/cmdline.c: Likewise.
53850 * kern/powerpc/ieee1275/init.c: Likewise.
53851 (grub_machine_init): Call `grub_pc_partition_map_init',
53852 `grub_amiga_partition_map_init' and
53853 `grub_apple_partition_map_init'.
53854 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53855 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53856 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53857 `partition.h' and `pc_partition.h'.
53858 (grub_setup_SOURCES): Remove
53859 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53860 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53861 (grub_emu_SOURCES): Likewise.
53862 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53863 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53864 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53866 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53867 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53868 (grubof_SOURCES): Likewise.
53869 * disk/i386/pc/partition.c: File removed.
53870 * disk/powerpc/ieee1275/partition.c: Likewise.
53871 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53872 * include/grub/i386/pc/partition.h: Likewise.
53873 * kern/partition.c: New file.
53874 * partmap/amiga.c: Likewise.
53875 * partmap/apple.c: Likewise.
53876 * partmap/pc.c: Likewise.
53877 * include/grub/partition.h: Likewise..
53878 * include/grub/pc_partition.h: Likewise.
53879 * util/grub-emu.c: Include <grub/partition.h> instead of
53880 <grub/machine/partition.h>.
53881 (main): Call `grub_pc_partition_map_init',
53882 `grub_amiga_partition_map_init' and
53883 `grub_apple_partition_map_init' and deinitialize afterwards.
53884 * util/i386/pc/biosdisk.c: Include `#include
53885 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53886 `<grub/machine/partition.h>'.
53887 * util/i386/pc/grub-setup.c: Likewise.
53888 * util/i386/pc/biosdisk.c: Likewise.
53889 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53890 partition information in case of a PC partition.
53891 * util/i386/pc/grub-setup.c: Include `#include
53892 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53893 `<grub/machine/partition.h>'.
53894 (setup): Only access the PC specific partition information in case
53895 of a PC partition.
53896
53897 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53898
53899 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53900 (grub_longjmp): Likewise.
53901 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53902 20.
53903 * normal/powerpc/setjmp.S: New file.
53904 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53905 `normal/powerpc/setjmp.S'.
53906 (grubof_CFLAGS): Add `-DGRUBOF'.
53907 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53908 [GRUB_UTIL && !GRUBOF].
53909
53910 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53911
53912 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53913 property named `name'. Correctly handle the error returned by
53914 `grub_ieee1275_finddevice' if a device can not be opened.
53915
53916 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53917
53918 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53919 `actual' for negativity.
53920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53921 kern/fshelp.c.
53922
53923 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53924
53925 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53926 (PAGE_OFFSET): New macro.
53927 (CRTC_ADDR_PORT): Likewise.
53928 (CRTC_DATA_PORT): Likewise.
53929 (START_ADDR_HIGH_REGISTER): Likewise.
53930 (START_ADDR_LOW_REGISTER): Likewise.
53931 (GRAPHICS_ADDR_PORT): Likewise.
53932 (GRAPHICS_DATA_PORT): Likewise.
53933 (READ_MAP_REGISTER): Likewise.
53934 (INPUT_STATUS1_REGISTER): Likewise.
53935 (INPUT_STATUS1_VERTR_BIT): Likewise.
53936 (page): New variable.
53937 (wait_vretrace): New function.
53938 (set_read_map): Likewise.
53939 (set_start_address): Likewise.
53940 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53941 the right page.
53942 (check_vga_mem): Take the page into account.
53943 (write_char): Likewise.
53944 (write_cursor): Likewise.
53945 (scroll_up): Likewise. Copy the page to the page that is not
53946 shown and switch between both pages.
53947 (grub_vga_putchar): Fix off by one error.
53948 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53949 account.
53950
53951 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53952
53953 Add support for iso9660 (including rockridge).
53954
53955 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53956 (iso9660_mod_SOURCES): New variable.
53957 (iso9660_mod_CFLAGS): Likewise.
53958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53959 * include/grub/fs.h (grub_iso9660_init): New prototype.
53960 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53961 * fs/iso9660.c: New file.
53962
53963 * include/grub/misc.h (grub_strncat): New prototype.
53964 * kern/misc.c (grub_strncat): New function.
53965
53966 * fs/hfs.c (grub_hfs_mount): Translate the error
53967 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53968 * fs/jfs.c (grub_jfs_mount): Likewise.
53969 * fs/ufs.c (grub_ufs_mount): Likewise.
53970
53971 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53972
53973 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53974 which initialized BAT registers.
53975 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53976 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53977 Move from here...
53978 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53979 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53980 ... to here.
53981 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53982 (grub_mapclaim): Likewise.
53983 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53984 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53985 hand.
53986
53987 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53988
53989 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53990 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53991 -ffreestanding and -msoft-float.
53992
53993 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53994
53995 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53996 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53997 set in grub_ieee1275_flags.
53998
53999 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
54000
54001 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54002 prototype.
54003 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54004 grub_console_init first.
54005 Change the memory range used for grub_ieee1275_claim and
54006 grub_mm_init_region.
54007 Print an error message if the claim fails.
54008 Include <grub/misc.h>.
54009
54010 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
54011
54012 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54013 Call grub_children_iterate for device nodes of type `scsi',
54014 `ide', or `ata'.
54015 (grub_ofdisk_open): Remove manual device alias resolution.
54016 Fix memory leak when device cannot be opened.
54017 * include/grub/powerpc/ieee1275/ieee1275.h
54018 (grub_children_iterate): New prototype.
54019 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54020 New function.
54021 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54022 Return -1 if args.size was -1.
54023
54024 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54025
54026 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54027 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54028 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54029 Open Firmware's memory for it; claim memory from _start to _end.
54030 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54031 (_end): New extern.
54032 (_start): Zero BSS from __bss_start to _end.
54033 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54034 New extern.
54035 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54036
54037 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54038
54039 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54040 -1 if args.base was -1.
54041
54042 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54043
54044 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54045 escape sequence instead of a literal ^L. Also call
54046 grub_ofconsole_gotoxy.
54047
54048 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54049
54050 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54051 void * arguments to grub_addr_t. All callers updated. Also make
54052 the `result' argument optional.
54053 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54054 All callers updated.
54055
54056 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54057
54058 * commands/ls.c (grub_ls_list_files): Use the string following the
54059 initial ')', if present, as the filesystem path.
54060 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54061
54062 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54063
54064 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54065
54066 Make the source code of the menu interface more readable.
54067
54068 * normal/menu.c: Include grub/mm.h.
54069 (TERM_WIDTH): New macro.
54070 (TERM_HEIGHT): Likewise.
54071 (TERM_INFO_HEIGHT): Likewise.
54072 (TERM_MARGIN): Likewise.
54073 (TERM_SCROLL_WIDTH): Likewise.
54074 (TERM_TOP_BORDER_Y): Likewise.
54075 (TERM_LEFT_BORDER_X): Likewise.
54076 (TERM_BORDER_WIDTH): Likewise.
54077 (TERM_MESSAGE_HEIGHT): Likewise.
54078 (TERM_BORDER_HEIGHT): Likewise.
54079 (TERM_NUM_ENTRIES): Likewise.
54080 (TERM_FIRST_ENTRY_Y): Likewise.
54081 (TERM_ENTRY_WIDTH): Likewise.
54082 (TERM_CURSOR_X): Likewise.
54083 (draw_border): Use macros instead of magic numbers.
54084 (print_entry): Likewise.
54085 (print_entries): Likewise.
54086 (run_menu): Likewise. Also, handle the key 'e'.
54087 (run_menu_entry): Ignore empty command lines.
54088 (print_message): Added a new argument EDIT. If EDIT is true,
54089 print a different message.
54090 (init_page): Likewise.
54091 (edit_menu_entry): New function. Not implemented yet.
54092
54093 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54094
54095 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54096 can be loaded from normal mode.
54097
54098 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54099 `multiboot.mod'.
54100 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54101 (multiboot_mod_CFLAGS): New variables.
54102 * loader/i386/pc/linux_normal.c: New file.
54103 * loader/i386/pc/multiboot_normal.c: Likewise.
54104
54105 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54106 attribute `unused'.
54107
54108 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54109 `fdiro' to read the mode information from instead of `diro'.
54110
54111 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54112 looking up a symlink.
54113
54114 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54115 macro.
54116 * normal/command.c (grub_command_execute): Don't parse the
54117 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54118 flags of the command.
54119
54120 * normal/menu.c (grub_menu_run): Fix typo.
54121
54122 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54123
54124 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54125
54126 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54127 `y + 1' instead of `y - 1'.
54128
54129 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54130
54131 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54132
54133 From Hollis Blanchard <hollis@penguinppc.org>:
54134 * kern/misc.c (memmove): New alias for grub_memmove.
54135 (memcmp): New alias for grub_memcmp.
54136 (memset): New alias for grub_memset.
54137 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54138 Change "int handle" to "grub_ieee1275_phandle_t handle".
54139 * include/grub/powerpc/ieee1275/ieee1275.h
54140 (grub_ieee1275_get_property): Likewise.
54141
54142 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54143
54144 Added normal mode command `chainloader' as module chain.mod, which
54145 depends on normal.mod and _chain.mod.
54146
54147 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54148 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54149 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54150 Deleted prototype.
54151 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54152 but arguments parsing moved to ...
54153 (grub_chainloader_cmd): ... here. New function.
54154 * include/grub/i386/pc/chainloader.h: New file.
54155 * loader/i386/pc/chainloader_normal.c: Likewise.
54156
54157 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54158
54159 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54160 (grub_mkimage_LDFLAGS): Likewise.
54161 (grub_emu_SOURCES): Likewise.
54162 (kernel_img_HEADERS): Added fshelp.h.
54163 * fs/ext2.c: Include <grub/fshelp.h>.
54164 (FILETYPE_REG): New macro.
54165 (FILETYPE_INO_REG): Likewise.
54166 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54167 Changed all users.
54168 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54169 all users.
54170 (grub_fshelp_node): New struct.
54171 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54172 to a pointer.
54173 (grub_ext2_get_file_block): Removed function.
54174 (grub_ext2_read_block): New function.
54175 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54176 This function was written.
54177 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54178 (grub_ext2_find_file): Removed function.
54179 (grub_ext2_read_symlink): New function.
54180 (grub_ext2_iterate_dir): Likewise.
54181 (grub_ext2_open): Rewritten.
54182 (grub_ext2_dir): Rewritten.
54183 * include/grub/fshelp.h: New file.
54184 * fs/fshelp.c: Likewise.
54185
54186 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54187
54188 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54189 (print_message): Add a missing newline.
54190 (run_menu): Added timeout support.
54191 (run_menu_entry): New local function.
54192 (grub_menu_run): Added support for booting.
54193
54194 * kern/loader.c (grub_loader_is_loaded): New function.
54195
54196 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54197 (grub_get_rtc): Exported.
54198
54199 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54200 (grub_get_rtc): Exported.
54201
54202 * include/grub/normal.h (struct grub_command_list): Remove
54203 constant from the member `command'.
54204
54205 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54206
54207 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54208
54209 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54210
54211 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54212
54213 Add support for the JFS filesystem.
54214
54215 * fs/jfs.c: New file.
54216 * include/grub/fs.h (grub_jfs_init): New prototype.
54217 (grub_jfs_fini): New prototype.
54218 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54219 (grub_emu_SOURCES): Likewise.
54220 (pkgdata_MODULES): Add jfs.mod.
54221 (jfs_mod_SOURCES): New variable.
54222 (jfs_mod_CFLAGS): Likewise.
54223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54224 (grubof_SOURCES): Likewise.
54225 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54226
54227 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54228 endian to the host endian.
54229 (grub_fat_utf16_to_utf8): Move function from there...
54230 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54231 the endianness of the source string anymore.
54232 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54233
54234 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54235
54236 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54237 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54238 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54239 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54240
54241 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54242 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54243 for `node_found' and `it_dir'.
54244 (grub_hfs_dir): Add prototype for `dir_hook'.
54245
54246 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54247 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54248 and `indir32' to silence a gcc warning.
54249
54250 * include/grub/fs.h (grub_hfs_init): New prototype.
54251 (grub_hfs_fini): Likewise.
54252
54253
54254 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54255
54256 Each disk device has its own id now. This is useful to make use
54257 of multiple disk devices.
54258
54259 * include/grub/disk.h (grub_disk_dev_id): New enum.
54260 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54261 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54262
54263 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54264 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54265
54266 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54267 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54268
54269 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54270 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54271
54272 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54273 "id" which is used by the cache manager.
54274
54275 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54276 of just "GRUB".
54277
54278 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54279
54280 * fs/hfs.c: New file.
54281 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54282 (grub_emu_SOURCES): Likewise.
54283 (pkgdata_MODULES): Add hfs.mod.
54284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54285 (grubof_SOURCES): Likewise.
54286 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54287
54288 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54289 * kern/misc.c (grub_strncasecmp): Add function.
54290
54291 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54292
54293 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54294 with parentheses.
54295
54296 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54297 (grub_ext2_dir): In case the directory entry type is unknown, read
54298 it from the inode.
54299
54300 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54301
54302 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54303 grub_load_linux instead of grub_rescue_cmd_linux as second
54304 argument of grub_rescue_register_command.
54305
54306 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54307
54308 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54309
54310 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54311 function.
54312 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54313 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54314 `loader/powerpc/ieee1275/linux.c',
54315 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54316 * include/grub/powerpc/ieee1275/ieee1275.h
54317 (grub_ieee1275_release): New prototype.
54318 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54319 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54320 normal, boot, linux and linux_normal.
54321 * loader/powerpc/ieee1275/linux.c: New file.
54322 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54323
54324 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54325
54326 * normal/arg.c (grub_arg_parse): Correct error handling after
54327 reallocating the argumentlist (check if `argl' is not null instead
54328 of checking if `args' is not null).
54329 * kern/mm.c (grub_realloc): Return the same pointer when using the
54330 same region, instead of returning the header address.
54331
54332 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54333
54334 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54335 one block instead of two when looking for the initial partition.
54336 (grub_partition_probe): Initialize the local variable `p' with 0.
54337 Use base 10 for the grub_strtoul call.
54338 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54339 need for one local variable.
54340 (grub_strtoul): Don't add the new value to `num', instead of that
54341 just assign it.
54342
54343 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54344
54345 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54346 (pxeboot_img_SOURCES): New variable.
54347 (pxeboot_img_ASFLAGS): Likewise.
54348 (pxeboot_img_LDFLAGS): Likewise.
54349 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54350 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54351 <lode_leroy@hotmail.com>.
54352
54353 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54354
54355 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54356 there was no input.
54357
54358 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54359
54360 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54361 the history buffer logic.
54362
54363 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54364
54365 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54366 (FILETYPE_INO_SYMLINK): New macros.
54367 (grub_ext2_find_file): Check if the node is a directory using the
54368 inode stat information instead of using the filetype in the
54369 dirent. Exclude the first character of an absolute symlink.
54370 (grub_ext2_dir): Mask out the filetype part of the mode member of
54371 the inode.
54372
54373 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54374
54375 Add support for UFS version 1 and 2. Add support for the minix
54376 filesystem version 1 and 2, both the variants with 14 and 30 long
54377 filenames.
54378
54379 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54380 fs/minix.c.
54381 (grub_emu_SOURCES): Likewise.
54382 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54383 (ufs_mod_SOURCES): New variable.
54384 (ufs_mod_CFLAGS): Likewise.
54385 (minix_mod_SOURCES): Likewise.
54386 (minix_mod_CFLAGS): Likewise.
54387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54388 fs/minix.c.
54389 (grubof_SOURCES): Likewise.
54390 * fs/ufs.c: New file.
54391 * fs/minix.c: New file.
54392 * include/grub/fs.h (grub_ufs_init): New prototype.
54393 (grub_ufs_fini): Likewise.
54394 (grub_minix_init): Likewise.
54395 (grub_minix_fini): Likewise.
54396 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54397 minix fs.
54398
54399 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54400
54401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54402 commands/ls.c, commands/terminal.c, commands/boot.c,
54403 commands/cmp.c and commands/cat.c.
54404 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54405
54406 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54407 "env.h"
54408
54409 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54410
54411 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54412 and grub_, respectively. Because the conversion is trivial and
54413 mechanical, I omit the details here. Please refer to the CVS
54414 if you need more information.
54415
54416 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54417
54418 * include/pupa: Renamed to ...
54419 * include/grub: ... this.
54420 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54421 * util/i386/pc/grub-mkimage.c: ... this.
54422 * util/i386/pc/pupa-setup.c: Renamed to ...
54423 * util/i386/pc/grub-setup.c: ... this.
54424 * util/pupa-emu.c: Renamed to ...
54425 * util/grub-emu.c: ... this.
54426
54427 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54428
54429 Add support for the newworld apple macintosh (PPC). This has been
54430 tested on the powerbook 2000 only. It only adds support for
54431 generic ieee1275 functions, console and disk support. This should
54432 be easy to port to other architectures with support for Open
54433 Firmware.
54434
54435 * configure.ac: Accept the powerpc as host_cpu. In the case of
54436 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54437 specific tests are only executed while building for the i386.
54438 Inverse test for crosscompile.
54439 * genmk.rb (Utility): Allow assembler files.
54440 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54441 * conf/powerpc-ieee1275.rmk: New file.
54442 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54443 * disk/powerpc/ieee1275/partition.c: Likewise.
54444 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54445 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54446 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54447 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54448 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54449 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54450 * include/pupa/powerpc/ieee1275/loader.h
54451 * include/pupa/powerpc/setjmp.h: Likewise.
54452 * include/pupa/powerpc/types.h: Likewise.
54453 * kern/powerpc/ieee1275/init.c: Likewise.
54454 * kern/powerpc/ieee1275/openfw.c: Likewise.
54455 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54456
54457 These files were written by Johan Rydberg
54458 (jrydberg@night.trouble.net) and I only modified them slightly.
54459
54460 * boot/powerpc/ieee1275/cmain.c: New file.
54461 * boot/powerpc/ieee1275/crt0.S: Likewise.
54462 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54463 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54464
54465 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54466
54467 * Makefile.in: Update copyright.
54468 * genmodsrc.sh: Likewise.
54469 * gensymlist.sh: Likewise.
54470 * term/i386/pc/vga.c: Indent correctly.
54471
54472 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54473 bugreporting address.
54474 * util/i386/pc/pupa-setup.c (usage): Likewise,
54475 (main): Call pupa_ext2_init and pupa_ext2_fini.
54476
54477 * fs/fat.c (log2): Renamed to ...
54478 (fat_log2): ... this.
54479 All callers changed.
54480 * kern/misc.c (memcpy): Alias to pupa_memmove.
54481 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54482 lvalue cast.
54483 * util/console.c (pupa_ncurses_fini): Return 0.
54484
54485 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54486 Move fail label here.
54487 [__GNU__]: Don't warn when using stat.
54488 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54489 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54490 long int. Use strtol instead of strtoul.
54491
54492 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54493
54494 * commands/boot.c: New file.
54495 * commands/cat.c: Likewise.
54496 * commands/cmp.c: Likewise.
54497 * commands/ls.c: Likewise.
54498 * commands/terminal.c: Likewise.
54499 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54500 (pupa_register_command): Changed interface to match the new
54501 argument parser.
54502 (pupa_command_execute): Changed (almost rewritten) so it uses
54503 pupa_split_command. Added support for setting variables using the
54504 syntax `foo=bar'.
54505 (rescue_command): Changed to work with the new argument parser.
54506 (terminal_command): Moved from here to commands/terminal.c.
54507 (set_command): New function.
54508 (unset_command): New function.
54509 (insmod_command): New function.
54510 (rmmod_command): New function.
54511 (lsmod_command): New function.
54512 (pupa_command_init): Don't initialize the command terminal
54513 anymore. Initialize the commands set, unset, insmod, rmmod and
54514 lsmod.
54515 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54516 (kernel_img_HEADERS): Add arg.h and env.h.
54517 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54518 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54519 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54520 normal/arg.c.
54521 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54522 terminal.mod.
54523 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54524 (boot_mod_SOURCES): New variable.
54525 (terminal_mod_SOURCES): Likewise.
54526 (ls_mod_SOURCES): Likewise.
54527 (cmp_mod_SOURCES): Likewise.
54528 (cat_mod_SOURCES): Likewise.
54529
54530 * normal/arg.c: New file.
54531 * kern/env.c: Likewise.
54532 * include/pupa/arg.h: Likewise.
54533 * include/pupa/env.h: Likewise.
54534 * font/manager.c (font_command): Changed to match argument parsing
54535 interface changes.
54536 (PUPA_MOD_INIT): Likewise.
54537 * hello/hello.c (pupa_cmd_hello): Likewise.
54538 (PUPA_MOD_INIT): Likewise.
54539 * include/pupa/disk.h: Include <pupa/device.h>.
54540 (pupa_print_partinfo): New prototype.
54541 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54542 (pupa_dl_get_prefix): Likewise.
54543 * include/pupa/misc.h: Include <pupa/err.h>.
54544 (pupa_isgraph): New prototype.
54545 (pupa_isdigit): Likewise.
54546 (pupa_split_cmdline): Likewise.
54547 * include/pupa/normal.h: Include <pupa/arg.h>.
54548 (pupa_command): Changed the prototype of the member `func' to
54549 match the argument parsing interface. Added member `options'.
54550 (pupa_register_command): Updated to match function.
54551 (pupa_arg_parse): New prototype.
54552 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54553 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54554 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54555 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54556 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54557 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54558 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54559 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54560 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54561 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54562 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54563 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54564 * kern/disk.c: Include <pupa/file.h>.
54565 (pupa_print_partinfo): New function.
54566 * kern/dl.c: Include <pupa/env.h>.
54567 (pupa_dl_dir): Variable removed.
54568 (pupa_dl_load): Use the environment variable `prefix' instead of
54569 the variable pupa_dl_dir.
54570 (pupa_dl_set_prefix): Function removed.
54571 (pupa_dl_get_prefix): Likewise.
54572 * kern/i386/pc/init.c: Include <pupa/env.h>.
54573 (pupa_machine_init): Use the environment variable `prefix' instead of
54574 using pupa_dl_set_prefix to set the prefix.
54575 * kern/main.c: Include <pupa/env.h>.
54576 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54577 using pupa_dl_get_prefix to get the prefix.
54578 * kern/misc.c: Include <pupa/env.h>.
54579 (pupa_isdigit): New function.
54580 (pupa_isgraph): Likewise.
54581 (pupa_ftoa): Likewise.
54582 (pupa_vsprintf): Added support for printing values of the type
54583 `double'. Make it possible to format variable output when using
54584 formatting like `%1.2%f'.
54585 (pupa_split_cmdline): New function.
54586 * kern/rescue.c: Include <pupa/env.h>.
54587 (next_word): Removed function.
54588 (pupa_rescue_cmd_prefix): Likewise.
54589 (pupa_rescue_cmd_set): New function.
54590 (pupa_rescue_cmd_unset): New function.
54591 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54592 split the command line instead of splitting it here. Added
54593 support for setting variables using the syntax `foo=bar'. Don't
54594 initialize the prefix command anymore. Initialized the set and
54595 unset commands.
54596 * normal/cmdline.c: Include <pupa/env.h>.
54597 (pupa_tab_complete): Added prototypes for print_simple_completion,
54598 print_partition_completion, add_completion, iterate_commands,
54599 iterate_dev, iterate_part and iterate_dir. Moved code to print
54600 partition information from here to kern/disk.c.
54601 (pupa_cmdline_run): Don't check if the function exists anymore.
54602 * normal/main.c: Include <pupa/env.h>.
54603 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54604 instead of using pupa_dl_get_prefix to get the prefix.
54605 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54606 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54607 warning.
54608 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54609 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54610 ((unused))' to silence a gcc warning.
54611 (pupa_vga_setcolor): Likewise.
54612 (debug_command): Changed to match argument parsing
54613 interface changes.
54614 * util/pupa-emu.c: Include <pupa/env.h>.
54615 (options): Added 0's for unused fields to silence a gcc warning.
54616 (argp): Likewise.
54617 (main): Use the environment variable `prefix' instead of using
54618 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54619 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54620 and terminal.
54621
54622 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54623 * util/misc.c: Include <malloc.h>.
54624 (pupa_malloc): Rewritten so errors are correctly reported.
54625 (pupa_realloc): Likewise.
54626 (pupa_memalign): Likewise.
54627 (pupa_mm_init_region): Declare unused variables with
54628 `__attribute__ ((unused))' to silence a gcc warning.
54629 * normal/i386/setjmp.S: Remove tab at the end of the file to
54630 silence a gcc warning.
54631 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54632 variables with `__attribute__ ((unused))' to silence a gcc
54633 warning.
54634 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54635 local variable i unsigned to silence a gcc warning.
54636
54637 * kern/term.c: Include <pupa/misc.h>.
54638 (pupa_more_lines): New variable.
54639 (pupa_more): Likewise.
54640 (pupa_putcode): When the pager is active pause at the end of every
54641 screen.
54642 (pupa_set_more): New function.
54643 * include/pupa/term.h (pupa_set_more): New prototype.
54644
54645
54646 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54647
54648 Now this project is GRUB 2 rather than PUPA. The location of
54649 the CVS repository was moved to GRUB's.
54650
54651 * configure.ac: Use bug-grub as the reporting address.
54652 Use GRUB instead of PUPA.
54653 Change the version number to 1.90.
54654
54655 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54656
54657 * genkernsyms.sh: Updated copyright information.
54658 * genmk.rb: Likewise.
54659 * genmodsrc.sh: Likewise.
54660 * gensymlist.sh: Likewise.
54661 * boot/i386/pc/boot.S: Likewise.
54662 * boot/i386/pc/diskboot.S: Likewise.
54663 * disk/i386/pc/biosdisk.c: Likewise.
54664 * disk/i386/pc/partition.c: Likewise.
54665 * font/manager.c: Likewise.
54666 * fs/ext2.c: Likewise.
54667 * fs/fat.c: Likewise.
54668 * include/pupa/boot.h: Likewise.
54669 * include/pupa/device.h: Likewise.
54670 * include/pupa/disk.h: Likewise.
54671 * include/pupa/dl.h: Likewise.
54672 * include/pupa/elf.h: Likewise.
54673 * include/pupa/err.h: Likewise.
54674 * include/pupa/file.h: Likewise.
54675 * include/pupa/font.h: Likewise.
54676 * include/pupa/fs.h: Likewise.
54677 * include/pupa/kernel.h: Likewise.
54678 * include/pupa/loader.h: Likewise.
54679 * include/pupa/misc.h: Likewise.
54680 * include/pupa/mm.h: Likewise.
54681 * include/pupa/net.h: Likewise.
54682 * include/pupa/normal.h: Likewise.
54683 * include/pupa/rescue.h: Likewise.
54684 * include/pupa/setjmp.h: Likewise.
54685 * include/pupa/symbol.h: Likewise.
54686 * include/pupa/term.h: Likewise.
54687 * include/pupa/types.h: Likewise.
54688 * include/pupa/i386/setjmp.h: Likewise.
54689 * include/pupa/i386/types.h: Likewise.
54690 * include/pupa/i386/pc/biosdisk.h: Likewise.
54691 * include/pupa/i386/pc/boot.h: Likewise.
54692 * include/pupa/i386/pc/console.h: Likewise.
54693 * include/pupa/i386/pc/init.h: Likewise.
54694 * include/pupa/i386/pc/kernel.h: Likewise.
54695 * include/pupa/i386/pc/linux.h: Likewise.
54696 * include/pupa/i386/pc/loader.h: Likewise.
54697 * include/pupa/i386/pc/memory.h: Likewise.
54698 * include/pupa/i386/pc/multiboot.h: Likewise.
54699 * include/pupa/i386/pc/partition.h: Likewise.
54700 * include/pupa/i386/pc/time.h: Likewise.
54701 * include/pupa/i386/pc/vga.h: Likewise.
54702 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54703 * include/pupa/util/getroot.h: Likewise.
54704 * include/pupa/util/misc.h: Likewise.
54705 * include/pupa/util/resolve.h: Likewise.
54706 * kern/device.c: Likewise.
54707 * kern/disk.c: Likewise.
54708 * kern/dl.c: Likewise.
54709 * kern/err.c: Likewise.
54710 * kern/file.c: Likewise.
54711 * kern/fs.c: Likewise.
54712 * kern/loader.c: Likewise.
54713 * kern/main.c: Likewise.
54714 * kern/misc.c: Likewise.
54715 * kern/mm.c: Likewise.
54716 * kern/rescue.c: Likewise.
54717 * kern/term.c: Likewise.
54718 * kern/i386/dl.c: Likewise.
54719 * kern/i386/pc/init.c: Likewise.
54720 * kern/i386/pc/lzo1x.S: Likewise.
54721 * kern/i386/pc/startup.S: Likewise.
54722 * loader/i386/pc/chainloader.c: Likewise.
54723 * loader/i386/pc/linux.c: Likewise.
54724 * loader/i386/pc/multiboot.c: Likewise.
54725 * normal/cmdline.c: Likewise.
54726 * normal/command.c: Likewise.
54727 * normal/main.c: Likewise.
54728 * normal/menu.c: Likewise.
54729 * normal/i386/setjmp.S: Likewise.
54730 * term/i386/pc/console.c: Likewise.
54731 * term/i386/pc/vga.c: Likewise.
54732 * util/console.c: Likewise.
54733 * util/genmoddep.c: Likewise.
54734 * util/misc.c: Likewise.
54735 * util/pupa-emu.c: Likewise.
54736 * util/resolve.c: Likewise.
54737 * util/unifont2pff.rb: Likewise.
54738 * util/i386/pc/biosdisk.c: Likewise.
54739 * util/i386/pc/getroot.c: Likewise.
54740 * util/i386/pc/pupa-mkimage.c: Likewise.
54741 * util/i386/pc/pupa-setup.c: Likewise.
54742
54743 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54744
54745 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54746 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54747 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54748 reading and reset it after reading.
54749 (pupa_ext2_close): Return PUPA_ERR_NONE.
54750
54751 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54752 Correct value.
54753 (struct linux_kernel_header): Add kernel_version and
54754 initrd_addr_max.
54755 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54756 pupa_file_read succeeds.
54757 (pupa_rescue_cmd_initrd): Implement.
54758
54759 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54760
54761 * fs/ext2.c (pupa_ext2_label): New function.
54762 (pupa_ext2_fs): Added label.
54763 * fs/fat.c (pupa_fat_label): New function.
54764 (pupa_fat_fs): Added label.
54765 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54766
54767 * kern/misc.c (pupa_strndup): New function.
54768 * include/pupa/misc.h (pupa_strndup): New prototype.
54769
54770 * include/pupa/normal.h: Include <pupa/err.h>.
54771 (pupa_set_history): New prototype.
54772 (pupa_iterate_commands): New prototype.
54773 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54774 <pupa/disk.h>, <pupa/file.h>.
54775 (hist_size): New variable.
54776 (hist_lines): Likewise.
54777 (hist_end): Likewise.
54778 (hist_used): Likewise.
54779 (pupa_set_history): New function.
54780 (pupa_history_get): Likewise.
54781 (pupa_history_add): Likewise.
54782 (pupa_history_replace): Likewise.
54783 (pupa_tab_complete): Likewise.
54784 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54785 completion shows partitionnames while completing partitions, this
54786 feature was suggested by Jeff Bailey.
54787 * normal/command.c (pupa_iterate_commands): New function.
54788 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54789 (pupa_normal_init): Initialize history buffer.
54790 (PUPA_MOD_INIT): Likewise.
54791 (pupa_normal_fini): Free the history buffer.
54792 (PUPA_MOD_FINI): Likewise.
54793
54794 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54795 key.
54796
54797 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54798 * configure.ac [i386]: Check for regparam bug.
54799 (NESTED_FUNC_ATTR) [! i386]: Defined.
54800
54801 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54802
54803 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54804 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54805 (pupa_emu_SOURCES): New variable.
54806 (pupa_emu_LDFLAGS): Likewise.
54807 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54808 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54809 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54810 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54811 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54812 (pupa_jmp_buf): New typedef.
54813 (pupa_setjmp) [PUPA_UTIL]: New macro.
54814 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54815 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54816 (pupa_refresh): New prototype.
54817 * include/pupa/util/getroot.h: New file.
54818 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54819 it.
54820 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54821 (pupa_rescue_cmd_cat): Likewise.
54822 (pupa_rescue_cmd_ls): Likewise.
54823 (pupa_rescue_cmd_testload): Likewise.
54824 (pupa_rescue_cmd_lsmod): Likewise.
54825 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54826 * normal/menu.c (run_menu): Likewise.
54827 * kern/term.c (pupa_cls): Likewise.
54828 (pupa_refresh): New function.
54829 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54830 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54831 * util/console.c: New file.
54832
54833 * util/i386/pc/getroot.c: New file.
54834 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54835 (pupa_putchar): New function.
54836 (pupa_refresh): Likewise.
54837 (xgetcwd): Function moved to ...
54838 (strip_extra_slashes): Likewise.
54839 (get_prefix): Likewise.
54840 * util/i386/pc/getroot.c: ... here.
54841 (find_root_device): Function moved and renamed to...
54842 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54843 Changed all callers.
54844 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54845 and renamed to...
54846 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54847 Changed all callers.
54848 * util/misc.c (pupa_memalign): New function.
54849 (pupa_mm_init_region): Likewise.
54850 (pupa_register_exported_symbols): Likewise.
54851 (pupa_putchar): Function removed.
54852 * util/pupa-emu.c: New file.
54853
54854 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54855
54856 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54857 (_multiboot_mod_SOURCES): New variable.
54858 (_multiboot_mod_CFLAGS): Likewise.
54859 * loader/i386/pc/multiboot.c: New file.
54860 * include/pupa/i386/pc/multiboot.h: Likewise.
54861 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54862 (pupa_multiboot_real_boot): New function.
54863 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54864 (pupa_multiboot_real_boot): New prototype.
54865 (pupa_rescue_cmd_multiboot): Likewise
54866 (pupa_rescue_cmd_module): Likewise.
54867
54868 * kern/loader.c (pupa_loader_set): Continue when
54869 pupa_loader_unload_func() fails.
54870 (pupa_loader_unset): New function.
54871 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54872
54873 * kern/misc.c (pupa_stpcpy): New function.
54874 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54875
54876 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54877
54878 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54879 for available extensions.
54880
54881 * include/pupa/i386/pc/time.h: New file.
54882 * kern/disk.c: Include <pupa/machine/time.h>.
54883 (PUPA_CACHE_TIMEOUT): New macro.
54884 (pupa_last_time): New variable.
54885 (pupa_disk_open): Flush the cache when there was a timeout.
54886 (pupa_disk_close): Reset the timer.
54887 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54888 pupa_currticks.
54889 * util/misc.c: Include <sys/times.h>
54890 (pupa_get_rtc): New function.
54891
54892 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54893
54894 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54895 as blocks.
54896 (pupa_ext2_get_file_block): Use blocks member.
54897
54898 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54899 first block. Return -1 instead of pupa_errno on error.
54900
54901 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54902
54903 * README: In the pupa-mkimage example use _chain instead of chain
54904 and ext2 instead of fat.
54905 * TODO: Replace ext2fs with jfs as an example. Add an item for
54906 adding journal playback for ext2fs.
54907 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54908 (pkgdata_MODULES): Added ext2.mod.
54909 (ext2_mod_SOURCES): New variable.
54910 (ext2_mod_CFLAGS): Likewise.
54911 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54912 * include/pupa/misc.h (pupa_strncpy): New prototype.
54913 (pupa_strcat): Likewise.
54914 (pupa_strncmp): Likewise.
54915 * kern/misc.c (pupa_strcat): Enable function.
54916 (pupa_strncpy): New function.
54917 (pupa_strncmp): Likewise.
54918 * fs/ext2.c: New file.
54919
54920 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54921 when the read failed before retrying.
54922 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54923 (_FILE_OFFSET_BITS): Likewise.
54924 * configure.ac: Added AC_SYS_LARGEFILE.
54925
54926 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54927
54928 * genmk.rb (PModule#rule): Make sure to get only symbol names
54929 from the output of nm.
54930 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54931
54932 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54933
54934 I forgot to check in these changes for a long time. This adds
54935 incomplete support for VGA console, and this is still very
54936 buggy. Also, a lot of consideration is required for I18N,
54937 UNICODE, and VGA font issues. Therefore, assume that this is
54938 such that "better than nothing".
54939
54940 * font/manager.c: New file.
54941 * include/pupa/font.h: Likewise.
54942 * include/pupa/i386/pc/vga.h: Likewise.
54943 * term/i386/pc/vga.c: Likewise.
54944 * util/unifont2pff.rb: Likewise.
54945
54946 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54947 (pkgdata_MODULES): Added vga.mod and font.mod.
54948 (vga_mod_SOURCES): New variables.
54949 (vga_mod_CFLAGS): Likewise.
54950 (font_mod_SOURCES): Likewise.
54951 (font_mod_CFLAGS): Likewise.
54952
54953 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54954
54955 * include/pupa/term.h: Include pupa/err.h.
54956 (struct pupa_term): Added init and fini.
54957 Changed the argument of putchar to pupa_uint32_t.
54958
54959 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54960 (pupa_console_real_putchar): New prototype.
54961 (pupa_console_putchar): Removed.
54962 (pupa_console_checkkey): Exported.
54963 (pupa_console_getkey): Likewise.
54964
54965 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54966 characters.
54967
54968 * kern/term.c (pupa_term_set_current): Rewritten.
54969 (pupa_putchar): Likewise.
54970 (pupa_putcode): New function.
54971
54972 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54973 (pupa_console_real_putchar): ... this.
54974 (pupa_vga_set_mode): New function.
54975 (pupa_vga_get_font): Likewise.
54976
54977 * normal/command.c: Include pupa/term.h.
54978 (terminal_command): New function.
54979 (pupa_command_init): Register the command "terminal".
54980
54981 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54982 (DISP_UP): Likewise.
54983 (DISP_RIGHT): Likewise.
54984 (DISP_DOWN): Likewise.
54985 (DISP_HLINE): Likewise.
54986 (DISP_VLINE): Likewise.
54987 (DISP_UL): Likewise.
54988 (DISP_UR): Likewise.
54989 (DISP_LL): Likewise.
54990 (DISP_LR): Likewise.
54991
54992 * term/i386/pc/console.c (pupa_console_putchar): New function.
54993
54994 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54995
54996 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54997 FIX. Reverse the path_list.
54998
54999 * include/pupa/normal.h: Export pupa_register_command and
55000 pupa_unregister_command.
55001
55002 * hello/hello.c (pupa_cmd_hello): New module.
55003 * conf/i386-pc.rmk: Added hello.mod.
55004
55005 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
55006
55007 * kern/i386/pc/lzo1x.S: New file.
55008
55009 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55010 (compress_kernel): New variable.
55011 (generate_image): Heavily modified to support compressing a
55012 large part of the core image.
55013
55014 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55015 leak.
55016 (pupa_util_load_image): New function.
55017
55018 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55019 (pupa_compressed_size): New variable.
55020 (codestart): Enable Gate A20 here.
55021 Decompress the compressed part of the core image.
55022 Rearrange the code to put functions and variables which are
55023 required for initialization in the non-compressed part.
55024 Include lzo1x.S.
55025
55026 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55027 here.
55028
55029 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55030
55031 * include/pupa/i386/pc/kernel.h
55032 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55033 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55034 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55035 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55036 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55037
55038 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55039
55040 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55041 (Utility#rule): Likewise.
55042
55043 * configure.ac: Check if LZO is available.
55044
55045 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55046
55047 * include/pupa/normal.h: New file.
55048 * include/pupa/setjmp.h: Likewise.
55049 * include/pupa/i386/setjmp.h: Likewise.
55050 * normal/cmdline.c: Likewise.
55051 * normal/command.c: Likewise.
55052 * normal/main.c: Likewise.
55053 * normal/menu.c: Likewise.
55054 * normal/i386/setjmp.S: Likewise.
55055
55056 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55057 (pupa_rescue_cmd_initrd): Likewise.
55058
55059 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55060 Likewise.
55061
55062 * kern/i386/pc/startup.S (translation_table): New variable.
55063 (translate_keycode): New function.
55064 (pupa_console_getkey): Call translate_keycode.
55065
55066 * kern/rescue.c (attempt_normal_mode): New function.
55067 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55068 it failed, print a message.
55069
55070 * kern/mm.c (pupa_real_malloc): Print more information when a
55071 free magic is broken.
55072 (pupa_free): If the first free header is not free actually, set
55073 it to P.
55074
55075 * kern/main.c (pupa_load_normal_mode): Just load the module
55076 "normal".
55077 (pupa_main): Don't print the message
55078 "Entering into rescue mode..." here.
55079
55080 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55081 Declared.
55082 (pupa_rescue_cmd_initrd): Likewise.
55083 (pupa_rescue_cmd_initrd): Likewise.
55084
55085 * include/pupa/symbol.h (FUNCTION): Specify the type.
55086 (VARIABLE): Likewise.
55087
55088 * include/pupa/err.h (pupa_err_t): Added
55089 PUPA_ERR_UNKNOWN_COMMAND.
55090
55091 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55092 (pupa_dl_get_prefix): Likewise.
55093
55094 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55095 Added _chain.mod and _linux.mod instead of chain.mod and
55096 linux.mod.
55097 (chain_mod_SOURCES): Renamed to ...
55098 (_chain_mod_SOURCES): ... this.
55099 (chain_mod_CFLAGS): Renamed to ...
55100 (_chain_mod_CFLAGS): ... this.
55101 (linux_mod_SOURCES): Renamed to ...
55102 (_linux_mod_SOURCES): ... this.
55103 (linux_mod_CFLAGS): Renamed to ...
55104 (_linux_mod_CFLAGS): ... this.
55105 (normal_mod_SOURCES): New variable.
55106 (normal_mod_CFLAGS): Likewise.
55107 (normal_mod_ASFLAGS): Likewise.
55108
55109 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55110
55111 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55112 possible.
55113
55114 * kern/dl.c (pupa_dl_ref): Refer depending modules
55115 recursively.
55116 (pupa_dl_unref): Unrefer depending modules recursively.
55117 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55118 a module is unloaded before one depending on that module is
55119 unloaded.
55120 (pupa_dl_unload): Unload depending modules explicitly,
55121 if possible.
55122
55123 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55124
55125 * include/pupa/i386/pc/linux.h: New file.
55126 * loader/i386/pc/linux.c: Likewise.
55127
55128 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55129 Removed.
55130 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55131 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55132 of PUPA_CHAINLOADER_BOOT_SECTOR.
55133
55134 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55135 (pupa_linux_prot_size): New variable.
55136 (pupa_linux_tmp_addr): Likewise.
55137 (pupa_linux_real_addr): Likewise.
55138 (pupa_linux_boot_zimage): New function.
55139 (pupa_linux_boot_bzimage): Likewise.
55140
55141 * kern/i386/pc/init.c (struct mem_region): New structure.
55142 (MAX_REGIONS): New macro.
55143 (mem_regions): New variable.
55144 (num_regions): Likewise.
55145 (pupa_os_area_addr): Likewise.
55146 (pupa_os_area_size): Likewise.
55147 (pupa_lower_mem): Likewise.
55148 (pupa_upper_mem): Likewise.
55149 (add_mem_region): New function.
55150 (compact_mem_regions): Likewise.
55151 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55152 the size of the conventional memory and that of so-called upper
55153 memory (before the first memory hole).
55154 Instead of adding each found region to free memory, use
55155 add_mem_region and add them after removing overlaps.
55156 Also, add only 1/4 of the upper memory to free memory. The rest
55157 is used for loading OS images. Maybe this is ad hoc, but this
55158 makes it much easier to relocate OS images when booting.
55159
55160 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55161 (pupa_enter_rescue_mode): Don't register initrd and module.
55162
55163 * kern/mm.c: Include pupa/dl.h.
55164
55165 * kern/main.c: Include pupa/file.h and pupa/device.h.
55166
55167 * kern/loader.c (pupa_loader_load_module_func): Removed.
55168 (pupa_loader_load_module): Likewise.
55169
55170 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55171 ``.o''.
55172
55173 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55174 (pupa_linux_tmp_addr): Likewise.
55175 (pupa_linux_real_addr): Likewise.
55176 (pupa_linux_boot_zimage): Likewise.
55177 (pupa_linux_boot_bzimage): Likewise.
55178
55179 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55180 (pupa_upper_mem): Likewise.
55181 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55182 module is too dangerous.
55183
55184 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55185 (pupa_os_area_size): Likewise.
55186 (pupa_loader_set): Remove the first argument. Loader doesn't
55187 manage modules or initrd any longer.
55188 (pupa_loader_load_module): Removed.
55189
55190 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55191 (linux_mod_SOURCES): New variable.
55192 (linux_mod_CFLAGS): Likewise.
55193
55194 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55195
55196 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55197 the length of a blocklist correctly.
55198
55199 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55200 Use ioctl only if the OS file is a block device.
55201 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55202 not very useful for normal files.
55203
55204 * kern/main.c (pupa_set_root_dev): New function.
55205 (pupa_load_normal_mode): Likewise.
55206 (pupa_main): Call those above.
55207
55208 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55209 pupa_uint16_t.
55210
55211 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55212
55213 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55214
55215 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55216 (setup): Configure the installed partition information and the
55217 dl prefix.
55218
55219 * loader/i386/pc/chainloader.c (my_mod): New variable.
55220 (pupa_chainloader_unload): New function.
55221 (pupa_rescue_cmd_chainloader): Refer itself.
55222 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55223
55224 * kern/i386/pc/startup.S (install_partition): Removed.
55225 (version_string): Likewise.
55226 (config_file): Likewise.
55227 (pupa_install_dos_part): New variable.
55228 (pupa_install_bsd_part): Likewise.
55229 (pupa_prefix): Likewise.
55230 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55231
55232 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55233 and pupa/misc.h.
55234 (make_install_device): New function.
55235 (pupa_machine_init): Set the dl prefix.
55236
55237 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55238 (buf): Renamed to ...
55239 (linebuf): ... this.
55240 (pupa_rescue_cmd_prefix): New function.
55241 (pupa_rescue_cmd_insmod): Likewise.
55242 (pupa_rescue_cmd_rmmod): Likewise.
55243 (pupa_rescue_cmd_lsmod): Likewise.
55244 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55245 rmmod and lsmod.
55246
55247 * kern/mm.c (pupa_memalign): If failed even after invalidating
55248 disk caches, unload unneeded modules and retry.
55249
55250 * kern/misc.c (pupa_memmove): New function.
55251 (pupa_memcpy): Removed.
55252 (pupa_strcpy): New function.
55253 (pupa_itoa): Made static.
55254
55255 * kern/dl.c (pupa_dl_iterate): New function.
55256 (pupa_dl_ref): Likewise.
55257 (pupa_dl_unref): Likewise.
55258 (pupa_dl_unload): Return if succeeded or not.
55259 (pupa_dl_unload_unneeded): New function.
55260 (pupa_dl_unload_all): Likewise.
55261 (pupa_dl_init): Renamed to ...
55262 (pupa_dl_set_prefix): ... this.
55263 (pupa_dl_get_prefix): New function.
55264
55265 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55266 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55267 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55268 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55269 (pupa_install_dos_part): Declared.
55270 (pupa_install_bsd_part): Likewise.
55271 (pupa_prefix): Likewise.
55272 (pupa_boot_drive): Likewise.
55273
55274 * include/pupa/types.h: Fix a typo.
55275
55276 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55277 pupa_memmove.
55278 (pupa_memmove): Declared.
55279 (pupa_strcpy): Likewise.
55280
55281 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55282 pupa_mod_init takes one argument, its own module.
55283 (pupa_dl_unload_unneeded): Declared.
55284 (pupa_dl_unload_all): Likewise.
55285 (pupa_dl_ref): Likewise.
55286 (pupa_dl_unref): Likewise.
55287 (pupa_dl_iterate): Likewise.
55288 (pupa_dl_init): Renamed to ...
55289 (pupa_dl_set_prefix): ... this.
55290 (pupa_dl_get_prefix): Declared.
55291
55292 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55293 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55294 unloaded.
55295 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55296 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55297
55298 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55299 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55300
55301 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55302
55303 * util/i386/pc/pupa-setup.c (setup): Define the internal
55304 function find_first_partition_start at the top level, because GCC
55305 3.0.x cannot compile internal functions in deeper scopes
55306 correctly.
55307 (find_root_device): Use lstat instead of stat.
55308 Don't follow symbolic links.
55309 Fix the path-constructing code.
55310
55311 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55312 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55313 by a BLKGETSIZE ioctl first, because block devices don't fill
55314 the member st_mode of the structure stat on Linux.
55315 [__linux__] (linux_find_partition): Use a temporary buffer
55316 REAL_DEV for the working space. Copy it to DEV before returning.
55317 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55318 buffer cache consistent.
55319 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55320 strncmp. The previous value was merely wrong.
55321 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55322
55323 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55324 FAT size is 12. The previous value was merely wrong.
55325
55326 * kern/main.c (pupa_main): Don't split the starting message from
55327 newlines.
55328
55329 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55330 LF, because BIOS goes crazy about character attributes in this
55331 case.
55332
55333 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55334
55335 * include/i386/pc/util/biosdisk.h: New file.
55336 * util/i386/pc/biosdisk.c: Likewise.
55337 * util/i386/pc/pupa-setup.c: Likewise.
55338
55339 * Makefile.in (INCLUDE_DISTFILES): Added
55340 include/pupa/i386/pc/util/biosdisk.h.
55341 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55342 directory util/i386/pc.
55343 (install-local): Added a rule for sbin_UTILITIES.
55344 (uninstall): Likewise.
55345
55346 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55347
55348 * util/misc.c (xrealloc): New function.
55349 (pupa_malloc): Likewise.
55350 (pupa_free): Likewise.
55351 (pupa_realloc): Likewise.
55352 (pupa_stop): Likewise.
55353 (pupa_putchar): Likewise.
55354
55355 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55356
55357 * include/pupa/util/misc.h (xrealloc): Declared.
55358
55359 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55360 macro.
55361 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55362 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55363
55364 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55365 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55366
55367 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55368 way should be implemented.
55369 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55370
55371 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55372 the size of NAME for safety.
55373 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55374 0x88.
55375
55376 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55377 (pupa_setup_SOURCES): Likewise.
55378
55379 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55380
55381 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55382
55383 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55384 bunch of pushl's from pusha, because this destroys the return
55385 value.
55386
55387 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55388
55389 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55390 This means that any missing prototypes could be fatal. Also, you
55391 must take care when writing assembly code. See the comments at
55392 the beginning of startup.S, for more details.
55393
55394 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55395 compilation mechanism.
55396 (pupa_chainloader_real_boot): Likewise.
55397 (pupa_biosdisk_rw_int13_extensions): Likewise.
55398 (pupa_biosdisk_rw_standard): Likewise.
55399 (pupa_biosdisk_check_int13_extensions): Likewise.
55400 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55401 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55402 (pupa_get_memsize): Likewise.
55403 (pupa_get_mmap_entry): Likewise.
55404 (pupa_console_putchar): Likewise.
55405 (pupa_console_setcursor): Likewise.
55406 (pupa_getrtsecs): Use pushl instead of push.
55407
55408 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55409 memory instead of the stack for a mmap entry, because some
55410 BIOSes may ignore the maximum size and overflow.
55411
55412 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55413
55414 * genmk.rb (PModule#rule): Compile automatically generated
55415 sources with module-specific CFLAGS as well as other sources.
55416
55417 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55418
55419 * configure.ac: Check ld.
55420 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55421 respectively, before checking endianness and sizes.
55422
55423 * Makefile.in (LD): New variable.
55424
55425 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55426
55427 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55428
55429 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55430
55431 * Changelog: New file.
55432