1 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3 Allow compiling with clang (not really supported though).
5 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
7 * configure.ac: Add -no-integrated-as when using clangfor asm files.
8 Add -mrtd -mregparm=3 on i386 when not using clang.
9 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
11 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
15 * grub-core/lib/reed_solomon.c: Likewise.
16 * include/grub/i386/gdb.h: Likewise.
17 * include/grub/i386/pc/int.h: Likewise.
18 * include/grub/i386/pc/pxe.h: Likewise.
19 * include/grub/ieee1275/ieee1275.h: Likewise.
21 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
23 Import libgcrypt 1.5.3.
25 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
27 * configure.ac: Don't add -Wcast-align on x86.
29 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
31 * configure.ac: Add -freg-struct-return on all platforms that
34 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
36 * acinclude.m4: Use -Werror on parameter tests.
37 * configure.ac: Likewise.
39 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
41 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
43 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
45 * configure.ac: Check that -malign-loops works rather than assuming that
46 either -falign-loops or -malign-loops work.
48 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
50 * configure.ac: Remove -fnested-functions. We don't need it anymore.
52 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
54 * configure.ac: Prevent cflags leaking to subsequent tests by always
55 resetting cflags to target_cflags in target tests.
57 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
59 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
62 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
64 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
66 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
68 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
70 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
72 * grub-core/normal/cmdline.c (grub_cmdline_get):
73 Remove nested functions.
75 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
77 * tests/test_sha512sum.in: Make it work on emu.
79 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
81 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
83 (grub_bidi_line_logical_to_visual): Likewise.
85 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
87 Remove vestiges of -Wunsafe-loop-optimisations.
89 * conf/Makefile.common (CFLAGS_GNULIB): Remove
90 -Wno-unsafe-loop-optimisations.
91 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
93 * grub-core/io/gzio.c: Likewise.
94 * grub-core/script/parser.y: Likewise.
95 * grub-core/script/yylex.l: Likewise.
96 * util/grub-mkfont.c: Likewise.
98 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
100 * util/grub-mkfont.c (process_cursive): Remove nested function.
102 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
104 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
105 (grub_boot_time): Likewise.
107 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
109 * include/grub/symbol.h (FUNCTION): Use @function rather than
111 (VARIABLE): Likewise.
113 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
115 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
117 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
119 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
120 (parse_dhcp_vendor): Likewise.
122 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
124 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
126 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
128 * grub-core/gettext/gettext.c (main_context), (secondary_context):
129 Define after defining type and not before.
131 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
133 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
135 (grub_gcm_decrypt): Likewise.
136 (algo_decrypt): Likewise.
137 (grub_zfs_decrypt_real): Transform error type.
139 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
141 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
143 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
145 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
146 (grub_usbms_cbi_reset): Likewise.
147 (grub_usbms_bo_reset): Likewise.
148 (grub_usbms_reset): Likewise.
149 (grub_usbms_attach): Likewise.
150 (grub_usbms_transfer_cbi): Likewise.
152 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
154 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
155 "checksum = checksum;".
157 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
159 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
162 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
164 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
167 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
169 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
171 (grub_ehci_fini_hw): Likewise.
172 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
174 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
176 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
177 return grub_usb_err_t for cosistency. All users updated.
179 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
181 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
184 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
185 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
187 Issue separate DNS queries for ipv4 and ipv6
189 Adding multiple questions on a single DNS query is not supportted by
190 most DNS servers. This patch issues two separate DNS queries
191 sequentially for ipv4 and then for ipv6.
193 Fixes: https://savannah.gnu.org/bugs/?39710
195 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
196 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
197 * (grub_net_dns_lookup): Now using separated dns packages.
198 * (grub_cmd_nslookup): Add error condition.
199 * (grub_cmd_list_dns): Print DNS option.
200 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
201 --prefer-ipv4, and --prefer-ipv6.
202 * include/grub/net.h (grub_dns_option_t): New enum.
203 * (grub_net_network_level_address): option added.
205 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
207 * grub-core/video/fb/video_fb.c: Merge two blit functions
210 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
212 * grub-core/term/terminfo.c: Add sequences for home and end.
214 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
216 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
219 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
221 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
224 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
226 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
229 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
231 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
234 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
236 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
238 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
240 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
242 * docs/grub.texi: Document usage of menuentry id.
244 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
246 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
248 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
250 * grub-core/commands/i386/nthibr.c: New command.
252 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
254 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
256 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
258 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
261 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
263 Support GRUB_DISABLE_SUBMENU config.
265 Inspired by patch from Prarit Bhargava.
267 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
269 * docs/grub.texi: Mention RSA support.
271 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
273 * grub-core/commands/verify.c: Add RSA support.
275 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
277 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
278 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
279 device is known to be ATAPI.
281 2013-11-03 Mike Frysinger <vapier>
283 * configure.ac: Don't add target-prefix.
285 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
287 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
290 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
292 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
293 if language is English.
295 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
297 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
299 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
301 * configure.ac: Don't add -m32/-m64 on emu.
305 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
306 broken linux headers.
308 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
310 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
312 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
314 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
315 Reed-Solomon recovery if more than half of redundancy info is 0.
317 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
319 * util/grub-mount.c: Handle symlinks to directories.
321 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
323 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
324 find_file recursively for symlink.
326 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
328 * tests/util/grub-shell.in: Copy themes.
330 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
332 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
334 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
336 * configure.ac: Use 0x8000 for address instead of 8000.
338 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
340 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
343 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
345 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
348 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
350 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
352 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
354 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
355 file_progress_read_hook.
356 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
358 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
360 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
363 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
365 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
367 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
369 Rewrite blocklist functions in order to get progress when
370 reading large extents and decrease amount of blocklist hook calls.
372 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
374 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
377 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
379 Support --base-clock for serial command to handle weird cards with
380 non-standard base clock.
382 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
384 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
386 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
387 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
388 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
389 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
390 + strcpy rather than strncpy.
392 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
394 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
395 (check_pool_label): Likewise. Fixes overflow.
396 (nvlist_find_value): Fix comparison.
398 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
400 * include/grub/misc.h (grub_strcat): Removed. All users changed to
401 more appropriate functions.
403 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
405 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
408 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
410 * util/grub-mkrescue.in: Do not use UUID search on EFI.
412 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
414 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
417 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
419 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
421 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
423 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
424 (initialize_tables): reset tl and td to NULL after freeing.
426 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
428 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
430 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
432 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
435 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
437 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
439 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
441 * grub-core/loader/multiboot.c: Add support for multiboot kernels
444 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
446 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
447 a page in protected space.
449 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
451 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
452 allocate space for zero-sized modules.
454 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
456 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
458 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
460 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
462 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
464 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
465 safeguards. Fixes a crash with i386/pc/console.c.
467 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
469 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
470 and grub_hostfs_init.
472 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
475 windows method on other platforms without good stat as well.
477 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
479 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
481 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
483 Make / in btrfs refer to real root, not the default volume.
484 Modify mkrelpath to work even if device is mounted with subvolid option.
486 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
488 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
490 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
493 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
495 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
498 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
500 * docs/autoiso.cfg: New file.
502 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
504 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
505 COND_GRUB_PE2ELF conditions.
507 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
509 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
510 "vnd", "rd" and "fd" disks.
512 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
514 Move grub_disk_write out of kernel into disk.mod.
516 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
518 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
521 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
523 * grub-core/kern/misc.c (grub_abort): Make static
525 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
527 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
528 transform invalid unicode codepoints.
530 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
532 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
535 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
537 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
539 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
541 Consolidate cpuid code.
543 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
545 Move cpuid code to cpuid.h and TSC code to tsc.c.
547 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
549 * util/grub.d/00_header.in: Don't use LANG if it's not set.
551 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
553 * util/grub-mkconfig.in: Replace $0 with $self.
554 * util/grub-reboot.in: Likewise.
555 * util/grub-set-default.in: Likewise.
557 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
559 * docs/osdetect.cfg: New file.
561 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
563 * tests/util/grub-shell.in: Add new --debug option.
565 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
567 * tests/test_unset.in: New test.
569 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
571 * tests/test_sha512sum.in: New test.
573 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
575 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
576 * include/grub/misc.h: Remove strncat.
577 * grub-core/lib/posix_wrap/string.h: Likewise.
579 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
581 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
582 Try to handle more than 0xFFFF packets.
583 Reported by: Bernhard Übelacker <bernhardu>.
584 He also spotted few overflows in first version of this patch.
586 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
588 * tests/date_unit_test.c: New test.
590 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
592 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
593 of first three years after start of validity of unixtime.
595 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
597 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
598 division as the one making more sense.
599 (update_screen): Likewise.
600 (complete): Likewise.
602 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
604 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
606 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
608 Make char and string width grub_size_t rather than grub_ssize_t.
610 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
612 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
614 (grub_history_replace): Likewise.
616 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
618 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
621 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
623 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
626 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
628 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
629 Use unsigned divisions rather than signed variants.
631 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
633 * grub-core/video/readers/png.c (grub_png_convert_image): Use
634 unsigned arithmetics.
637 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
639 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
641 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
643 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
644 rather than signed one.
645 (recovery): Likewise.
647 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
649 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
651 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
653 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
656 2013-10-25 Jon McCune <jonmccune@google.com>
658 * docs/grub.texi: Cleanup security documentation around signatures.
660 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
662 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
664 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
666 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
669 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
671 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
672 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
673 functions when compiling for kernel.
675 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
677 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
678 unsigned long long when using %llu.
680 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
682 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
683 terminal after updating progress.
685 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
687 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
688 argument. We don't disable Gate A20 in this code.
690 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
692 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
693 Conceptually based on change in branch "vbe-on-coreboot".
695 2013-10-24 Robert Millan <rmh@gnu.org>
697 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
698 numeric constants with their symbolic equivalent.
699 Taken from branch "vbe-on-coreboot".
701 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
703 * docs/grub.texi: Fix ordering and use pxref rather than xref.
705 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
707 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
708 divmod64 for offset division.
710 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
712 Rename .bzrignore to .gitignore. Add "*.o" rule.
714 * .bzrignore: Renamed to...
715 * .gitignore: ...this.
717 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
719 Add new progress module that displays the load progress of files.
721 * grub-core/lib/progress.c: New file.
722 * grub-core/Makefile.core.def (progress): New module.
723 * grub-core/kern/file.c (grub_file_open): File name added.
724 * (grub_file_read): Progress hook added.
725 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
726 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
727 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
728 * include/grub/file.h (struct grub_file): Add progress module members.
729 * include/grub/term.h (struct grub_term_output): Likewise.
730 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
731 Terminal velocity added.
732 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
733 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
734 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
735 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
736 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
737 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
738 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
739 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
740 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
741 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
742 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
743 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
745 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
747 Verify signatures of signatures unless --skip-sig is specified.
749 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
751 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
754 Saves 70 bytes on compressed image.
756 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
758 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
761 Saves 10 bytes on compressed image.
763 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
765 * grub-core/kern/misc.c (grub_isprint): Move to ...
766 * include/grub/misc.h (grub_isprint): ... here. Make inline.
768 Saves 20 bytes on compressed image due to remving exporting.
770 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
772 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
774 Saves 5 bytes on compressed image.
776 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
778 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
781 Saves 379 bytes on compressed image.
783 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
785 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
787 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
789 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
791 Saves 40 bytes on compressed image.
793 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
795 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
796 mask rather than 64-bit type.
798 Saves 20 bytes on compressed image.
800 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
802 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
803 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
805 Saves 273 bytes on compressed image.
807 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
809 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
810 variable length arrays.
812 Saves 50 bytes on compressed image.
814 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
816 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
818 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
820 * grub-core/fs/ufs.c: Remove variable length arrays.
822 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
824 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
826 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
828 * grub-core/fs/zfs.c: Remove variable length arrays.
829 Reduces zfs.mod by 160 bytes (208 compressed).
831 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
833 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
835 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
837 * grub-core/net/arp.c: Remove variable length arrays.
838 * grub-core/net/bootp.c: Likewise.
839 * grub-core/net/dns.c: Likewise.
840 * grub-core/net/icmp6.c: Likewise.
841 * grub-core/net/net.c: Likewise.
843 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
845 * grub-core/fs/ntfs.c: Remove variable length arrays.
846 Increases ntfs.mod by 64 bytes (but decreases by 3 when
849 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
851 * grub-core/fs/hfs.c: Remove variable length arrays.
852 Reduces hfs.mod by 8 bytes (52 compressed).
854 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
856 * grub-core/fs/udf.c: Remove variable length arrays.
857 Increases udf.mod by 128 bytes (but decreases by 13 when
860 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
862 * grub-core/fs/iso9660.c: Remove variable length arrays.
863 Increases iso9660.mod by 200 bytes (but decreases by 79 when
866 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
868 * grub-core/fs/nilfs2.c: Remove variable length arrays.
869 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
872 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
874 * grub-core/fs/xfs.c: Remove variable length arrays.
875 Reduces xfs.mod by 40 bytes (43 compressed).
877 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
879 * grub-core/fs/fshelp.c: Remove variable length arrays.
880 Reduces fshelp.mod by 116 bytes (23 compressed).
882 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
884 * grub-core/normal/completion.c: Remove variable length arrays.
885 * grub-core/normal/menu_entry.c: Likewise.
887 Reduces normal.mod by 496 bytes.
889 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
891 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
892 by 356 bytes (158 compressed).
894 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
896 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
897 by 364 bytes (169 compressed).
899 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
901 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
902 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
903 * include/grub/types.h (grub_unaligned_uint64_t): New type.
905 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
907 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
908 bitmasks to small structures of size chosen to fit in registers.
910 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
912 * conf/Makefile.common: Use -freg-struct-return on i386. This
913 decreases code size and improves performance.
915 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
917 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
919 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
921 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
923 Simplify expressions to save around 256 bytes in kernel.img.
924 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
926 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
928 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
929 Use GRUB_UTIL_FD_O_* rather than O_*.
931 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
933 Add haiku-specific functions.
935 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
937 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
939 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
941 Move stat () and device mode checking into OS-dependent files as
942 long as performance doesn't suffer.
944 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
946 Split make_system_path_relative_to_its_root into separate file
947 relpath.c from getroot.c as it's common between unix and haiku
948 but otherwise haiku doesn't use any functions from unix getroot.c.
950 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
952 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
954 (grub_util_is_special_file): Likewise.
956 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
958 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
959 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
961 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
963 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
964 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
966 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
968 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
969 (load_image): Likewise.
971 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
973 * util/grub-render-label.c: Move backend part to ...
974 * util/render-label.c: ... here.
976 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
978 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
979 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
981 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
983 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
985 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
987 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
988 CD-ROM in case when it's declared as having subpartitions.
990 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
992 Don't add -lm on haiku.
994 * configure.ac: Define BUILD_LIBM to -lm on most platforms
996 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
999 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1001 * configure.ac: Use -melf_*_haiku as target on haiku.
1003 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1005 * Makefile.util.def: Add util/setup.c to extra_dist.
1007 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1009 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
1010 unknown types through.
1012 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1014 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
1015 (grub_util_check_char_device): Likewise.
1016 * include/grub/emu/getroot.h: Likewise.
1018 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1020 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
1021 memset rather than inline static function.
1023 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1025 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
1026 not doing embedded decompressor.
1028 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1030 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
1032 * grub-core/kern/disk.c: Likewise.
1033 * grub-core/kern/misc.c: Likewise.
1034 * include/grub/parser.h: Likewise.
1035 * include/grub/script_sh.h: Likewise.
1036 * include/grub/zfs/zfs.h: Likewise.
1038 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1040 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
1042 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1044 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
1045 defined before trying to use it.
1047 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1049 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
1052 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1054 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
1055 Use __unused__ rather than __used__ on gcc < 3.2.
1057 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1059 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
1061 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
1063 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1065 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
1067 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1069 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
1070 * include/grub/emu/misc.h: Likewise.
1072 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1074 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1077 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1079 * grub-core/tests/checksums.h: Regenerated due to progress bar
1080 get_minimal_size changes.
1082 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1084 Added `tr' command support.
1086 * grub-core/commands/tr.c: New file.
1087 * grub-core/Makefile.core.def: Build rules for new module.
1089 * tests/grub_cmd_tr.in: New test.
1090 * Makefile.util.def: Build rules for new test.
1092 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1094 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1096 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1098 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1099 * docs/gurb.texi: Likewise.
1101 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1103 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1104 Pixmap highlighted section with east and west slices was displayed
1105 incorrectly due to negative width of the central slice.
1107 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1109 * docs/grub.texi: Graphical options information update.
1110 Removed outdated. Updated current. Inserted missed.
1112 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1114 * docs/grub.texi: Mention few new platform-specific commands.
1116 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1118 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1119 currently used so this doesn't really have any effect.
1120 Reported by: Douglas Ray <dougray>
1122 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1124 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1125 compilation but prevents gcc from displaying messages in non-Latin
1127 * conf/Makefile.common: Likewise.
1129 2013-10-16 Hiroyuki YAMAMORI
1131 Handle Japanese special keys.
1132 Reported by: Hiroyuki YAMAMORI.
1133 Codes supplied by: Hiroyuki YAMAMORI.
1135 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1137 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1139 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1141 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1142 * docs/grub.texi: Likewise.
1144 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1146 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1147 value in case of incomplete read.
1148 (grub_util_fd_write): Likewise.
1150 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1152 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1154 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1156 * util/grub-editenv.c (create_envblk_file): More from here ...
1157 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1159 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1161 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1162 canonicalize file name before doing the rest.
1164 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1166 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1169 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1171 Define grub_util_is_directory/regular/special_file and
1172 use OS-dependent versions rather than to rely on stat().
1174 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1176 * util/grub-mkimage.c: Move backend part to ...
1177 * util/mkimage.c: ... here.
1179 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1181 Allow compilation with mingw64 albeit with warnings due to lack of
1184 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1185 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1186 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1187 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1189 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1191 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1193 Remove leftover references to some of the system headers.
1195 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1197 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1200 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1202 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1205 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1207 Split out blocklist retrieving from setup.c to
1208 grub-core/osdep/blocklist.c and add windows implementation since
1209 generic version doesn't work on NTFS on Windows due to aggressive
1212 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1214 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1217 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1219 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1220 Cut tailing newline. Remove arbitrary limitation. Always use
1221 grub_util_tchar_to_utf8.
1223 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1225 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1226 * tests/printf_unit_test.c (printf_test): Add %% tests.
1227 Reported by: Paulo Flabiano Smorigo.
1229 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1231 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1234 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1236 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1237 use nvlist_lookup_string and don't use nvlist_print.
1239 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1241 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1242 closedir to handle filename charset translation.
1244 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1246 * include/grub/emu/hostdisk.h: Move file operations to
1247 * include/grub/emu/hostfile.h: ... here.
1249 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1251 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1254 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1256 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1258 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1260 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1261 and remove export.h.
1263 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1265 * grub-core/kern/emu/error.c: Removed.
1266 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1267 explicitly as it's already in libgnu.a.
1269 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1272 config-util.h include.
1274 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1276 Split emunet into platform-dependent and GRUB-binding parts. Keep
1277 platform-dependent part in kernel for easy access to OS functions.
1279 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1281 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1284 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1286 * grub-core/osdep/windows/emuconsole.c: New file.
1288 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1290 * conf/Makefile.extra-dist: Add osdep/*/init.c
1292 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1294 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1296 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1298 * util/grub-probe.c (probe): Separate different drives in hint-str
1299 by spaces and not newlines.
1300 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1302 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1304 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1307 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1309 Pass-through unknown E820 types. It required reorganisation of mmap
1312 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1314 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1316 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1318 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1321 2013-10-14 qwertial <qwertial>
1323 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1325 2013-10-14 Jon McCune <jonmccune@google.com>
1327 * docs/grub.texi: Document new signatures possibility.
1329 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1331 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1333 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1335 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1337 (grub_util_tchar_to_utf8): Likewise.
1339 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1341 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1342 * grub-core/kern/emu/main.c: Add missing include.
1343 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1344 Don't call grub_util_init_nls.
1345 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1348 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1350 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1353 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1355 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1357 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1359 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1361 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1363 Add a wrapper for fopen. On unix-like systems just pass-through. On
1364 windows use unicode version.
1366 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1368 Move set_program_name and init_nls to host_init. On windows
1369 fix in this fuction console and argument charset as well.
1371 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1373 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1374 GRUB_ENABLE_CRYPTODISK.
1376 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1377 GRUB_ENABLE_CRYPTODISK.
1378 * util/grub-mkconfig_lib.in: Likewise.
1380 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1382 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1384 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1386 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1387 error when enabling debug.
1389 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1391 * configure.ac: Use -melf_*_obsd on openbsd.
1393 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1395 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1397 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1399 * include/grub/misc.h: Use gnu_printf rather than printf as format
1400 template since our functions are independent of libc.
1402 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1404 * util/grub-setup.c (setup): Move copying of partition table as
1405 futher up as possible to avoid possible overwrite by floppy routines.
1407 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1409 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1411 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1413 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1414 * docs/grub.texi: Likewise.
1416 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1418 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1419 it's mostly unused. Move vestiges to the callers.
1421 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1423 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1424 version of salt and hash. Use grub_snprintf rather than snprintf.
1426 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1428 * docs/grub.texi: Fix problem with braces.
1430 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1432 * conf/Makefile.extra-dist: Fix extra-dist list.
1433 * grub-core/Makefile.core.def: Likewise.
1435 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1437 * docs/grub.texi: Document disk names used on Windows and AROS.
1439 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1441 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1443 * grub-core/osdep/aros/hostdisk.c: Likewise.
1445 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1447 Avoid including hostfile.h when not necessarry as it pulls
1448 in OS-specific headers which may redefine generic names
1451 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1453 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1454 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1455 scrollbar_bottom_pad
1456 * docs/grub.texi: Likewise.
1458 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1460 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1462 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1464 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1466 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1468 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1470 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1473 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1475 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1478 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1480 Move OS-specific driver configuration to grub_util_fd_open. This
1481 moves OS-dependent parts from kern/emu/hostdisk.c to
1482 grub-core/osdep/*/hostdisk.c.
1484 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1486 * util/grub-mkimage.c (generate_image): Use size_t instead of
1488 * util/grub-mkimagexx.c (locate_sections): Likewise.
1489 (load_image): Likewise.
1491 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1493 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1495 (grub_util_write_image): Likewise.
1497 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1499 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1500 get random when no RNG is available.
1501 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1503 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1505 * include/grub/util/lvm.h: Removed.
1507 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1509 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1510 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1512 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1514 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1516 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1518 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1520 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1522 * grub-core/net/drivers/emu/emunet.c: Move to ..
1523 * grub-core/osdep/linux/emunet.c: ..here.
1525 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1527 * util/ieee1275/ofpath.c: Move to ...
1528 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1529 * grub-core/osdep/basic/ofpath.c: ..here.
1531 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1533 Move password-querying (util-version) routines to grub-core/osdep.
1535 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1537 Move sleep routines to grub-core/osdep.
1539 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1541 Move OS-dependent files to grub-core/osdep and document it.
1543 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1545 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1546 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1548 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1550 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1552 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1554 * util/misc.c: Remove leftover inclusion of malloc.h.
1556 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1558 * include/grub/setjmp.h: Remove leftover GRUBOF.
1560 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1562 * util/raid.c: Fold into ...
1563 * util/getroot_linux.c: ... here. Make all functions static.
1565 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1567 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1568 macros to GRUB ones.
1570 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1572 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1573 occasional bug. If there are too many boot entries or too low
1574 scrollbar height then we need to use another formula to calculate
1575 the position and size of the scrollbar thumb.
1577 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1579 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
1581 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1583 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1584 * docs/grub.texi: Likewise.
1586 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1588 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1591 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1593 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1594 minimal width calculations.
1596 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1598 * docs/grub.texi: Update note on colors on emu console.
1600 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1602 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1603 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1604 it's FS and not GRUB limitation.
1606 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1608 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1610 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1614 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1616 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1617 kernels by version order.
1619 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1621 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1623 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1625 Add AROS hostdisk and getroot routines.
1627 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1629 Make cryptodisk and diskfilter probe data retrievable programmatically
1630 and not just printable.
1632 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1634 Split random retrieving code into separate files.
1636 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1638 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1641 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1643 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1645 * grub-core/tests/fake_input.c: Likewise.
1646 * grub-core/tests/cmdline_cat_test.c: Likewise.
1648 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1650 * grub-core/video/capture.c: Do not do finalization when .fini
1651 is called as there is explicit capture_end.
1653 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1655 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1656 changing windows to avoid crash.
1658 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1660 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1662 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1664 * po/exclude.pot: Add several strings to exclude.
1666 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1668 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1670 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1672 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1673 ./util/grub-gen-asciih.c to exclude list.
1675 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1677 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1678 and don't mark error strings for translation.
1680 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1682 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1683 properly in case of missing block size.
1685 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1687 * grub-core/lib/arm/setjmp.S: Add missing license section.
1689 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1691 * po/swiss.sed: Add replacement for key names and for term computer.
1693 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1695 * grub-core/gfxmenu/theme_loader.c: New global options for the
1696 theme background image handling. desktop-image-scale-method,
1697 desktop-image-h-align, desktop-image-v-align.
1698 * grub-core/gfxmenu/view.c: Likewise.
1699 * include/gfxmenu_view.h: Likewise.
1700 * include/bitmap_scale.h: Proportional scale functions introduced.
1701 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1702 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1703 cases of unexpected input variables for scale functions.
1704 * docs/grub.texi: Updated documentation for new options.
1706 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1708 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1710 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1712 * grub-core/tests/checksums.h: Corrected due to changes in
1713 bilinear interpolation function.
1715 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1717 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1718 to eliminate artefacts in bilinear interpolation.
1720 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1722 * grub-core/video/readers/tga.c: Support paletted tga.
1724 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1726 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1727 incorrect cbcr setting when in color mode.
1729 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/video/readers/png.c: Support paletted images and clean up
1734 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1736 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1737 usage of wrong table which resulted in mishandling of 4-byte
1740 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/term/terminfo.c: Add Home and End key sequences.
1744 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1746 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1747 Fix formula for computing total number of bytes.
1749 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1751 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1752 image processing, fix big-endian and support grayscale.
1754 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1756 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1757 Correctly will with maximum transparency when using index color.
1759 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1761 * grub-core/video/readers/png.c: Support grayscale
1763 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1765 * grub-core/video/readers/jpeg.c: Support grayscale.
1767 2013-09-26 Jon McCune <jonmccune@google.com>
1769 * grub-core/commands/loadenv.c: Support skipping signature check
1770 and variable names filtering.
1772 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1774 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1775 * grub-core/kern/emu/hostfs.c: Likewise.
1776 * util/getroot_unix.c: Likewise.
1778 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1780 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1781 Migrate all explicit defines to this new one.
1783 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1785 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1786 grub_util_fd_strerror when using grub_util_fd_*.
1787 (grub_util_fd_open_device): Likewise.
1788 (grub_util_biosdisk_read): Likewise.
1789 (grub_util_biosdisk_write): Likewise.
1790 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1791 (grub_util_fd_strerror): Likewise.
1792 (grub_util_fd_sync): Likewise.
1793 (grub_util_fd_close): Likewise.
1794 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1795 (grub_util_fd_close): Likewise.
1796 (grub_util_fd_strerror): Likewise.
1797 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1798 function proto rather than macro.
1799 (grub_util_fd_sync): Likewise.
1800 (grub_util_fd_open): Likewise.
1801 (grub_util_fd_strerror): New proto.
1803 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1805 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1806 platforms on which it doesn't work.
1808 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1810 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1811 stat immediately to where it's used.
1813 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1815 * util/getroot.c (grub_util_check_block_device): Move to ...
1816 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1817 * util/getroot.c (grub_util_check_char_device): Move to ...
1818 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1820 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1822 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1825 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1827 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1829 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1831 * docs/grub.texi (File name syntax): Document ZFS filenames
1832 (/volume@snapshot/...).
1834 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1836 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1837 Always return full path. Fixes a problem with mkrelpath.
1839 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1841 * util/grub-install.in: Add GPT PReP support.
1842 * util/grub-probe.c (probe): Support GPT partition type.
1843 (main): Support -t gpt_parttype.
1845 2013-09-23 Aleš Nesrsta <starous@volny.cz>
1847 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1849 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1851 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1853 2013-09-23 Tim Hardeck <thardeck>
1855 * util/grub.d/10_hurd.in: Filter out character for the class.
1856 * util/grub.d/10_kfreebsd.in: Likewise.
1857 * util/grub.d/10_linux.in: Likewise.
1858 * util/grub.d/20_linux_xen.in: Likewise.
1860 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1862 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1865 2013-09-23 Josh Triplett <josh@joshtriplett.org>
1867 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1870 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1872 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1873 doesn't use posix_wrap. Keep literal -fno-builtin however.
1875 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1877 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1879 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1882 * configure.ac: Do not enable -Wmissing-noreturn as its
1883 usefulness is limited and creates problems on some OS notably with
1884 code generated by bison.
1886 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1889 * configure.ac: Do not explicitly enable -Waddress as it's not
1890 supported by all gcc and when it is, it's already enabled by -Wall.
1892 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1894 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1895 desactivated use of EDID at all.
1897 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1900 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1901 video if no text is available.
1903 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1906 * configure.ac: Substitute TARGET_RANLIB.
1908 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1911 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1913 Based on patches from AROS.
1915 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1918 * grub-core/Makefile.am: Override STRIP and RANLIB.
1919 * configure.ac: compute TARGET_RANLIB.
1920 * INSTALL: Document TARGET_RANLIB
1922 Based on patches from AROS.
1924 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1926 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1927 that floppies are unpartitioned.
1929 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1931 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1932 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1934 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1936 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1937 less nice but more portable.
1938 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1940 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1942 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1944 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1946 (grub_cryptodisk_cheat_insert): Likewise.
1947 (grub_cryptodisk_close): Likewise.
1949 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1951 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1952 Use windows path for DEFAULT_DIRECTORY.
1954 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1956 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1957 difference was likely just gcc version, not anything mingw-related.
1959 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1961 Use Winapi on both cygwin and mingw32 to share more code between both.
1963 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1965 * util/grub-install.in: Add --grub-editenv option.
1966 * util/grub-install_header (grub_compress_file): Explicitly check for
1967 plain file to avoid cp error.
1969 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1971 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1972 names; fix LVM driver name (lvm, not lv).
1973 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1976 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1978 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1979 files rather than one file with loads of #if's.
1980 * util/getroot.c: Likewise.
1982 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1984 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1986 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1988 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1989 GNU/Hurd to the list of checked PRNG.
1991 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1993 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1995 2013-09-21 Ales Nesrsta <starous@volny.cz>
1997 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
1999 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2001 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
2002 * grub-core/disk/lvm.c: Add LVM UUIDs.
2003 * util/getroot.c: Use LVM UUIDs whenever possible.
2005 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
2007 * docs/grub.texi (Networking commands): Add documentation for
2008 network related commands.
2010 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2012 * util/getroot.c (grub_util_open_dm): Check major rather than the name
2013 to determine if device is handled by devmapper.
2014 (convert_system_partition_to_system_disk): Likewise.
2015 (get_dm_uuid): Don't check explicitly if device is mapped, it's
2016 already done in grub_util_open_dm.
2018 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
2020 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
2021 Clean up stack manipulation (sync_caches_armv*)
2023 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2025 * util/lvm.c: Remove since unused. Remove remaining references.
2027 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2029 Handle the case of partitioned LVM properly.
2031 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2032 Stop on meeting LVM, mpath or DMRAID.
2033 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
2034 (read_device_map): Likewise.
2035 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
2036 device is full disk rather than erroring out on LVM and similar cases.
2038 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2040 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
2042 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2044 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
2046 Reported by: Leif Lindholm
2048 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
2049 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2051 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
2054 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
2056 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
2057 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
2059 2013-09-18 Douglas Ray <dougray@cpan.org>
2061 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
2064 2013-09-18 Aleš Nesrsta <starous@volny.cz>
2066 * docs/grub.texi: Fix broken link.
2068 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
2070 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
2071 to break endless loop.
2073 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2075 * util/grub-fstest.c: Fix several printf formats.
2076 * util/grub-mkimage.c: Likewise.
2077 * util/grub-mkimagexx.c: Likewise.
2078 * util/grub-script-check.c: Likewise.
2080 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2082 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2085 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2087 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2089 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2091 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2092 removed in current versions cygwin_conv_*.
2094 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2096 * configure.ac: Disable efiemu runtime on cygwin.
2098 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2100 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2101 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2103 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2105 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2108 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2112 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2115 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2117 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2118 when on x86 and not cygwin.
2119 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2122 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2124 * configure.ac: Set CPP to build one when checkoing for freetype for
2127 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2129 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2130 [!GRUB_BUILD]: Remove has_argument.
2132 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2134 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2135 Replace with a dummy.
2137 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2139 * configure.ac: Don't change host_os from mingw to cygwin.
2141 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2143 * configure.ac: Change target_os from windows to cygwin.
2145 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2147 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2149 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2150 (build-grub-gen-asciih): Likewise.
2151 (build-grub-gen-widthspec): Likewise.
2152 * Makefile.util.def (grub-pe2elf): Remove.
2153 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2154 * configure.ac: Separate tests for build.
2155 Move ./build-grub-pe2elf to grub-core.
2157 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2158 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2160 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2162 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2163 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2164 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2166 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2168 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2169 mingw32 as well based on grub_util_get_disk_size.
2170 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2171 grub_util_get_fd_size.
2173 (fsync): Moved to ...
2174 * grub-core/kern/emu/misc.c (fsync): ... here.
2176 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2178 * include/grub/mm.h (grub_extend_alloc): Remove.
2179 * grub-core/loader/i386/pc/plan9.c: Use own version of
2180 grub_extend_alloc with appropriate types.
2182 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2184 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2186 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2188 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2190 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2192 Fix dependencies on cygwin.
2194 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2195 dependencies when used and defined.
2196 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2198 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2200 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2201 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2203 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2205 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2206 implementation available to cause compile-time rather than runtime
2209 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2211 * util/grub-fstest.c: Don't check for symlinks on windows.
2213 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2215 * INSTALL: Mention unavailability of man pages when cross-compiling.
2217 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2219 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2221 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2223 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2225 * INSTALL: Document cross-compilation.
2226 * acinclude.m4: Determine whether nm support -P and --defined-only.
2227 * configure.ac: Add TARGET_ to all variables pertaining to target
2228 that don't have it yet.
2229 * gentpl.py: Likewise.
2230 * grub-core/Makefile.am: Likewise.
2231 * grub-core/genmod.sh.in: Likewise.
2232 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2235 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2237 * configure.ac: Remove -Wempty-body. It's not essential and needs
2240 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2242 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2243 * util/getroot.c: Likewise.
2245 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2247 * grub-core/disk/ahci.c: Add needed explicit cast.
2248 * grub-core/lib/backtrace.c: Likewise.
2249 * grub-core/net/ip.c: Likewise.
2250 * grub-core/net/tcp.c: Likewise.
2251 * grub-core/net/udp.c: Likewise.
2253 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2255 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2257 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2259 * util/import_gcry.py: Add final newline in visibility.h.
2261 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2263 * conf/Makefile.common: Fix typo.
2265 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2267 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2269 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2271 * Makefile.am (widthspec.h): Fix typo.
2272 * util/grub-gen-widthspec.c: Likewise.
2274 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2276 Move ascii.h and widthspec.h generation to a separate build-time-only
2279 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2281 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2282 Always fill bootdisk info and improve check for NetBSD disklabel.
2284 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2286 * conf/Makefile.extra-dist: Add util/bin2h.c.
2287 Reported by: floppym.
2289 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2291 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2293 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2295 * configure.ac: Disable unifont and starfield if no freetype was found.
2297 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2299 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2300 on NetBSD and OpenBSD.
2302 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2304 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2306 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2308 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2309 reduced. Inheritant options are processed during the theme loading.
2311 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
2313 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2315 2013-08-14 Avik Sil <aviksil@in.ibm.com>
2317 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2319 2013-08-14 Avik Sil <aviksil@in.ibm.com>
2321 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2324 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2326 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2327 remove-potcdate.sed.
2329 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2331 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2332 unused attribute from pull argument.
2334 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2336 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2339 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2341 * util/getroot.c (pull_lvm_by_command): add --separator option
2342 to vgs call to disable padding of output to 10 characters.
2344 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2346 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2348 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2351 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2353 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2356 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2358 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2359 full Canadian cross. Tested with build=x86_64, host=arm,
2360 target=ppc-ieee1275.
2362 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2364 * configure.ac: Error if no $BUILD_CC could be found.
2367 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2369 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2372 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2374 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2375 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2377 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
2379 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2380 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2381 falling back to the partition device, otherwise a later call to this
2382 function may fail spuriously.
2383 Reported by Axel Beckert. Fixes Debian bug #708614.
2385 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2387 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2389 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2391 Prevent shadowing of stdlib's devname(3) on BSD.
2393 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2394 and devlast to diskname and disklast, respectively.
2396 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
2398 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2400 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2402 * docs/grub.texi: Introduce terminal window position options:
2403 terminal-left: terminal window's left position
2404 terminal-top: terminal window's top position
2405 terminal-width: terminal window's width
2406 terminal-height: terminal window's height
2407 terminal-border: terminal window's border width
2408 * grub-core/gfxmenu/theme-loader.c: Likewise.
2409 * include/grub/gfxmenu_view.h: Likewise.
2410 * po/exlude.pot: Likewise.
2411 * grub-core/gfxmenu/view.c: Likewise.
2412 Also updated minimal window size.
2413 Also terminal_sanity_check function has been introduced.
2414 * grub-core/tests/checksums.h: Update (terminal window height
2415 is adjusted now for low resolution screen)
2417 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2419 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2422 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2424 * po/exclude.pot: Add few recent exceptions.
2426 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2428 * tests/grub_func_test.in: Add unicode.pf2.
2430 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2432 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2433 standard rather than noral color, in line with other terminals.
2435 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2437 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2440 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2442 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2444 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2446 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2447 inappropriate printf.
2449 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2451 * .bzrignore: Remove grub-core/lib/dtc-grub,
2452 grub-core/Makefile.libfdt.def
2453 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2455 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2457 * include/grub/video.h (grub_video_register): Keep double-linked as
2458 well as single-linked invariants.
2459 Reported by: qwertial.
2461 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2463 * grub-core/commands/nativedisk.c (get_uuid): Handle
2464 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2466 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2468 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2469 maximum of NW, N, NE heights instead of N's height and maximum of
2470 NW, W, SW widths instead of W's width. (So the box will be always
2473 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2475 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2476 Fix misuse of variable count.
2478 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
2479 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
2480 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
2482 New ports to arm-uboot and arm-efi.
2483 Mostly by Leif Lindholm with some additions from
2484 Francesco Lavra and cleanup by Vladimir Serbinenko.
2486 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2488 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2490 Reported by: Leon Drugi.
2492 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2494 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2495 Reported by: Paulo Flabiano Smorigo.
2497 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2499 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2501 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2503 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2505 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2507 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2509 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2511 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2513 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2515 * grub-core/net/bootp.c: Export net_* variables.
2516 * grub-core/net/net.c: Likewise.
2518 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2520 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2522 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2524 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2526 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2528 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2530 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2532 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2534 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2536 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2539 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2541 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2544 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2546 * grub-core/fs/zfs/zfs_lz4.c: New file.
2547 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2549 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2551 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2553 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2555 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2556 (check_pool_label): Likewise.
2557 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2559 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2561 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2563 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2565 * docs/grub.texi (Commands): Document postition parameters
2566 for menuentry command.
2568 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2570 * util/grub-mknetdir.in: Remove stray line from help output.
2572 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2574 Remove early sm712 init as there is no reason for it (the "watchdog"
2575 effect was due to wrong GPIO map).
2577 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2579 * grub-core/commands/pcidump.c: Remove static variables.
2581 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2583 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2585 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2587 * configure.ac: Move delimiter after the infos.
2589 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2591 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2593 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2595 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2596 not filling whole 8x16 space.
2598 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2600 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2602 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2604 * configure.ac: Indicate which liblzma is used if any.
2606 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
2607 2013-06-21 Craig Sanders <savannah@taz.net.au>
2609 * util/grub-reboot.in: Document submenu usage.
2611 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
2613 * .bzrignore: Update with a number of new test-related files.
2615 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
2617 * util/grub-script-check.c: Fail on scripts containing no
2618 commands, to guard against corrupted grub-mkconfig setups that
2619 produce no useful output.
2620 * tests/grub_script_no_commands.in: New test.
2621 * Makefile.util.def (grub_script_no_commands): Add.
2622 Reported by Hans Putter. Fixes Debian bug #713886.
2624 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2626 * grub-core/disk/diskfilter.c: Forgot to remove comment
2627 from previous commit.
2629 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2631 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2632 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2634 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2636 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2638 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2640 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2641 rescan diskfilter devices until nothing new is found.
2643 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2645 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2647 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2649 Don't try to detect cbfs on *-emu.
2651 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2653 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2655 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2657 Add support for processed coreboot payload chainloading.
2659 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2661 Enable coreboot information commands even when not loaded as
2662 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2664 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2666 Support for cbfs. Also factor out the part which is common
2667 for all archives to a separate module. This splits tar from cpio
2668 as they are very different but keeps cpio, cpio_be, odc and newc
2669 together since they're very similar.
2671 2013-06-15 David Michael <fedora.dm0@gmail.com>
2673 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2674 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2676 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2678 * tests/grub_script_eval.in: Really add the eval test.
2680 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2682 Move flavour-specific parts out of common cpio.c file and
2683 rename remaining to cpio_common.c
2685 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2687 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2688 off new function grub_script_execute_new_scope. Change callers to use
2689 either of them as appropriate.
2690 * grub-core/commands/eval.c: New command eval.
2691 * docs/grub.texi (Commands): Document it.
2693 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2695 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2696 to fetch values when listing.
2698 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2700 Fix make dist on non-pc.
2702 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
2704 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2705 without a device name.
2707 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2709 Remove enable_executable_check as it's not needed anymore.
2710 Reported by: dougray.
2712 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2715 ambigouos RAID before discovering RAIDs on top of it.
2718 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2720 Fix typo (failback vs fallback).
2722 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2724 * util/grub.d/30_os-prober.in: Add support for probing EFI
2725 System Partition (as of os-prober 1.58).
2727 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2729 * configure.ac: Add yet another path to unifont. For parabola.
2731 2013-05-30 Josh Triplett <josh@joshtriplett.org>
2733 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2734 handling to copy the killed characters to the kill buffer as
2735 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2736 stored as char. Eliminates UCS4 truncation and corruption
2737 observed when killing characters with Ctrl-u and yanking them
2740 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2742 Detach optional parts of gfxterm and integrate in with coreboot init.
2744 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2746 Move blit and fill dispatcher to appropriate files to decrease export
2747 and relocation overhead.
2749 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2751 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2754 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2756 * grub-core/Makefile.am: Fix compilation problem with some
2759 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2761 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2763 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2765 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2768 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2770 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2773 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2775 * grub-core/partmap/dfly.c: New partition map.
2777 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2779 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2781 Reported by: Francesco Lavra.
2783 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2785 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2786 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2788 * conf/Makefile.common: define dist_grubconf_DATA
2790 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2792 Progressively skip menu elements on small terminals rather
2795 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2797 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2798 to avoid losing last column.
2800 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2802 * po/exclude.pot: Add missing string "%C".
2804 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2806 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2809 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2811 * util/grub-install.in: Gettextize "Not found" message.
2813 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2816 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2818 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2820 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2822 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2824 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2828 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2830 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2831 attribute since structure is not necessarily aligned.
2833 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2835 * docs/grub.texi (Device syntax): Clarify description of network
2838 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2840 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2841 for vasprintf presence.
2843 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2845 * util/grub-install.in: Handle efibootmgr presence check.
2846 Reported by: Leif Lindholm.
2848 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2850 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2851 new strings to translate.
2853 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2855 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2856 yet another string (pun intended) to translate.
2858 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2860 * po/POTFILES-shell.in: Autogenerate it.
2862 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2864 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2866 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2868 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2871 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2873 * docs/grub.texi (Network): Add description of net_default_interface,
2874 net_default_ip and net_default_mac. Rewrite variables description
2875 to emphasize that they are per-interface.
2877 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2879 New test: cmdline and cat.
2881 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/commands/cat.c: Show UTF-8 characters.
2885 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2887 * conf/Makefile.common: Poison float and double on non-emu.
2889 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2891 * configure.ac: Don't disable extended registers on emu.
2893 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2895 * configure.ac: Don't use extended registers on x86_64.
2896 Reported by: Peter Jones.
2898 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2900 * grub-core/term/efi/console.c: Fix compile error.
2902 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2904 Compressed HFS+ support.
2906 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2908 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2911 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2915 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2917 * grub-core/tests/setjmp_test.c: New test.
2919 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2921 New variables 'net_default_*' to determine MAC/IP of default interface.
2923 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2925 * tests/gettext_strings_test.in: A test to check for strings not
2926 marked for translation.
2928 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2930 * autogen.sh: Exclude unused libgcrypt files from translation.
2932 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2934 Simplify few strings.
2936 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2938 Mark few forgotten strings for translation.
2940 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2942 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2945 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2947 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2949 * grub-core/video/readers/tga.c: Likewise.
2951 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2953 * tests/priority_queue_unit_test.cc: New test.
2955 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2957 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2960 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2962 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2963 variable for one time boot menu entry.
2965 2013-05-05 Bean <bean123ch@gmail.com>
2967 * grub-core/commands/testspeed.c: New command testspeed.
2969 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2971 Factor-out human-size printing.
2973 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2975 Agglomerate more mallocs to speed-up gfxterm.
2977 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2979 Speed-up gfxterm by slightly agglomerating mallocs.
2981 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2985 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2987 Speed-up gfxterm by saving intermediate results in index+alpha
2990 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2992 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2995 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2997 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2998 line of timeout as it may contain the rest of long line.
3000 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3002 * grub-core/normal/main.c: Fix freed memory dereference.
3004 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3006 Fix several memory leaks.
3008 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
3012 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3014 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
3016 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3018 Fix test -a and -o precedence.
3019 Reported by: adrian15.
3021 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3023 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
3025 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
3027 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
3028 and add it as source to functional_test module.
3030 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3032 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
3034 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3036 New series of tests for gfxterm and gfxmenu.
3038 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
3041 the theme path relative to $prefix/themes.
3043 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3045 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
3047 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3049 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3051 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
3054 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3056 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
3057 grub_gfxmenu_timeout_notifications.
3058 (grub_gfxmenu_view_destroy): Likewise.
3060 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3062 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
3064 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3066 Several fixes to ieee1275 and big-endian video.
3068 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3070 Add missing exports on mips.
3072 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3074 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3075 if no unifont is found.
3076 Restore original keyboard.
3078 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3080 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3081 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3083 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3085 First automated video test (running videotest and comparing results)
3087 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3089 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3090 instead of 2 to have full RGB/CMY test pattern.
3092 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3096 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3098 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3099 ARCS. All users updated.
3101 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3103 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3105 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3107 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3109 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3111 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3112 Reported by: qwertial.
3114 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3116 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3117 with syntax "XXX deg"/"XXX °".
3119 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3121 Make PCI init in i386-qemu port more robust.
3123 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3125 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3126 cached view is reused.
3127 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3130 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3132 Unify more code in grub-install_header.
3134 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3138 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3140 Enforce disabling of firmware disk drivers when native drivers kick in.
3142 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3144 * grub-core/commands/nativedisk.c: Customize the list of modules on
3145 platform. Don't try to search for disks already using native drivers.
3147 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3152 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3154 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3155 handling of variables containing backslash.
3157 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3159 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3161 Reported by: qwertial.
3163 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3165 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3167 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3169 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3171 Reported by: qwertial.
3173 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3175 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3177 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3179 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3181 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3183 New command `nativedisk'.
3185 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3187 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3188 * grub-core/loader/i386/bsd.c: Likewise.
3190 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3192 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3194 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3196 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3197 grub_get_unaligned16 rather than shifts.
3199 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3201 * grub-core/kern/file.c: Use const char * rather than casting to
3204 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3206 * grub-core/commands/probe.c: Add missing grub_device_close.
3208 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3210 * INSTALL: Document linguas.sh.
3212 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3214 Remove POTFILES.in and regenerate it in autogen.sh.
3216 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3218 Move --directory/--override-directorry to grub-install_header and unify.
3220 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3222 * grub-core/term/morse.c: Macroify dih and dah.
3224 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3226 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3228 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/term/ns8250.c: Systematically probe ports by writing
3231 to SR before using them.
3233 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3235 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3237 (check_sas): Get sas_adress info.
3239 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3241 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3244 2013-04-27 Leon Drugi <eyak>
3246 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3249 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3251 Core compression test.
3253 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3255 Implement grub_machine_get_bootlocation for ARC.
3257 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3259 Improve AHCI detection and command issuing.
3261 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3265 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3267 Make 'make check' work on emu.
3269 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3271 Replace libcurses with our own vt100 handling for the ease of testing
3272 and decreasing prerequisites.
3274 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3276 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3278 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3280 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3281 compile when not needed.
3283 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3285 * tests/pseries_test.in: New test.
3287 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3289 Add test to check that different boot mediums work.
3291 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3293 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3294 ofw limited ISO support.
3296 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3298 * configure.ac: Fix loongson conditional.
3300 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3304 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3306 Add serial on ARC platform.
3308 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3310 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3313 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3315 * tests/partmap_test.in: Add missing double semicolon.
3317 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3319 * util/grub-mkrescue.in: Fix loongson filename.
3321 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3323 * util/grub-mkrescue.in: Move all files that don't have a location
3324 set in stone under /boot/grub. Use ISO hard links rather than copies
3327 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3329 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3332 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3334 Make check work on mips-arc.
3336 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3338 * util/grub-mkrescue.in: Alias sashARCS as sash.
3340 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3342 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3345 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3347 * util/grub-install.in: Fix target fo qemu_mips.
3348 Fix extension on EFI.
3350 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3352 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3353 in front of chosen entry to mark it even if highlighting is lost.
3355 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3357 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3358 gfxpayload=keep if cbfb is active.
3360 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3364 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3366 Add missing video ids to coreboot and ieee1275 video.
3368 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3370 * util/grub-mkrescue.in: Add mips-arc support.
3372 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3374 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3376 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3378 Move mips-arc link address. Previous link address was chosen
3379 in belief that RAM on SGI platforms grows down while in fact it
3380 grows up from an unusual base.
3382 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3384 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3385 Fix a type which prevented CD-ROM and floppy boot.
3387 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3389 Support coreboot framebuffer.
3391 * grub-core/video/i386/coreboot/cbfb.c: New file.
3393 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3395 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3396 detecting too small regions.
3398 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3400 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3402 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3404 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3406 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3408 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3410 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3411 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3412 * grub-core/loader/powerpc/ieee1275/linux.c
3413 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3415 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3417 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3418 Look for /boot-rom as well as /rom/boot-rom.
3420 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3422 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3423 handling when creating text_layer failed.
3424 * grub-core/video/video.c (grub_video_create_render_target):
3425 Set result to 0 on error.
3426 (grub_video_delete_render_target): Do not dereference NULL.
3428 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3430 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3431 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3432 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3433 (grub_linux_load64): Mask out 2 high bits.
3435 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3437 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3440 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3442 Add support for pseries and other bootinfo machines to grub-mkrescue.
3444 Tested by: Paulo Flabiano Smorigo.
3446 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3448 * util/grub-mkrescue.in: Add GPT for EFI boot.
3450 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3453 It improves performance in qemu.
3455 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3457 * build-aux/snippet: Add missing gnulib files.
3459 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3461 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3463 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3465 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3467 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3468 2013-04-15 Peter Jones <pjones@redhat.com>
3470 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3472 Based on patch by Peter Jones.
3474 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3476 Fix DMRAID partition handling.
3478 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3480 * tests/grub_cmd_date.in: Skip on sparc64.
3482 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3484 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3485 firmware error messages.
3487 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3489 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3490 source and destination differ.
3492 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3497 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3499 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3500 match config-util.h to avoid warnings and increase compatibility.
3502 2013-04-14 Szymon Janc <szymon@janc.net.pl>
3503 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3505 Add option to compress files on install/image creation.
3507 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3509 * docs/grub-dev.texi: Rearrange menu to match the section order.
3510 Reported by: Bryan Hundven.
3512 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3514 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3516 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3518 Move GRUB out of system area when using xorriso 1.2.9 or later.
3520 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3522 * tests/grub_cmd_date.in: Add missing exit 1.
3524 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3526 * tests/partmap_test.in: Skip on sparc64.
3528 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3530 Support grub-shell on sparc64.
3532 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3534 Support mkrescue on sparc64.
3536 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3538 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3539 Needed on OpenBIOS due to incomplete device tree.
3541 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3543 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3544 would be otherwise excluded.
3546 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3548 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3549 Inline name defines used only once.
3551 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3553 Fix memory leaks in ofnet.
3554 Reported by: Francesco Lavra.
3556 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3558 * docs/man/grub-glue-efi.h2m: Add missing file.
3560 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3562 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3564 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3566 Better support Apple Intel Macs on CD.
3568 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3570 Replace stpcpy with grub_stpcpy in tools.
3572 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3574 Handle Japanese special keys.
3575 Reported by: Hiroyuki YAMAMORI.
3576 Codes supplied by: Hiroyuki YAMAMORI.
3578 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3580 * util/grub-mkimage.c: Document memdisk implying --prefix.
3582 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3584 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3585 much we can do about it anyway.
3587 2013-04-12 Aleš Nesrsta <starous@volny.cz>
3589 Fix handling of split transfers.
3591 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3593 * grub-core/net/http.c: Fix bad free.
3595 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3597 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3600 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3602 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3604 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3606 * tests/util/grub-shell.in: Fix it on powerpc.
3608 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3610 Turn off QEMU ACPI-way since new releases don't have shutdown port
3613 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3615 * docs/grub.texi: Update coreboot status info.
3617 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3619 * tests/grub_cmd_date.in: New test for datetime.
3621 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3623 * tests/partmap_test.in: Fix missing qemudisk setting.
3625 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3627 Support i386-ieee1275 grub-mkrescue and make check on it.
3629 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3631 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3634 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3636 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3637 GRUB_CMDLINE_XEN_DEFAULT.
3638 Reported by: Marc Warne (GigaTux) <gigatux>
3640 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3644 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3646 Use ACPI shutdown intests as traditional port was removed.
3648 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3650 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3653 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3655 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3656 Fix few warining messages and leaks while on it.
3658 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3660 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3661 links under grub-core/lib/libgcrypt-grub/mpi.
3663 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3665 Fix ia64-efi image generation on big-endian machines. Deduplicate
3666 some code while on it.
3667 Reported by: Leif Lindholm.
3669 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3671 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3674 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3676 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3678 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3680 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3683 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3685 * grub-core/normal/term.c: Few more fixes for menu entry editor
3687 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3689 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3691 * grub-core/normal/term.c: Few more fixes for menu entry editor
3693 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3695 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3697 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3698 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3700 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3702 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3703 instead of hardcoding grub.mo.
3705 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3707 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3709 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3711 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3712 grub-core/disk/geli.c.
3714 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3716 * util/grub-mkfont.c: Prefer enum to #define.
3718 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3720 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3722 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3724 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3726 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3728 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3730 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3732 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3734 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3736 * include/grub/bsdlabel.h: Use enums.
3738 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3740 Move GRUB_CHAR_BIT to types.h.
3742 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3744 * docs/grub.texi: Document more user commands.
3746 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3748 * docs/grub.texi: Document menuentry --id option.
3750 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3752 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3754 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3756 Unify file copying setup across different install scripts. Add
3757 options for performing partial install.
3759 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3760 2013-04-04 Peter Jones <pjones@redhat.com>
3762 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3764 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3766 Use TSC as a possible time source on i386-ieee1275.
3768 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3770 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3773 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3775 * util/grub-setup.c (setup): Handle some corner cases.
3777 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3779 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3781 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3783 * grub-core/commands/verify.c: Save verified file to avoid it being
3784 tampered with after verification was done.
3786 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3788 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3789 reported width by one to compensate for curesor algorithm problem.
3791 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3793 Fix screen corruption in menu entry editor and simplify the code
3796 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3798 * util/grub-mount.c (fuse_init): Return error if fuse_main
3801 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3803 * include/grub/elf.h: Add missing ARM relocation codes and fix
3806 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3808 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3810 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3811 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3814 into account when calculating radius.
3816 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3818 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3820 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3822 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3824 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3826 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3827 missing closing bracket.
3829 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3831 * INSTALL: Mention xorriso requirement.
3833 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3835 * grub-core/commands/verify.c: Fix hash algorithms values for
3836 the first three hashes - they start with 1, not with 0.
3838 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3840 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3841 Try terminating EFI services several times due to quirks in some
3844 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
3846 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3847 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3848 BankField extended opcodes.
3849 (get_sleep_type): Add minimal scope handling (just enough to
3850 handle setting the scope to the root path).
3851 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3852 * include/grub/acpi.h: Add enumeration values for Event, Device,
3853 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3855 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3857 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3860 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3862 * grub-core/disk/ahci.c: Give more time for AHCI request.
3864 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3866 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3869 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3871 Replace the region at 0 from coreboot tables to available in BSD
3874 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3876 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3879 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3881 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3884 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3886 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3887 handling of multi-device filesystems.
3889 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3891 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3894 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3896 Add new 'proc' filesystem framework and put luks_script into it.
3898 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3900 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3903 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3905 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3907 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3909 Add ability to generate newc additions on runtime.
3911 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3916 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3918 * po/POTFILES.in: Regenerate.
3920 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/commands/verify.c (hashes): Add several hashes
3925 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3927 Slight improve in USB-related boot-time checkpoints.
3929 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3931 * grub-core/commands/boottime.c: Fix copyright header.
3933 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3935 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3936 coreboot tables content. Support for cbmemc.
3938 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3940 Fix a conflict between ports structures with 2 controllers of
3943 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3945 * include/grub/boottime.h: Add missing file.
3947 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3949 Initialize USB ports in parallel to speed-up boot.
3951 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3953 Fix USB devices not being detected when requested
3954 due to delayed attach.
3956 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3958 Implement boot time analysis framework.
3960 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3962 Remove get_endpoint_descriptor and change all functions needing
3963 descriptor to just receive it as argument rather than endpoint
3966 2013-03-19 Aleš Nesrsta <starous@volny.cz>
3968 Better estimate the maximum USB transfer size.
3970 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3972 Resend a packet if we got the wrong buffer in status.
3974 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3976 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3977 multiplication rather than division.
3979 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3981 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3984 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3986 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3987 operations to have intended shifts and not divisions.
3989 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3992 intended shifts rather than division.
3994 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3996 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3997 computation for some years before epoch. Avode confusing division
4000 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4002 * grub-core/video/i386/pc/vbe.c
4003 (grub_video_vbe_print_adapter_specific_info): Replace division by
4006 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4008 Adjust types in gdb module to have intended unsigned shifts rather than
4011 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4013 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
4014 maximum size is 4G - 1 on hfs
4016 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4018 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
4020 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4022 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
4025 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
4027 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
4028 causing gcc error with gcc 4.7.1.
4030 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4032 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
4033 dereference null pointer. While the code is technically correct, gcc
4034 may eliminate a null check if pointer is already dereferenced.
4036 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4038 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
4040 * grub-core/normal/term.c (read_terminal_list): Likewise.
4042 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4044 Lift up core size limits on some platforms. Fix potential memory
4045 corruption with big core on small memory systems. Document remaining
4048 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4050 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
4053 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4055 Remove all trampoline support. Add -Wtrampolines when
4056 present. Remove symbols used for trampolines to make
4057 link fail if trampolines are present.
4059 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
4062 append out of its parent.
4064 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4066 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
4069 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4071 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
4072 all vars to a macro. All users updated.
4074 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4076 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4079 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4081 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4083 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4085 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4087 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4089 Move to more hookless approach in IEEE1275 devices handling.
4091 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4093 * grub-core/kern/term.c (grub_term_normal_color),
4094 (grub_term_highlight_color): Add back lost defaults.
4096 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4098 Make elfload not use hooks. Opt for flags and iterators instead.
4100 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4102 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4103 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4105 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4107 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4109 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4111 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4112 hook pass-through parameter. All users updated and unnested.
4114 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4116 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4119 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4121 * grub-core/fs/hfs.c: Remove nested functions.
4123 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4125 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4126 the context through.
4127 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4129 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4131 * util/grub-editenv.c (list_variables): Move print_var out of its
4134 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4136 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4139 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4141 * grub-core/gentrigtables.c: Make tables const.
4143 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4145 Remove nested functions from videoinfo iterators.
4147 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4149 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4150 for 64-bit platforms.
4152 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4154 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4155 a FOR_CHILDREN macro.
4157 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4159 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4160 platform from firmware path.
4162 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4164 Enable linux16 on non-BIOS systems for i.a. memtest.
4166 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4168 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4170 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4173 Fix end of table condition.
4175 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4180 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/fs/jfs.c: Remove nested functions.
4184 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4186 * grub-core/fs/minix.c: Remove nested functions.
4188 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4190 * grub-core/fs/iso9660.c: Remove nested functions.
4192 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4194 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4197 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4199 * util/grub-fstest.c: Remove nested functions.
4201 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4203 * grub-core/loader/machoXX.c: Remove nested functions.
4205 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
4207 Remove nested functions from disk and file read hooks.
4209 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4210 (struct grub_disk): Add read_hook_data member.
4211 * include/grub/file.h (struct grub_file): Likewise.
4212 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4217 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4219 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4220 Fix off by one error in enumerating extended partitions.
4222 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4224 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4225 memory leak if device name is not found.
4227 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4229 * grub-core/normal/menu_entry.c (update_screen): remove
4230 unused variable `off' which caused scroll down arrow to be always shown.
4232 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4234 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4235 access to unallocated memory.
4237 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4239 * Makefile.util.def: Add partmap/msdos.c to common library.
4240 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4241 * grub-core/disk/ldm.c: Check for existence of
4242 GRUB_PC_PARTITION_TYPE_LDM.
4244 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4246 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4247 sizes and display sector size.
4249 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4251 Implement new command cmosdump.
4253 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4255 Support Openfirmware disks with non-512B sectors.
4257 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4259 * (grub_ofdisk_get_block_size): New function.
4260 * (grub_ofdisk_prepare): Use the correct block size.
4261 * (grub_ofdisk_read): Likewise.
4262 * (grub_ofdisk_write): Likewise.
4263 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4266 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4268 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4270 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4272 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4275 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4277 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4280 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4282 Implement USBDebug (full USB stack variant).
4284 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4286 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4287 unless they have unexpected values.
4289 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4291 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4294 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4296 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4297 zero-out of port structure.
4299 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4301 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4302 of extended attributes.
4304 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4306 * util/grub-install.in: change misleading comment about
4309 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4311 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4312 when menu highlight color isn't set.
4314 2013-01-27 C. Masloch <pushbx@38.de>
4316 Improve FreeDOS direct loading support compatibility.
4318 * include/grub/i386/relocator.h (grub_relocator16_state):
4320 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4322 (grub_relocator16_boot): Handle %ebp.
4323 * grub-core/lib/i386/relocator16.S: Likewise.
4324 * grub-core/loader/i386/pc/freedos.c:
4325 Load BPB to pass kernel which partition to load from.
4326 Check that kernel file is not too large.
4327 Set register dl to BIOS unit number as well.
4329 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
4331 * util/grub-reboot.in (usage): Document the need for
4333 * util/grub-set-default.in (usage): Likewise.
4334 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4336 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4338 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4339 than defining WORDS_BIGENDIAN manually.
4341 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4343 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4346 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4348 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4350 (blit_comb: add_device_width): Likewise.
4352 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4354 Remove nested functions from USB iterators.
4356 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4357 (grub_usb_controller_iterate_hook_t): Likewise.
4358 (grub_usb_iterate): Add hook_data argument.
4359 (grub_usb_controller_iterate): Likewise.
4360 (struct grub_usb_controller_dev.iterate): Likewise.
4362 Update all implementations and callers.
4364 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4366 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4367 margin when not needed.
4369 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4371 Make color variables global instead of it being per-terminal.
4373 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4375 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4378 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4380 Fix powerpc and sparc64 build failures caused by un-nesting memory
4383 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4385 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4386 parameter declarations.
4388 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4390 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4392 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4394 Improve spkmomdem reliability by adding a separator between bytes.
4396 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4398 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4399 an Acer registration utility with several sightings in the wild.
4400 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4402 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4404 Remove nested functions from filesystem directory iterators.
4406 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4407 (struct grub_fs.dir): Add hook_data argument.
4409 Update all implementations and callers.
4411 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
4413 * docs/grub.texi (Multi-boot manual config): Fix typo for
4416 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4418 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4419 until after its use in generate_image.
4421 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4423 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4424 initrd size to addr_min, since the initrd will be allocated after
4427 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4429 * conf/Makefile.common: Fix autogen rules to pass definition
4430 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4432 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4434 * include/grub/elf.h: Update ARM definitions based on binutils.
4436 2013-01-20 Aleš Nesrsta <starous@volny.cz>
4438 Split long USB transfers into short ones.
4440 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4442 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4443 is interrupted by ESC.
4445 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4447 * util/grub-script-check.c (main): Uniform the error message.
4449 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4451 Remove nested functions from ELF iterators.
4453 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4455 Remove nested functions from device iterators.
4457 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4458 (grub_arc_iterate_devs): Add hook_data argument.
4459 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4460 (struct grub_ata_dev.iterate): Add hook_data argument.
4461 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4462 (grub_device_iterate): Add hook_data argument.
4463 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4464 (struct grub_disk_dev.iterate): Add hook_data argument.
4465 (grub_disk_dev_iterate): Likewise.
4466 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4468 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4470 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4472 (struct grub_partition_map.iterate): Add hook_data argument.
4473 (grub_partition_iterate): Likewise.
4474 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4475 (struct grub_scsi_dev.iterate): Add hook_data argument.
4479 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
4481 Fix typos for "developer" and "development".
4483 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4485 Add license header to spkmodem-recv.c.
4487 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4489 Rewrite spkmodem to use PIT for timing. Double the speed.
4491 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4493 Add new command pcidump.
4495 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4497 New terminal outputs using serial: morse and spkmodem.
4499 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4501 Improve bidi handling in entry editor.
4503 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4505 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4506 argument to prevent name collision.
4508 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
4510 Remove nested functions from script reading and parsing.
4512 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4513 getline_data argument, passed to getline.
4514 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4515 getline_data argument, passed to grub_parser_split_cmdline.
4516 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4517 lexerstate->getline_data to lexerstate->getline.
4518 (grub_script_lexer_init): Add getline_data argument, saved in
4519 lexerstate->getline_data.
4520 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4521 argument, passed to grub_script_parse.
4522 * grub-core/script/script.c (grub_script_parse): Add getline_data
4523 argument, passed to grub_script_lexer_init.
4524 * include/grub/parser.h (grub_parser_split_cmdline): Update
4525 prototype. Update all callers to pass appropriate getline data.
4526 (struct grub_parser.parse_line): Likewise.
4527 (grub_rescue_parse_line): Likewise.
4528 * include/grub/reader.h (grub_reader_getline_t): Add void *
4530 * include/grub/script_sh.h (struct grub_lexer_param): Add
4531 getline_data member.
4532 (grub_script_parse): Update prototype. Update all callers to pass
4533 appropriate getline data.
4534 (grub_script_lexer_init): Likewise.
4535 (grub_normal_parse_line): Likewise.
4537 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4539 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4540 static instead of nested. Rename to ...
4541 (grub_parser_execute_getline): ... this.
4542 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4544 * grub-core/normal/main.c (read_config_file: getline): Make static
4545 instead of nested. Rename to ...
4546 (read_config_file_getline): ... this.
4547 (grub_normal_read_line): Add unused data argument.
4548 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4549 getline): Make static instead of nested. Rename to ...
4550 (grub_script_execute_sourcecode_getline): ... this.
4551 * util/grub-script-check.c (main: get_config_line): Make static
4554 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
4556 Remove nested functions from memory map iterators.
4558 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4559 argument, passed to hook.
4560 * grub-core/kern/i386/coreboot/mmap.c
4561 (grub_linuxbios_table_iterate): Likewise.
4562 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4564 (grub_machine_mmap_iterate): Add hook_data argument.
4565 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4566 Add hook_data argument, passed to hook.
4567 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4569 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4571 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4573 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4575 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4577 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4579 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4580 (grub_machine_mmap_iterate): Likewise.
4581 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4582 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4584 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4585 Remove NESTED_FUNC_ATTR from here and from all users.
4586 (grub_mmap_iterate): Update prototype.
4587 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4588 pass appropriate hook data.
4589 (grub_machine_mmap_iterate): Likewise.
4591 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4592 static instead of nested.
4593 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4595 (lsmmap_hook): ... this.
4596 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4598 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4599 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4600 heap_init): Likewise.
4601 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4603 (mmap_iterate_hook): ... this.
4604 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4606 * grub-core/lib/ieee1275/relocator.c
4607 (grub_relocator_firmware_get_max_events: count): Likewise.
4608 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4610 (grub_relocator_firmware_fill_events_iter): ... this.
4611 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4612 hook): Likewise. Rename to ...
4613 (grub_relocator_alloc_chunk_align_iter): ... this.
4614 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4616 (generate_e820_mmap_iter): ... this.
4617 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4619 (count_hook): ... this.
4620 (grub_linux_boot: hook): Likewise. Rename to ...
4621 (grub_linux_boot_mmap_find): ... this.
4622 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4623 (grub_linux_boot_mmap_fill): ... this.
4624 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4625 hook): Likewise. Rename to ...
4626 (grub_fill_multiboot_mmap_iter): ... this.
4627 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4628 hook): Likewise. Rename to ...
4629 (count_hook): ... this.
4630 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4631 hook): Likewise. Rename to ...
4632 (grub_fill_multiboot_mmap_iter): ... this.
4633 * grub-core/loader/powerpc/ieee1275/linux.c
4634 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4635 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4636 Likewise. Rename to ...
4637 (alloc_phys_choose): ... this.
4638 (determine_phys_base: get_physbase): Likewise.
4639 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4640 find_hook): Likewise.
4641 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4642 (malloc_hook: count_hook): Likewise.
4643 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4644 Likewise. Rename to ...
4645 (lower_hook): ... this.
4646 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4647 (upper_hook): ... this.
4648 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4649 (post64_hook): ... this.
4650 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4651 Likewise. Rename to ...
4652 (lower_hook): ... this.
4653 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4654 (upper_hook): ... this.
4655 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4656 (grub_mmap_iterate: fill_hook): Likewise.
4657 (fill_mask): Pass addr and mask within a single struct.
4658 (grub_cmd_badram: hook): Make static instead of nested. Rename
4660 (badram_iter): ... this.
4661 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4662 (cutmem_iter): ... this.
4664 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4666 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4667 delimit path in strings using quotes.
4668 * util/getroot.c (grub_guess_root_devices): Likewise.
4669 (grub_make_system_path_relative_to_its_root): Likewise.
4670 * util/grub-probe.c (probe): Likewise.
4671 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4672 (xrealpath): Likewise.
4674 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4676 Fix compilation with older compilers.
4678 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4679 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4681 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4682 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4683 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4685 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4686 * include/grub/crypto.h: Add type defines.
4687 * util/import_gcrypth.sed: Remove duplicate type defines.
4689 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4691 New command list_trusted.
4693 * grub-core/commands/verify.c (grub_cmd_list): New function.
4695 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
4697 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4700 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
4702 Remove nested functions from PCI iterators.
4704 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4705 passed to hook. Update all callers to pass appropriate hook data.
4706 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4707 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4708 Remove NESTED_FUNC_ATTR from here and from all users.
4709 (grub_pci_iterate): Update prototype.
4710 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4711 instead of nested. Rename to ...
4712 (grub_cs5536_find_iter): ... this.
4713 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4714 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4716 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4718 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4720 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4722 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4723 * grub-core/video/radeon_fuloong2e.c
4724 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4725 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4726 find_card): Likewise.
4727 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4730 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4732 * grub-core/commands/verify.c: Mark messages for translating.
4734 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4739 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4741 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4744 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4746 * autogen.sh: Do not try to delete nonexistant files.
4747 * util/import_gcrypth.sed: Add some missing header removals.
4749 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
4751 Clean up dangling references to grub-setup.
4752 Fixes Ubuntu bug #1082045.
4754 * docs/grub.texi (Images): Refer generally to grub-install rather
4755 than directly to grub-setup.
4756 (Installing GRUB using grub-install): Remove direct reference to
4758 (Device map) Likewise.
4759 (Invoking grub-install): Likewise.
4760 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4761 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4762 * util/grub-install.in (usage): Likewise.
4764 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4765 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4767 * configure.ac: Remove grub_setup output variable.
4769 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4771 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4772 grub-setup to grub-sparc64-setup.
4774 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4776 Import gcrypt public-key cryptography and implement signature checking.
4778 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4780 * grub-core/fs/ntfs.c: Ue more appropriate types.
4781 * grub-core/fs/ntfscomp.c: Likewise.
4782 * include/grub/ntfs.h: Likewise.
4784 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4786 Support Apple FAT binaries on non-Apple platforms.
4788 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4789 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4791 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4794 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4796 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4799 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
4801 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4802 explicitly zeroing elements.
4803 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4804 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4805 of elements in a structure already allocated using grub_zalloc.
4806 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4808 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
4810 * docs/grub.texi (grub_cpu): New subsection.
4811 (grub_platform): Likewise.
4813 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4815 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4817 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4819 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4822 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4824 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4825 * grub-core/fs/ntfscomp.c: Likewise.
4826 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4827 (grub_ntfs_comp): Likewise.
4829 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4831 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4833 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4834 of groups_per_block. All users updated.
4836 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4838 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4839 grub_error properly.
4840 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4841 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4843 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4845 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4846 always in /boot/zfs.
4847 Reported by: Yuta Satoh.
4849 2013-01-03 Yuta Satoh <nigoro>
4851 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4854 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4856 * configure.ac: Extend -Wno-trampolines to host.
4858 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4860 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4863 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
4865 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4866 (Invoking grub-script-check): Likewise.
4868 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
4870 * docs/grub.texi (Invoking grub-mount): New section.
4871 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4873 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
4875 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4876 test failures, so that a failing unit test correctly causes 'make
4879 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
4881 Fix failing printf test.
4883 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4884 '$' in the correct order when collecting type information.
4886 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
4888 * docs/grub.texi (configfile): Explain environment variable
4890 (source): New section.
4891 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4893 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
4895 Remove several trivially-unnecessary uses of nested functions.
4897 * grub-core/commands/i386/pc/sendkey.c
4898 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4900 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4902 (legacy_file_getline): ... this.
4903 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4905 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4906 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4908 (probe_dummy_iter): ... this.
4909 * grub-core/kern/i386/coreboot/mmap.c
4910 (grub_linuxbios_table_iterate: check_signature): Likewise.
4911 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4912 check_varstate): Likewise. Mark inline.
4913 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4914 an additional parameter.
4915 (find_long: fnd_long): Likewise. Pass two additional parameters.
4916 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4917 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4918 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4919 Likewise. Rename to ...
4920 (grub_cmos_find_port_iter): ... this.
4921 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4923 (find_rtc_iter): ... this.
4925 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4926 function directly into the function body, since it is only called
4929 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
4931 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4932 __attribute__ ((unused)).
4933 * grub-core/video/bochs.c (find_card): Likewise.
4934 * grub-core/video/cirrus.c (find_card): Likewise.
4935 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4936 * grub-core/video/sis315pro.c (find_card): Likewise.
4937 * grub-core/video/sm712.c (find_card): Likewise.
4939 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
4941 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4942 Fixes Savannah bug #37821.
4944 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
4946 Apply program name transformations at build-time rather than at
4947 run-time. Fixes Debian bug #696465.
4949 * acinclude.m4 (grub_TRANSFORM): New macro.
4950 * configure.ac: Create output variables with transformed names for
4952 * util/bash-completion.d/grub-completion.bash.in: Use
4953 pre-transformed variables for program names.
4954 * util/grub-install.in: Likewise.
4955 * util/grub-kbdcomp.in: Likewise.
4956 * util/grub-mkconfig.in: Likewise.
4957 * util/grub-mkconfig_lib.in: Likewise.
4958 * util/grub-mknetdir.in: Likewise.
4959 * util/grub-mkrescue.in: Likewise.
4960 * util/grub-mkstandalone.in: Likewise.
4961 * util/grub-reboot.in: Likewise.
4962 * util/grub-set-default.in: Likewise.
4963 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4964 * tests/util/grub-shell-tester.in: Remove unused assignment.
4965 * tests/util/grub-shell.in: Likewise.
4966 * util/grub.d/00_header.in: Likewise.
4968 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
4970 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4972 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4974 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4976 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4978 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4979 Reported by: Eriks Latosheks <foresterlv>.
4981 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4983 * docs/grub.texi (Network): Update instructions on generating netboot
4986 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4988 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4989 around device name if necessarry.
4991 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4993 * util/grub-install.in: Follow the symbolic link parameter added
4994 to the file command.
4996 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4998 * util/grub-install.in: Remove stale TODO.
5000 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5002 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
5003 dynamic allocation for the bootpath buffer.
5005 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
5007 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
5010 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5012 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
5013 argument rather than font name. All users updated.
5014 (grub_gfxterm_set_window): Likewise.
5016 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
5018 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
5021 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5023 * util/getroot.c (convert_system_partition_to_system_disk): Support
5026 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5028 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
5029 infinite loop on corrupted FS.
5031 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5033 Fix big-endian mtime.
5035 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
5036 together sec and usec.
5037 (grub_ufs_dir): Use correct byteswapping for UFS time.
5039 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5041 Support big-endian UFS1.
5043 * Makefile.util.def (libgrubmods): Add ufs_be.c
5044 * grub-core/Makefile.core.def (ufs1_be): New module.
5045 * grub-core/fs/ufs_be.c: New file.
5046 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
5049 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
5051 * include/grub/types.h: Fix functionality unaffecting typo in
5052 GRUB_TARGET_WORDSIZE conditional macro.
5054 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5056 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
5058 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5060 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
5061 that /netbsd appears first (when it exists).
5063 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
5065 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
5066 Fixes Savannah bug #37558.
5068 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
5070 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
5071 description of extract_entries_configfile.
5073 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
5075 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5077 (grub_cmd_linux): Likewise.
5078 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5079 preferred_lifetime. Update all users.
5081 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
5083 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5084 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5086 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
5088 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5089 errors from grub-probe to /dev/null, not stdout.
5091 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5093 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5096 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
5098 * util/grub-install.in: Make the error message if $source_dir
5099 doesn't exist more useful.
5101 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
5103 Fix grub-emu build on FreeBSD.
5105 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5106 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5108 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5109 implementation is currently Linux-specific.
5110 * util/getroot.c (exec_pipe): Define only on Linux or when either
5111 libzfs or libnvpair is unavailable.
5112 (find_root_devices_from_poolname): Remove unused path variable.
5114 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
5116 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5117 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5118 should fit before end == 63.
5120 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
5122 * util/grub-setup.c (write_rootdev): Remove unused core_img
5123 parameter. Update all callers.
5124 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5125 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5128 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5130 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5131 (grub_add_tab): New function.
5132 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5133 * util/grub.d/10_illumos.in: Likewise.
5134 * util/grub.d/10_kfreebsd.in: Likewise.
5135 * util/grub.d/10_linux.in: Likewise.
5136 * util/grub.d/10_netbsd.in: Likewise.
5137 * util/grub.d/10_windows.in: Likewise.
5138 * util/grub.d/10_xnu.in: Likewise.
5139 * util/grub.d/20_linux_xen.in: Likewise.
5140 * util/grub.d/30_os-prober.in: Likewise.
5142 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5144 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5145 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5146 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5147 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5148 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5151 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5153 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5155 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5157 Reported by: BURETTE, Bernard.
5159 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
5161 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5164 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
5166 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5167 IEEE1275 machines. Fixes powerpc-emu compilation.
5168 * include/grub/terminfo.h: Likewise.
5170 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5172 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5174 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5176 (efiemu_set_variable): Make vendor_guid a const pointer.
5178 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5180 Don't require grub-mkconfig_lib to generate manpages for programs.
5182 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5183 dependencies, don't add grub-mkconfig_lib.
5184 (program): Pass empty adddeps.
5185 (script): Pass grub-mkconfig_lib as adddeps.
5187 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5189 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5190 * util/getroot.c (grub_find_device): Likewise.
5191 (get_mdadm_uuid): Likewise.
5192 (grub_util_is_imsm): Likewise.
5193 (grub_util_pull_device): Likewise.
5194 * util/grub-probe.c (probe): Likewise.
5196 2012-09-10 Benoit Gschwind <gschwind>
5198 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5199 (devs): Add devpath_8.
5201 2012-09-08 Peter Jones <pjones@redhat.com>
5203 * grub-core/Makefile.core.def (efifwsetup): New module.
5204 * grub-core/commands/efi/efifwsetup.c: New file.
5205 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5206 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5208 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5210 2012-09-05 Jiri Slaby <jslaby@suse.cz>
5212 * configure.ac: Add SuSe path.
5214 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
5218 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
5220 * util/import_gcry.py: Sort cipher_files, to make build system
5221 generation more deterministic.
5223 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5225 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5226 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5227 (grub_set_datetime): Likewise.
5229 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5231 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5234 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5236 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5238 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5240 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5242 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5244 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5245 required for checkouts from bzr, but it may be useful for users or
5246 distributors wishing to update translations against a tarball
5247 distribution, and it can be helpful for the tarball to be a superset
5250 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5252 * Makefile.am (EXTRA_DIST): Add
5253 grub-core/tests/boot/linux.init-mips.S,
5254 grub-core/tests/boot/linux.init-ppc.S, and
5255 grub-core/tests/boot/linux-ppc.cfg.
5257 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5259 * grub-core/mmap/mips/loongson: Remove empty directory.
5261 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5263 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5266 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
5268 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5271 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5273 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5275 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5277 * po/POTFILES.in: Regenerated.
5279 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5281 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5282 (NetBSD): New subsection.
5284 2012-07-22 Ales Nesrsta <starous@volny.cz>
5286 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5287 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5289 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5291 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5292 * util/grub.d/10_hurd.in: Add missing quoting.
5293 * util/grub.d/10_illumos.in: Likewise.
5294 * util/grub.d/10_kfreebsd.in: Likewise.
5295 * util/grub.d/10_linux.in: Likewise.
5296 * util/grub.d/20_linux_xen.in: Likewise.
5298 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5300 New command `lsefi'.
5302 * grub-core/Makefile.core.def (lsefi): New module.
5303 * grub-core/commands/efi/lsefi.c: New file.
5304 * include/grub/efi/api.h: Add more GUIDs.
5306 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5308 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5309 (grub_bsd_elf32_hook): Likewise.
5310 (grub_bsd_elf64_size_hook): Likewise.
5311 (grub_bsd_elf64_hook): Likewise.
5312 (grub_bsd_load_elf): Likewise.
5314 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5316 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5317 if hash function is unavailable.
5318 (dec_stream_header): Likewise.
5320 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5322 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5325 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5327 Fix coreboot compilation.
5329 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5330 (grub_vga_text_init_real): ... this.
5331 (grub_vga_text_fini): Rename to ...
5332 (grub_vga_text_fini_real): ... this.
5334 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5336 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5338 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5340 * grub-core/lib/legacy_parse.c: Support clear and testload.
5342 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5344 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5346 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5348 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5350 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5352 * grub-core/net/tftp.c (ack): Fix endianness problem.
5353 (tftp_receive): Likewise.
5354 Reported by: Michael Davidsaver.
5356 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5358 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5360 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5362 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5363 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5364 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5366 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5368 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5370 Reported by: Stuart Hayes.
5372 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5374 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5376 * grub-core/Makefile.core.def (mda_text): New module.
5377 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5378 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5379 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5380 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5382 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5383 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5384 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5386 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5388 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5390 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5392 * grub-core/term/i386/vga_common.c: Removed.
5393 * include/grub/i386/vga_common.h: Likewise.
5394 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5395 (grub_vga_cr_bw_read): Likewise.
5396 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5397 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5398 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5399 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5400 grub_vga_cr_read/grub_vga_cr_write.
5401 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5403 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5405 * configure.ac: Bump version to 2.00.
5406 * grub-core/normal/main.c (features): Add feature_200_final.
5408 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5409 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5411 * NEWS: Fix unclarity and language mistakes.
5413 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5415 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5416 additional size to 3 pages.
5417 Reported by: Stuart Hayes.
5419 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5421 * NEWS: Add 2.00 entry.
5423 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5425 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5426 put explicit "/" for empty path.
5427 (wildcard_expand): Improve dprintf.
5429 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5431 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5432 it's equal to currnode. This can happen with "" symlink.
5434 2012-06-27 Yves Blusseau <blusseau@zetam.org>
5436 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5437 echo shell command by printf command.
5439 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5441 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5442 the value returned by firmware is the maximal position, not diumension.
5443 (grub_terminfo_output_state): Use a more sane fallback.
5445 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5447 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5449 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5451 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5452 frequency to 150 MHz.
5454 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5458 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5460 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5462 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5464 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5466 Handle slash in HFS label.
5468 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5469 (grub_hfs_dir): Tanslate slash.
5470 (grub_hfs_label): Don't translate slash.
5472 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5474 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5475 network protocol listing since it introduces problematic dependency on
5478 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5480 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5482 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5484 Init video early on yeeloong to avoid being rebooted by watchdog.
5486 * grub-core/Makefile.am (gensm712): New target.
5487 (sm712_start.S): Likewise.
5488 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5489 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5490 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5492 * include/grub/vga.h: Move registry definitions to...
5493 * include/grub/vgaregs.h: ... here.
5495 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5497 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5500 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5502 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5503 platforms with firmware disk drivers in the core.
5505 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5507 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5508 informative verbose message.
5509 (read_lv): Handle 64-bit segment size.
5511 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5513 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5515 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5517 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5518 character but still remove trainling spaces.
5519 (grub_fat_label): Ignore archive flag.
5521 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5523 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5524 cast between linux_kernel_header and linux_kernel_params.
5526 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5528 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5530 (grub_raid6_recover_func_t): Likewise.
5531 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5532 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5534 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5536 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5538 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5542 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5543 [__NetBSD__]: Add explicit cast before bitshift.
5545 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5547 * configure.ac: Bump to 2.00~rc1.
5549 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5551 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5554 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5555 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5557 * docs/grub.texi: Fix search syntax.
5558 (Multi-boot manual config): Put msdos rather than GPT example.
5559 Grammar corrections.
5561 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5563 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5565 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5567 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5569 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5571 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5572 message on double free. Put the value of magic in case of mismatch.
5574 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5576 Speed-up video on yeeloong.
5578 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5580 (grub_video_sm712_video_fini): Unmap cached_ptr.
5581 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5582 (grub_video_sm712_set_active_render_target): Removed.
5583 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5584 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5587 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5589 Avoid flushing the same line multiple times on loongson.
5591 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5592 Step in 32 bytes and not 1 byte.
5593 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5596 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5598 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5601 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5603 Implement flow control for http.
5605 * grub-core/net/http.c (parse_line): Handle response 206.
5606 (http_receive): Stall if too many packets are in the queue.
5607 (http_establish): Fix range header.
5608 (http_seek): Fix double free.
5609 (http_close): Likewise.
5610 (http_packets_pulled): New function.
5611 (grub_http_protocol): Set http_seek
5612 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5613 (ack_real): Set window depending on i_stall.
5614 (grub_net_send_tcp_packet): Likewise.
5615 (grub_net_tcp_stall): New function.
5616 (grub_net_tcp_unstall): Likewise.
5617 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5618 (grub_net_tcp_unstall): Likewise.
5620 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5622 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5624 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5626 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5628 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5630 * tests/util/grub-shell.in: Fix a typo.
5632 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5634 Implement flow control for tftp.
5636 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5637 packets but stop only if stop condition is satisfied.
5638 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5639 `stall' instead of `eof' as stop condition.
5640 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5641 (http_err): Likewise.
5642 * grub-core/net/tftp.c (ack): Replace the first argument with data
5644 (tftp_receive): Stall if too many packets are in wait queue.
5645 (tftp_packets_pulled): New function.
5646 (grub_tftp_protocol): Set packets_pulled.
5647 * include/grub/net.h (grub_net_packets): New field count.
5648 (grub_net_put_packet): Increment count.
5649 (grub_net_remove_packet): Likewise.
5650 (grub_net_app_protocol): New field `packets_pulled'.
5651 (grub_net): New field `stall'.
5653 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5655 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5656 sync part to handle them.
5658 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5660 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5661 * grub-core/net/drivers/ieee1275/ofnet.c
5662 (grub_ieee1275_net_config_real): Likewise.
5664 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5666 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5667 the direct route for server/gateway.
5669 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5671 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5672 IP address to server name since we may not hame the DNS.
5674 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5676 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5677 freeing random buffer on failure.
5678 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5680 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5682 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5684 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5686 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5688 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5689 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5690 Handle malloc error correctly.
5692 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5694 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5697 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5699 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5702 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5704 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5705 none is explicitly specified.
5707 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5709 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5712 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5714 Respect netmask from bootp/dhcp.
5716 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5717 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5718 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5720 (grub_net_add_ipv4_local): ... this.
5721 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5722 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5723 (grub_net_add_ipv4_local): New proto.
5725 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5728 determining EFI memory map size.
5730 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5732 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5734 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5736 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5737 when looking for partition separator.
5739 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5744 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5746 Restructure FAT driver to avoid hook in label reading as it hits a
5749 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5750 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5751 (grub_fat_iterate_dir): Split into ...
5752 (grub_fat_iterate_init): ... this, ...
5753 (grub_fat_iterate_fini): ... this, ...
5754 (grub_fat_iterate_dir_next): ... and this. All users updated.
5756 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5758 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5759 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5760 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5761 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5762 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5763 New fields last_key and last_key_time.
5764 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5765 extended key-esc into extended key-extended key.
5767 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5769 Avoid unnecessary memcpy of whole video buffer.
5771 * grub-core/video/fb/video_fb.c (dirty): New struct.
5772 (framebuffer): Add members current_dirty and previous_dirty.
5773 (dirty): New function.
5774 (grub_video_fb_fill_rect): Update dirty.
5775 (common_blitter): Likewise.
5776 (grub_video_fb_scroll): Likewise.
5777 (doublebuf_blit_update_screen): Copy only dirty part.
5778 (doublebuf_pageflipping_update_screen): Likewise.
5779 (grub_video_fb_doublebuf_blit_init): Init dirty.
5780 (doublebuf_pageflipping_init): Likewise.
5781 (grub_video_fb_setup): Likewise.
5783 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5785 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5788 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5790 Fix wildcard regexp dot and other special characters handling.
5791 Reported by: Robert Mabee.
5793 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5794 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5795 (split_path): Trigger expansion on '?'.
5796 (unescape): New function.
5797 (wildcard_expand): Unescape parts copied without globbing.
5798 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5799 (grub_script_arglist_to_argv): Don't unescape expansions.
5801 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5803 * include/grub/net.h (grub_net_card): New member txbufsize.
5804 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5805 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5806 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5807 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5809 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5810 compatible property to check for macs. Set
5811 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5812 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5813 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5814 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5815 (send_card_buffer): Use txbuf.
5816 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5817 nested function out of the parent while on it.
5819 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5821 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5823 (grub_ieee1275_net_config_real): Fix config pointer.
5825 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5827 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5828 filename parsing to non-block devices.
5830 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5832 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5834 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5836 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5839 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5841 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5842 UUID search command even if hints probing failed.
5844 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5846 * po/POTFILES.in: Regenerated.
5848 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5850 Speed-up video on fuloong.
5852 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5854 (grub_pci_device_unmap_range): Handle non-cached address.
5855 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5857 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5858 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5859 (grub_video_sis315pro_set_active_render_target): Removed.
5860 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5861 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5862 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5864 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5867 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5869 * docs/grub.texi (Multi-boot manual config): New section.
5871 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5873 Avoid slow read-back from VRAM.
5875 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5877 * grub-core/video/fb/video_fb.c
5878 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5879 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5880 (front_target): Remove front_target. Add pages.
5881 (grub_video_fb_init): Skip setting front_pages.
5882 (grub_video_fb_fini): Likewise.
5883 (doublebuf_blit_update_screen): Use pages.
5884 (grub_video_fb_doublebuf_blit_init): Likewise.
5885 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5886 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5887 (grub_video_fb_setup): Prefer doublebuffing.
5889 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5891 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5894 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5898 * tests/util/grub-shell.in: Handle loongson.
5899 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5901 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5902 Reboot instead of shutdown if REBOOT is defined.
5904 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5906 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5907 sized ports since unlike on real hardware qemu supports only 32-bit
5910 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5912 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5913 * util/grub-mkrescue.in: Handle loongson.
5915 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5917 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5918 Set is_part appropriately.
5919 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5920 names. Canonicalize partition without full disk.
5922 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5924 Revert usb-quiesce since it's wrong.
5926 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5927 (grub_ofdisk_init): Don't do quiesce.
5929 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5931 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5932 PowerMac workaround to Xserves as well.
5933 Information supplied by: Benjamin Herrenschmidt.
5935 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5937 Don't assume that beginning address is also the entry point on ppc.
5939 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5940 (grub_linux_boot): Use linux_entry.
5941 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5942 (grub_linux_load64): Likewise.
5944 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5946 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5948 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5950 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5951 needlessly lose the console.
5953 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5955 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5958 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5960 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5961 than current grub_get_rtc() not implemented when booted with
5962 coreboot without TSC.
5964 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5965 Add machine/time.h to kernel headers on loongson.
5966 * grub-core/Makefile.core.def (kernel): Remove
5967 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5968 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5969 (grub_get_rtc): Likewise.
5970 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5971 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5972 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5973 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5974 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5975 rather than installing known non-working time source.
5976 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5977 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5978 * include/grub/time.h: Don't include machine/time.h.
5979 * include/grub/efi/time.h: Removed.
5980 * include/grub/i386/efi/time.h: Likewise.
5981 * include/grub/i386/ieee1275/time.h: Likewise.
5982 * include/grub/powerpc/ieee1275/time.h: Likewise.
5983 * include/grub/sparc64/ieee1275/time.h: Likewise.
5984 * include/grub/x86_64/efi/time.h: Likewise.
5986 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5988 Remove dot on i and j when combining with above diacritics.
5990 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5992 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5993 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5994 with dotless variants when any combining above is present.
5996 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5998 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5999 text and not binary.
6001 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6003 Stop polling as soon as we have the packet we were waiting for.
6005 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
6007 * grub-core/net/arp.c (have_pending): New var.
6008 (pending_req): Likewise.
6009 (grub_net_arp_send_request): Fill pending_req and use have_pending as
6011 (grub_net_arp_receive): Set have_pending.
6012 * grub-core/net/dns.c (recv_data): New field stop.
6013 (recv_hook): Set stop.
6014 (grub_net_dns_lookup): Init stop and use as stop condition.
6015 * grub-core/net/http.c (http_establish): Use headers_recv as stop
6017 * grub-core/net/net.c (grub_net_poll_cards): New argument
6018 stop_condition. Stop when it goes true.
6019 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
6021 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
6023 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6025 Keep TX and RX buffers on EFI rather than always allocate new ones.
6027 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
6028 card. All users updated.
6029 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
6030 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
6031 (get_card_packet): Likewise.
6032 (grub_efinet_findcards): Init new fields.
6034 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6036 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
6037 compilation error on sparc64.
6039 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6041 Use ITC on IA64 rather than broken routine based on daytime.
6043 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
6045 (grub_get_rtc) [__ia64__]: Likewise.
6046 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
6047 (get_itc): New function.
6048 (grub_rtc_get_time_ms): Likewise.
6049 (grub_machine_init): Calibrate ITC.
6050 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
6051 Keep only on non-ia64. Don't export since it's broken and used only
6052 if TSC is unavailable.
6054 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6056 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
6058 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
6059 Skip if parent is unused.
6061 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6063 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
6065 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6067 Fix wildcard escaping.
6069 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
6070 * grub-core/script/execute.c (wildcard_escape): .. to here.
6072 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
6073 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6075 * grub-core/script/execute.c (gettext_append): Always escape.
6076 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6077 * grub-core/script/yylex.l: Don't cut away the escaping.
6078 * tests/grub_script_echo1.in: Add tests with wildcard.
6080 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6082 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6083 (ftdi_hw_configure): Likewise.
6084 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6086 (real_config): Handle 1.5 stop bits.
6087 (pl2303_hw_configure): Likewise.
6089 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6091 * Makefile.am: Add ppc linux bootcheck.
6092 * grub-core/tests/boot/linux-ppc.cfg: New file.
6093 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6095 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6097 * tests/grub_script_expansion.in: Skip network protocols.
6099 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6101 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6103 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6105 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6109 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6111 ESCC serial driver for conducting sautomated tests in qemu.
6112 Not tested on real hardware.
6114 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6115 * grub-core/term/ieee1275/escc.c: New file.
6116 * grub-core/Makefile.core.def (escc): New module.
6118 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6120 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6122 (serial_hw_fetch): Don't read invalid handle.
6123 (serial_hw_put): Don't write into invalid handle.
6125 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6127 Add a 1.5 stop bits value.
6129 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6130 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6131 GRUB_SERIAL_STOP_BITS_1_5.
6133 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6135 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6136 value rather than let it uninited.
6138 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6140 * grub-core/commands/wildcard.c (+check_file): New function.
6141 (wildcard_expand): Don't expand to non-existing files, expand with
6142 suffix and not attempt to expand if not needed.
6144 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6146 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6147 out of partitions containing other partitions.
6149 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6151 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6152 on some qemu versions with GRUB.
6154 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6156 (grub_openbsd_bootarg_pcibios): New struct.
6157 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6160 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6162 * tests/util/grub-shell.in: Trim firmware output on EFI.
6164 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6166 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6167 and coreboot since it's already in kernel.
6169 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6171 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6172 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6173 to here. New return value start. All users updated.
6174 Recursively scan linear mappings.
6175 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6177 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6178 Use grub_util_get_dm_node_linear_info.
6179 * util/getroot.c (convert_system_partition_to_system_disk): Use
6180 grub_util_info rather than grub_dprintf.
6181 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6183 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6185 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6187 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6188 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6190 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6192 * include/grub/types.h (grub_set_unaligned64): New function.
6193 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6196 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6198 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6199 (grub_ofdisk_fini): Quiesce USB devices.
6201 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6203 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6206 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6208 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6210 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6212 * grub-core/disk/pata.c (grub_pata_pio_read)
6213 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6214 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6216 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6218 Extend automated tests to qemu-mips.
6220 * Makefile.am: reorganise tests and enable qemu-mips.
6221 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6222 * grub-core/tests/boot/linux.init-mips.S: New file.
6223 * tests/partmap_test.in: Handle ata0 disks.
6224 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6227 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6229 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6231 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6234 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6236 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6237 (grub_halt): Likewise.
6238 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6240 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6242 * grub-core/term/serial.c (grub_serial_register)
6243 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6244 the behaviour in line with x86 platforms.
6246 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6248 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6249 (grub_ata_strncpy): Likewise.
6250 (grub_ata_identify): Add missing byteswaps.
6252 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6254 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6256 (screen_read_char): Likewise.
6257 (grub_vga_text_cls): Likewise.
6259 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6261 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6263 (make_file_path): Likewise.
6265 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6267 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6269 Tested by: Paulo Flabiano Smorigo.
6270 Crucial information about API supplied by: Coleen <Last name unknown>.
6271 Reviewed by: Coleen <Last name unknown>.
6273 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6275 * util/grub-mkimage.c: Disable -Wcast-align.
6277 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6282 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6284 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6286 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6288 * util/grub-probe.c (escape_of_path): Fix double free.
6290 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6292 * grub-core/commands/videoinfo.c (hook): Show pitch.
6294 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6296 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6298 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6300 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6301 (probe): Add ieee1275 to OFW devices.
6303 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6305 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6307 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6309 Handle IBM OFW path.
6311 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6313 (of_path_of_scsi): Handle vdevice.
6315 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6317 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6318 Allocate in multiples of 16 to avoid adding a few bytes free region the
6321 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6323 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6324 Allocate in multiples of 16 to avoid adding a few bytes free region the
6326 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6328 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6332 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6333 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6335 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6337 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6339 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6341 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6342 resulted in \\ at the end of the line.
6344 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6346 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6347 (grub_parser_cmdline_state): Likewise.
6348 (grub_parser_split_cmdline): Likewise.
6350 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6352 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6353 /dev/root and /dev/dm-*.
6355 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6357 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6358 fix partially stale display.
6360 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6362 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6365 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6367 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6368 Fix MBR remapping workaround.
6369 (grub_util_biosdisk_read) [__linux__]: Likewise.
6371 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6373 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6375 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6377 * configure.ac: Bump to beta6.
6379 2012-05-31 Christer Weinigel <christer@weinigel.se>
6381 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6383 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6385 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6386 (grub_cmd_linux): Likewise.
6388 2012-05-31 Christer Weinigel <christer@weinigel.se>
6392 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6393 (GRUB_EHCI_MULT_TWO): Likewise.
6394 (GRUB_EHCI_MULT_THREE): Likewise.
6395 (GRUB_EHCI_CMASK_MASK): New enum value.
6396 (GRUB_EHCI_SMASK_MASK): Likewise.
6397 (GRUB_EHCI_CMASK_OFF): Likewise.
6398 (GRUB_EHCI_SMASK_OFF): Likewise.
6399 (grub_ehci_pci_iter): Enable periodic schedule.
6400 (grub_ehci_parse_notrun): Likewise.
6401 (grub_ehci_restore_hw): Likewise.
6402 (grub_ehci_setup_qh): Set flags for low speed transfers.
6403 (grub_ehci_find_qh): Use periodic list for low speed.
6404 (grub_ehci_setup_transfer): Check periodic queue as well.
6405 (grub_ehci_check_transfer): Likewise.
6406 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6408 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6410 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6413 2012-05-31 Peter Jones <pjones@redhat.com>
6415 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6416 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6417 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6419 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6421 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6422 uninited variable. Allocate at least setup_sects.
6424 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6426 Fix handling of EFI with big memory maps.
6428 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6429 (real_mode_mem): Likewise.
6430 (real_mode_target): Likewise.
6431 (real_mode_pages): Likewise.
6432 (prot_mode_pages): Likewise.
6433 (linux_params): New var.
6434 (linux_cmdline): Likewise.
6435 (free_pages): Don't set real mode variables.
6436 (allocate_pages): Don't allocate real mode memory.
6437 (grub_e820_add_region): Remove the limit.
6438 (grub_linux_boot): Allocate and copy real mode memory.
6439 (grub_linux_unload): Free linux_cmdline.
6440 (grub_cmd_linux): Use temporary storage for parameters.
6441 (grub_cmd_initrd): Likewise.
6442 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6443 (linux_kernel_params): Make it 1K big.
6445 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6447 * Makefile.util.def: Remove -Wno-format.
6448 * grub-core/Makefile.core.def: Likewise.
6450 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6452 * tests/cmp_unit_test.c: Add missing failure message.
6453 * tests/example_unit_test.c: Likewise.
6454 * tests/printf_unit_test.c: Likewise.
6456 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6458 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6459 relaxation of protective MBR requirements.
6461 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6463 * configure.ac: Add condition for COND_HOST_XNU.
6464 * Makefile.util.def (10_xnu): New script.
6465 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6467 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6469 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6472 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6474 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6475 Binary on other platforms stays identical.
6477 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6479 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6482 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6484 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6486 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6489 rather than defining size_t ourselves to avoid conflict.
6491 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6493 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6494 initialisation to avoid __bzero reference.
6496 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6498 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6500 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6501 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6502 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6503 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6504 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6506 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6508 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6509 * grub-core/kern/misc.c: Likewise.
6510 * grub-core/loader/i386/xnu.c: Likewise.
6511 * include/grub/i386/tsc.h: Likewise.
6512 * include/grub/symbol.h: Likewise.
6514 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6516 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6517 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6520 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6522 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6523 Implement Apple flavour.
6524 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6526 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6528 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6529 (memmove) [__APPLE__]: Likewise.
6530 (memcpy) [__APPLE__]: Likewise.
6531 (memset) [__APPLE__]: Likewise.
6532 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6533 (memmove) [__APPLE__]: Likewise.
6534 (memcpy) [__APPLE__]: Likewise.
6535 (memset) [__APPLE__]: Likewise.
6537 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6539 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6542 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6544 * grub-core/normal/main.c (read_config_file): Provide config_file and
6546 * util/grub.d/41_custom.in: Use config_directoy when available.
6548 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6550 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6551 (grub_bfs_dir): Likewise.
6553 2012-05-27 Peter Jones <pjones@redhat.com>
6555 The old code gives arguments to a printf function which can't work
6556 correctly, and the compiler complains.
6558 * grub-core/tests/example_functional_test.c (example_test): Add
6560 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6561 * include/grub/test.h (grub_test_assert_helper): New declaration.
6562 (grub_test_assert): Use grub_test_assert_helper.
6564 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6566 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6567 (exfctest): ... this to avoid overlong filenames.
6570 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6572 Handle "." and ".." on squashfs.
6574 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6575 Make inode numbers into stack.
6576 (grub_squash_read_symlink): Use stack.
6577 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6578 (make_root_node): Fill stack.
6579 (grub_squash_open): Use stack.
6581 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6586 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6588 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6589 stderr on test calls.
6591 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6593 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6595 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6597 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6599 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6601 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6604 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6606 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6607 (grub_hfsplus_iterate_dir): Add "." and "..".
6609 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6611 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6612 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6614 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6616 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6617 (find_path): Handle "." and "..".
6619 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6621 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6622 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6623 (grub_affs_iterate_dir): Handle hardlinks.
6625 2012-05-26 Matthew Garrett <mjg@redhat.com>
6627 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6628 (grub_efi_console_fini): Likewise.
6629 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6630 (grub_video_gop_fill_mode_info): Rename to ...
6631 (grub_video_gop_fill_real_mode_info): ... this.
6632 (grub_video_gop_fill_mode_info): New function.
6633 (grub_video_gop_setup): Setup double framebuffer.
6634 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6636 (grub_video_gop_swap_buffers): Copy framebuffer.
6637 (grub_video_gop_fini): Free offscreen buffer.
6638 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6640 (grub_efi_gop_blt_pixel): New struct.
6642 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6644 * gentpl.py: Remove error disabling for objconv.
6646 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6648 * configure.ac: Remove -Wunitialized as it's not available on older
6651 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6653 Fix extent overflow comparator.
6655 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6656 (grub_hfsplus_read_block): Set type.
6657 (grub_hfsplus_cmp_extkey): Compare type.
6659 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6661 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6663 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6665 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6668 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6670 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6671 (dejavu_bold_14.pf2): New target.
6673 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6675 * configure.ac: Fix djvu font detection.
6677 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6679 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6680 ext* instead of ext2.
6682 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6684 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6687 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6689 * docs/grub-dev.texi: Remove dot from .png.
6691 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6693 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6694 protective entry in any slot.
6695 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6696 if protective entry is found in any slot.
6698 Protective entry in non-first slot make no sense but is a widespread
6701 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6703 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6705 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6707 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6709 (grub_reiserfs_open): Don't free root.
6711 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6713 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6714 after freeing for safety.
6716 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6718 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6719 Reported by: Jordan Uggla.
6721 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6723 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6724 actual implementation. Specifically, clarify that the grub menu will
6725 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6728 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6730 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6733 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6735 Remove unjustified hard dependency of normal.mod on gfxterm.
6737 * include/grub/term.h (grub_term_output): New member fullscreen.
6738 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6739 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6740 (grub_gfxterm): Set .fullscreen.
6741 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6742 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6744 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6746 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6747 mentioning possible problems with non-ASCII (non-compliant) ISOs.
6748 Mention case-insensitive AFFS, SFS and JFS.
6750 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6752 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6754 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6756 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6759 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6761 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6762 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6764 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6766 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6767 (grub_jfs_mount): Fill caseins.
6768 (grub_jfs_find_file): Respect caseins.
6770 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6772 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6775 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6777 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6778 New argument origpath. All users updated.
6780 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6782 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6783 (read_attr): Ensure that we read start of possibly compressed block.
6785 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6787 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6788 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6791 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6793 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6794 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6795 (dejavu.pf2): Replace with ...
6796 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6799 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6801 * util/grub.d/20_linux_xen.in: Add missing line.
6803 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6805 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6806 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6807 (grub_utf16_to_utf8): Likewise.
6809 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6811 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6812 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6813 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6814 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6815 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6816 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6818 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6820 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6823 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6825 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6826 (grub_udf_read_symlink): Handle read_string failure.
6828 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6830 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6833 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6835 Fix handling of UDF symlinks.
6837 * grub-core/fs/udf.c (read_string): New argument outbuf.
6839 (grub_ufs_read_symlink): Rename to ...
6840 (grub_udf_read_symlink): ... this. All users updated.
6841 Handle symlinks with more than one component.
6843 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6845 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6846 symlinks. Replace leading colon with a slash.
6848 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6850 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6853 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6855 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6856 match in inner node.
6858 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6860 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6861 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6862 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6863 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6864 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6865 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6866 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6867 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6868 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6870 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6872 Use grub-probe and not cmp to check that disk is empty.
6874 * util/grub-install.in: Use grub-probe for zero-check.
6875 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6876 (probe): Handle PRINT_ZERO_CHECK.
6877 (argp_parser): Handle -t zero_check.
6879 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6881 Flush block cache on adding disk to device map.
6883 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6884 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6886 (read_device_map): Likewise.
6887 (open_device): Flush on opening.
6889 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6891 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6892 (handle_symlink): Fix off-by-one error.
6893 Canonicalize the target.
6894 (grub_cpio_dir): Canonicalize the name.
6897 (grub_cpio_open): Canonicalize the name.
6899 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6904 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6906 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6907 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6909 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6911 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6912 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
6915 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6917 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6920 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6922 Fix UFS1 big file support.
6924 * grub-core/fs/ufs.c (INODE): Removed.
6925 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6927 (INODE_MODE): Simplify.
6928 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6929 (grub_ufs_lookup_symlink): Don't use INODE.
6931 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6933 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6935 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6936 (grub_minix_data): Replace log_block_size with block_size.
6937 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6938 (grub_minix_mount): Fill block_size.
6940 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6942 * configure.ac: Bump to beta5.
6944 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6946 Fix wrapped HFS+ handling.
6948 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6949 blocks_start. All users updated.
6950 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6952 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6954 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6956 Fix long symlinks on reiserfs.
6958 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6959 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6960 (grub_reiserfs_iterate_dir): Save size for non-directories.
6961 (grub_reiserfs_open): Don't reread stat block as we already know the
6963 (grub_reiserfs_read): Split into...
6964 (grub_reiserfs_read_real): ... and ...
6965 (grub_reiserfs_read): ...this.
6967 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6969 Fix non-indexed JFS.
6971 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6972 (grub_jfs_data): New field namecomponentlen.
6973 (grub_jfs_mount): Fill namecomponentlen.
6974 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6976 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6978 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6979 * tests/grub_script_echo1.in: Add tests.
6981 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6983 * util/grub-install.in: Ignore empty devicetree directory.
6985 2012-05-08 Bean <bean123ch@gmail.com>
6987 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6989 (free_rsm): Free header as well.
6990 (free_old_fragments): Fix memory leak.
6991 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6992 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6993 (destroy_pq): Likewise.
6994 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6996 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6998 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6999 resulting hash as a precaution.
7001 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7003 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
7004 '_' in variable names.
7005 * grub-core/net/net.c (grub_net_network_level_interface_register):
7008 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7010 Fix AFFS with non-512B blocks.
7012 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
7013 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
7014 (grub_affs_data): Replace blocksize with log_blocksize.
7015 (grub_affs_read_block): Fix non-512B blocks.
7016 (grub_affs_read_symlink): Likewise.
7017 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
7018 (grub_affs_read): Fix non-512B blocks.
7019 (grub_affs_label): Likewise.
7020 (grub_affs_mtime): Likewise.
7021 (grub_affs_mount): Fix block detection routine.
7023 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7025 Add filesystem mtime to AFFS.
7027 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
7028 (aftime2ctime): New function.
7029 (grub_affs_dir): Use aftime2ctime.
7030 (grub_affs_label): Fix return value.
7031 (grub_affs_mtime): New function.
7032 (grub_affs_fs): Add mtime.
7034 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7036 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
7039 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7041 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
7044 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7046 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
7048 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7050 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
7052 (FLAGS_CASE_SENSITIVE): New enum value.
7053 (cache_entry): New struct.
7054 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
7055 cache_size and cache.
7056 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
7057 Add log_blocksize and fshelp_flags.
7058 (grub_sfs_read_extent): Handle non-512 blocks.
7059 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
7060 (grub_sfs_read_file): Handle non-512 blocks.
7061 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
7063 (grub_sfs_read_symlink): Handle non-512 blocks.
7064 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
7065 (grub_sfs_dir): Free cache.
7066 (grub_sfs_close): Likewise.
7068 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7070 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
7073 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7075 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7077 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7079 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7081 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7083 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7084 (grub_sfs_read_extent): Likewise.
7085 (grub_sfs_read_block): Likewise.
7086 (grub_sfs_mount): Likewise.
7087 (grub_sfs_iterate_dir): Likewise.
7088 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7089 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7091 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7093 Fix errors on compressed NTFS with 512B clusters.
7095 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7097 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7099 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7100 Relax check for inline extents.
7101 (ntfscomp): Return correct -1 on error and not 0.
7103 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7105 * util/grub-install.in: Fix handling of prefix containing spaces.
7107 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7109 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7110 (grub_squash_read_data): Fix offset byte-swapping.
7112 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7114 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7115 per common usage and preffered in several parts of code.
7116 (grub_memcmp): Likewise.
7117 (grub_strncmp): Likewise.
7118 * include/grub/misc.h (grub_strcasecmp): Likewise.
7119 (grub_strncasecmp): Likewise.
7120 * Makefile.util.def (cmp_test): New test.
7121 (grub_script_strcmp): Likewise.
7122 * tests/cmp_unit_test.c: New file.
7123 * tests/grub_script_strcmp.in: Likewise.
7124 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7126 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7128 * include/grub/pci.h: Move enums into no-asm part.
7130 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7132 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7134 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7136 * util/getroot.c (find_hurd_root_device): Try to make error message
7137 and comments to translators clearer.
7139 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7141 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7143 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7145 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7148 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7150 * docs/grub.cfg: Update.
7152 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7154 * docs/grub.texi (PXE): Remove not present variables.
7156 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7158 * grub-core/net/net.c (defserver_set_env): New function.
7159 (defserver_get_env): Likewise.
7160 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7162 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7164 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7167 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7169 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7170 * grub-core/kern/emu/hostdisk.c: Likewise.
7172 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7174 Handle hurd userspace partitions.
7176 * util/getroot.c (find_hurd_root_device): New function.
7177 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7179 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7181 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7183 Reported by: Bastian Blank.
7185 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7187 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7188 crossing page boundary.
7190 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7192 Fix B-tree search in BFS, especially in presence of non-ASCII
7195 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7196 (find_in_b_tree): Use standard bsearch + btree algorithm.
7198 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7200 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7203 2012-05-03 Matthew Garrett <mjg@redhat.com>
7204 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7206 Suspend broadcom cards in order to stop their DMA.
7208 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7209 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7210 (pci): Don't build on x86 EFI.
7211 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7212 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7214 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7215 stop_broadcom if running on EFI.
7216 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7217 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7218 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7219 (grub_pci_find_capability): New proto.
7221 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7223 * docs/grub.texi: Remove dot from the extension as it apparently
7224 doesn't work with some makeinfo versions.
7226 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7228 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7229 with GRUB expectance.
7231 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7233 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7235 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7237 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7238 zero after directory block since last entry may be not 0-terminated if
7239 it ends on block boundary. Use continue instead of if spanning whole
7242 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7244 Support 4K sectors UDF inline files.
7246 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7247 (grub_udf_extended_file_entry): Likewise.
7248 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7250 (get_fshelp_size): New function.
7251 (grub_udf_read_icb): Read whole block.
7252 (grub_udf_iterate_dir): Likewise.
7253 (grub_udf_dir): Likewise.
7254 (grub_udf_open): Likewise.
7256 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7258 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7260 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7262 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7263 inline symlinks in addition to workaround.
7265 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7267 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7269 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7271 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7273 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7275 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7277 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7279 Fix reiserfs big seek times.
7281 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7282 exact. All users updated.
7283 (grub_reiserfs_read): Use nearest btree search for seeking.
7284 Fix return value on error.
7286 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7288 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7290 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7291 * docs/grub.texi: Update menuentry description.
7293 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7295 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7296 crash when embedding onto filesystem.
7298 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7300 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7303 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7305 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7307 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7309 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7312 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7313 2012-05-01 Bean <bean123ch@gmail.com>
7315 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7317 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7319 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7320 Special behaviour for len = 0 to read whole file isn't used anywhere and
7321 can cause buffer ovewrflows in several places.
7323 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7325 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7327 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7329 Handle RAIDZ on non-512B sectors.
7331 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7332 max_children_ashift.
7333 (fill_vdev_info_real): Fill max_children_ashift.
7334 (read_device): Use max_children_ashift.
7336 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7338 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7340 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7342 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7344 * docs/grub.texi: Update device.map parts.
7346 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7348 Don't scan into non-diskfilter devices having diskfilter names.
7350 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7351 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7353 (scan_disk_hook): New function.
7355 2012-04-29 Bean <bean123ch@gmail.com>
7357 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7360 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7362 * configure.ac: Detect starfield theme font path
7363 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7365 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7367 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7368 geometry on serial consoles.
7370 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7372 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7373 because of network consoles.
7375 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7377 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7380 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7382 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7385 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7387 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7388 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7390 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7392 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7393 Allocate at lest 8192 for temporary buffer as required for lzo.
7395 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7397 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7398 to cluster_bits, since it's already added in.
7399 (grub_fat_read_data): Likewise.
7401 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7403 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7404 as long as cluster size is multiple of 512 bytes.
7406 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7408 * util/grub-mkrescue.in: Fix locale directory.
7410 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7412 * grub-core/kern/emu/hostdisk.c (map): Make static.
7414 2012-04-23 Bean <bean123ch@gmail.com>
7416 * util/grub-fstest.c (fstest): Add missing break.
7418 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7422 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7423 not define nr variable.
7424 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7425 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7426 grub_find_device): Do not define.
7428 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7430 Fix kfreebsd compile and behaviour.
7432 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7434 * util/getroot.c: Fix wait.h include.
7435 (grub_guess_root_devices): Error if grub_find_device fails.
7436 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7437 (grub_util_get_dev_abstraction): Likewise.
7438 (grub_util_pull_device): Likewise.
7439 (grub_util_get_grub_dev): Likewise.
7440 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7442 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7444 Fix and unify wholedisk detection.
7446 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7447 is_part. All users updated.
7448 (device_is_wholedisk): Removed.
7449 (grub_util_biosdisk_get_grub_dev): Use is_part.
7451 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7453 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7456 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7458 * configure.ac: Bump to beta4.
7460 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7462 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7463 --fs-uuid --set UUID syntax.
7465 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7470 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7472 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7474 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
7476 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7478 2012-04-18 Mike Gilbert <floppym@gentoo.org>
7480 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7482 2012-04-18 Bean <bean123ch@gmail.com>
7484 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7487 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7489 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7491 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7492 corresponding to GRUB partitions.
7493 (grub_util_biosdisk_write): Likewise.
7495 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7497 Scan mdraid before LVM.
7499 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7500 (grub_diskfilter_register_front): ... this.
7501 (grub_diskfilter_register_back): New function.
7502 All users of grub_diskfilter_register updated.
7504 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7506 * util/grub-install.in: Fix an automatic target detection bug.
7508 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7510 * util/grub-install.in: New option --efi-directory.
7512 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7514 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7515 boot services if we have no other choice.
7517 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7519 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7521 * tests/util/grub-shell.in: Update to --directory.
7523 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7525 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7527 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7529 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7530 (grub_minix_read_file): Likewise.
7531 (grub_minix_read_inode): Likewise.
7532 (grub_minix_find_file): Likewise.
7533 (grub_minix_dir): Likewise.
7535 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7537 * util/grub-setup.c (setup): Fix partition handling and blocklist
7540 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7542 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7543 redundant buggy overlap check.
7545 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7547 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7550 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7552 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7553 kh.loadflags on pre-2.00 kernels.
7555 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7557 Terminate UNDI and PXE before launching the payload to avoid problems
7560 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7561 (grub_loader_flags): ... this. All users updated.
7562 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7563 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7564 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7565 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7567 (grub_pxe_restore): Likewise.
7568 (fini_hnd): New var.
7569 (GRUB_MOD_INIT): Register shutdown hook.
7570 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7571 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7572 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7573 (grub_loader_set): Rename second argument to flags.
7575 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7579 (grub_get_num_of_utf8_bytes): New function.
7580 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7581 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7583 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7584 (grub_ucs4_to_utf8): Change return type.
7586 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7588 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7590 * grub-core/fs/bfs.c (hop_level): Likewise.
7591 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
7593 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7595 * grub-core/lib/adler32.c: Recode due to license unclearness.
7597 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7599 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7600 (test_header): Likewise.
7602 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7604 Fix --help formatting.
7606 * util/grub-mkconfig_lib.in (print_option_help): New function.
7607 (grub_fmt): Likewise.
7608 * util/grub-install.in: Use print_option_help and grub_fmt.
7609 * util/grub-kbdcomp.in: Likewise.
7610 * util/grub-mkconfig.in: Likewise.
7611 * util/grub-mknetdir.in: Likewise.
7612 * util/grub-mkrescue.in: Likewise.
7613 * util/grub-mkstandalone.in: Likewise.
7614 * util/grub-reboot.in: Likewise.
7615 * util/grub-set-default.in: Likewise.
7616 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7618 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7620 * linguas.sh: Remove autogenerated *.po.
7622 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7624 * po/README: Move language fetcing to ...
7625 * linguas.sh: ... here.
7626 * po/README: Point to linguas.sh.
7628 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7630 * po/README: Exclude ko.po due to disclaimer problems.
7632 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7634 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7636 (grub_gettext_translate_real): Handle 0th string.
7637 (grub_gettext_translate): Ensure that "" isn't translated.
7639 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7641 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7642 TRANSLATORS comment.
7643 (grub_diskfilter_print_partmap): Propagate changing of error into
7646 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7648 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7649 to uint64_t to prevent overflow.
7650 (grub_diskfilter_lv): Increase start_extent and extent_count
7651 to uint64_t to prevent overflow.
7653 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7655 * configure.ac: Increase version.
7657 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7659 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7661 * po/Rules-translit: New file.
7662 * po/arabic.sed: Likewise.
7663 * po/cyrillic.sed: Likewise.
7664 * po/greek.sed: Likewise.
7665 * po/hebrew.sed: Likewise.
7666 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7667 * po/Makefile.in.in: Add extra_dist4.
7669 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7671 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7673 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7674 modify names. Introduce MODE_BIGENDIAN.
7675 * grub-core/fs/minix_be.c: New file.
7676 * grub-core/fs/minix2_be.c: Likewise
7677 * grub-core/fs/minix3_be.c: Likewise.
7678 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7680 * grub-core/Makefile.core.def (minix_be): New module.
7681 (minix2_be): Likewise.
7682 (minix3_be): Likewise.
7684 2012-04-01 Felix <email@hamburg.de>
7686 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7687 (devs): Add MBP 2011.
7689 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7691 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7693 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7695 * grub-core/normal/cmdline.c (print_completion): New field
7697 (grub_cmdline_get): Handle width properly.
7699 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7701 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7703 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7705 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
7706 after 29th of February.
7708 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7710 Fix exfat endianness handling.
7712 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7713 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7714 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7715 Byte-swap utf16 when necessary.
7716 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7718 2012-03-31 Anton Blanchard <anton@samba.org>
7719 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7721 Fix btrfs endianness handling.
7723 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7724 (lower_bound): Make root uint64_t. Use root in le.
7725 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7726 (find_path): Fix template key init.
7727 (grub_btrfs_dir): Fix mtime byteswap.
7728 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7730 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7732 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7733 recursion_depth. Break infinite resursions. All users updated.
7735 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7737 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7739 Reported by: Peter Jones.
7741 2012-03-31 Anton Blanchard <anton@samba.org>
7743 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7746 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7748 * util/grub-install.in: Fix nvram call for PreP.
7750 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7752 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7753 the error when some elements are missing into a warning.
7755 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7757 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7759 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
7761 * docs/grub.texi (Invoking grub-probe): New section.
7762 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7764 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7766 Fix tab and wide character handling in editor and menu.
7768 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7769 agglomerate control characters with combining marks.
7770 (bidi_line_wrap): Allow break on tab.
7771 (grub_unicode_get_comb_start): New function.
7772 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7774 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7776 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7777 fixed_tab_size. All users updated.
7778 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7779 (grub_term_getcharwidth): Handle \t.
7780 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7783 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7785 Handle big-endian mdraid.
7787 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7788 * grub-core/Makefile.core.def (mdraid09_be): New module.
7789 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7790 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7791 * grub-core/disk/mdraid_linux_be.c: New file.
7793 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7795 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7797 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7799 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7800 missing quotes which caused confusion among translators.
7802 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7804 * util/grub-mkconfig_lib.in: Fix typo.
7806 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7808 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7810 * tests/grub_script_leading_whitespace.in: New file.
7811 * Makefile.util.def (grub_script_leading_whitespace): New test.
7813 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7815 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7818 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7820 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7821 starts with control character.
7823 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7825 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7827 (grub_gdb_outbuf): Likewise.
7829 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7831 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7832 zero terminator. Fixes a crash.
7834 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7836 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7838 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7839 images independently of preffered adderss field.
7841 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7843 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7844 * grub-core/commands/regexp.c: Likewise.
7845 * grub-core/loader/i386/linux.c: Likewise.
7846 * grub-core/partmap/msdos.c: Likewise.
7847 * grub-core/script/execute.c: Likewise.
7848 * grub-core/term/gfxterm.c: Likewise.
7850 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7852 Add variable parsing in $"..." and fix several mismatches with bash.
7854 * Makefile.util.def (grub_script_gettext): New test.
7855 * grub-core/script/execute.c (parse_string): New function.
7856 (gettext_append): Likewise.
7857 (grub_script_arglist_to_argv): Use gettext_append.
7858 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7859 * tests/grub_script_gettext.in: New file.
7861 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7863 Fix handling of leading spaces in scripts.
7865 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7867 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7868 other than skipping \r. All users updated.
7869 * tests/grub_script_echo1.in: Add space-related tests.
7870 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7872 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7874 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7876 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7878 * configure.ac: Bump up the version to beta2.
7880 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7882 Fix gettext reload bugs (e.g. inability to disable gettext
7885 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7886 main_context and secondary_context. All functions updated.
7887 (grub_gettext_translate): Rename to ...
7888 (grub_gettext_translate_real): ... this. Return NULL on failed
7890 (grub_gettext_translate): Handle secondary context.
7891 (grub_gettext_delete_list): Close file and zero-out the context.
7892 (grub_mofile_open): Don't call grub_gettext_delete_list.
7894 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7895 if locale="" to avoid pointless error message.
7896 (grub_gettext_env_write_lang): Update lang even if load fails.
7897 Handle secondary context.
7898 (grub_gettext_reread_prefix): New function.
7899 (read_main): Likewise.
7900 (read_secondary): Likewise.
7901 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7902 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7903 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7904 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7906 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7908 * configure.ac: Decrease warning level to avoid spurious warnings and
7909 to be able to compile with GCC 4.2.
7910 * Makefile.util.def: Remove -Wno-error=logical-op.
7912 2012-03-10 William Bittner <william.bittner@gmail.com>
7914 * util/import_unicode.py: Add missing brackets around string for
7917 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7919 Fix efi chainloader on network root.
7921 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7923 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7926 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7928 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7929 unused show_text member.
7930 * docs/grub.texi: Document "text" property.
7932 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7934 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7937 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7939 Fix IMSM handling on Fedora.
7941 * util/getroot.c (grub_util_is_imsm): New function.
7942 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7944 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7946 * Makefile.am: Strip gold section.
7947 * conf/Makefile.common: Likewise.
7948 * gentpl.py: Likewise.
7949 * grub-core/Makefile.core.def: Likewise.
7950 * grub-core/genmod.sh.in: Likewise.
7952 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7954 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7955 * util/grub.d/20_linux_xen.in: Likewise.
7956 Based on Debian patch.
7958 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7960 * util/grub.d/10_linux.in: Fix syntax error resulting in
7961 Richard Laager's patch.
7962 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7964 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7966 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7969 2012-03-10 Richard Laager <rlaager@wiktel.com>
7971 * util/grub.d/10_linux.in: Fix ZFS root passing.
7973 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7975 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7976 * grub-core/commands/xnu_uuid.c: Likewise.
7977 * grub-core/loader/efi/appleloader.c: Likewise.
7978 * grub-core/script/execute.c: Likewise.
7979 * grub-core/script/main.c: Likewise.
7980 * util/grub-mkfont.c: Likewise.
7982 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7984 * util/grub-mkfont.c (options): Use more appropriate "select" that
7985 "set" for face index.
7987 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7989 * util/grub-editenv.c (options): Gettextize command summaries.
7991 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7993 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7994 "out of memory" error messagge.
7996 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7998 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7999 of diskfilter for diskfilter on diskfilter support.
8001 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8003 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
8005 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8007 * util/grub-install.in: Check for themes/starfield/theme.txt and not
8010 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8012 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
8014 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8016 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
8018 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8020 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
8023 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8025 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
8027 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8029 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
8031 * util/grub-install.in: Fix and gettextize error message.
8033 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8035 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
8037 * util/grub-mount.c (options): Likewise.
8039 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8041 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
8043 * grub-core/commands/search_wrap.c (options): Likewise.
8045 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8047 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
8049 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8051 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
8053 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
8056 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8058 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
8059 "temporary" since it's used in identifier and is limited in space.
8061 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8063 * po/POTFILES.in: Regenerate. Include *.h since they contain
8064 translatable strings as well.
8066 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8068 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8069 byte-swap on big-endian.
8070 Reported by: Lennart Sorensen
8072 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8074 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8075 (allocate_pages): Improve dprintf.
8076 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8077 code32_start. Fill code32_start and kernel_alignment in params.
8078 (grub_cmd_initrd): Use prot_init_space.
8080 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8082 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8084 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8086 * util/grub-install.in: Add missing dot at the end of sentence.
8088 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8090 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8091 * grub-core/commands/videotest.c: Likewise.
8092 * grub-core/loader/i386/linux.c: Likewise.
8094 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8096 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8098 Reported by: Milo Casagrande.
8100 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8102 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8103 * grub-core/commands/gptsync.c: Likewise.
8104 * grub-core/commands/hashsum.c: Likewise.
8105 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8106 * grub-core/commands/legacycfg.c: Likewise.
8107 * grub-core/io/gzio.c: Likewise.
8108 * grub-core/net/net.c: Likewise.
8109 * grub-core/term/gfxterm.c: Likewise.
8110 * grub-core/term/terminfo.c: Likewise.
8111 * grub-core/tests/test_blockarg.c: Likewise.
8112 * grub-core/video/video.c: Likewise.
8113 * util/grub-install.in: Likewise.
8114 * util/grub-mkfont.c: Likewise.
8116 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8118 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8120 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8122 * grub-core/commands/search_wrap.c (options): Fix a typo.
8123 Reported by: David Prévot.
8125 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8127 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8130 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8132 * util/grub-script-check.c (main): Fix a syntax error message which was
8135 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8137 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8139 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8141 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8144 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8146 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8148 * util/grub-mount.c (options): Likewise.
8150 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8152 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8154 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/net/http.c: Add TRANSLATORS comments.
8157 * grub-core/normal/cmdline.c: Likewise.
8158 * grub-core/normal/misc.c: Likewise.
8159 * grub-core/partmap/msdos.c: Likewise.
8160 * grub-core/parttool/msdospart.c: Likewise.
8161 * grub-core/script/execute.c: Likewise.
8162 * grub-core/script/main.c: Likewise.
8163 * grub-core/term/terminfo.c: Likewise.
8164 * grub-core/video/bitmap.c: Likewise.
8165 * util/grub-install.in: Likewise.
8166 * util/grub-mkimage.c: Likewise.
8167 * util/grub-mklayout.c: Likewise.
8168 * util/grub-setup.c: Likewise.
8170 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8172 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8173 with similar messages in grub-fstest.
8175 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8177 * util/grub-install.in: Unify "option requires an argument" message
8178 with similar messages in other files.
8179 * util/grub-mkconfig.in: Likewise.
8181 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8183 * util/grub-set-default.in: Replace printf with gettext_printf (the
8184 string in in question is already translated from grub-reboot)
8186 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8188 * configure.ac: Bump up the version to beta1.
8190 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8192 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8193 case when min_align = 0.
8195 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8197 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8198 and fix a case when line_start overflows.
8200 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8202 * util/grub-reboot.in (usage): Mention id posibility.
8203 * util/grub-set-default.in (usage): Likewise.
8205 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8207 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8208 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8209 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8210 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8211 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8212 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8213 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8215 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8217 * grub-core/commands/menuentry.c (options): Remove
8218 GRUB_ARG_OPTION_REPEATABLE.
8219 Reported by: Andreas Vogel
8221 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8223 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8225 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8227 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8230 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8232 Use sort -V by the idea of Georgi Georgiev.
8234 * util/grub-mkconfig_lib.in (version_sort): New function.
8235 (version_test_numeric): Use version_sort.
8237 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8239 Use submenus in grub-mkconfig.
8241 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8242 * util/grub-mkconfig_lib.in (grub_quote): New function.
8243 (gettext_printf): Use gettext and not gettext_quoted to fix several
8245 * util/grub.d/10_hurd.in: Use submenus.
8246 * util/grub.d/10_kfreebsd.in: Likewise.
8247 * util/grub.d/10_linux.in: Likewise.
8248 * util/grub.d/10_netbsd.in: Likewise.
8249 * util/grub.d/20_linux_xen.in: Likewise.
8250 * util/grub.d/30_os-prober.in: Likewise.
8251 * util/grub.d/10_illumos.in: Add missing quoting.
8252 * util/grub.d/10_windows.in: Likewise.
8254 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8256 Fix menu title instability bug.
8258 * grub-core/commands/menuentry.c (options): New option --id.
8259 (grub_normal_add_menu_entry): New argument id. All users updated.
8260 (grub_cmd_menuentry): Handle --id.
8261 (grub_menu_init): Accept unknown arguments.
8262 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8263 feature_menuentry_options.
8264 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8266 (get_entry_number): Match with id as well.
8267 * include/grub/menu.h (grub_menu_entry): New member id.
8268 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8269 * util/grub.d/00_header.in: Define menuentry_id_option.
8270 * util/grub.d/10_hurd.in: Define id.
8271 * util/grub.d/10_illumos.in: Likewise.
8272 * util/grub.d/10_kfreebsd.in: Likewise.
8273 * util/grub.d/10_linux.in: Likewise.
8274 * util/grub.d/10_netbsd.in: Likewise.
8275 * util/grub.d/10_windows.in: Likewise.
8276 * util/grub.d/20_linux_xen.in: Likewise.
8277 * util/grub.d/30_os-prober.in: Likewise.
8279 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8281 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8282 "scope" with "body".
8284 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8286 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8287 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8288 prot_size and prot_file_size.
8290 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8292 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8293 All users updated. If easily=1 require raid-5/-6 to be full.
8294 (is_node_readable): Likewise.
8295 (scan_devices): Scan incomplete but readable LVs at the end.
8296 (grub_diskfilter_memberlist): Pull missing devices.
8297 (insert_array): Skip scanning until device is complete or scan is
8299 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8301 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8302 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8304 2012-03-03 Matthew Garrett <mjg@redhat.com>
8305 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8307 Avoid EFI boot services when loading Linux.
8309 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8310 avoid_efi_bootservices. All users updated.
8311 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8312 argument avoid_efi_bootservices. All users updated.
8313 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8314 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8315 align, min_align, relocatable, prefered_address. All users updated.
8316 Allocate avoiding boot services if kernel is relocatable.
8317 (grub_cmd_linux): Check if kernel is relocatable.
8318 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8319 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8320 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8321 avoid_efi_boot_services.
8322 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8323 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8324 (linux_kernel_params): Likewise.
8326 2012-03-03 Matthew Garrett <mjg@redhat.com>
8327 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8331 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8333 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8334 modes. Set gop_handle.
8335 (grub_video_gop_get_edid): New function.
8336 (grub_gop_get_preferred_mode): Likewise.
8337 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8338 (grub_video_efi_gop_adapter): Set .get_edid.
8339 * include/grub/efi/edid.h: New file.
8340 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8342 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8344 * util/grub-install.in: Load efivars unconditionally.
8346 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8348 * po/Rules-piglatin: Change suffix from .po-update-en to
8349 .po-update-en-piglatin.
8351 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8355 * po/piglatin.sed: New file.
8356 * po/en@piglatin.header: Likewise.
8357 * po/Rules-piglatin: Likewise.
8358 * po/README: Add en@piglatin to autogenerated languages.
8360 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8362 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8364 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8365 "Check" since we don't check anything.
8366 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8368 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8369 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8370 (grub_md_sha512_real): Likewise.
8372 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8374 * grub-core/commands/gptsync.c: Fix typographic quoting.
8375 * grub-core/commands/ieee1275/suspend.c: Likewise.
8376 * grub-core/commands/parttool.c: Likewise.
8377 * grub-core/commands/search_wrap.c: Likewise.
8378 * grub-core/commands/videoinfo.c: Likewise.
8379 * grub-core/gfxmenu/gui_label.c: Likewise.
8380 * grub-core/hello/hello.c: Likewise.
8381 * grub-core/kern/emu/main.c: Likewise.
8382 * grub-core/net/net.c: Likewise.
8383 * grub-core/normal/menu.c: Likewise.
8384 * grub-core/normal/menu_text.c: Likewise.
8385 * grub-core/normal/misc.c: Likewise.
8386 * util/grub-editenv.c: Likewise.
8387 * util/grub-install.in: Likewise.
8388 * util/grub-kbdcomp.in: Likewise.
8389 * util/grub-mkconfig.in: Likewise.
8390 * util/grub-mknetdir.in: Likewise.
8391 * util/grub-mkrescue.in: Likewise.
8392 * util/grub-mkstandalone.in: Likewise.
8393 * util/grub-reboot.in: Likewise.
8394 * util/grub-set-default.in: Likewise.
8395 * util/grub-setup.c: Likewise.
8396 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8398 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8400 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8401 * grub-core/commands/keystatus.c: Likewise.
8402 * grub-core/commands/loadenv.c: Likewise.
8403 * grub-core/commands/probe.c: Likewise.
8404 * grub-core/commands/regexp.c: Likewise.
8405 * grub-core/commands/true.c: Likewise.
8406 * grub-core/commands/videoinfo.c: Likewise.
8407 * grub-core/disk/cryptodisk.c: Likewise.
8408 * grub-core/disk/ldm.c: Likewise.
8409 * grub-core/disk/loopback.c: Likewise.
8410 * grub-core/disk/luks.c: Likewise.
8411 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8412 * grub-core/kern/disk.c: Likewise.
8413 * grub-core/kern/emu/hostdisk.c: Likewise.
8415 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8417 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8418 * util/grub-install.in: Add missing quote in the comment.
8420 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8423 * grub-core/commands/lsmmap.c: Likewise.
8424 * grub-core/commands/minicmd.c: Likewise.
8425 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8426 * grub-core/commands/regexp.c: Likewise.
8427 * grub-core/gdb/gdb.c: Likewise.
8428 * grub-core/term/gfxterm.c: Likewise.
8429 * util/grub-mkconfig.in: Likewise.
8430 * util/grub-mkfont.c: Likewise.
8431 * util/grub-mklayout.c: Likewise.
8432 * util/grub-mknetdir.in: Likewise.
8433 * util/grub-mkrescue.in: Likewise.
8434 * util/grub.d/30_os-prober.in: Likewise.
8436 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8438 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8439 with "Direct color" and "Packed" with "Packed pixel".
8440 (grub_cmd_videoinfo): Simplify legend.
8442 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8444 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8445 absolutely unclear error message.
8447 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8449 * util/grub-mkstandalone.in: Remove confusing leftover print.
8451 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8453 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8455 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8456 (GRUB_MOD_INIT): Likewise.
8457 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8459 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8461 * util/grub-install.in (usage): Likewise.
8462 Spell ID in whole letters.
8463 Add missing ending dot.
8465 * util/grub-reboot.in: Fix capitalisation.
8466 * util/grub-set-default.in: Likewise.
8468 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8470 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8471 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8472 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8473 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8474 Disable -Werror for -Wdeprecated-declarations.
8475 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8476 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8477 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8478 (grub_util_get_grub_dev): Make luks handling dependent on
8479 HAVE_DEVICE_MAPPER and not __linux__.
8480 (get_win32_path): Fix format security.
8481 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8482 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8483 Don't try grub_find_zpool_from_dir.
8484 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8485 #ifdef-out paresdir.
8487 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8489 * util/grub-pe2elf.c (usage): Add missing noreturn.
8490 (write_section_data): Rename name to shname to avoid shadowing.
8491 (write_symbol_table): Rename name to symname to avoid shadowing.
8492 Fix write_reloc_section call.
8494 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8496 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8497 to ensure that it's after the last byte of .text.
8499 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8501 * util/ieee1275/ofpath.c (my_isdigit): New function.
8502 (trailing_digits): Use my_isdigit.
8503 (strip_trailing_digits): Likewise.
8505 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8507 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8508 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8510 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8512 * grub-core/kern/i386/pc/startup.S: Define __start.
8514 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8516 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8517 strip already transforms he format.
8519 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8521 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8523 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8525 * util/grub-install.in: Add missing gettext init.
8526 * util/grub-kbdcomp.in: Likewise.
8527 * util/grub-mkconfig.in: Likewise.
8528 * util/grub-mknetdir.in: Likewise.
8529 * util/grub-mkrescue.in: Likewise.
8530 * util/grub-mkstandalone.in: Likewise.
8531 * util/grub-reboot.in: Likewise.
8532 * util/grub-set-default.in: Likewise.
8533 * util/grub.d/00_header.in: Likewise.
8534 * util/grub.d/10_hurd.in: Likewise.
8535 * util/grub.d/10_windows.in: Likewise.
8536 * util/grub.d/30_os-prober.in: Likewise.
8537 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8539 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8541 * po/Rules-swiss: Fix header comment.
8543 2012-02-29 Andreas Vogel <anvoit>
8545 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8546 resulted in leak of arguments.
8548 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8550 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8551 reed_solomon_size const definition instead of computing it since
8552 Apple assembler doesn't support the later.
8554 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8556 * gentpl.py (kernel): Rewrite Apple part.
8558 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8560 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8562 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8564 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8566 (load_image): Likewise.
8568 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8570 * configure.ac: Fix a typo in previous commit.
8572 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8574 Don't add -Wl,-N on Apple platform.
8576 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8577 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8579 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8581 * grub-core/Makefile.core.def (lzma_decompress): Use
8582 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8584 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8586 * grub-core/genmod.sh.in: Rewrite the Apple part.
8588 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8590 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8593 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8595 * acinclude.m4 (grub_CHECK_PIC): New test.
8596 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8598 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8600 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8601 to avoid the warning.
8603 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8605 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8606 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8607 after. All users updated.
8609 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8611 Use the common size routine in hostfs so we can read disks as well.
8613 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8614 (grub_util_get_fd_size): ... this. Return size in bytes.
8616 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8617 grub_util_get_fd_size.
8619 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8621 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8622 Add blocksize retrieval.
8624 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8626 * configure.ac: Restore CFLAGS after efiemu check.
8628 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8630 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8633 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8635 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8637 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8639 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8640 (grub_cmd_halt): Likewise.
8642 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8644 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8645 for local arithmetics.
8646 Break %sp init into 2 instructions.
8647 Add 0 byte at the end.
8649 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8651 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8654 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8656 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8659 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8661 * grub-core/disk/ldm.c (make_vg): Init part.name.
8662 (grub_ldm_detect): Silence spurious warning.
8663 (grub_util_is_ldm): Likewise.
8665 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8667 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8668 sane value to avoid a spurious warning.
8670 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8672 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8673 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8675 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8677 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8678 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8680 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8682 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8683 hardcoding the relevant info.
8685 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8687 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8688 missing const qualifiers.
8689 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8691 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8693 * util/getroot.c [__APPLE__]: Add missing includes.
8694 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8696 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8698 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8700 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8702 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8707 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8709 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8711 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8712 and grub_file_close call.
8714 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8716 Add LZSS Mach-O support (needed for new xnu kernelcache).
8718 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8719 * grub-core/loader/lzss.c: New file.
8720 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8721 on Mach-O open failure.
8722 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8723 Don't free cmdsXX in uncompressedXX is set.
8724 (grub_macho_file): Init new fields.
8725 New argument is_64bit. All users updated.
8726 Handle compressed. Error out if no suitable architecture is found.
8728 (grub_macho_open): New argument is_64bit. All users updated.
8729 * grub-core/loader/macho32.c: Add defines for new fields.
8730 * grub-core/loader/macho64.c: Likewise.
8731 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8732 (grub_macho_parse): Handle compressed.
8733 Defer actual processing if compressed.
8734 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8735 "filename". All users updated.
8736 (grub_macho_size): New argument "filename". All users updated.
8737 (grub_macho_get_entry_point): Likewise.
8738 (grub_macho_load): Handle compressed.
8739 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8740 (GRUB_MACHO_LZSS_OFFSET): New define.
8741 (grub_decompress_lzss): New proto.
8742 * include/grub/machoload.h (grub_macho_file): New fields to handle
8744 (grub_macho_contains_macho64): Remove proto.
8745 (grub_macho_contains_macho32): Likewise.
8746 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8748 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8750 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8752 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8756 * Makefile.am (starfield_theme_files): New var.
8757 (starfield_DATA): Use starfield_theme_files.
8758 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8759 Add bootcheck-related files.
8760 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8761 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8762 and font_char_metrics.txt.
8763 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8764 (setjmp): Add lib/ia64/longjmp.S.
8765 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8766 * po/POTFILES.in: Regenerate.
8767 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8768 DISTFILES.common.extra1.
8769 * util/devicemap.c: Removed.
8770 * grub-core/lib/i386/relocator_backward.S: Likewise.
8771 * util/import_gcry.py: Remove unused files. Add extra_dist for
8774 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8776 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8777 grub_gettext_delete_list before changing grub_gettext_max to avoid
8778 running out of array bounds.
8780 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8782 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8783 grub_vga_text_init/grub_vga_text_fini.
8785 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8787 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8789 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8791 * configure.ac: Bump to 2.00~beta0.
8793 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8795 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8796 missing initialisation.
8798 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8802 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8804 Support v2 xnu boot arguments.
8806 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8807 New argument fsbfreq_out.
8808 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8809 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8811 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8813 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8814 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8815 (grub_xnu_boot_params): Rename to ...
8816 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8817 (grub_xnu_boot_params_v2): New struct.
8819 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8821 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8822 zeroing of CRC field before computing CRC.
8824 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8827 Change order of allocations to decrease fragmentation.
8829 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8831 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8833 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
8835 Use write-combining MTRR to speed up video with buggy BIOSes.
8837 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8838 (cpuid): New define.
8841 (mtrr_base): Likewise.
8842 (mtrr_mask): Likewise.
8843 (grub_vbe_enable_mtrr_entry): New function.
8844 (grub_vbe_enable_mtrr): Likewise.
8845 (grub_vbe_disable_mtrr): Likewise.
8846 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8847 control off to BIOS.
8848 (grub_video_vbe_init): Fill mtrr.
8849 (grub_video_vbe_fini): Disable mtrr.
8850 (grub_video_vbe_get_info_and_fini): Likewise.
8851 (grub_video_vbe_setup): Enable mtrr.
8853 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
8855 * include/grub/partition.h (grub_partition_map): Change prototype of
8856 embed to take a maximum value for nsectors.
8857 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8858 * include/grub/fs.h (grub_fs): Likewise.
8859 * grub-core/partmap/msdos.c (embed_signatures): New array.
8860 (pc_partition_map_embed): Check for and avoid sectors matching any
8861 of the signatures in embed_signatures, up to max_nsectors.
8862 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8863 returned sector map to max_nsectors.
8864 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8865 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8866 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8867 * util/grub-setup.c (setup): Allow for the embedding area being
8868 split into multiple blocklists. Tell dest_partmap->embed the
8869 maximum number of sectors we care about.
8871 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8873 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8874 Specify blocklist_install and reserver_first_sector for all fs.
8875 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8878 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8880 * util/grub-install.in: Clarify strings.
8881 Fix source dir check.
8883 2012-02-27 Richard Laager <rlaager@wiktel.com>
8885 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8886 "zfs" and "fuse.zfs" as synonyms.
8888 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8890 * configure.ac: Put platform and target_cpu substitutions back since
8891 they are used for directories.
8893 2012-02-27 Richard Laager <rlaager@wiktel.com>
8894 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8896 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8897 * util/grub.d/20_linux_xen.in: Likewise.
8899 2012-02-27 Richard Laager <rlaager@wiktel.com>
8901 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8904 2012-02-27 Richard Laager <rlaager@wiktel.com>
8906 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8909 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8911 Don't use insecure popen in getroot.
8913 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8914 (exec_pipe): ... here.
8915 (find_root_devices_from_poolname): Use exec_pipe.
8917 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8919 Remove platform and target_cpu replacement.
8921 * configure.ac: Remove platform and target_cpu substitutions.
8922 * tests/util/grub-shell.in: Use modinfo.
8923 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8926 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8928 Autodetect platform in grub-install but allow override.
8930 * util/grub-install.in: Autodetect platform. Support --target and
8931 --directory. Read platform from modinfo.sh.
8933 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8935 Support btrfs multi-volume probe.
8937 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8938 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8939 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8940 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8941 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8942 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8943 grub_find_root_devices_from_btrfs if on btrfs.
8945 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8947 Remove any awareness of *.c util files about target.
8949 * Makefile.util.def (grub-setup): Split to ...
8950 (grub-bios-setup): ... and this.
8951 (grub-sparc64-setup): ... and this.
8952 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8953 * docs/man/grub-setup.h2m: Split into ...
8954 * docs/man/grub-sparc64-setup.h2m: ... this.
8955 * docs/man/grub-bios-setup.h2m: ... and this.
8956 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8957 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8958 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8959 (grub_target_addr_t): Remove.
8960 (grub_target_size_t): Remove.
8961 (grub_target_ssize_t): Remove.
8962 * util/grub-install.in: Use new grub-*-setup.
8963 * util/grub-mkimagexx.c (Elf_Word): New define.
8964 (Elf_Half): Likewise.
8965 (Elf_Section): Likewise.
8966 (ELF_ST_TYPE): Likewise.
8967 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8968 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8970 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8972 Replace grub_target_addr with more appropriate types.
8974 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8975 grub_target_addr with grub_addr.
8976 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8977 grub_target_addr with grub_port.
8978 (grub_cmd_write): Likewise.
8979 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8980 grub_target_addr with grub_addr.
8981 (grub_cmd_write): Likewise.
8982 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8984 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8986 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8987 const qualifier for vendor_guid.
8989 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8991 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8993 (efiemu_memequal): Likewise.
8994 (find_variable): Likewise.
8996 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8998 Fix missing console prototype on qemu-mips.
9000 * include/grub/mips/qemu_mips/console.h: New file.
9002 2012-02-27 Matthew Garrett <mjg@redhat.com>
9003 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9005 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
9006 * include/grub/efi/efi.h: Likewise.
9007 * include/grub/efi/api.h: Add guid for EFI-specified variables.
9008 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
9009 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
9010 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
9011 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
9012 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
9014 2012-02-27 Matthew Garrett <mjg@redhat.com>
9016 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
9018 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9020 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
9023 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9025 * configure.ac: Remove inappropriate use of program_transform_name
9026 on grubdir and bootdir but allow explicit specification of those
9029 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9031 * util/grub-mknetdir.in (grub_prefix): Removed.
9032 (subdir): Use @bootdirname@ and @grubdirname@.
9034 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9036 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
9038 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9040 * po/POTFILES.in: Regenerated.
9042 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9044 Remove improper use of program_transform_name on pkglibrootdir.
9046 * configure.ac (pkglibrootdir): Removed.
9047 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
9048 * util/grub-mkimage.c: Likewise.
9050 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9052 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
9055 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9057 * util/grub-install.in: Use file identifier if no UUID is available
9058 or user explicitly prompted for it.
9060 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
9062 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
9063 (freebsd_get_zfs): New function.
9064 (grub_freebsd_boot): Pass zfs UUID.
9065 (grub_cmd_freebsd): Set zfs UUID.
9067 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9069 * conf/Makefile.common (platformdir): Base on pkglibdir and not
9072 2012-02-27 Mike Gilbert <floppym@gentoo.org>
9074 Add configure flag to control libzfs integration.
9076 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9078 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9080 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9082 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9085 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9087 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9088 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9089 be used on non-modules.
9091 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9092 Rename to grub_boot_init.
9093 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9094 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9095 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9096 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9097 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9098 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9099 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9100 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9102 (grub_machine_init): Remove empty inits.
9103 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9105 (grub_machine_init): Remove empty inits.
9106 * grub-core/term/arc/console.c: Remove explicit proto.
9107 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9108 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9109 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9110 grub_at_keyboard_fini.
9111 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9112 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9113 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9115 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9116 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9117 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9119 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9120 * grub-core/term/serial.c (GRUB_MOD_INIT)
9121 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9122 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9124 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9125 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9126 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9128 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9129 (GRUB_MOD_FINI): Likewise.
9130 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9131 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9132 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9133 grub_video_radeon_fuloong2e_fini.
9134 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9135 [LOONGSON]: Rename to grub_video_sis315pro_init.
9136 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9137 grub_video_sis315pro_fini.
9138 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9139 [LOONGSON]: Rename to grub_video_sm712_init.
9140 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9141 grub_video_sm712_fini.
9142 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9143 (grub_at_keyboard_fini): Likewise.
9144 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9145 Don't declare grub_{modname}_init.
9146 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9147 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9149 (grub_keylayouts_fini) [!EMU]: Likewise.
9150 * include/grub/serial.h (grub_serial_init) [!EMU]:
9152 (grub_serial_fini) [!EMU]: Likewise.
9153 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9155 (grub_terminfo_fini) [!EMU]: Likewise.
9156 * include/grub/video.h (grub_font_init) [!EMU]:
9158 (grub_font_fini) [!EMU]: Likewise.
9159 (grub_gfxterm_init) [!EMU]: Likewise.
9160 (grub_gfxterm_fini) [!EMU]: Likewise.
9161 (grub_video_sm712_init) [!EMU]: Likewise.
9162 (grub_video_sm712_fini) [!EMU]: Likewise.
9163 (grub_video_sis315pro_init) [!EMU]: Likewise.
9164 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9165 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9166 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9168 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9170 Make nand a prefix for nand devices.
9172 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9174 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9176 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9177 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9179 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9181 * include/grub/env.h (grub_env_find): Remove prototype.
9182 * grub-core/kern/env.c (grub_env_find): Make static.
9183 (grub_env_set): Remove useless set.
9185 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9187 * grub-core/kern/i386/realmode.S: Remove useless align.
9189 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9191 * include/grub/dl.h (grub_dl_load_file): Don't export.
9193 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9195 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9198 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9200 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9202 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9203 not reloading whole superblock but only the part which is really needed.
9204 Remove useless grub_errors.
9205 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9208 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9210 Don't export grub_get_rtc.
9212 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9213 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9215 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9217 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9219 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9221 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
9222 argument since it can be deduced from diskfilter. All users updated.
9224 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9228 * include/grub/list.h (grub_prio_list): Removed.
9229 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9230 GRUB_COMMAND_PRIO_MASK.
9231 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9232 GRUB_COMMAND_FLAG_ACTIVE.
9233 (grub_prio_list_insert): Removed.
9234 (grub_prio_list_remove): Likewise.
9235 (GRUB_AS_PRIO_LIST): Likewise.
9236 (GRUB_AS_PRIO_LIST_P): Likewise.
9237 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9238 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9239 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9240 * grub-core/kern/command.c (grub_register_command_prio): Inline
9242 (grub_unregister_command): Likewise.
9244 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9246 Fix interrupt mixup from previous commit.
9248 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9249 (grub_realidt): New var.
9250 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9252 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9254 (grub_relocator16_boot): Set grub_relocator16_idt.
9255 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9256 (LOCAL(realidt)): ... this.
9257 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9258 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9259 (grub_realidt): New variable.
9261 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9263 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9264 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9265 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9266 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9268 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9269 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9270 * po/POTFILES.in: Regenerate.
9272 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9274 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9277 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9279 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9281 (add_length): Likewise.
9283 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9284 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9286 GDB serial and backtrace support.
9288 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9289 (prot_to_real): Likewise.
9290 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9291 * grub-core/Makefile.core.def (backtrace): New module.
9293 * grub-core/gdb/cstub.c: New file.
9294 * grub-core/gdb/gdb.c: Likewise.
9295 * grub-core/gdb/i386/idt.c: Likewise.
9296 * grub-core/gdb/i386/machdep.S: Likewise.
9297 * grub-core/gdb/i386/signal.c: Likewise.
9298 * grub-core/lib/i386/backtrace.c: Likewise.
9299 * grub-core/lib/backtrace.c: Likewise.
9300 * include/grub/backtrace.h: Likewise.
9301 * include/grub/gdb.h: Likewise.
9302 * include/grub/i386/gdb.h: Likewise.
9304 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9306 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9308 (add_length): Likewise.
9309 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9310 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9312 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9313 __argp_get_display_len.
9315 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9317 $"..." support in scripts.
9319 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9320 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9321 * grub-core/script/yylex.l: Likewise.
9322 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9325 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9327 * gentpl.py: Remove obsolete pkglib_DATA handling.
9329 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9331 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9334 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9335 * util/grub-kbdcomp.in: Likewise.
9336 * util/grub-mkconfig.in: Likewise.
9337 * util/grub-mkconfig_lib.in: Likewise.
9338 * util/grub-mknetdir.in: Likewise.
9339 * util/grub-mkrescue.in: Likewise.
9340 * util/grub-mkstandalone.in: Likewise.
9341 * util/grub-reboot.in: Likewise.
9342 * util/grub-set-default.in: Likewise.
9343 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9345 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9349 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9350 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9351 used for backward compatibility.
9353 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9355 Add new all_video module.
9357 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9358 * grub-core/Makefile.core.def (all_video): New module.
9359 * grub-core/genmoddep.awk: Generate dependency of all_video from
9361 * grub-core/lib/fake_module.c: New file.
9362 * grub-core/normal/main.c (features): Add feature_all_video_module.
9363 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9364 don't do explicit search again.
9365 insmod all_video in load_video if available.
9367 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9369 Another round of string clarification and adding TRANSLATORS comments.
9371 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9373 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9375 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9377 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9379 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9380 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9382 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9384 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9385 trailing newline implicitly. All users updated.
9387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9389 Implement serial on IEEE1275 and EFI.
9391 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9392 on emu. Mention arc and emu as the only platforms without serial
9394 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9396 * grub-core/term/efi/serial.c: New file.
9397 * grub-core/term/ieee1275/serial.c: Likewise.
9398 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9399 specification if no ns8250 driver is available.
9400 (grub_cmd_serial): Likewise.
9401 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9402 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9403 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9404 (grub_efi_parity_type_t): New type.
9405 (grub_efi_stop_bits_t): Likewise.
9406 (grub_efi_serial_io_interface): New struct.
9407 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9408 available for all interfaces.
9409 Add EFI and IEEE1275 fields.
9410 (grub_ofserial_init): New proto.
9411 (grub_efiserial_init): Likeiwse.
9412 * util/grub.d/00_header.in: Don't check for the presence of serial
9415 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9417 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9418 name as if it was an alias.
9420 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9422 * grub-core/commands/lsacpi.c (options): Fix typo.
9424 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9426 Convert grub-emu to argp.
9428 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9430 * util/argp_common.c: Rename to ...
9431 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9432 Add missing includes.
9433 * grub-core/kern/emu/main.c: Convert to argp.
9434 * po/POTFILES.in: Regenerate.
9435 * util/grub-install.in (usage): Make first letter lowcase in messages
9437 * util/grub-setup.c (options): Likewise.
9439 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9441 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9442 Put back accidently commented-out code.
9444 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9446 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9447 loop check using Brent algorithm.
9448 (grub_hfsplus_btree_search): Likewise.
9450 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9452 * util/grub-install.in: Fix usage of wrong device for PreP install.
9454 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9456 * conf/Makefile.common (CFLAGS_GNULIB): Add
9457 -Wno-unsafe-loop-optimizations.
9458 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9460 * grub-core/commands/legacycfg.c: Add pragma to skip
9461 -Wunsafe-loop-optimizations.
9462 (check_password_md5_real): Fix loop counter type.
9463 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9465 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9466 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9468 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9469 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9470 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9472 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9473 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9474 avoid possible infinite loops.
9475 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9476 and -Wunsafe-loop-optimizations.
9477 * grub-core/script/yylex.l: Likewise.
9478 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9479 (print_glyphs): Avoid infinite loops.
9480 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9482 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9484 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9485 to avoid infinite loop.
9486 (disp_acpi_rsdt_table): Likewise.
9488 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9490 * grub-core/font/font.c (grub_font_load): Add support for default
9491 path for fonts ($prefix/fonts).
9492 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9493 for checking if string is a path.
9494 * grub-core/normal/main.c (features): Add feature_default_font_path.
9495 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9496 * util/grub.d/00_header.in: Use default directory if possible.
9497 * util/grub-install.in: Install unicode.pf2.
9499 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9501 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9502 * po/Rules-swiss: New file.
9503 * po/swiss.sed: Likewise.
9505 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9507 * grub-core/fs/btrfs.c (find_device): Fix typos.
9508 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9509 * util/grub-mkrelpath.c (argp_parser): Likewise.
9510 Reported by: Yuri Chornoivan.
9512 2012-02-23 Dalet Omega <daletomega@gmail.com>
9514 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9515 for usual informative messages.
9517 2012-02-23 Dalet Omega <daletomega@gmail.com>
9521 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9522 * conf/Makefile.common: Define starfielddir.
9523 * configure.ac: Configure starfield.
9524 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9525 * themes/starfield/README: Likewise.
9526 * themes/starfield/blob_w.png: Likewise.
9527 * themes/starfield/boot_menu_c.png: Likewise.
9528 * themes/starfield/boot_menu_e.png: Likewise.
9529 * themes/starfield/boot_menu_n.png: Likewise.
9530 * themes/starfield/boot_menu_ne.png: Likewise.
9531 * themes/starfield/boot_menu_nw.png: Likewise.
9532 * themes/starfield/boot_menu_s.png: Likewise.
9533 * themes/starfield/boot_menu_se.png: Likewise.
9534 * themes/starfield/boot_menu_sw.png: Likewise.
9535 * themes/starfield/boot_menu_w.png: Likewise.
9536 * themes/starfield/slider_c.png: Likewise.
9537 * themes/starfield/slider_n.png: Likewise.
9538 * themes/starfield/slider_s.png: Likewise.
9539 * themes/starfield/src/blob_nw.xcf: Likewise.
9540 * themes/starfield/src/bootmenu/: Likewise.
9541 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9542 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9543 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9544 * themes/starfield/src/slider_c.xcf: Likewise.
9545 * themes/starfield/src/slider_n.xcf: Likewise.
9546 * themes/starfield/src/slider_s.xcf: Likewise.
9547 * themes/starfield/src/terminalbox/: Likewise.
9548 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9549 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9550 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9551 * themes/starfield/starfield.png: Likewise.
9552 * themes/starfield/terminal_box_c.png: Likewise.
9553 * themes/starfield/terminal_box_e.png: Likewise.
9554 * themes/starfield/terminal_box_n.png: Likewise.
9555 * themes/starfield/terminal_box_ne.png: Likewise.
9556 * themes/starfield/terminal_box_nw.png: Likewise.
9557 * themes/starfield/terminal_box_s.png: Likewise.
9558 * themes/starfield/terminal_box_se.png: Likewise.
9559 * themes/starfield/terminal_box_sw.png: Likewise.
9560 * themes/starfield/terminal_box_w.png: Likewise.
9561 * themes/starfield/theme.txt: Likewise.
9563 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9565 * util/grub.d/00_header.in: Add missing export theme.
9567 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9569 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9571 Reported by: Eren D.
9573 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9575 * conf/Makefile.common (grubdatadir): Removed.
9576 (Makefile.am): Move eveything grubdata to pkgdata.
9578 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9580 * grub-core/commands/acpihalt.c (get_sleep_type):
9581 Remove unused variable.
9583 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9585 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9586 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9587 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9588 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9589 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9590 i18n with gettext no-op.
9591 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9592 GRUB_ACPI_OPCODE_STRING_CONST.
9593 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9594 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9596 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9598 * po/POTFILES.in: Regenerate.
9600 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9602 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9603 -Wno-error=missing-noreturn.
9605 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9607 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9608 condition to avoid possibly infinite loops.
9609 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9610 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9612 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9614 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9615 condition to avoid possibly infinite loops.
9617 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9619 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9622 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9624 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9626 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9628 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9630 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9632 * util/bin2h.c (usage): Add missing attribute noreturn.
9634 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9636 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9637 if the size isn't divisible by 512.
9639 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9641 Make list_push and list_remove functions rather than inline functions
9642 to decrease size and avoid aliasing violations.
9644 * include/grub/list.h (grub_list_push): Move to ...
9645 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9646 * include/grub/list.h (grub_list_remove): Move to ...
9647 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9649 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9651 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9652 and -Wunused-result.
9654 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9657 Reported by: Seth Goldberg
9659 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9661 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9663 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9665 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9666 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9668 * docs/grub.texi (Simple configuration): Document
9669 GRUB_CMDLINE_GNUMACH.
9671 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
9673 * conf/Makefile.common (platform_SCRIPTS): New variable.
9674 (platform_PROGRAMS): Likewise.
9675 * gentpl.py: Mark *,module and *.image for install.
9676 * grub-core/gdb_grub.in: Add a notice of expected environment.
9677 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9678 (gmodule.pl): Likewise.
9680 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
9682 Replace grub_checkkey with grub_getkey_noblock.
9684 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9685 (grub_getkey_noblock): ... this. All users updated.
9687 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
9689 * grub-core/kern/emu/console.c: Move to ...
9690 * grub-core/term/emu/console.c: ...here.
9691 (grub_ncurses_getkey): Fix return value if no key is detected.
9693 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9695 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9696 (grub_unit_test_fini): Likewise.
9697 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9699 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9701 * include/grub/test.h (GRUB_UNIT_TEST)
9703 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9705 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9706 Better error handling.
9707 (grub_script_return): Likewise.
9708 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9710 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9712 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9713 rimplicit redifinition.
9715 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9717 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9720 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9722 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9723 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9726 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9728 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9729 as GRUB_ERR_BUG. Don't malloc if no device is available.
9731 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9733 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9734 Mark calling with invalid term as GRUB_ERR_BUG.
9736 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9738 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9739 packets rather than raising an error.
9741 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9743 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9746 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9748 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9749 diagnostic to dprintf.
9750 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9752 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9754 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9757 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9759 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9760 (grub_ntfs_iterate_dir): Likewise.
9762 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9764 Efiemu stylistic fixes and gettext.
9766 * grub-core/efiemu/i386/loadcore32.c
9767 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9768 * grub-core/efiemu/i386/loadcore64.c
9769 (grub_arch_efiemu_relocate_symbols64): Likewise.
9770 * grub-core/efiemu/i386/pc/cfgtables.c
9771 (grub_machine_efiemu_init_tables): Likewise.
9772 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9773 (grub_efiemu_loadcore_initXX): Add a filename argument.
9775 Improved error message.
9776 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9777 Add a filename argument.
9779 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9780 Reclassify double relocation as GRUB_ERR_BUG.
9782 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9784 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9787 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9789 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9792 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9794 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9796 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9798 Improve string. Gettextize.
9800 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9802 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9804 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9806 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9808 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9809 [GRUB_UTIL]: New function.
9810 (insert_array) [GRUB_UTIL]: Store partmaps.
9811 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9813 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9814 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9815 (probe_abstraction): Print diskfilter and not raid.
9816 Reported by: Lennart Sorensen
9818 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9820 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9821 * util/grub-mkimagexx.c (MASK3): New define.
9822 (add_value_to_slot_20b): Use MASK3.
9823 (add_value_to_slot_21): Likewise.
9824 (relocate_addresses): Fix format specification.
9825 (load_image): Explicitly init symtab_section.
9827 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9829 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9830 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9832 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9834 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9836 Reported by: Lennart Sorensen
9838 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9840 * gentpl.py: Add missing license header.
9841 * docs/grub.texi: Update copyright year.
9843 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9845 Source grub-mkconfig_lib from the build directory at build time.
9846 Suggested by: Vladimir Serbinenko.
9848 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9849 * util/grub-install.in: Define pkgdatadir if not already set, and source
9850 grub-mkconfig_lib from there.
9851 * util/grub-kbdcomp.in: Likewise.
9852 * util/grub-mkconfig.in: Likewise.
9853 * util/grub-mknetdir.in: Likewise.
9854 * util/grub-mkrescue.in: Likewise.
9855 * util/grub-mkstandalone.in: Likewise.
9856 * util/grub-reboot.in: Likewise.
9857 * util/grub-set-default.in: Likewise.
9858 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9860 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9862 Increase warning level.
9864 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9865 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9866 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9867 (TARGET_CFLAGS): Likewise.
9868 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9869 * grub-core/Makefile.core.def (decompressor_xz): Add
9870 -Wno-unreachable-code.
9871 (normal): Add -Wno-redundant-decls.
9872 (xzio): Add -Wno-unreachable-code.
9873 (lzopio): Add -Wno-redundant-decls -Wno-error.
9874 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9875 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9876 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9877 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9878 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9879 * grub-core/kern/i386/coreboot/init.c: Add exception to
9880 -Wsuggest-attribute=noreturn.
9881 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9882 * grub-core/kern/ia64/dl_helper.c: Likewise.
9883 * grub-core/kern/mips/dl.c: Likewise.
9884 * grub-core/kern/sparc64/dl.c: Likewise.
9885 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9886 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9888 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9889 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9890 * grub-core/loader/mips/linux.c: Likewise.
9891 * grub-core/loader/multiboot_elfxx.c: Likewise.
9892 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9893 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9894 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9895 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9897 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9898 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9901 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9903 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9906 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9908 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9909 Avoid improper use of strings.
9910 (grub_cmd_legacy_initrdnounzip): Likewise.
9912 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9914 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9916 (grub_util_info): Likewise.
9917 (grub_util_error): Likewise.
9919 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9921 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9922 * util/grub-fstest.c (fstest): Likewise.
9924 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9926 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9927 (grub_md_sha512_real): Likewise.
9928 (grub_util_get_geli_uuid): Likewise.
9929 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9930 (grub_util_biosdisk_open): Fix format specification.
9931 Respect format security.
9932 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9933 (xrealloc): Likewise.
9934 (xasprintf): Likewise.
9936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9938 * util/import_gcry.py: Include grub/crypto.h in init.c.
9940 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9942 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9943 (generate_image): Make prefix a const char *.
9944 Fix format specifications. Respect format security.
9945 Avoid void * arithmetics.
9947 (argp_parser): Remove unused variable. Respect format security.
9948 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9949 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9950 (count_funcs): Remove unused variable.
9951 (relocate_addresses): Fix format specification.
9952 Disable x86-64 with elf32. Remove unused variables.
9953 (add_fixup_entry): Avoid shadowing.
9954 (make_reloc_section): Fix format specification.
9956 (locate_sections): Fix format specifications.
9957 (load_image): Avoid shadowing.
9959 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9961 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9962 Fix format specifications. Respect format security.
9963 Don't translate already translated grub_errmsg.
9964 (argp_parser): Remove unused variable
9966 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9968 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9970 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9972 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9973 (main): Likewise. Use xmalloc. Respect format security.
9975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9977 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9979 (argp_parser): Remove unused variable.
9981 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9983 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9984 (add_pixel): Make static.
9985 (add_font): Likewise.
9986 (write_string_section): Make name and str a const char *.
9987 (write_be16_section): Make name a const char *.
9988 (print_glyphs): Make static.
9989 (write_font_ascii_bitmap): Likewise.
9990 (write_font_width_spec): Likewise.
9991 (write_font_pf2): Likewise.
9992 (argp_parser): Remove unused variable.
9993 Respect format security.
9994 (main): Avoid shadowing. Respect format security.
9996 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9998 * util/grub-editenv.c (argp_parser): Make static.
9999 (create_envblk_file): Use xmalloc.
10000 (open_envblk_file): Likewise.
10001 Resepect format security.
10002 (set_variables): Respect format security.
10004 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10006 * util/getroot.c (grub_find_device): Respect format security.
10007 (get_mdadm_uuid): Remove unused variable.
10008 (grub_util_pull_device): Dont call gettext on already translated
10010 (find_system_device): Remove unused variable.
10011 (grub_util_get_grub_dev): Likewise.
10012 (grub_make_system_path_relative_to_its_root): Respect format security.
10014 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10016 * util/grub-fstest.c (execute_command): Make first argument
10018 (read_file): Avoid shadowing.
10019 Reuse underlying error message if device open fails.
10020 (cmd_cmp): Respect format security.
10021 (root): Make const char *.
10022 (fstest): Remove args argument and use global copy.
10023 Respect format security.
10024 (argp_parser): Make static.
10025 (main): Make default_root const char *.
10027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10029 * util/grub-mount.c (root): Make const char *.
10030 (execute_command): Make first argument a const char *.
10031 (fuse_init): Respect format security.
10032 (argp_parser): Make static. Remove unused variable.
10033 (main): Make default_root a const char *.
10034 Respect format security.
10036 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10038 * util/grub-probe.c (probe): Don't call gettext on already translated
10040 Remove unused variables.
10041 (argp_parser): Remove unused variable.
10043 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10045 * util/grub-script-check.c (argp_parser): Remove unused variable.
10046 (main): Rename read to curread to avoid shadowing.
10048 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10050 * util/misc.c (grub_util_write_image_at): Fix format specification.
10051 (grub_util_write_image): Likewise.
10052 (grub_script_execute_argument_to_string): Removed (unused).
10053 (grub_script_execute_menuentry): Likewise.
10054 (grub_putchar): Likewise.
10056 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10058 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
10059 (FUNCTION) [GRUB_UTIL]: Likewise.
10060 (VARIABLE) [GRUB_UTIL]: Likewise.
10062 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10064 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
10065 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
10067 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10069 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
10072 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10074 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10075 (LzmaEnc_SaveState): Removed (unused).
10076 (LzmaEnc_RestoreState): Likewise.
10077 (LzmaEnc_InitPriceTables): Made static.
10078 (LzmaEnc_Construct): Likewise.
10079 (LzmaEnc_FreeLits): Likewise.
10080 (LzmaEnc_Destruct): Likewise.
10081 (LzmaEnc_Init): Likewise.
10082 (LzmaEnc_InitPrices): Likewise.
10083 (LzmaEnc_Finish): Likewise.
10084 (LzmaEnc_PrepareForLzma2): Removed (unused).
10085 (LzmaEnc_MemPrepare): Likewise.
10086 (LzmaEnc_GetNumAvailableBytes): Likewise.
10087 (LzmaEnc_GetCurBuf): Likewise.
10088 (LzmaEnc_CodeOneMemBlock): Likewise.
10090 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10092 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10093 (grub_util_ldm_embed): Likewise.
10095 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10097 * util/grub-editenv.c (print_var): Rename name to varname to
10099 (main): Rename index to curindex to avoid shadowing.
10100 Make filename a const char *.
10102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10104 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10105 to arg_getline to avoid shadowing.
10107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10109 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10110 disk_ to avoid shadowing.
10112 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10114 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10115 curindex to avoid shadowing.
10117 (MatchFinder_GetNumAvailableBytes): Make static.
10119 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10121 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10124 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10126 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10127 argument from encrypt to do_encrypt to avoid shadowing.
10129 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10131 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10132 incorrect nesting of #if's.
10134 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10136 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10137 checks which are always false on some platforms.
10138 (grub_cmd_lsacpi): Likewise.
10139 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10140 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10143 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10146 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10148 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10150 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10151 re_dfa_t to avoid breaking alignment invariants.
10152 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10153 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10155 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10157 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10158 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10160 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10162 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10165 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10167 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10168 conserve alignment invariants.
10169 (grub_ehci_ehcc_read16): Likewise.
10170 (grub_ehci_oper_read32): Likewise.
10171 (grub_ehci_oper_write32): Likewise.
10172 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10173 Conserve alignment invariants.
10175 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10177 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10178 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10181 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10183 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10184 Remove unused variable.
10186 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10188 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10191 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10193 * include/grub/net.h: Remove double declarations.
10195 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10197 Remove "payload" command in ia64 Linux loader since I couldn't
10198 find any evidence of it being used for anything.
10199 Replace "relocate" command with an environment variable
10201 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10203 (ia64_boot_payload): Removed.
10204 (last_payload): Likewise.
10205 (RELOCATE_OFF): Likewise.
10206 (RELOCATE_ON): Likewise.
10207 (RELOCATE_FORCE): Likewise.
10208 (relocate): Likewise.
10209 (free_pages): Don't free payloads.
10210 (grub_load_elf64): Use common error messages.
10211 Use "linux_relocate" variable.
10212 Increase the space after boot_params.
10213 (grub_cmd_payload): Removed.
10214 (grub_cmd_relocate): Likewise.
10215 (grub_cmd_fpswa): Improve messages.
10216 (cmd_payload): Removed.
10217 (cmd_relocate): Likewise.
10218 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10219 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10221 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10223 Convert UHCI to DMA framework.
10225 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10226 (grub_uhci_pci_iter): Fill new members
10227 (grub_alloc_td): Use P2V and V2P functions.
10228 (grub_free_queue): Likewise.
10229 (grub_alloc_qh): Likewise.
10230 (grub_uhci_setup_transfer): Likewise.
10231 (grub_uhci_check_transfer): Likewise.
10233 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10235 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10236 Remove assignment in if while on it.
10238 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10240 * util/grub-mkstandalone.in: Fix modules directory.
10242 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10244 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10246 (argp_parser): Accept "auto" as compression specification.
10248 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10250 Fix `help' with unloaded modules.
10252 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10253 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10254 (grub_dyncmd_dispatcher): Small stylistic fix.
10255 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10256 explicit help is requested.
10258 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10261 Explicitly init restart while on it.
10263 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10265 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10268 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10270 * util/grub-mknetdir.in: Use . rather than source for POSIX
10273 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10275 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10277 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10279 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10282 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10284 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10287 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10289 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10291 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10293 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10294 iteration of partitions.
10296 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10298 Improve gettext support. Stylistic fixes and error handling fixes while
10301 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10303 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10304 part. Instead setup the correct stack in RM.
10305 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10307 * include/grub/i386/relocator_private.h: New file.
10309 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10311 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10313 * util/grub-fstest.c (options): Add missing DEVICE part.
10315 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10317 Clarify and unify messages.
10319 * grub-core/commands/hashsum.c (options): Unify messages.
10320 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10321 literal-only message as translatable.
10322 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10323 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10324 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10326 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10327 key, not the key used to unlock. Clarify what it's used for.
10328 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10329 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10330 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10331 * util/grub-editenv.c (options): Unify "verbose" message.
10332 * util/grub-fstest.c (read_file): Unify error message.
10333 (fstest): Add quotes around commands.
10334 (options): Unify "verbose" message.
10335 * util/grub-install.in: Add quotes around variable name.
10336 * util/grub-kbdcomp.in: Unify error message.
10337 * util/grub-mkfont.c (main): Likewise.
10338 * util/grub-mkrescue.in: Likewise.
10339 * util/grub-mklayout.c (options): Unify "verbose" message.
10340 * util/grub-mkstandalone.in: Unify help and verbose messages.
10341 * util/grub-mount.c (options): Unify "verbose" message.
10342 * util/grub-probe.c (options): Likewise.
10343 * util/grub-script-check.c (options): Likewise.
10344 * util/grub-setup.c (setup): Unify no-terminator message.
10345 (options): Use DEVICE and not DEV.
10346 Unify "verbose" message.
10347 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10349 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10351 Improve and unify messages.
10353 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10354 name. All users updated.
10355 Print filename in error.
10356 (read_device_map): Print filename in error.
10357 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10358 (grub_util_get_os_disk): Likewise.
10359 (grub_util_biosdisk_get_grub_dev): Likewise.
10360 (grub_util_check_block_device): Likewise.
10361 (grub_util_check_char_device): Likewise.
10362 (grub_make_system_path_relative_to_its_root): Likewise.
10363 * util/grub-editenv.c (create_envblk_file): Likewise.
10364 (open_envblk_file): Likewise.
10365 (write_envblk): Likewise.
10366 * util/grub-fstest.c (cmd_cp): Likewise.
10367 (cmd_cat): Likewise.
10368 (cmd_cmp): Likewise.
10369 * util/grub-menulst2cfg.c (main): Likewise.
10370 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10371 (write_font_width_spec): Likewise.
10372 (write_font_pf2): Likewise.
10373 * util/grub-mkimage.c (generate_image): New argument outname.
10375 Remove unreacheable message.
10376 (options): Unify messages.
10377 (help_filter): Likewise.
10378 * util/grub-mklayout.c (usage): Removed (unused).
10379 (main): Print filename in error.
10380 * util/grub-mkrescue.in: Fix wrong quoting.
10381 * util/grub-setup.c (setup): Print filename in error.
10382 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10383 (check_sas): Likewise.
10384 * util/misc.c (grub_util_get_fp_size): Removed.
10385 (grub_util_get_image_size): Print filename in error.
10386 (grub_util_read_at): Removed.
10387 (grub_util_read_image): Print filename in error.
10388 (grub_util_load_image): Likewise.
10389 (grub_util_write_image_at): New argument filename. All users updated.
10390 Print filename in error.
10391 (grub_util_write_image): New argument filename. All users updated.
10392 Print filename in error.
10393 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10394 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10396 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10398 * grub-core/Makefile.core.def (pxechain): New module.
10399 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10400 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10402 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10403 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10405 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10407 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10408 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10409 * include/grub/err.h (grub_error_saved): New struct.
10410 (grub_errmsg): Make array size explicit.
10411 * include/grub/misc.h (grub_error_save): New function.
10412 (grub_error_load): Likewise.
10413 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10414 (grub_error_push): Update `errno' member name.
10415 (grub_error_pop): Likewise
10416 * grub-core/net/tftp.c (tftp_data): New member save_err.
10417 (tftp_receive): Save error.
10418 (tftp_open): Restore error.
10420 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10422 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10423 to real mode down to execute A20-related code in protected mode as
10426 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10428 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10429 NULL when the argument `level' has an unexpected value.
10431 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10433 Move platform-dependent files from $prefix to $prefix/$platform.
10435 * config.h.in (GRUB_TARGET_CPU): New definition.
10436 (GRUB_PLATFORM): Likewise.
10437 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10438 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10439 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10440 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10441 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10442 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10443 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10444 * grub-core/normal/term.c (read_terminal_list): Likewise.
10445 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10447 (grub_gettext_init_ext): Likewise.
10448 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10450 * util/grub-install.in: Update directories.
10451 * util/grub-mknetdir.in: Likewise.
10452 * util/grub-mkrescue.in: Likewise.
10454 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10456 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10457 grub_error framework. All users updated.
10459 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10461 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10462 lists (by always binsearching), improve caching (cache strings
10463 used for binsearch, not only results), improve
10464 maintainability (by using more structured binary search) and correct
10467 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10469 * grub-core/script/execute.c (grub_script_return): Fix warning.
10471 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10473 * grub-core/script/execute.c (grub_script_return): Fix potential
10475 Reported by: Jim Meyering.
10477 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10479 * po/POTFILES.in: Regenerate.
10480 * util/grub-install.in: Gettextize the strings missed in first pass.
10482 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10484 * Makefile.util.def (grub-mkdevicemap): Removed.
10485 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10486 * include/grub/util/deviceiter.h: Removed.
10487 * util/deviceiter.c: Likewise.
10488 * util/getroot.c (grub_util_get_os_disk): New function.
10489 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10490 replacement for EFI.
10491 * util/grub-mkdevicemap.c: Removed.
10492 * util/grub-probe.c (probe): Handle PRINT_DISK.
10493 (argp_parser): Handle -t disk.
10495 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10497 * util/grub-mkfont.c: Migrate to argp.
10498 * util/grub-mklayout.c: Likewise.
10499 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10500 * util/grub-mkrelpath.c: Likewise.
10501 * util/grub-probe.c: Likewise.
10502 * util/grub-script-check.c: Likewise.
10504 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10506 * util/grub-reboot.in: Add missing datarootdir.
10507 Add missing newline.
10508 * util/grub-set-default.in: Add missing datarootdir.
10509 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10510 * util/grub-mkrescue.in: Likewise.
10512 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10514 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10516 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10518 * util/grub-kbdcomp.in: Add decent help and gettextize.
10519 * docs/man/grub-kbdcomp.h2m: New file.
10521 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10523 Migrate grub-mkimage.c to argp.
10525 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10526 (grub-setup): Likewise.
10527 * util/grub-setup.c (print_version): Move to ...
10528 * util/argp_common.c (print_version): ... here.
10529 * util/grub-setup.c (argp_program_version_hook): Move to ...
10530 * util/argp_common.c (argp_program_version_hook): ... here.
10531 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10533 * util/grub-mkimage.c (main): Migrate to argp.
10535 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10537 * util/grub-mkrescue.in: Use same message as
10538 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10539 for better translations.
10541 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10543 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10544 options with generic grub-mkrescue.in with the goal of future
10547 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10549 * grub-core/kern/mm.c: Add missing include of i18n.h
10550 * grub-core/lib/relocator.c: Likewise.
10552 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10554 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10556 (allocate_pages): Check return value.
10557 Replace fatal with error.
10558 (grub_linux_boot): Replace printf with dprintf.
10559 Check find_mmap_size return value.
10560 Replace fatal with error.
10561 Don't call grub_machine_fini.
10562 (grub_load_elf64): Replace printf with dprintf.
10563 (grub_cmd_linux): Likewise.
10564 (grub_cmd_initrd): Likewise.
10565 (grub_cmd_payload): Likewise.
10567 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10569 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10571 * grub-core/video/radeon_fuloong2e.c
10572 (grub_video_radeon_fuloong2e_setup): Likewise.
10573 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10574 * grub-core/video/video.c (grub_video_set_mode): Don't override
10575 standard out of memory message.
10577 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10579 NetBSD disk wedge support.
10581 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10582 [__NetBSD__]: Handle NetBSD disk wedges.
10583 * util/getroot.c (convert_system_partition_to_system_disk)
10584 [__NetBSD__]: Likewise.
10586 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
10588 * util/grub-mkconfig.in: Use umask rather than chmod to create
10589 grub.cfg.new to avoid insecure grub.cfg.
10591 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10593 * grub-core/commands/ls.c: Gettextize.
10594 * grub-core/commands/setpci.c: Likewise.
10595 * grub-core/commands/videotest.c: Likewise.
10596 * grub-core/disk/geli.c: Likewise.
10597 * grub-core/kern/mm.c: Likewise.
10598 * grub-core/lib/relocator.c: Likewise.
10599 * grub-core/loader/efi/appleloader.c: Likewise.
10600 * grub-core/loader/i386/xnu.c: Likewise.
10601 * grub-core/loader/ia64/efi/linux.c: Likewise.
10602 * grub-core/loader/xnu.c: Likewise.
10603 * grub-core/net/dns.c: Likewise.
10604 * grub-core/net/net.c: Likewise.
10605 * grub-core/script/lexer.c: Likewise.
10606 * grub-core/script/parser.y: Likewise.
10607 * grub-core/script/yylex.l: Likewise.
10608 * util/getroot.c: Likewise.
10609 * util/grub-setup.c: Likewise.
10611 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10613 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10616 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10618 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10620 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10622 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10624 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10625 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10627 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10629 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10630 * util/grub-install.in: Gettextize.
10631 * util/grub-mkconfig.in: Likewise.
10632 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10634 (grub_warn): Gettextize.
10635 * util/grub-mknetdir.in: Gettextize.
10636 * util/grub-mkrescue.in: Likewise.
10637 * util/grub-mkstandalone.in: Likewise.
10638 * util/grub-reboot.in: Likewise.
10639 * util/grub-set-default.in: Likewise.
10640 * util/grub.d/00_header.in: Likewise.
10641 * util/grub.d/10_hurd.in: Likewise.
10642 * util/grub.d/10_kfreebsd.in: Likewise.
10643 * util/grub.d/10_linux.in: Likewise.
10644 * util/grub.d/10_netbsd.in: Likewise.
10645 * util/grub.d/10_windows.in: Likewise.
10646 * util/grub.d/20_linux_xen.in: Likewise.
10647 * util/grub.d/30_os-prober.in: Likewise.
10648 * po/POTFILES-shell.in: Regenerate.
10650 2012-02-03 Richard Laager <rlaager@wiktel.com>
10652 * util/grub-mkimage.c (main): Fix format-security warning.
10653 * util/grub-mkrelpath.c (main): Likewise.
10654 * util/grub-probe.c (main): Likewise.
10656 2012-02-03 Richard Laager <rlaager@wiktel.com>
10658 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10660 Put back lost PRINT_DRIVE.
10662 2012-02-03 Richard Laager <rlaager@wiktel.com>
10664 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10665 (grub_guess_root_devices): Replace strlen with sizeof.
10667 (find_root_devices_from_poolname): Remove unused variable.
10670 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10672 Support install on multi-device filesystems.
10674 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10675 (grub_guess_root_devices): ...this. Return char **. All users updated.
10676 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10678 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10679 (find_root_devices_from_poolname): ... here.
10680 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10682 (grub_guess_root_device): Rename to ...
10683 (grub_guess_root_devices): ... this. Return char **. All users updated.
10684 * util/grub-install.in: Handle multi-device filesystems.
10685 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10686 argument. All users updated.
10687 Handle multi-device filesystems.
10688 Use 'delim' as separator.
10689 Remove device check to allow filesystems on file.
10690 (main): Support -0 argument. Handle multi-device.
10691 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10692 Fix a cross-device check while on it.
10693 (arguments): Remove root_dev.
10694 (argp_parser): Remove -r.
10695 (main): Remove root_dev.
10697 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10699 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10701 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10703 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10705 Reported by: NODA, Kai <nodakai>.
10707 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10711 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10713 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10714 (grub_ehci_setup_qh): Likewise.
10715 (grub_ehci_find_qh): Likewise.
10716 (grub_ehci_transaction): Likewise.
10717 (grub_ehci_setup_transfer): Likewise.
10718 (grub_ehci_check_transfer): Likewise.
10719 (grub_ehci_portstatus): Likewise.
10720 (grub_ehci_detect_dev): Likewise.
10721 (grub_ehci_transfer_controller_data): New field td_last_phys.
10722 (grub_ehci_setup_transfer): Fill td_last_phys.
10723 (grub_ehci_check_transfer): Use td_last_phys.
10725 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10727 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10728 if no submenu is present.
10730 2012-02-01 Aleš Nesrsta <starous@volny.cz>
10734 * include/grub/usb.h (grub_usbms_protocol_t): New values
10735 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10736 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10737 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10738 (grub_usbms_dev): Add subclass, protocol and intrpt.
10739 Remove in_maxsz and out_maxsz.
10740 (grub_usbms_reset): Rename to ...
10741 (grub_usbms_bo_reset): .. this.
10742 (grub_usbms_cbi_cmd): New function.
10743 (grub_usbms_cbi_reset): Likewise.
10744 (grub_usbms_reset): Likewise.
10745 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10746 (grub_usbms_transfer): Rename to ...
10747 (grub_usbms_transfer_bo): ... this.
10748 (grub_usbms_transfer_cbi): Likewise.
10749 (grub_usbms_transfer): Likewise.
10751 2012-02-01 Aleš Nesrsta <starous@volny.cz>
10752 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10754 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10755 the support for the CS5536 modification thereos and few bugfixes.
10757 * grub-core/Makefile.core.def (ehci): New module.
10758 * grub-core/bus/usb/ehci.c: New file.
10759 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10760 port and hubaddr. All users updated.
10761 Save port and hubaddr into dev structure.
10762 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10764 * include/grub/pci.h (grub_dma_phys2virt): New function.
10765 (grub_dma_virt2phys): Likewise.
10766 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10768 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10770 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10771 check as some mkfs implementations omit it.
10773 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10775 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10777 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10779 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10780 Add new member volname2.
10781 (grub_jfs_label): Use volname2 if available.
10783 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10786 over last_mounted as seen in image generated by mkfs.nilfs2.
10787 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10789 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10791 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10792 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10793 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10795 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10797 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10800 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10802 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10803 subvolume name (by removing a bogus and useless check).
10805 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10807 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10808 sizeof while on it.
10810 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10812 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10813 (grub_scsi_read_capacity10): ... this.
10814 (grub_scsi_read_capacity16): New function.
10815 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10817 Fix off-by-one error.
10818 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10820 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10821 (grub_scsi_read_capacity10): ... this.
10822 (grub_scsi_read_capacity_data): Rename to ...
10823 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10824 (grub_scsi_read_capacity16): New struct.
10825 (grub_scsi_read_capacity16_data): Likewise.
10826 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10827 grub_scsi_cmd_read_capacity10.
10828 New command grub_scsi_cmd_read_capacity16.
10830 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10832 SCSI >2TiB support.
10834 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10835 (grub_scsi_write16): Likewise.
10836 (grub_scsi_read): Use read16 when necessary.
10837 (grub_scsi_write): Likewise.
10838 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10839 (grub_scsi_write16): Likewise.
10840 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10842 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10844 SCSI write support (for usbms mainly).
10846 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10848 (grub_scsi_write): Implement.
10849 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10851 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10853 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10856 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10858 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10860 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10862 * po/POTFILES.in: Regenerate.
10864 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10866 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10867 with grub_printf to avoid unnecessary fatal failure.
10869 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10871 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10872 (INT_MAX): Likewise.
10873 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10874 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10875 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10876 (strcpy): Likewise.
10877 (strstr): Likewise.
10878 (strchr): Likewise.
10879 (strncpy): Likewise.
10880 (strcat): Likewise.
10881 (strncat): Likewise.
10882 (strcoll): Likewise.
10883 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10884 (GRUB_INT_MAX): Likewise.
10886 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10888 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10890 (optimize_utf8): Likewise.
10891 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10893 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10895 * grub-core/boot/i386/pc/lnxboot.S: Use
10896 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10897 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10899 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10901 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10903 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10905 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10906 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10907 now to avoid double free.
10908 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10910 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10911 * util/grub-probe.c (escape_of_path): Always return a new copy.
10912 (print_full_name): Escape path.
10913 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10914 Fix hints on abstractions.
10916 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10918 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10919 Don't add "root" line if no compatibility hont is available.
10920 Suggested by: Seth Goldberg.
10922 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10924 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10925 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10926 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10927 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10929 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10931 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10933 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10935 * util/grub-pe2elf.c (ehdr): Make static.
10937 (num_sections): Likewise.
10938 (offset): Likewise.
10940 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10942 Eliminate ofpath limits and possible overflows.
10944 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10945 (OF_PATH_MAX): Removed.
10946 (MAX_DISK_CAT): New const.
10947 (find_obppath): Use allocated rather than preallocated buffer.
10948 Return result. Argument of_path removed. All users updated.
10949 Add missing fdstat.
10950 (xrealpath): New function.
10951 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10952 Allocate rather than use preallocated buffer. All users updated.
10953 (__of_path_common): Use allocated rather than preallocatecd buffer.
10954 Return result. Argument of_path removed. All users updated.
10955 (vendor_is_ATA): Read only needed part form the file.
10956 (check_sas): Allocate depending on contents rather than fixed.
10957 (main) [STANDALONE]: Handle NULL result.
10959 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10961 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10963 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10965 Cryptodisk write support.
10967 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10968 (grub_cryptodisk_decrypt): Moved logic to ...
10969 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10970 (grub_cryptodisk_write): Implement.
10971 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10972 (grub_util_fd_write): ... this. Make global.
10973 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10977 * include/grub/list.h (grub_list_remove): Don't crash if element is
10980 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10982 Rename ofconsole to console.
10984 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10985 as sysnonym to console.
10986 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10987 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10988 Rename grub_ofconsole_ to grub_console_. All users updated
10989 (grub_console_term_output): Rename "ofconsole" to "console".
10990 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10993 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10995 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10997 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10998 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10999 GRUB_DISK_DEVICE_FILE_ID.
11001 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11003 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
11004 and improve performance.
11006 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11008 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
11009 missing ieee1275/ prefix on whole disk.
11011 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11013 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
11014 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11016 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11018 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
11020 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11022 Merge common RAID and LVM logic to an abstract diskfilter.
11023 Add LDM support using the same framework.
11025 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
11026 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
11027 (libgrubmods): Remove grub-core/disk/raid.c and
11028 grub-core/partmap/gpt.c.
11029 * grub-core/Makefile.core.def (ldm): New module.
11030 (raid): Renamed to diskfilter. All users updated.
11031 * grub-core/disk/raid.c: Moved to ...
11032 * grub-core/disk/diskfilter.c: ... here.
11033 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
11035 (find_array): Renamed to ...
11036 (find_lv): ... this. Support multi-LV. Skip nameless LVs
11037 (grub_is_array_readable): Renamed to ...
11038 (grub_is_lv_readable): ... this. Support multinode hierarchy.
11039 (insert_array): New argument id.
11040 (is_node_readable): New function.
11041 (scan_device): Rename to ...
11042 (scan_disk): .. this. Restrict to one disk.
11043 (scan_devices): New function.
11044 (grub_diskfilter_iterate): Support multi-LV.
11045 Skip invisible and nameless LVs.
11046 (grub_diskfilter_memberlist): Support multi-LV.
11047 (grub_diskfilter_read_node): New function.
11048 (grub_raid_read): Most of logic moved to ...
11049 (read_segment): ... here
11050 (read_lv): New function.
11051 (grub_diskfilter_get_vg_by_uuid): New function.
11052 (grub_diskfilter_make_raid): Likewise.
11053 * grub-core/disk/ldm.c: New file.
11054 * grub-core/disk/lvm.c (vg_list): Removed.
11055 (lv_count): Likewise.
11056 (scan_depth): Likewise.
11057 (is_lv_readable): Likewise.
11058 (grub_lvm_getvalue): Advance pointer past the number.
11059 (find_lv): Removed.
11060 (do_lvm_scan): Refactored into ...
11061 (grub_lvm_detect): ... this. Support raid.
11062 (grub_lvm_iterate): Removed.
11063 (grub_lvm_memberlist): Likewise.
11064 (grub_lvm_open): Likewise.
11065 (grub_lvm_close): Likewise.
11066 (read_lv): Likewise.
11067 (read_node): Likewise.
11068 (is_node_readable): Likewise.
11069 (is_lv_readable): Likewise.
11070 (grub_lvm_read): Likewise.
11071 (grub_lvm_write): Likewise.
11072 (grub_lvm_dev): Use diskfilter
11073 (GRUB_MOD_INIT): Likewise.
11074 (GRUB_MOD_FINI): Likewise.
11075 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11077 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11078 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11079 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11080 grub_diskfilter_read_node.
11081 Fix a bug with xor.
11082 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11083 grub_diskfilter_read_node.
11084 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11085 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11086 (grub_disk_dev_iterate): Move from here...
11087 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11088 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11090 (grub_hostdisk_find_partition_start): Likewise.
11091 (grub_hostdisk_os_dev_to_grub_drive): New function.
11092 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11093 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11094 * util/getroot.c (make_device_name): ... here.
11095 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11097 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11098 * grub-core/kern/emu/hostdisk.c
11099 (convert_system_partition_to_system_disk): Move to ...
11100 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11101 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11102 * util/getroot.c (device_is_wholedisk): ... here.
11103 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11104 * util/getroot.c (find_system_device): ... here.
11105 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11107 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11108 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11110 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11112 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11114 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11115 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11116 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11118 * include/grub/raid.h: Renamed to ...
11119 * include/grub/diskfilter.h: ... this.
11120 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11121 (GRUB_RAID_LAYOUT_*): Make into array.
11122 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11123 (grub_diskfilter_vg): New struct.
11124 (grub_diskfilter_pv_id): Likewise.
11125 (grub_raid_member): Removed.
11126 (grub_raid_array): Likewise.
11127 (grub_diskfilter_pv): New struct.
11128 (grub_diskfilter_lv): Likewise.
11129 (grub_diskfilter_segment): Likewise.
11130 (grub_diskfilter_node): Likewise.
11131 (grub_diskfilter_get_vg_by_uuid): New proto.
11132 (grub_raid_register): Inline.
11133 (grub_diskfilter_unregister): Likewise.
11134 (grub_diskfilter_make_raid): New proto.
11135 (grub_diskfilter_vg_register): Likewise.
11136 (grub_diskfilter_read_node): Likewise.
11137 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11138 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11139 (grub_util_is_ldm): Likewise.
11140 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11141 (grub_hostdisk_find_partition_start): Likewise.
11142 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11143 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11145 (grub_gpt_partition_map_iterate): New proto.
11146 * include/grub/lvm.h (grub_lvm_vg): Removed.
11147 (grub_lvm_pv): Likewise.
11148 (grub_lvm_lv): Likewise.
11149 (grub_lvm_segment): Likewise.
11150 (grub_lvm_node): Likewise.
11151 * util/getroot.c [...]
11152 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11153 (probe_abstraction): Likewise.
11154 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11155 (main): Remove dead logic.
11157 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11159 Simplify root device discover and don't fail when trying to open
11162 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11164 (get_diskname_from_path): Likewise.
11165 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11168 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11170 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11172 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11174 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11177 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11179 * util/grub-install.in: Add missing \.
11180 Reported by: gentoofan
11182 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11184 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11185 (direct_read): Use correct compressed size.
11186 (grub_squash_read_data): Likewise.
11188 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11190 * docs/grub.texi (Platform limitations): New section.
11191 (Platform-specific operations): Likewise.
11192 * docs/grub-dev.texi (Porting): Likewise.
11194 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11196 IEEE1275 disk write support.
11198 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11200 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11201 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11202 and seek loginc to ...
11203 (grub_ofdisk_prepare): ... here.
11204 (grub_ofdisk_write): Implement.
11206 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11208 ARC disk write support.
11210 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11211 (reopen): New argument writable. All users updated.
11212 Handle required access mode.
11213 (grub_arcdisk_write): Implement.
11214 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11215 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11217 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11219 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11220 (read_sblock): Don't attempt to read superblocks outside the disk size.
11222 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11224 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11225 first superblock to find the second one when possible.
11227 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11229 * util/grub-install.in: Fix an ARC bug.
11230 Print a warning if no platform-specific setup is available.
11232 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11234 Use static allocation rather than scratch pointer in reed_solomon.
11235 It decreases its size significantly and avoids a variable in .text.
11237 * grub-core/lib/reed_solomon.c (scratch): Removed.
11238 (chosenstat): New const or static array.
11240 (errpot): Likewise.
11241 (errpos): Likewise.
11244 (errvals): Likewise.
11245 (eqstat): Likewise.
11246 (pol_evaluate): Replace x with log_x argument. All users updated.
11247 (syndroms): Removed.
11248 (gauss_solve): Use statically allocated arrays.
11249 (rs_recover): Likewise.
11250 Calculate syndroms directly.
11251 (decode_block): Use statically allocated arrays.
11252 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11253 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11255 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11257 Eliminate fixed limit on reed solomon decoder length.
11259 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11260 rather than hardcoding the address.
11261 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11262 no_reed_solomon_length.
11263 Move gate_a20 to no-reed-solomon part.
11264 Don't force a particular size of no reed-solomon part.
11265 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11267 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11268 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11270 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11272 * grub-core/commands/wildcard.c (match_files): Handle filenames
11273 without explicit device.
11274 (wildcard_expand): Don't add explicit device if not already present.
11275 * tests/grub_script_echo1.in: Add a new expansion test.
11277 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11279 Replace single-linked with double-linked lists. It results in more
11280 compact and more efficient code.
11282 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11283 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11284 (grub_list_remove): Moved from here ...
11285 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11286 (grub_prio_list_insert): Set prev.
11287 * include/grub/list.h (grub_list): Add prev. All users updated.
11289 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11291 Handle newer autotools. Add some missing quotes while on it.
11293 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11294 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11295 (pkgdata_DATA): ... here.
11296 * Makefile.util.def (update-grub_lib): Removed.
11297 * conf/Makefile.common (pkglib_DATA): Removed.
11298 (pkglib_SCRIPTS): Likewise.
11299 (pkgdata_DATA): New variable.
11300 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11302 Add missing quotes.
11303 Remove unused variable while on it.
11304 * tests/util/grub-shell.in: Likewise.
11305 * util/grub-install.in: Likewise.
11306 * util/grub-mkconfig.in: Likewise.
11307 * util/grub-mknetdir.in: Likewise.
11308 * util/grub-mkrescue.in: Likewise.
11309 * util/grub-mkstandalone.in: Likewise.
11310 * util/grub.d/00_header.in: Likewise.
11311 * util/grub.d/10_hurd.in: Likewise.
11312 * util/grub.d/10_illumos.in: Likewise.
11313 * util/grub.d/10_kfreebsd.in: Likewise.
11314 * util/grub.d/10_linux.in: Likewise.
11315 * util/grub.d/10_netbsd.in: Likewise.
11316 * util/grub.d/10_windows.in: Likewise.
11317 * util/grub.d/20_linux_xen.in: Likewise.
11318 * util/grub.d/30_os-prober.in: Likewise.
11319 * util/update-grub_lib.in: Removed.
11321 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
11323 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11324 a workaround for intel problem.
11326 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
11327 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11328 2012-01-23 pfsmorigo
11330 * util/grub-install.in: Support dd'in into PreP partition.
11331 * util/grub-probe.c (probe): Support discovering partition type.
11332 (main): Support -t msdos_parttype.
11334 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11336 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11337 infinite recursion using counter.
11338 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11339 init to skip it if the magic check fails.
11340 (dec_stream_header): Init s->crc32.
11342 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11343 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
11344 2012-01-22 Richard Laager <rlaager@wiktel.com>
11346 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11348 (find_bestub): Determine correct size.
11349 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11350 (scan_disk): Align the size down.
11351 Call check pool before find_bestub to have ashift.
11353 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11355 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11356 dprintf in no-malloc zone.
11358 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11360 * configure.ac: Add back in test for limits.h.
11362 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11364 Support 4K-sector NTFS.
11366 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11367 (grub_ntfs_data): Remove blocksize.
11368 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11369 Remove data argument. All users updated.
11371 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11373 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11374 being in .text to avoid dprel references.
11375 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11376 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11377 (grub_arch_highmemsize): Likewise.
11378 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11379 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11380 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11382 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11384 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11386 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11387 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11389 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11391 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11393 (grub_set_datetime_cmos): Likewise.
11395 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11397 Make XZ compression parameters dependent on target and not host CPU.
11399 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11400 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11402 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11404 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11405 set but not used variable.
11407 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11409 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11410 created when no uuid support is compiled into mkfs.reiser.
11412 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11414 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11415 (utf8_to_macroman): Do the opposite.
11416 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11418 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11420 * configure.ac: Refise build qemu_mips w/o unifont.
11422 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11424 Eliminate grub_min/grub_max prone to overflow usage.
11426 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11427 (poll_nonroot_hub): Likewise.
11428 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11429 (grub_affs_label): Likewise.
11430 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11431 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11432 (grub_hfs_label): Likewise.
11433 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11434 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11435 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11436 (zap_leaf_array_get): Likewise.
11437 (dnode_get_path): Likewise.
11438 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11439 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11440 * grub-core/script/execute.c (grub_script_break): Likewise.
11441 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11443 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11444 * include/grub/misc.h (grub_min): Removed.
11445 (grub_max): Likewise.
11447 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11449 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11452 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11454 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11456 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11458 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11460 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11462 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11463 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11465 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11467 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11468 rather than a hack for grub_strncasemap.
11470 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11472 Support multiple initrds
11473 Note: part of this was accidently committed in r3739.
11475 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11477 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11478 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11479 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11480 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11481 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11483 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11485 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11486 disks with unknown size.
11487 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11489 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11491 Remove defines pertaining to arbitrary limits not affecting GRUB
11494 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11495 (EXT2_MAX_SYMLINKCNT): Likewise.
11496 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11497 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11498 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11499 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11500 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11501 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11502 (DN_MAX_OBJECT_SHIFT): Likewise.
11503 (DN_MAX_OFFSET_SHIFT): Likewise.
11504 (DN_MAX_OBJECT): Likewise.
11505 (DNODES_PER_LEVEL_SHIFT): Likewise.
11506 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11507 (SPA_MAXBLOCKSIZE): Likewise.
11508 (SPA_BLOCKSIZES): Likewise.
11509 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11510 (MZAP_MAX_BLKSZ): Likewise.
11512 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11514 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11515 handle NULL appropriately.
11518 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11522 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11524 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11525 * configure.ac: Fix efiemu check.
11527 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11529 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11531 Reported by: adamwill
11533 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11535 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11537 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11539 Fix handling of wide characters in gfxterm.
11541 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11542 (clear_char): Likewise.
11543 (paint_char): Skip code == NULL chars.
11544 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11546 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11548 * grub-core/normal/charset.c: Move comment to right place.
11550 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11552 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11553 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11554 (grub_affs_mount): Revert the correct version checking.
11556 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11558 * docs/grub.texi (Unicode): Mention several other unsupported features.
11560 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11562 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11563 case statements as compile-time one.
11564 (direct_read): Prevent spurious warnings.
11565 (grub_squash_read_data): Likewise.
11567 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11569 Various squash4 fixes and LZO and XZ support.
11571 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11572 Add xzembed source files.
11573 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11574 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11575 (grub_squash_inode): New subtype long_dir.
11576 (SQUASH_TYPE_LONG_DIR): New inode type.
11577 (COMPRESSION): New enum.
11578 (XZBUFSIZ): New const.
11579 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11580 (read_chunk): Use data->decompress.
11581 (zlib_decompress): New function.
11582 (lzo_decompress): Likewise.
11583 (xz_decompress): Likewise.
11584 (squash_mount): Set new data fields.
11585 (grub_squash_iterate_dir): Handle long dir.
11586 (squash_unmount): Free xzdec and xzbuf.
11587 (grub_squash_open): Check ino type.
11588 (direct_read): Stylistic fixes. Use data->decompress.
11589 (grub_squash_read_data): Likewise.
11590 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11591 (get_byte): Likewise.
11592 (grub_zlib_disk_read): Removed.
11593 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11594 (GRUB_POSIX_BOOL_DEFINED): New define.
11595 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11596 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11597 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11598 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11600 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11602 Don't override more informative errors.
11604 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11605 * grub-core/font/font.c (open_section): Likewise.
11606 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11607 filename. Don't override errors.
11608 (grub_cmd_openbsd_ramdisk): Don't override errors.
11609 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11610 (grub_cmd_initrd): Likewise.
11611 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11612 (grub_cmd_initrd): Likewise.
11613 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11614 (grub_cmd_linux): Likewise.
11615 (grub_cmd_initrd): Likewise.
11616 (grub_cmd_payload): Likewise.
11617 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11618 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11619 (grub_cmd_module): Likewise.
11620 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11621 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11622 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11623 (grub_cmd_xnu_mkext): Likewise.
11624 (grub_cmd_xnu_ramdisk): Likewise.
11625 (grub_xnu_check_os_bundle_required): Likewise.
11626 (grub_xnu_load_kext_from_dir): Likewise.
11627 (grub_cmd_xnu_kextdir): Likewise.
11628 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11630 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11632 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11633 as 1024 in block size field. Found on one of my test images.
11634 Small optimisation while on it.
11636 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11638 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11639 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11640 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11641 performance fixes while on it.
11642 (grub_sfs_close): Fix memory leak while on it.
11643 (grub_sfs_label): Convert Latin1 to UTF-8.
11645 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11647 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11648 space to avoid overflows.
11649 (grub_hfs_label): Convert from macroman to UTF-8.
11651 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11653 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11655 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11657 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11659 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11661 * unicode: Import Unicode 6.0 data.
11663 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11665 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11668 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11670 Avoid cutting in the middle of UTF-8 character.
11672 * include/grub/charset.h (grub_getend): New function.
11673 * grub-core/script/function.c (grub_script_function_find): Use
11675 * grub-core/normal/completion.c (add_completion): Likewise.
11677 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11679 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11680 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11681 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11682 (GRUB_UNICODE_TAG_END): Likewise.
11683 (GRUB_UNICODE_LAST_VALID): Likewise.
11685 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11687 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11688 len and make it smaller. All users updated.
11689 * util/import_unicode.py: Put length and not end character.
11692 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11694 Make better Unicode-compliant and unify some UTF-8 code pathes.
11696 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11698 (grub_is_valid_utf8): Use grub_utf8_process.
11699 Check resulting code range.
11700 (grub_utf8_to_ucs4): Use grub_utf8_process.
11701 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11704 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11706 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11708 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11710 * docs/grub.texi (Filesystems): Mention AFS.
11712 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11714 * docs/grub.texi (Filesystems): Clarify restrictions.
11715 (Regexp): Mention non-Unicode regexp behaviour.
11716 (Other): Mention non-Unicode matching behaviour.
11718 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11720 Make HFS implementation use MacRoman.
11722 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11723 (macroman): New const array.
11724 (macroman_to_utf8): New function.
11725 (utf8_to_macroman): Likewise.
11726 (grub_hfs_find_dir): Use utf8_to_macroman.
11727 (grub_hfs_dir): Use macroman_to_utf8.
11728 Set case_insensitive.
11730 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11732 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11734 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11736 Integrate hints into autogeneration scripts.
11738 * docs/grub.texi (Filesystems): Add a hostdisk example.
11739 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11740 (grub-probe): Add ofpath.
11741 * gentpl.py: Remove group nosparc64.
11742 * grub-core/commands/search.c (cache_entry): New struct.
11744 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11745 * grub-core/commands/search_wrap.c (options): Add platform-specific
11747 (grub_cmd_search): Handle platform-specific hints.
11748 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11749 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11750 (grub_util_biosdisk_data): Likewise.
11751 (grub_util_biosdisk_open): Set device_map.
11752 (read_device_map): Handle "" as indication of no map.
11754 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11755 (grub_util_biosdisk_get_compatibility_hint): New function.
11756 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11757 * include/grub/emu/hostdisk.h
11758 (grub_util_biosdisk_get_compatibility_hint): New proto.
11759 * util/grub-install.in: Don't call grub-mkdevicemap.
11760 Add platform-specific hint to load.cfg.
11761 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11762 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11763 hints. Set root preliminary to compatibility hint, not to OS name.
11764 * util/grub-probe.c (PRINT_*): Add hints.
11765 (print): Make static.
11766 (escape_of_path): New function.
11767 (guess_bios_drive): Likewise.
11768 (guess_efi_drive): Likewise.
11769 (guess_baremetal_drive): Likewise.
11770 (print_full_name): Likewise.
11771 (probe): Handle hints.
11773 * util/ieee1275/devicemap.c: Removed.
11774 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11776 (grub_util_devname_to_ofpath): Return NULL on failure.
11778 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11780 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11782 * po/POTFILES.in: Regenerated.
11784 Allow purely long options
11786 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11787 (SHORT_ARG_USAGE): Likewise.
11788 (grub_arg_show_help): Compare opt with help_options.
11789 (parse_option): Receive opt as argument. If makes big simplificatons.
11792 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11794 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11795 Restructure to avoid warning.
11797 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11799 * util/grub-install.in: Account for possible escaped comma in device
11802 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11804 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11807 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11809 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11810 allocation and zero-setting.
11811 (grub_ieee1275_get_devname): Check that alias is complete.
11813 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11815 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11816 unaligned segments.
11818 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11820 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11822 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11823 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11824 Add ieee1275 prefix.
11826 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11828 * docs/grub.texi (Filesystems): Update.
11830 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11832 Support odc, newc and bigendian cpio formats.
11834 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11835 * grub-core/Makefile.core.def (newc): New module.
11837 (cpio_be): Likewise.
11838 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11840 (MAGIC2): Likewise.
11841 (head) [MODE_ODC]: Adapt for the format.
11842 (head) [MODE_NEWC]: Likewise.
11843 (head) [!MODE_*]: Write fields of interest as arrays.
11844 (MAGIC_USTAR): Removed.
11845 (read_number) [MODE_NEWC]: Change to hex.
11846 (read_number) [!MODE_*]: Parse binary arrays.
11847 (grub_cpio_find_file): Factor out the code for better structure and
11848 always use read_number.
11849 (grub_cpio_mount): Use MAGIC and MAGIC2.
11850 (grub_cpio_dir): Exit on first hook non-0 return.
11851 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11852 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11853 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11854 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11855 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11856 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11857 * grub-core/fs/newc.c: New file.
11858 * grub-core/fs/odc.c: Likewise.
11859 * grub-core/fs/cpio_be.c: Likewise.
11861 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11863 Fix handling of tar numbers occupying the whole field.
11865 * grub-core/fs/cpio.c (read_number): New function.
11866 (grub_cpio_find_file): Use read_number instead of strtoull.
11868 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11870 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11871 occupying the whole field size.
11873 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11875 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11877 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11879 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11881 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11883 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11884 TARGET_IMG_LDFLAGS.
11886 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11888 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11889 (mountinfo_entry): Increase the field size to take escaping into
11891 (find_root_device_from_libzfs): Add one byte to size of strings for
11894 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11896 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11898 * util/grub-setup.c (setup): Likewise.
11900 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11902 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11905 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11907 * docs/grub.texi (Internationalisation): New section.
11909 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11911 * docs/grub.texi (Loopback booting): New section.
11913 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
11915 * util/grub-mkstandalone.in: Fix minor typo errors.
11917 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11919 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11921 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11922 net/icmp.c and net/icmp6.c.
11923 (http): New module.
11924 (priority_queue): Likewise.
11925 * grub-core/io/bufio.c: Rewritten.
11926 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11927 TYPE_WITH_CONFIGFILE_OPTION.
11928 (legacy_commands): Add bootp and dhcp.
11929 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11930 (grub_legacy_parse): Likewise.
11931 * grub-core/lib/priority_queue.c: New file.
11932 * grub-core/net/arp.c: Add missing license header.
11933 (arp_find_entry): Removed.
11934 (arp_find_entry): Likewise.
11935 (grub_net_arp_resolve): Rename to ...
11936 (grub_net_arp_send_request): ...this.
11937 (grub_net_arp_receive): New card argument.
11938 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11939 Set router and DNS server.
11940 (grub_net_configure_by_dhcp_ack): Handle routing information.
11941 (grub_cmd_bootp): Set checksum.
11942 (grub_bootp_init): Remove net_dhcp.
11943 * grub-core/net/dns.c: New file.
11944 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11946 (get_card_packet): Handle allocation.
11947 (grub_efinet_findcards): Set mtu.
11948 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11949 (get_card_packet): Handle allocation.
11950 (emucard): Set mtu.
11951 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11952 (GRUB_MOD_INIT): Set mtu.
11953 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11955 (get_card_packet): Handle allocation.
11956 (grub_ofnet_findcards): Set mtu.
11957 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11959 (grub_net_recv_ethernet_packet): Handle IPv6.
11960 * grub-core/net/http.c: New file.
11961 * grub-core/net/icmp.c: Likewise.
11962 * grub-core/net/icmp6.c: Likewise.
11963 * grub-core/net/ip.c (ip6addr): New type.
11964 (ip6hdr): Likewise.
11965 (reassemble): Likewise.
11966 (cmp): New function.
11967 (reassembles): New variable.
11968 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11969 (id): New variable.
11970 (send_fragmented): New function.
11971 (grub_net_send_ip_packet): Rename to ...
11972 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11974 (grub_net_recv_ip_packets): Rename to ...
11975 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11976 (free_rsm): New function.
11977 (free_old_fragments): Likewise.
11978 (grub_net_recv_ip4_packets): New function.
11979 (grub_net_send_ip6_packet): Likewise.
11980 (grub_net_send_ip_packet): Likewise.
11981 (grub_net_recv_ip6_packets): Likewise.
11982 (grub_net_recv_ip_packets): Likewise.
11983 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11984 (LINK_LAYER_CACHE_SIZE): New const.
11985 (link_layer_find_entry): New function.
11986 (grub_net_link_layer_add_address): Likewise.
11987 (grub_net_link_layer_resolve_check): Likewise.
11988 (grub_net_link_layer_resolve): Likewise.
11989 (grub_net_ipv6_get_slaac): Likewise.
11990 (grub_net_ipv6_get_link_local): Likewise.
11991 (grub_cmd_ipv6_autoconf): Likewise.
11992 (parse_ip): Handle one number representation.
11993 (parse_ip6): New functoion.
11994 (match_net): Handle IPv6.
11995 (grub_net_resolve_address): Handle IPv6 and DNS.
11996 (grub_net_resolve_net_address): Handle IPv6.
11997 (route_cmp): New function.
11998 (grub_net_route_address): Find best route.
11999 (grub_net_addr_to_str): Handle IPv6.
12000 (grub_net_addr_cmp): New function.
12001 (grub_net_add_addr): Register local route.
12002 (print_net_address): Handle net address.
12003 (grub_net_poll_cards): Retransmit TCP.
12004 (grub_net_poll_cards_idle_real): Likewise.
12005 (have_ahead): New function.
12006 (grub_net_seek_real): Use underlying seek.
12007 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
12008 * grub-core/net/tcp.c: New file.
12009 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
12010 (cmp): New function.
12012 (tftp_receive): Handle unordered input.
12013 (destroy_pq): New function.
12014 (tftp_close): Close pq.
12015 * grub-core/net/udp.c: Put missing license header.
12016 (grub_net_udp_socket): New function.
12017 (udp_socket_register): Likewise.
12018 (grub_net_udp_close): Likewise.
12019 (grub_net_recv_udp_packet): Check checksum.
12020 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
12021 * include/grub/misc.h (grub_memchr): New function.
12022 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
12023 (grub_net_card_driver): Return buf in recv.
12024 (grub_net_slaac_mac_list): New struct.
12025 (grub_network_level_protocol_id): Add ipv6.
12026 (grub_net_network_level_addr): Likewise.
12027 (grub_net_network_level_net_addr): Likewise.
12028 (grub_net_app_protocol): Add seek.
12029 (grub_net_socket): Removed.
12030 (grub_net_sockets): Likewise.
12031 (grub_net_socket_register): Likewise.
12032 (grub_net_socket_unregister): Likewise.
12033 (FOR_NET_SOCKETS): Likewise.
12034 (grub_net_add_addr): Add const.
12035 (GRUB_NET_BOOTP_*): New enum.
12036 (grub_net_addr_cmp): New proto.
12037 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
12038 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
12039 (grub_net_hwaddr_to_str): NEw proto.
12040 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
12041 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
12042 (grub_dns_init): New proto.
12043 (grub_dns_fini): Likewise.
12044 (grub_net_tcp_retransmit): Likewise.
12045 (grub_net_link_layer_add_address): Likewise.
12046 (grub_net_link_layer_resolve_check): Likewise.
12047 (grub_net_link_layer_resolve): Likewise.
12048 (grub_net_dns_lookup): Likewise.
12049 (grub_net_add_dns_server): Likewise.
12050 (grub_net_remove_dns_server): Likewise.
12051 (GRUB_NET_TRIES): New const.
12052 (GRUB_NET_INTERVAL): Likewise.
12053 * include/grub/net/arp.h: Mostly rewritten.
12054 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
12055 * include/grub/net/ip.h: Mostly rewritten.
12056 * include/grub/net/netbuff.h: Indent.
12057 * include/grub/net/tcp.h: New file.
12058 * include/grub/net/udp.h: Mostly rewritten.
12059 * include/grub/priority_queue.h: New file.
12060 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
12061 (grub_swap_bytes64_compile_time): Likewise.
12062 (grub_cpu_to_be16_compile_time): Likewise.
12063 (grub_cpu_to_be32_compile_time): Likewise.
12064 (grub_cpu_to_be64_compile_time): Likewise.
12065 (grub_be_to_cpu64_compile_time): Likewise.
12067 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12069 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
12070 UINT_TO_PTR with cast.
12072 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12074 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12077 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12079 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12082 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12084 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12087 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12089 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12090 Add missing const attribute.
12091 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12093 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12096 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12098 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12100 (serpent_setkey): Likewise.
12101 (serpent_encrypt_internal): Likewise.
12102 (serpent_decrypt_internal): Likewise.
12103 (serpent_encrypt): Don't put an alignment-increasing cast.
12104 (serpent_decrypt): Likewise.
12105 (serpent_test): Likewise.
12107 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12109 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12111 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12113 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12115 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12117 (PTR_TO_UINT64): Likewise.
12118 (PTR_TO_UINT32): Likewise.
12120 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12122 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12124 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12127 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12129 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12130 text_width > available width a bit more gracefully.
12132 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12134 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12135 current address calculation.
12137 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12139 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12141 (encode_block): Likewise.
12143 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12145 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12148 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12150 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12151 non-RS part to avoid RS messing with GDT.
12152 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12153 Increase to suit in realmode routines.
12155 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12157 * grub-core/kern/i386/realmode.S: Increase alignment.
12158 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12160 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12162 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12164 (syndroms): Compute 0 syndrom.
12165 (rs_recover): Use 0 syndrom.
12167 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12169 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12171 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12173 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12176 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12178 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12180 (get_top_pad): Likewise.
12181 (get_right_pad): Likewise.
12182 (get_bottom_pad): Likewise.
12184 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12186 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
12188 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12190 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12191 attribute as the structure isn't guaranteed to be properly aligned.
12192 (grub_efi_pci_device_path): Likewise.
12193 (grub_efi_pccard_device_path): Likewise.
12194 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12195 specify the size of `memory_type'.
12196 (grub_efi_vendor_device_path): Likewise.
12197 (grub_efi_controller_device_path): Likewise.
12198 (grub_efi_acpi_device_path): Likewise.
12199 (grub_efi_expanded_acpi_device_path): Likewise.
12200 (grub_efi_atapi_device_path): Likewise.
12201 (grub_efi_scsi_device_path): Likewise.
12202 (grub_efi_fibre_channel_device_path): Likewise.
12203 (grub_efi_1394_device_path): Likewise.
12204 (grub_efi_usb_device_path): Likewise.
12205 (grub_efi_usb_class_device_path): Likewise.
12206 (grub_efi_i2o_device_path): Likewise.
12207 (grub_efi_mac_address_device_path): Likewise.
12208 (grub_efi_ipv4_device_path): Likewise.
12209 (grub_efi_ipv6_device_path): Likewise.
12210 (grub_efi_infiniband_device_path): Likewise.
12211 (grub_efi_uart_device_path): Likewise.
12212 (grub_efi_vendor_messaging_device_path): Likewise.
12213 (grub_efi_hard_drive_device_path): Likewise.
12214 (grub_efi_cdrom_device_path): Likewise.
12215 (grub_efi_vendor_media_device_path): Likewise.
12216 (grub_efi_file_path_device_path): Likewise.
12217 (grub_efi_protocol_device_path): Likewise.
12218 (grub_efi_piwg_device_path): Likewise.
12219 (grub_efi_bios_device_path): Likewise.
12221 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12223 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12224 (grub_ucs4_to_utf8_alloc): Likewise.
12225 (grub_ucs4_to_utf8): Likewise.
12226 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12227 (grub_ucs4_to_utf8_alloc): Likewise.
12229 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12231 AFFS never uses unicode.
12233 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12234 (grub_latin1_to_utf8): New inline function.
12235 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12237 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12239 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12242 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12244 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12245 (grub_squash_dirent_header): Likewise.
12246 (read_chunk): Don't double swap.
12247 (grub_squash_iterate_dir): Fix swap sizes.
12249 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12251 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12253 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12255 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12256 (grub_hfs_iterate_dir): Likewise.
12258 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12260 Fix video on platforms where unaligned access is forbidden.
12261 Make several optimisations while on it.
12263 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12264 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12265 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12266 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12268 (grub_video_fbblit_replace_16bit_1bit):
12269 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12270 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12271 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12272 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12273 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12274 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12275 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12276 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12277 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12278 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12279 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12280 (grub_video_fbblit_replace_index_RGB888): Likewise.
12281 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12282 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12283 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12284 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12285 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12286 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12287 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12289 (grub_video_fbblit_blend_XXX565_1bit):
12290 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12291 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12292 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12294 * grub-core/video/fb/video_fb.c (common_blitter)
12295 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12296 (grub_video_fb_create_render_target_from_pointer)
12297 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12298 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12299 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12301 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12303 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12305 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12306 HH22 and HM10 relocations.
12308 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12310 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12312 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12314 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12315 allocation succeeded.
12317 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12319 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12320 argument a u8 pointer. All users updated.
12321 Handle unaligned buffers.
12323 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12325 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12326 add_part to workaround compiler bug.
12328 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12330 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12332 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12334 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12335 Reserve alignment invariants.
12336 (grub_multiboot_load): Likewise.
12337 (retrieve_video_parameters): Likewise.
12338 (grub_multiboot_make_mbi): Likewise.
12340 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12342 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12345 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12347 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12348 (grub_pata_pio_write): Likewise.
12350 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12352 Add noreturn attributes and remove unreachable code.
12354 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12356 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12357 code. Mark as noreturn.
12358 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12359 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12360 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12362 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12363 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12364 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12365 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12366 * include/grub/kernel.h (grub_main): Mark as noreturn.
12367 * include/grub/reader.h (grub_rescue_run): Likewise.
12369 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12371 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12372 redundant declaration.
12374 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12376 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12377 redundant declaration.
12378 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12382 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12383 to ensure alignment.
12384 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12385 alignment. Ensure tmp alignment.
12386 (grub_cmd_hdparm): Ensure buf alignment.
12387 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12388 to ensure alignment.
12389 (grub_ata_dumpinfo): Ensure text alignment.
12390 (grub_atapi_identify): Preserve alignment invariant.
12391 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12393 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12395 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12396 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12397 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12398 * include/grub/misc.h (grub_reboot)
12399 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12400 (grub_halt) [__mips__]: Likewise.
12402 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12404 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12405 Remove redundant declaration.
12406 (grub_mmap_get_post64): Likewise.
12407 (grub_mmap_get_upper): Likewise.
12408 (grub_mmap_get_lower): Likewise.
12410 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12412 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12413 uint32_t * to ensure alignment.
12414 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12416 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12418 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12419 uint16_t * to ensure alignment.
12420 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12423 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12425 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
12426 to ensure alignment.
12427 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12431 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12432 Handle unaligned pointers.
12435 (fixup): Use byte access instead of v16at.
12436 (find_attr): Fix imporper usage of v32at.
12437 (read_data): Likewise.
12438 (list_file): Handle byte-swapping and unaligned strings.
12439 (grub_ntfs_label): Likewise.
12441 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12443 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12444 as it's not necessarily aligned.
12446 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12448 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12449 redundant declaration.
12450 (grub_serial_init): Likewise.
12451 (grub_terminfo_init): Likewise.
12453 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12455 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12457 (ZAP_HASH_IDX): Likewise.
12458 (ZAP_LEAF_HASH_SHIFT): Likewise.
12459 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12460 (LEAF_HASH): Likewise.
12461 (ZAP_LEAF_NUMCHUNKS): Likewise.
12462 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12463 alignment invariants. Return pointer. All users updated.
12464 (ZAP_LEAF_ENTRY): Make into inline function.
12467 (xor_out): Use grub_crypto_xor.
12468 (dnode_get_path): Use grub_get_unaligned.
12469 (nvlist_find_value): Likewise.
12470 (grub_zfs_nvlist_lookup_uint64): Likewise.
12471 (grub_zfs_nvlist_lookup_string): Likewise.
12472 (get_nvlist_size): Likewise.
12473 (grub_zfs_open): Likewise.
12474 (fill_fs_info): Likewise.
12475 (grub_zfs_dir): Likewise.
12476 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12477 alignment invariants.
12478 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12479 necessarily aligned.
12481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12483 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12485 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12487 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12488 arithmetic to conserve alignment invariants.
12490 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12492 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12493 redundant declaration.
12494 (grub_efiemu_mm_obtain_request): Likewise.
12495 (grub_efiemu_prepare): Likewise.
12497 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12499 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12502 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12504 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12505 case of aunaligned recptr.
12506 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12508 (grub_hfsplus_btree_search): Handle unaligned index.
12510 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12512 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12513 to get freetag and skip.
12515 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12517 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12519 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12520 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12522 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12524 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12525 name for checksum and fix allocation algorithm.
12527 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12529 * include/grub/types.h (grub_properly_aligned_t): New type.
12530 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12531 (grub_get_unaligned16): Add explicit casts.
12532 (grub_get_unaligned32): Likewise.
12533 (grub_get_unaligned64): Likewise.
12534 (grub_set_unaligned16): New function.
12535 (grub_set_unaligned32): Likewise.
12537 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12539 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12543 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12544 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12545 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12547 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12549 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12552 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12554 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12555 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12557 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12559 Unify and improve RAID and crypto xor.
12561 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12562 changed to grub_crypto_xor
12563 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12564 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12565 Use bigger types when possible.
12567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12569 * grub-core/disk/raid.c (scan_devices): Fix condition.
12571 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12573 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12574 Make name a const ptr.
12576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12578 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12579 first argument a const pointer.
12580 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12581 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12583 (grub_children_iterate): Likewise.
12584 (grub_machine_mmap_iterate): Remove redundant declaration.
12586 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12588 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12589 (grub_cmd_acpi) [!x86]: Disable EBDA.
12591 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12593 Enable UTF8 in gnulib regexp.
12595 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12596 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12597 (isupper): Use grub_isupper.
12598 (isascii): New inline function.
12599 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12600 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12601 * grub-core/normal/charset.c (grub_utf8_process): New function.
12602 (grub_utf8_to_utf16): Use grub_utf8_process.
12603 (grub_encode_utf8_character): New function.
12604 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12605 * include/grub/charset.h (grub_utf8_process): New declaration.
12606 (grub_encode_utf8_character): Likewise.
12607 * include/grub/misc.h (grub_islower): New inline function.
12608 (grub_isupper): Likewise.
12609 (grub_strchrsub): Moved down to fix the definitions.
12611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12613 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12616 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12618 * include/grub/loader.h (grub_loader_register_preboot_hook):
12619 Use struct preboot * and not void * for handle. All users updated.
12620 (grub_loader_unregister_preboot_hook): Likewise.
12622 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12624 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12625 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12626 UTF-16-BE. All users updated.
12627 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12628 (grub_hfsplus_iterate_dir): Likewise.
12629 (grub_hfsplus_label): Likewise.
12631 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12633 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12635 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12637 Add missing const qualifiers.
12639 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12640 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12641 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12642 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12643 (grub_lvm_check_flag): Likewise.
12644 * grub-core/efiemu/i386/coredetect.c
12645 (grub_efiemu_get_default_core_name): Likewise
12646 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12647 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12648 * grub-core/fs/ntfs.c (fixup): Likewise.
12649 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12650 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12651 (fzap_lookup): Likewise.
12652 (zap_lookup): Likewise.
12653 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12654 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12655 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12656 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12657 (grub_freebsd_add_meta_module): Likewise.
12658 (grub_cmd_freebsd_module): Likewise.
12659 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12660 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12661 (grub_xnu_writetree_get_size): Likewise.
12662 (grub_xnu_writetree_toheap_real): Likewise.
12663 (grub_xnu_find_key): Likewise.
12664 (grub_xnu_create_key): Likewise.
12665 (grub_xnu_create_value): Likewise.
12666 (grub_xnu_register_memory): Likewise.
12667 (grub_xnu_check_os_bundle_required): Likewise.
12668 (grub_xnu_scan_dir_for_kexts): Likewise.
12669 (grub_xnu_load_kext_from_dir): Likewise.
12670 * grub-core/normal/color.c (color_list): Likewise.
12671 * grub-core/normal/completion.c (current_word): Likewise.
12672 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12673 * grub-core/term/serial.c (grub_serial_find): Likewise.
12674 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12675 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12677 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12678 (grub_freebsd_add_meta_module): Likewise.
12679 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12680 * include/grub/net.h (grub_net_card_driver): Likewise.
12681 (grub_net_card): Likewise.
12682 (grub_net_app_protocol): Likewise.
12683 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12684 * include/grub/serial.h (grub_serial_find): Likewise.
12685 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12686 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12687 (grub_xnu_create_value): Likewise.
12688 (grub_xnu_find_key): Likewise.
12689 (grub_xnu_scan_dir_for_kexts): Likewise.
12690 (grub_xnu_load_kext_from_dir): Likewise.
12692 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12693 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12694 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12695 Moved from here ...
12696 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12698 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
12700 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12702 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12704 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12705 (read_device): Fix size calculation.
12707 2011-11-25 Robert Millan <rmh@gnu.org>
12709 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12710 (find_root_device_from_libzfs): Add zpool output parser to be used
12711 as fallback when libzfs isn't available.
12713 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12715 * po/Makefile.in.in: Add missing escape-continuation.
12717 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12719 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12721 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12723 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12725 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12727 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12729 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12731 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12733 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12735 * grub-core/lib/adler32.c: Add missing license specification.
12736 * grub-core/lib/crc64.c: Likewise.
12737 * grub-core/loader/i386/pc/plan9.c: Likewise.
12738 * grub-core/partmap/plan.c: Likewise.
12740 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12742 Add facility to debug GRUB with gdb under qemu.
12744 * grub-core/gdb_grub.in: New file.
12745 * grub-core/gmodule.pl.in: Likewise.
12746 * grub-core/Makefile.core.def (gmodule.pl): New script.
12747 (gdb_grub): Likewise.
12749 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12751 * util/grub-mount.c (argp_parser): Accept relative pathes.
12752 * util/grub-fstest.c (argp_parser): Likewise.
12754 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12758 * Makefile.util.def (libgrubmods): Add
12759 grub-core/partmap/plan.c.
12760 * docs/grub.texi: Notice Plan9 support.
12761 * grub-core/Makefile.core.def (plan9): New module.
12762 (part_plan): Likewise.
12763 * grub-core/loader/i386/pc/plan9.c: New file.
12764 * grub-core/partmap/plan.c: Likewise.
12765 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12767 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12768 * include/grub/mm.h (grub_extend_alloc): New inline function.
12770 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12772 Make Reed-Solomon faster by using power of generator representation of
12775 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12776 (gf_double_t): Likewise.
12777 (gf_invert): Removed.
12778 (gf_powx): New array.
12779 (gf_powx_inv): Likewise.
12780 (scratch): Move higher.
12781 (gf_reduce): Removed.
12782 (gf_mul): Use powx.
12783 (gf_invert): Likewise.
12784 (init_inverts): Replaced with ...
12785 (init_powx): ...this. All users updated.
12786 (pol_evaluate): Replace multiplications with additions.
12787 (rs_encode): Likewise.
12788 (gauss_eliminate): Call gf_invert.
12789 (grub_reed_solomon_add_redundancy): Call init_powx.
12790 (grub_reed_solomon_recover): Call init_powx unconditionally.
12792 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12794 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12796 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12798 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12799 disk->partiton for safety.
12801 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12803 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12805 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12807 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12809 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12811 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12813 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12815 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12817 Fix spaces handling in proc/self/mountinfo.
12819 * util/getroot.c (unescape): New function.
12820 (grub_find_root_device_from_mountinfo): Use unescape.
12822 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12824 Support ZFS embedding.
12826 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12827 (grub_zfs_fs): Register grub_zfs_embed.
12829 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12831 Fix MIPS compilation.
12833 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12834 * include/grub/offsets.h: Rename decompressor fields from
12835 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12836 * util/grub-mkimage.c (image_targets): Use new names.
12838 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12840 Defer multiboot device parsing until we're in compressed part.
12842 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12843 bsd_part. setdevice has fallen into disuse.
12844 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12845 (bsd_part): Likewise.
12846 (boot_dev): New variable.
12847 (multiboot_trampoline): Don't parse multiboot device.
12848 Pass multiboot device in %edx.
12849 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12851 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12853 * grub-core/kern/i386/pc/startup.S: Save edx.
12854 (grub_boot_drive): Removed.
12855 (grub_install_dos_part): Likewise.
12856 (grub_install_bsd_part): Likewise.
12857 (grub_boot_device): New variable.
12858 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12859 (grub_install_bsd_part): Likewise.
12860 (grub_boot_drive): Likewise.
12861 (grub_boot_device): New variable.
12862 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12864 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12865 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12866 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12867 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12868 * util/grub-install.in: Remove redundant condition.
12870 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12872 Fix bug introduced by previous commit.
12874 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12876 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12878 Use decompressors framework on i386-pc. It increases core size
12879 by 46 bytes but improves compatibility and maintainability.
12881 * grub-core/Makefile.core.def (lzma_decompress): New image.
12882 (kernel): Add i386_pc_ldflags.
12883 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12884 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12885 to real_to_prot, prot_to_real and device info.
12886 * include/grub/offsets.h: Renamed decompressor offsets.
12887 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12888 (image_target_desc): Remove raw_size and rename decompressor fields.
12889 (compress_kernel): Handle lzma.
12890 (generate_image): Handle decompressors on i386-pc.
12892 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12894 * configure.ac: Add -fno-asynchronous-unwind-tables.
12896 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12898 Move assembly code to C by using intwrap. It increases core size
12899 by 88 bytes but improves compatibility and maintainability.
12901 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12902 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12903 ... here. Translated to C.
12904 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12905 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12906 ... here. Translated to C.
12907 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12908 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12909 ... here. Translated to C.
12910 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12911 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12912 ... here. Translated to C.
12913 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12914 * grub-core/term/i386/pc/console.c (grub_console_cls):
12915 ... here. Translated to C.
12916 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12917 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12918 ... here. Translated to C.
12919 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12920 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12922 * grub-core/term/i386/pc/console.c (int10_9): New function.
12923 (grub_console_putchar): Likewise.
12924 * include/grub/i386/pc/console.h: Removed the not anymore shared
12927 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12929 Move grub_chainloader_real_boot out of the kernel.
12931 * grub-core/Makefile.am: Remove machine/loader.h.
12932 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12934 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12936 (grub_relocator16_keep_a20_enabled): Likewise.
12937 (grub_relocator16_boot): Fill new variables.
12938 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12939 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12941 (grub_chainloader_unload): Likewise.
12942 (grub_chainloader_cmd): Likewise.
12943 * include/grub/i386/pc/loader.h: Removed.
12944 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12945 and esi. All initialisers updated.
12947 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12948 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
12950 * Makefile.util.def (grub-mount): New util.
12951 * .bzrignore: Add grub-mount.
12952 * configure.ac: Check for fuse and enable grub-mount if available.
12953 * docs/man/grub-mount.h2m: New file.
12954 * util/grub-mount.c: Likewise.
12956 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12958 * grub-core/commands/efi/fixvideo.c: Gettextize.
12959 * grub-core/commands/hashsum.c: Likewise.
12960 * grub-core/commands/i386/cmostest.c: Likewise.
12961 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12962 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12963 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12964 * grub-core/commands/lsmmap.c: Likewise.
12965 * grub-core/commands/menuentry.c: Likewise.
12966 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12967 * grub-core/commands/setpci.c: Likewise.
12968 * grub-core/loader/i386/bsd.c: Likewise.
12969 * grub-core/loader/i386/linux.c: Likewise.
12970 * util/getroot.c: Likewise.
12971 * util/grub-editenv.c: Likewise.
12972 * util/grub-fstest.c: Likewise.
12973 * util/grub-mkfont.c: Likewise.
12974 * util/grub-mkimage.c: Likewise.
12975 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12976 * util/grub-pe2elf.c: Likewise.
12977 * util/grub-probe.c: Likewise.
12978 * util/grub-setup.c: Likewise.
12979 * util/ieee1275/ofpath.c: Likewise.
12980 * util/misc.c: Likewise.
12981 * util/raid.c: Likewise.
12983 2011-11-11 Robert Millan <rmh@gnu.org>
12985 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12986 __attribute__((unused)) from `os_dev', which *is* being used.
12988 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12990 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12992 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12993 GRUB_IA64_DL_GOT_ALIGN.
12994 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12995 GRUB_IA64_DL_TRAMP_ALIGN.
12997 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12999 Replace grub_fatal with normal errors in i386 linux loader.
13001 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
13002 (allocate_pages): Check find_efi_mmap_size return value.
13003 (grub_e820_add_region): Return error.
13004 (grub_linux_boot): Check mmap return value.
13006 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13008 * grub-core/commands/acpihalt.c: Gettextized.
13009 * grub-core/commands/cacheinfo.c: Likewise.
13010 * grub-core/commands/cmp.c: Likewise.
13011 * grub-core/commands/efi/loadbios.c: Likewise.
13012 * grub-core/commands/gptsync.c: Likewise.
13013 * grub-core/commands/ieee1275/suspend.c: Likewise.
13014 * grub-core/commands/legacycfg.c: Likewise.
13015 * grub-core/commands/memrw.c: Likewise.
13016 * grub-core/commands/minicmd.c: Likewise.
13017 * grub-core/commands/parttool.c: Likewise.
13018 * grub-core/commands/time.c: Likewise.
13019 * grub-core/commands/videoinfo.c: Likewise.
13020 * grub-core/disk/geli.c: Likewise.
13021 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
13022 * grub-core/disk/luks.c: Likewise.
13023 * grub-core/disk/lvm.c: Likewise.
13024 * grub-core/font/font_cmd.c: Likewise.
13025 * grub-core/fs/zfs/zfscrypt.c: Likewise.
13026 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13027 * grub-core/gfxmenu/view.c: Likewise.
13028 * grub-core/kern/emu/hostdisk.c: Likewise.
13029 * grub-core/kern/emu/main.c: Likewise.
13030 * grub-core/kern/emu/misc.c: Likewise.
13031 * grub-core/kern/emu/mm.c: Likewise.
13032 * grub-core/kern/mips/arc/init.c: Likewise.
13033 * grub-core/kern/mips/loongson/init.c: Likewise.
13034 * grub-core/kern/partition.c: Likewise.
13035 * grub-core/lib/i386/halt.c: Likewise.
13036 * grub-core/lib/mips/arc/reboot.c: Likewise.
13037 * grub-core/lib/mips/loongson/reboot.c: Likewise.
13038 * grub-core/loader/i386/pc/chainloader.c: Likewise.
13039 * grub-core/loader/i386/xnu.c: Likewise.
13040 * grub-core/loader/multiboot.c: Likewise.
13041 * grub-core/net/bootp.c: Likewise.
13042 * grub-core/net/net.c: Likewise.
13043 * grub-core/normal/term.c: Likewise.
13044 * grub-core/partmap/bsdlabel.c: Likewise.
13045 * grub-core/parttool/msdospart.c: Likewise.
13046 * grub-core/term/gfxterm.c: Likewise.
13047 * grub-core/term/terminfo.c: Likewise.
13048 * grub-core/video/i386/pc/vbe.c: Likewise.
13049 * util/grub-menulst2cfg.c: Likewise.
13050 * util/grub-mkdevicemap.c: Likewise.
13051 * util/grub-mklayout.c: Likewise.
13052 * util/grub-mkrelpath.c: Likewise.
13053 * util/grub-script-check.c: Likewise.
13054 * util/ieee1275/grub-ofpathname.c: Likewise.
13055 * util/resolve.c: Likewise.
13057 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13059 Support %1$d syntax.
13061 * tests/printf_unit_test.c: New file.
13062 * Makefile.util.def (printf_test): New test.
13063 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
13065 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13067 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
13070 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13072 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
13074 * grub-core/font/font.c (grub_font_load): Likewise.
13076 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13078 * util/grub-macho2img.c: Add comment concerning gettext.
13079 * grub-core/lib/legacy_parse.c: Likewise.
13081 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13083 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13084 (grub_xvasprintf): Likewise.
13086 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13088 Add const keyword to grub_env_get and gettextize week days.
13090 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13091 (grub_read_hook_datetime): Return const char *.
13092 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13094 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13096 (grub_get_weekday_name): Return const char *. Call gettext.
13097 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13098 char * and len as the argument. All users updated.
13099 (grub_script_argv_split_append): Receive const char *.
13100 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13101 * include/grub/env.h (grub_env_get): Likewise.
13102 (grub_env_read_hook_t): Return const char *.
13103 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13104 (grub_script_argv_split_append): Likewise.
13106 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13108 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13110 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13112 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13113 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13115 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13117 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13120 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13122 Fix mips compilation.
13124 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13126 (hashes): Use in embed decoder as well (for sizes).
13127 (dec_stream_header): Fix embed decompressor logic.
13128 (dec_stream_footer): Likewise.
13130 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13132 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13133 an error and not a fatal on unrecognised relocation types.
13135 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13137 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13138 Issue error rather than printf on unknown arguments.
13140 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13142 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13145 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13147 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13150 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13152 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13153 leftover debug printf.
13155 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13157 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13159 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13161 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13164 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13166 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13168 2011-11-10 Shea Levy <slevy@tieronedesign.com>
13170 Allow all modules to perform serial IO
13172 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13173 * include/grub/serial.h (grub_serial_port_configure): New inline
13175 (grub_serial_port_fetch): Likewise.
13176 (grub_serial_port_put): Likewise.
13177 (grub_serial_port_fini): Likewise.
13178 (grub_serial_find): New proto.
13180 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13182 Put symlink at the end of the node and fix a potential
13185 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13186 Make symlink into an array.
13187 (set_rockridge): Set have_symlink and alloc_dirents.
13188 (grub_iso9660_read_symlink): Use new layout.
13189 (grub_iso9660_iterate_dir): Fix memory corruption.
13191 (grub_iso9660_dir): Set have_symlink.
13192 (grub_iso9660_open): Likewise.
13194 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13196 Remove local keyword.
13198 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13199 (version_test_gt): Likewise.
13200 (version_find_latest): Likewise.
13201 (gettext_printf): Likewise.
13202 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13204 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13206 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13208 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13210 Fix ZFS memory and resource leaks.
13212 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13215 (fill_vdev_info): New parameter inserted. All users updated.
13216 (check_pool_label): Likewise.
13217 (scan_disk): Likewise.
13218 (scan_devices): Close non-inserted disks.
13219 (fzap_iterate): Free l.
13220 (unmount_device): Free children descripto memory.
13222 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13224 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13225 argument (access out of bounds).
13227 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13229 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13232 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13234 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13237 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13239 Fix several memory leaks.
13241 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13242 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13243 (grub_cpio_dir): Likewise.
13244 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13245 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13246 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13247 (grub_romfs_label): Likewise.
13248 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13249 (squash_unmount): New function.
13250 (grub_squash_dir): Fix memory leak.
13251 (grub_squash_open): Likewise.
13252 (grub_squash_read): Likewise.
13253 (grub_squash_mtime): Likewise.
13254 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13255 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13256 * util/grub-fstest.c (fstest): Likewise.
13258 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13260 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13261 avoid accessing beyond the array.
13263 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13265 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13267 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13269 Several AFFS fixes.
13271 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13272 (GRUB_AFFS_FLAG_FFS): Removed.
13273 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13274 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13275 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13276 (grub_fshelp_node): Make block 32-bit.
13277 Add block_cache and last_block_cache.
13278 (grub_affs_read_block): Fill and use block cache.
13279 (grub_affs_read_file): Removed.
13280 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13282 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13284 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13286 (grub_affs_close): Free block cache.
13287 (grub_affs_read): Use grub_fshelp_read_file directly.
13289 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13291 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13294 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13296 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13298 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13301 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13303 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13305 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13306 byteswap when needed.
13308 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13310 Fix FreeBSD compilation.
13312 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13313 to avoid circular dependency.
13314 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13315 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13316 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13318 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13320 Fix ZFS crypto error types.
13322 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13323 (grub_gcm_decrypt): Likewise.
13324 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13327 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13331 * Makefile.util.def (10_illumos): New script.
13332 * configure.ac: Set COND_HOST_ILLUMOS.
13333 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13334 Support Illumos calls.
13335 (find_partition_start) [__sun__]: Likewise.
13336 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13337 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13338 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13339 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13341 * util/grub-probe.c (probe) [__sun__]: Do character check.
13342 * util/grub.d/10_illumos.in: New file.
13344 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13346 Support escaped commas in hostdisk.
13348 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13349 (find_grub_drive): Use unescape_cmp.
13350 (make_device_name): Escape commas.
13352 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13354 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13356 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13358 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13361 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13363 Support trampoline jumps on powerpc.
13365 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13367 (grub_dl_load_segments): Set mod->sz.
13368 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13370 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13372 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13374 (trampoline): New struct.
13375 (trampoline_template): New const.
13376 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13377 * include/grub/dl.h (grub_dl): Add sz element.
13378 [__powerpc__]: Follow __ia64__.
13379 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13380 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13381 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13382 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13384 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13386 ZFS crypto support.
13388 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13389 * grub-core/Makefile.core.def (zfscrypt): New module.
13390 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13391 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13392 it. All users updated.
13393 (grub_zfs_decrypt): New var.
13394 (grub_zfs_load_key): Likewise.
13395 (zio_checksum_functions): Add SHA256+MAC.
13396 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13397 (zio_read): Handle encrypted blocks.
13398 (zap_verify): Remove incorrect check.
13399 (fzap_iterate): Handle non-standard fzap.
13400 (zap_iterate): Likewise.
13401 (zap_iterate_u64): New function.
13402 (dnode_get_fullpath): Load keys.
13403 * grub-core/fs/zfs/zfscrypt.c: New file.
13404 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13405 (grub_crypto_ecb_encrypt): Make input const.
13406 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13407 (grub_crypto_ecb_encrypt): Make input const.
13408 (GRUB_CIPHER_AES): New macro.
13409 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13410 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13411 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13412 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13413 prefix. All users updated.
13414 (grub_zfs_add_key): New proto.
13415 (grub_zfs_decrypt): Likewise.
13416 (grub_zfs_load_key): Likewise.
13417 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13418 * util/grub-fstest.c (options): Add -K option.
13419 (argp_parser): Likewise.
13421 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13423 Support zle compression on ZFS.
13425 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13426 (decomp_table): Add zle.
13427 * include/grub/zfs/zio.h (zio_compress): Add zle.
13429 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13431 Support BtrFS embedding.
13433 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13434 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13435 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13436 * util/grub-setup.c (setup): Use fs embedding if available.
13437 Add additional sanity check.
13439 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13441 * util/grub-install.in: Fix condition for config_opt.
13443 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13445 Support third redundancy strip on raidz3.
13447 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13448 Return error on singularity. All users updated.
13449 (read_device): Don't stop on 3rd failure on raidz3.
13451 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13453 Support case-insensitive ZFS subvolumes.
13455 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13457 (zap_hash): Likewise.
13458 (name_cmp): New function.
13459 (zap_leaf_array_equal): New parameter case_insensitive.
13461 (zap_leaf_lookup): Likewise.
13462 (fzap_lookup): Likewise.
13463 (zap_lookup): Likewise.
13464 (dnode_get_path): New parameter case_insensitive. Retrieve case
13465 sensitiviness of a volume. All users updated.
13466 (dnode_get_fullpath): New parameter case_insensitive.
13468 (grub_zfs_dir): Set info.case_insensitiveness.
13470 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13472 Support second redundancy strip on raidz(2,3).
13474 * grub-core/fs/zfs/zfs.c (powx): New array.
13475 (powx_inv): Likewise.
13477 (xor_out): New function.
13478 (gf_mul): Likewise.
13479 (recovery): Likewise.
13480 (read_device): Use second redundancy strip.
13482 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13484 Use a power of generator representation of GF(256) multiplication group
13485 to save space time and complexity.
13487 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13488 (raid6_table2): Likewise.
13490 (powx_inv): Likewise.
13492 (grub_raid_block_mul): Replace with ...
13493 (grub_raid_block_mulx): ...this.
13494 (grub_raid6_init_table): Rewritten.
13495 (grub_raid6_recover): Use power of generator representation.
13497 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13499 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13500 for the right device.
13502 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13504 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13505 expected by grub-mkimage and it's more clear since there is no implicit
13508 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13510 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13512 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13514 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13516 * util/grub-mkrescue.in: Fix handling xorriso option.
13518 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13520 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13523 2011-11-03 crocket <crockabiscuit@gmail.com>
13525 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13527 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13529 XZ CRC64 and SHA256 support.
13531 * Makefile.util.def (libgrubmods): Add crc64.c.
13532 * grub-core/Makefile.core.def (crc64): New module.
13533 * grub-core/lib/crc64.c: New file.
13534 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13535 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13537 (MAX_HASH_SIZE): New define.
13538 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13539 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13540 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13541 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13542 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13543 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13544 Handle non-crc32 hashes.
13545 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13546 (dec_stream_header): Handle non-crc32 hashes.
13547 (dec_stream_footer): Likewise.
13548 (dec_block_header): Likewise.
13549 (dec_main): Likewise.
13550 (xz_dec_init): Likewise.
13551 (xz_dec_reset): Likewise.
13552 (xz_dec_end): Likewise.
13553 * util/import_gcry.py: Add CRC64 line.
13555 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13557 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13560 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13562 Make reiserfs label retrieval similar to other *_label functions.
13564 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13565 (REISERFS_MAX_LABEL_LENGTH): Removed.
13566 (REISERFS_LABEL_OFFSET): Likewise.
13567 (grub_reiserfs_label): Rewritten.
13569 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13571 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13574 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13576 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13578 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13580 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13581 drive failure on both raidz and raidz2.
13583 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13585 Fix RAIDZ(2) for >= 5 devices.
13587 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13588 asize argument. All users updated.
13590 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13594 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13595 (fill_vdev_info_real): Set ashift.
13596 (read_device): Rewrite RAIDZ part based on reverse engineering.
13598 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13600 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13601 don't report potentially unavialiable fields in debug output.
13602 (find_path): Fix double-free and memory leak.
13604 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13606 Read label on UFS1.
13608 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13609 (grub_ufs_fs): Always set .label.
13611 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13615 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13616 (grub_ufs_data): New field log2_blksz.
13617 (grub_ufs_read_file): Use shifts.
13618 (grub_ufs_mount): Check block size and logarithm it.
13620 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13622 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13625 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13627 Handle symlinks and long names on tar and cpio.
13629 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13630 (ATTR_FILE): Likewise.
13631 (ATTR_DIR): Likewise.
13632 (ATTR_LNK): Likewise.
13633 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13634 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13636 (grub_cpio_mount): Zero-fill data.
13637 (handle_symlink): New function.
13638 (grub_cpio_dir): Handle symlinks.
13639 (grub_cpio_open): Likewise.
13640 (grub_cpio_close) [MODE_USTAR]: Free linkname.
13642 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13644 Fix iso9660 filename limitations and fix memory leaks.
13646 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13647 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13649 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13651 Fix JFS file name length limitations.
13653 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13654 (grub_jfs_diropen): Fix maximum filename length.
13655 (grub_jfs_getent): Fix filename length.
13656 (grub_jfs_lookup_symlink): Fix size checks.
13658 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13660 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13663 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13665 Leverage BFS implementation to read AFS.
13667 * Makefile.util.def (libgrubmods): Add afs.c.
13668 * grub-core/Makefile.core.def (afs): New module
13669 * grub-core/fs/afs.c: New file.
13670 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13672 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13674 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
13676 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13678 * grub-core/fs/bfs.c: Run indent.
13680 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13682 BFS implementation based on the specification.
13684 * grub-core/fs/bfs.c: New file.
13685 * Makefile.util.def (libgrubmods): Add bfs.c.
13686 * grub-core/Makefile.core.def (bfs): New module.
13688 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13690 * util/grub-fstest.c (cmd_cp): Clarify error message.
13691 (cmd_cmp): Likewise.
13693 2011-10-30 Yves Blusseau <blusseau@zetam.org>
13695 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13698 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13700 Remove afs and befs because of copyright problem.
13702 * grub-core/fs/afs.c: Removed.
13703 * grub-core/fs/afs_be.c: Removed.
13704 * grub-core/fs/befs.c: Removed.
13705 * grub-core/fs/befs_be.c: Removed.
13706 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13707 * grub-core/Makefile.core.def (afs): Removed.
13708 (afs_be): Likewise.
13710 (befs_be): Likewise.
13712 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13714 Prefer rockridge over Joliet.
13716 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13718 (set_rockridge): ... here.
13719 (grub_iso9660_mount): Check rockridge on the primary label when
13720 discovering. Ignore Joliet if Rockridge is present.
13722 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13724 Use shifts in nilfs2.
13726 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13727 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13728 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13729 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13730 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13731 (grub_nilfs2_entries_per_block): Replaced with ...
13732 (grub_nilfs2_log_entries_per_block_log): ... this.
13733 (grub_nilfs2_blocks_per_group): Replaced with ...
13734 (grub_nilfs2_blocks_per_group_log): ... this.
13735 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13736 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13737 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13738 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13739 (grub_nilfs2_palloc_entry_offset): Replaced ...
13740 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13741 (grub_nilfs2_dat_translate): Use shifts.
13742 (grub_nilfs2_read_inode): Likewise.
13743 (GRUB_MOD_INIT): Ensure that logs are correct.
13745 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13747 Use shifts in minix filesystem.
13749 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13750 (GRUB_MINIX_ZONE2SECT): Likewise.
13751 (grub_minix_data): Replace block_size with log_block_size.
13752 (grub_minix_read_file): Use shifts.
13753 (grub_minix_mount): Check block size and take a logarithm.
13755 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13757 Use shifts in squash4.
13759 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13760 (squash_mount): Check block size and take logarithm.
13761 (direct_read): Use shifts.
13763 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13765 Correct befs block counting logic.
13767 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13768 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13769 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13770 (grub_afs_read_inode): Use block_shift.
13771 (RANGE_SHIFT): New definition.
13772 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13773 unexpected conditions, use shifts and appropriate types.
13774 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13776 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13778 * grub-core/disk/raid.c (scan_devices): Check partition.
13779 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13781 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13783 Support BFS (befs) UUID.
13785 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13786 (grub_afs_small_data_element_header): New struct.
13787 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13788 (grub_afs_read_attribute) [MODE_BFS]: New function.
13789 (grub_afs_iterate_dir): Allocate for complete inode.
13790 (grub_afs_mount): Likewise.
13791 (grub_afs_uuid) [MODE_BFS]: New function.
13792 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13794 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13796 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13797 (zfs_unmount): Fix memory leak.
13799 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13801 Support NTFS reparse points.
13803 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13804 (symlink_descriptor): New struct.
13805 (grub_ntfs_read_symlink): New function.
13806 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13807 (grub_ntfs_open): Likewise.
13809 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13811 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13813 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13815 fstest xnu_uuid subcommand.
13817 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13818 grub-core/commands/xnu_uuid.c.
13819 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13820 (fstest): Handle xnu_uuid.
13821 (options): Document xnu_uuid.
13822 (argp_parser): Parse xnu_uuid.
13824 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13826 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13827 -l argument. Add newline at the end if printing.
13828 (GRUB_MOD_INIT): Document -l.
13830 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13832 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13834 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13836 ZFS multi-device and version 33 support.
13838 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13839 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13840 (grub_zfs_data): Add multidev-ice-related fields.
13841 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13842 (dva_get_offset): Make dva const.
13843 (zfs_fetch_nvlist): New function.
13844 (fill_vdev_info_real): Likewise.
13845 (fill_vdev_info): Likewise.
13846 (check_pool_label): Likewise.
13847 (scan_disk): Likewise.
13848 (scan_devices): Likewise.
13849 (read_device): Likewise.
13850 (read_dva): Likewise.
13851 (zio_read_gang): Use read_dva.
13852 (zio_read_data): Likewise.
13853 (zap_leaf_lookup): Add missing endian conversion.
13854 (zap_verify): Add missing endian conversion. All users updated.
13855 (fzap_lookup): Likewise.
13856 (fzap_iterate): Likewise.
13857 (dnode_get_path): Handle SA bonus.
13858 (nvlist_find_value): Make input const. All users updated.
13859 (unmount_device): New function.
13860 (zfs_unmount): Use unmount_device.
13861 (zfs_mount): Use scan_disk.
13862 (zfs_mtime): New function.
13863 (grub_zfs_open): Handle system attributes.
13864 (fill_fs_info): Likewise.
13865 (grub_zfs_dir): Likewise.
13866 (grub_zfs_fs): Add mtime.
13867 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13868 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13869 (SA_MTIME_OFFSET): Likewise.
13870 (SA_SYMLINK_OFFSET): Likewise.
13871 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13872 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13873 (fstest): Support zfsinfo.
13874 (argp_parser): Likewise.
13876 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13878 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13881 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13885 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13886 sharing the same block. Iterate over correct number of indices.
13887 (dnode_get_path): Handle symlinks correctly.
13889 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13891 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13893 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13895 Read label on HFS+.
13897 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13898 (grub_hfsplus_btree_search): Fix types.
13899 (grub_hfsplus_label): Implement.
13901 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13903 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13905 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13907 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13909 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13911 Fix symlink handling on iso9660.
13913 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13915 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13916 (grub_iso9660_read_symlink): Moved most of code ...
13917 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13919 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13921 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13922 Use union to avoid breaking strict-aliasing rules.
13924 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13926 Support multi-extent iso files.
13928 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13930 (grub_fshelp_node): Revamp. All users updated.
13931 (FLAG_*): New enum.
13932 (read_node): New function.
13933 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13935 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13936 (get_node_size): New function.
13937 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13939 Fix memory leak on . and ..
13940 (grub_iso9660_read): Use read_node.
13941 (grub_iso9660_close): Free node.
13943 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13945 Fix tar 4G limit and handle paths containing dot.
13947 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13948 (canonicalize): New function.
13949 (grub_cpio_find_file): Use canonicalize. Store offs in
13951 (grub_cpio_dir): Use grub_disk_addr_t.
13952 (grub_cpio_open): Likewise.
13954 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13956 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13958 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13960 (grub_squash_inode): Add long_file and block_size.
13961 (grub_squash_cache_inode): New struct.
13962 (grub_squash_dirent): Make types into enum.
13963 (SQUASH_TYPE_LONG_REGULAR): New type.
13964 (grub_squash_frag_desc): Add field size.
13965 (SQUASH_BLOCK_FLAGS): New enum.
13966 (grub_squash_data): Use grub_squash_cache_inode.
13967 (grub_fshelp_node): Make ino_chunk 64-bit.
13968 (read_chunk): Minor argument change. All users updated.
13969 (squash_mount): Use correct le_to_cpu.
13970 (grub_squash_open): Handle LONG_REGULAR.
13971 (direct_read): New function.
13972 (grub_squash_read_data): Handle blocks correctly.
13974 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13976 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13978 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13980 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13982 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13984 Fix 2G limit on ZFS.
13986 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13988 (uberblock_verify): Likewise.
13989 (dmu_read): Likewise.
13990 (grub_zfs_read): Likewise. Remove invalid cast.
13992 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13994 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13995 (grub_jfs_blkno): Fix incorrect shift.
13996 (grub_jfs_read_file): Use more appropriate types.
13998 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14000 Support triple indirect on minix2 and minix3.
14002 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
14003 Declare triple_indir_zone.
14004 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
14007 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14011 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
14012 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
14013 Rename ctime to mtime. All users updated.
14014 (grub_minix_get_file_block): Fix types and double indirect computations.
14016 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14018 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
14019 if no label is found.
14020 (grub_fat_iterate_dir): Fix file size type.
14021 (grub_fat_iterate_dir): Likewise.
14023 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14025 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
14027 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
14028 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14030 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14032 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
14034 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14036 * util/import_gcry.py: Accept space between # and include.
14038 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14040 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
14042 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14044 Fine grainely disable warnings on lexer. Remove Wno-error on it.
14046 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
14047 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
14049 * grub-core/script/yylex.l: Add fine-grained #pragma.
14051 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14053 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
14054 New inline function.
14055 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
14057 (memset) [GRUB_UTIL]: Likewise.
14058 (memcmp) [GRUB_UTIL]: Likewise.
14060 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14062 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
14063 inline function rather than a define.
14065 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14067 * util/grub-setup.c: Add missing include.
14069 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14071 * util/ieee1275/grub-ofpathname.c: Add missing include.
14073 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14075 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14076 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14079 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14081 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14084 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14086 * util/grub-install.in: Add datarootdir as per automake manual
14088 * util/grub-mknetdir.in: Likewise.
14090 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14092 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14094 * util/grub.d/10_kfreebsd.in: Likewise.
14095 * util/grub.d/10_linux.in: Likewise.
14096 * util/grub.d/10_netbsd.in: Likewise.
14097 * util/grub.d/10_windows.in: Likewise.
14098 * util/grub.d/20_linux_xen.in: Likewise.
14100 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14102 Remove redundant grub_kernel_image_size.
14104 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14106 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14107 the small code. It moves it only by few bytes but simplifies the code.
14108 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14110 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14111 (grub_kernel_image_size): Removed.
14112 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14113 (grub_kernel_image_size): Removed.
14114 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14115 compiled with Apple toolchain.
14116 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14117 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14118 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14119 (grub_total_module_size): Likewise.
14120 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14122 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14123 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14124 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14125 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14126 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14127 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14128 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14129 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14131 (grub_total_module_size): Removed.
14132 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14133 (image_targets): Likewise.
14134 Set .compressed_size to no field on sparc.
14135 (generate_image): Remove kernel_image_size handling.
14137 2011-10-19 Szymon Janc <szymon@janc.net.pl>
14139 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14140 NULL pointer dereference.
14142 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14144 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14145 done with a dedicated section.
14147 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14148 Ensure the correct position of boot_path.
14149 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14150 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14152 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14153 * include/grub/boot.h: Removed. All references removed.
14154 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14156 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14158 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14160 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14163 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14165 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14167 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14169 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14170 Don't add the bogus brackets.
14172 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14176 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14177 * grub-core/Makefile.core.def (exfat): New module.
14178 * grub-core/fs/exfat.c: New file.
14179 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14180 (GRUB_FAT_ATTR_*): Make into an enum.
14181 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14182 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14183 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14184 (GRUB_FAT_MAXFILE): Removed.
14185 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14186 (grub_current_fat_bpb_t): New type.
14187 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14188 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14189 (grub_fat_dir_node_t): New type.
14190 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14191 (fat_log2) [MODE_EXFAT]: Removed.
14192 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14193 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14194 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14195 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14196 (grub_fat_label) [MODE_EXFAT]: New function.
14197 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14198 reserved_first_sector to 0.
14200 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14202 Move grub_reboot out of the kernel.
14204 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14205 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14206 * grub-core/lib/efi/reboot.c: ... here.
14207 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14208 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14209 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14210 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14211 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14212 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14213 * grub-core/lib/ieee1275/reboot.c: ... here.
14214 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14215 * grub-core/lib/mips/arc/reboot.c: ... here.
14216 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14217 * grub-core/lib/mips/loongson/reboot.c: ...here.
14218 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14219 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14220 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14221 * include/grub/i386/reboot.h: New file.
14222 * include/grub/mips/loongson/ec.h: Fix includes.
14223 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14224 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14225 * grub-core/lib/i386/reboot.c: New file.
14227 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14229 Make grub_prefix into module to fix the arbitrary limit and save
14232 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14233 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14234 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14235 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14236 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14237 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14238 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14239 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14240 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14241 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14242 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14243 * include/grub/ia64/efi/kernel.h: Removed.
14244 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14245 (grub_prefix): Removed.
14246 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14247 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14248 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14249 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14250 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14251 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14252 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14253 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14254 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14255 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14256 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14257 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14258 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14259 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14260 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14261 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14262 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14263 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14264 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14265 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14266 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14267 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14268 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14269 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14270 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14271 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14272 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14273 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14274 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14276 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14278 (image_targets): Likewise.
14279 (generate_image): Put prefix as a module.
14281 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14283 Replace grub_module_iterate with FOR_MODULES.
14285 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14286 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14287 (grub_efi_modules_addr): ...this.
14288 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14289 (grub_efi_init): Set grub_modbase.
14290 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14291 (grub_modbase): New variable.
14292 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14293 (grub_modbase): New variable.
14294 (grub_machine_init): Set grub_modbase.
14295 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14296 (grub_modbase): New variable.
14297 (grub_machine_init): Set grub_modbase.
14298 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14299 (grub_modbase): New variable.
14300 (grub_machine_init): Set grub_modbase.
14301 * grub-core/kern/main.c (grub_module_iterate): Remove.
14302 (grub_modules_get_end): Use grub_modbase.
14303 (grub_load_modules): Use FOR_MODULES.
14304 (grub_load_config): Likewise.
14305 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14306 (grub_modbase): New variable.
14307 (grub_machine_init): Set grub_modbase.
14308 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14309 (grub_modbase): New variable.
14310 (grub_machine_init): Set grub_modbase.
14311 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14313 (grub_modbase): New variable.
14314 (grub_machine_init): Set grub_modbase.
14315 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14316 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14317 (grub_module_iterate): Likewise.
14318 (grub_modbase): New variable declaration.
14319 (FOR_MODULES): New macro.
14321 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14323 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14324 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14326 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14328 Fix few obvious type discrepancies.
14330 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14331 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14332 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14334 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14335 and connected types.
14336 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14338 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14339 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14340 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14341 and connected types.
14343 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14345 Fix python 3.x incompatibilities.
14347 * gentpl.py: Put brackets around print strings.
14348 * util/import_gcry.py: Open explicitly as utf-8.
14349 Use in instead of has_key.
14351 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14353 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14354 (GRUB_XFS_INO_AGBITS): Make into inline function.
14355 (GRUB_XFS_INO_INOINAG): Likewise.
14356 (GRUB_XFS_INO_AG): Likewise.
14357 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14358 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14359 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14360 (GRUB_XFS_EXTENT_SIZE): Likewise.
14361 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14362 (GRUB_XFS_NEXT_DIRENT): Likewise.
14363 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14364 (grub_xfs_read_file): Fix offset type.
14366 2011-10-15 Robert Millan <rmh@gnu.org>
14368 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14370 2011-10-15 Robert Millan <rmh@gnu.org>
14372 Fix build problem on FreeBSD and GNU/kFreeBSD.
14374 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14376 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14378 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14380 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14382 (grub_hfsplus_btree_recoffset): Likewise.
14383 (grub_hfsplus_btree_recptr): Likewise.
14384 (grub_hfsplus_find_block): Likewise.
14385 (grub_hfsplus_btree_search): Likewise.
14386 (grub_hfsplus_read_block): Likewise.
14387 (grub_hfsplus_read_file): Likewise.
14388 (grub_hfsplus_mount): Likewise.
14389 (grub_hfsplus_btree_iterate_node): Likewise.
14390 (grub_hfsplus_btree_search): Likewise.
14391 (grub_hfsplus_iterate_dir): Likewise.
14392 (grub_hfsplus_read): A small code simplification.
14394 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14396 * grub-core/kern/emu/hostdisk.c
14397 (convert_system_partition_to_system_disk): Don't assume that children
14398 of mapper nodes are mapper nodes.
14400 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14402 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14403 * include/grub/misc.h (grub_isxdigit): New function.
14404 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14405 switched to grub_isxdigit.
14406 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14407 number starting with a letter.
14409 2011-10-09 Robert Millan <rmh@gnu.org>
14411 LVM support for FreeBSD and GNU/kFreeBSD.
14413 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14415 (LVM_DEV_MAPPER_STRING): Move from here ...
14416 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14417 * util/getroot.c: Include `<grub/util/lvm.h>'.
14418 (grub_util_get_dev_abstraction): Enable
14419 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14420 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14421 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14422 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14424 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14426 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14427 when LVM abstraction is required for ${GRUB_DEVICE}.
14429 2011-10-06 Szymon Janc <szymon@janc.net.pl>
14431 Add support for LZO compression in GRUB:
14432 - import of minilzo library,
14433 - LZO decompression for btrfs,
14434 - lzop files decompression.
14436 * grub-core/io/lzopio.c: New file.
14437 * grub-core/lib/adler32.c: Likewise.
14438 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14439 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14440 * grub-core/lib/minilzo/minilzo.c: Likewise.
14441 * grub-core/lib/minilzo/minilzo.h: Likewise.
14442 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14443 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14444 grub-core/lib/minilzo/minilzo.c to common.
14445 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14446 cflags in cppflags.
14447 * grub-core/Makefile.core.def (btrfs): Likewise.
14448 * grub-core/Makefile.core.def (lzopio): New module.
14449 (adler32): Likewise.
14450 * grub-core/fs/btrfs.c: Include minilzo.h.
14451 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14452 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14453 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14454 (grub_btrfs_lzo_decompress): New function.
14455 (grub_btrfs_extent_read): Add support for LZO compression type.
14456 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14457 (GRUB_USHRT_MAX): Likewise.
14458 (GRUB_UINT_MAX): Likewise.
14459 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14460 (UINT_MAX): Likewise.
14461 (CHAR_BIT): Likewise.
14462 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14463 grub-core/lib/posix_wrap/limits.h
14464 (UCHAR_MAX): Likewise.
14465 * include/grub/file.h (grub_file_filter_id): New compression filter
14466 GRUB_FILE_FILTER_LZOPIO.
14467 * include/grub/file.h (grub_file_filter_id): Set
14468 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14469 * include/grub/types.h (grub_get_unaligned16): New function.
14470 (grub_get_unaligned32): Likewise.
14471 (grub_get_unaligned64): Likewise.
14472 * util/import_gcry.py (cryptolist): Add adler32.
14474 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14476 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14477 in perspective decreases the complexity of build system and fixes
14478 compilation right now.
14480 2011-10-01 Ales Nesrsta <starous@volny.cz>
14482 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14483 (fixed problem related to using UHCI with coreboot).
14485 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14487 * gentpl.py: Use Autogen macros so that the output template file
14488 (Makefile.tpl) size is reduced.
14490 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
14492 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14495 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14497 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14498 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14500 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14502 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14505 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14507 Remove extra declaration of sleep for mingw32.
14509 * util/misc.c (sleep) [__MINGW32__]: Removed.
14510 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14512 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14514 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14516 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14518 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14519 (grub_netbsd_btinfo_bootwedge): New struct.
14520 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14522 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14524 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14526 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14529 2011-09-28 Andreas Born <futur.andy@googlemail.com>
14531 Fix incorrect identifiers in bash-completion.
14533 * util/bash-completion.d/grub-completion.bash.in
14534 (_grub_mkpasswd-pbkdf2): Rename to ...
14535 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14536 (_grub_script-check): Rename to ...
14537 (_grub_script_check): ... this. All users updated.
14539 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14541 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14542 Return 0 if disk isn't biosdisk.
14544 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14546 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14548 * Makefile.util.def (grub-fstest): Likewise.
14550 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14552 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14553 Get sector size from disk label.
14555 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
14557 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14558 */README* as well as README*.
14559 Reported by: Axel Beckert.
14561 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14563 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14564 case of less than 256 MiB of RAM.
14566 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14568 * grub-core/commands/wildcard.c (make_regex): Handle @.
14570 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14572 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14574 2011-08-21 Szymon Janc <szymon@janc.net.pl>
14576 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14577 AC_LANG_CONFTEST macros.
14579 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14581 Add grub-fstest option to uncompress data for commands.
14583 * util/grub-fstest.c (uncompress): New var.
14584 (options): New option -u.
14586 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14588 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14589 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14591 2011-08-20 Szymon Janc <szymon@janc.net.pl>
14593 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14594 file type was not recognized correctly (not gzip or corrupted).
14596 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14598 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14599 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14601 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14603 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14605 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14606 video_radeon_fuloong2e.
14607 * grub-core/video/radeon_fuloong2e.c: New file.
14608 * include/grub/video.h (grub_video_id_t): Add new ID
14609 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14611 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14613 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14615 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14616 that PRID matches the detected subplatform and reset the subplatform
14619 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14621 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14623 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14625 Fix PCI iterating on functions >= 4.
14627 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14628 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14630 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14631 (grub_pci_read): Fix bitmask.
14632 (grub_pci_read_word): Likewise.
14633 (grub_pci_read_byte): Likewise.
14634 (grub_pci_write): Likewise.
14635 (grub_pci_write_word): Likewise.
14636 (grub_pci_write_byte): Likewise.
14638 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14640 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14641 can still be specified in TARGET_CFLAGS)
14643 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14645 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14647 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14648 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14649 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14650 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14651 (FULOONG): Rename to ...
14652 (FULOONG2F): ... this. All users updated.
14653 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14654 (machtype_fuloong2f_str): ... this.
14655 (machtype_fuloong2e_str): New string.
14656 Check for machtype_fuloong2e_str.
14657 * grub-core/loader/mips/linux.c (loongson_machtypes)
14658 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14659 * grub-core/term/serial.c (loongson_defserial)
14660 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14661 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14662 loongson_defserial.
14663 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14665 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14666 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14667 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14668 to IMAGE_FULOONG2F_FLASH. All users updated.
14669 (image_targets): Rename images.
14670 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14672 2011-08-19 Szymon Janc <szymon@janc.net.pl>
14674 Make enable of disk cache statistics code configurable.
14676 * configure.ac: --enable-cache-stats added.
14677 * config.h.in (DISK_CACHE_STATS): New define.
14678 * grub-core/Makefile.core.def (cacheinfo): New command.
14679 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14680 * grub-core/commands/cacheinfo.c: New file.
14681 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14682 moved to cacheinfo.c.
14683 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14685 * include/grub/disk.h: Likewise.
14687 2011-08-19 Szymon Janc <szymon@janc.net.pl>
14689 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14690 * grub-core/Makefile.am: Likewise.
14692 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14694 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14697 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14699 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14701 (grub_jfs_lookup_symlink): Use correct starting inode.
14703 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14705 * util/grub-setup.c (main): Add missing gcry initialisation.
14707 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14709 Don't accept text modes on EFI when booting Linux.
14711 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14712 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14714 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
14715 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
14717 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14718 use of "/path/.." as in grub-install for EFI as well as handling
14719 symlinks correctly.
14720 Fixes Debian bug #637768.
14722 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
14724 * util/grub-probe.c: Remove duplicate #include.
14726 2011-08-10 Robert Millan <rmh@gnu.org>
14728 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14730 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14732 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14733 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14735 2011-08-03 Robert Millan <rmh@gnu.org>
14737 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14738 la_array as packed.
14739 Reported by: Zachary Bedell
14741 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
14743 * configure.ac: The Loongson port requires grub-mkfont due to its
14744 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14747 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
14749 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14750 processing arguments (otherwise help2man fails when GRUB has not yet
14753 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14755 New script grub-mkstandalone.
14757 * Makefile.util.def (grub-mkstandalone): New script.
14758 * docs/man/grub-mkstandalone.h2m: New file.
14759 * util/grub-mkstandalone.in: Likewise.
14761 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14763 Support ATA disks with 4K sectors.
14765 * include/grub/ata.h (grub_ata): New member log_sector_size.
14766 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14767 (grub_ata_identify): Read sector size.
14768 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14770 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14772 * util/grub-install.in: Don't use uhci outside of x86.
14774 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14776 * util/grub-mkrescue.in: Add missing quotes.
14778 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14780 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14783 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14785 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14787 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14789 * include/grub/video.h: add missing EXPORT_FUND on
14790 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14792 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14794 * include/grub/mips/kernel.h: Fix define conflict.
14796 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14798 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14801 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
14803 Preferred resolution detection for VBE.
14805 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14806 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14807 the Flat Panel extension, in line with the X.org VESA driver.
14808 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14810 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14811 (grub_vbe_bios_read_edid): Likewise.
14812 (grub_vbe_get_preferred_mode): Likewise.
14813 (grub_video_vbe_setup): When the mode is "auto", try to get the
14814 preferred mode from VBE, and use the largest mode that is no larger
14815 than the preferred mode (some BIOSes expose a preferred mode that is
14816 not in their mode list!). If this fails, fall back to 640x480 as a
14817 safe conservative choice.
14818 (grub_video_vbe_get_edid): New function.
14819 (grub_video_vbe_adapter): Add get_edid.
14820 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14821 (struct grub_video_adapter): Add get_edid.
14822 (grub_video_edid_checksum): Add prototype.
14823 (grub_video_edid_preferred_mode): Likewise.
14824 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14827 * grub-core/commands/videoinfo.c (print_edid): New function.
14828 (grub_cmd_videoinfo): Print EDID if available.
14830 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14831 is more appropriate on a wider range of platforms than 640x480.
14832 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14835 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14837 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14839 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14841 * po/POTFILES.in: Regenerate.
14843 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14845 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14846 incorrect memory usage.
14848 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14850 * util/grub-install.in: Source grub-mkconfig_lib.
14852 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14854 Remove getroot.c from core on emu platform.
14856 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14858 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14860 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14861 * util/getroot.c (get_win32_path): ... here.
14862 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14863 * util/getroot.c (fini_libzfs): ... here.
14864 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14865 * util/getroot.c (grub_get_libzfs_handle): ... here.
14866 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14868 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14869 * grub-core/kern/emu/misc.c
14870 (grub_make_system_path_relative_to_its_root): Moved from here...
14871 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14872 * grub-core/kern/emu/getroot.c: Moved from here ...
14873 * util/getroot.c: ... here. All users updated.
14874 * grub-core/kern/emu/raid.c: Moved from here ...
14875 * util/raid.c: ... here. All users updated.
14877 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14879 * po/POTFILES.in: Regenerate.
14881 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14883 Fix compilation on GNU/Linux.
14885 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14887 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14888 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14889 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14891 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14892 2011-07-07 Michael Gorven <michael@gorven.za.net>
14893 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14895 LUKS and GELI support.
14897 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14898 grub-core/disk/luks.c, grub-core/disk/geli.c,
14899 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14900 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14901 grub-core/lib/arg.c.
14902 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14903 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14904 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14905 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14906 (grub-bin2h): Add libgcry.a.
14907 (grub-mkimage): Likewise.
14908 (grub-mkrelpath): Likewise.
14909 (grub-script-check): Likewise.
14910 (grub-editenv): Likewise.
14911 (grub-mkpasswd-pbkdf2): Likewise.
14912 (grub-pe2elf): Likewise.
14913 (grub-fstest): Likewise.
14914 (grub-mkfont): Likewise.
14915 (grub-mkdevicemap): Likewise.
14916 (grub-probe): Likewise.
14917 (grub-ofpath): Likewise.
14918 (grub-mklayout): Likewise.
14919 (example_unit_test): Likewise.
14920 (grub-menulst2cfg): Likewise.
14921 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14922 * grub-core/Makefile.core.def (cryptodisk): New module.
14925 * grub-core/disk/AFSplitter.c: New file.
14926 * grub-core/disk/cryptodisk.c: Likewise.
14927 * grub-core/disk/geli.c: Likewise.
14928 * grub-core/disk/luks.c: Likewise.
14929 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14931 (grub_util_get_dm_abstraction): New function.
14932 (grub_util_follow_gpart_up): Likewise.
14933 (grub_util_get_geom_abstraction): Likewise.
14934 (grub_util_get_dev_abstraction): Use new functions.
14935 (grub_util_pull_device): Pull GELI and LUKS.
14936 (grub_util_get_grub_dev): Handle LUKS and GELI.
14937 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14938 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14939 (follow_geom_up): Removed.
14940 (grub_util_fd_seek): New function.
14941 (open_device): Use grub_util_fd_seek.
14942 (nread): Rename to ..
14943 (grub_util_fd_read): ... this. All users updated.
14944 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14945 (grub_crypto_cbc_decrypt): Likewise.
14946 (grub_crypto_hmac_write): Likewise.
14947 (grub_crypto_hmac_buffer): Likewise.
14948 (grub_password_get): Extend to util.
14949 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14950 New member modname.
14951 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14952 * include/grub/cryptodisk.h: New file.
14953 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14954 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14956 (grub_util_follow_gpart_up): New proto.
14957 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14958 (grub_util_fd_read): Likewise.
14959 (grub_cryptodisk_cheat_mount): Likewise.
14960 (grub_util_cryptodisk_print_uuid): Likewise.
14961 (grub_util_get_fd_sectors): Likewise.
14962 * util/grub-fstest.c (mount_crypt): New var.
14963 (fstest): Mount crypto if requested.
14964 (options): New option -C.
14965 (argp_parser): Parse -C.
14966 (main): Init and fini gcry.
14967 * util/grub-install.in: Support cryptodisk install.
14968 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14969 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14971 (prepare_grub_to_access_device): Likewise.
14972 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14973 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14974 (probe_cryptodisk_uuid): New function.
14975 (probe_abstraction): Likewise.
14976 (probe): Use new functions.
14977 * util/import_gcry.py: Create Makefile.utilgcry.def.
14978 Add modname member.
14980 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14982 Lazy device scanning.
14984 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14985 (grub-setup): Remove util/raid.c.
14986 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14987 * grub-core/disk/lvm.c (scan_depth): New variable.
14988 (grub_lvm_iterate): Rescan if necessary.
14989 (find_lv): New function based on grub_lvm_open.
14990 (grub_lvm_open): Use find_lv. Rescan on error.
14991 (is_node_readable): New function.
14992 (is_lv_readable): Likewise.
14993 (grub_lvm_scan_device): Skip already found disks.
14994 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14995 Stop if searched device is found and readable.
14996 * grub-core/disk/raid.c (inscnt): New variable.
14997 (scan_depth): Likewise.
14998 (scan_devices): New function based on grub_raid_register. Abort if
14999 looked for device is found.
15000 (grub_raid_iterate): Rescan if needed.
15001 (find_array): NEw function based on -grub_raid_open.
15002 (grub_raid_open): Use find_array and rescan.
15003 (insert_array): Set became_readable_at.
15004 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
15005 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
15007 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
15008 (grub_util_pull_device): New function.
15009 (grub_util_get_grub_dev): Call grub_util_pull_device.
15010 * util/raid.c: Moved to ..
15011 * grub-core/kern/emu/raid.c: ... here.
15012 (grub_util_raid_getmembers): New parameter "bootable".
15013 All users updated. Support 1.x.
15014 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
15016 * include/grub/disk.h (grub_disk_pull_t): New enum.
15017 (grub_disk_dev): Change iterate prototype.
15019 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
15021 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
15022 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
15023 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
15024 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
15026 * include/grub/util/raid.h: Removed.
15028 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15030 * po/POTFILES.in: Regenerate.
15032 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15034 Unify sparc init with other ieee1275.
15036 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
15037 instead of kern/sparc64/ieee1275/init.c.
15038 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
15039 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
15040 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
15041 grub/machine/kernel.h.
15042 (grub_ieee1275_original_stack) [__sparc__]: New variable.
15043 (grub_claim_heap) [__sparc__]: Use sparc version.
15044 (grub_machine_init): Moved args parsing to
15045 (grub_parse_cmdline): ...this.
15046 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
15047 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
15049 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
15051 Move BOOTP to separate file.
15053 * grub-core/Makefile.core.def (net): Add net/bootp.c.
15054 * grub-core/net/net.c: Move all BOOTP functions to
15055 * grub-core/net/bootp.c: ... here.
15057 Use frame interface on PXE.
15059 * grub-core/Makefile.core.def (pxecmd): Removed.
15060 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
15061 * grub-core/commands/i386/pc/pxecmd.c: Removed.
15062 * grub-core/i386/pc/pxe.c: Moved from here ...
15063 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
15064 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
15065 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
15067 EFI network support.
15069 * grub-core/Makefile.core.def (efinet): New module.
15070 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
15072 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
15074 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15075 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15076 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15077 * grub-core/net/drivers/efi/efinet.c: New file.
15078 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15079 (grub_efi_net_config): New extern var.
15081 Various cleanups and bugfixes.
15083 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15085 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15086 disk declared as partition.
15087 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15089 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15090 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15091 (grub_debug_zalloc): Likewise.
15092 (grub_debug_realloc): Likewise.
15093 (grub_debug_memalign): Likewise.
15094 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15095 Check that target is IPv4.
15096 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15097 local-mac-address as fallback.
15098 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15100 * grub-core/net/ip.c (ipchksum): Rename to ...
15101 (grub_net_ip_chksum): ... this. All users updated.
15102 (grub_net_recv_ip_packets): Special handling for DHCP.
15103 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15105 Unify prefix handling
15107 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15108 (grub_machine_get_bootlocation): ... this.
15109 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15110 (grub_machine_get_bootlocation): ... this.
15111 (grub_prefix): New variable.
15113 (root_dev): New variable.
15115 (main): Use new variables.
15116 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15118 (grub_machine_get_bootlocation): ... this.
15119 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15120 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15121 (grub_machine_get_bootlocation): ... this.
15122 (grub_machine_set_prefix): Removed.
15123 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15124 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15126 (grub_machine_get_bootlocation): ... this.
15127 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15128 (grub_set_prefix_and_root): ... this. All users updated.
15129 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15131 (grub_machine_get_bootlocation): ... this.
15132 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15133 (grub_machine_get_bootlocation): New proto.
15134 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15136 Less intrusive and more reliable seek on network implementation.
15138 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15139 (grub_file_seek): Don't call grub_file_net_seek.
15140 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15141 (grub_net_fs_read_real): .. this.
15142 (grub_net_seek_real): Use net->offset.
15143 (grub_net_fs_read): Seek if necessary.
15145 Unify IEEE1275 netwotk config with the other platforms.
15147 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15149 (grub_machine_get_bootlocation): Support network.
15150 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15151 Support type and device parsing.
15152 (grub_ieee1275_get_device_type): New function.
15153 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15155 (grub_ieee1275_net_config_real): ... this.
15156 (grub_ofnet_probecards): Removed.
15157 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15158 * include/grub/ieee1275/ofnet.h: Removed.
15159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15161 (grub_ieee1275_get_device_type): New function.
15163 Unify network device closing across platforms and make more robust.
15165 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15167 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15169 * grub-core/net/net.c (grub_net_network_level_interface_register):
15171 (grub_net_card_unregister): Close all interfaces.
15172 (receive_packets): Don't poll if no iterfaces are registered.
15174 (grub_net_fini_hw): New function.
15175 (grub_net_restore_hw): Likewise.
15176 (fini_hnd): New variable.
15177 (GRUB_MOD_INIT): Register preboot hook.
15178 (GRUB_MOD_FINI): Run and unregister preboot hook.
15180 Poll network cards when idle.
15182 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15183 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15184 * grub-core/net/net.c (receive_packets): Save last poll time.
15185 (grub_net_poll_cards_idle_real): New function.
15186 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15187 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15188 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15190 Rename ofnet interfaces.
15192 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15193 (grub_ofnet_findcards): Use ofnet_%s names.
15195 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15197 Cleanup socket opening.
15199 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15200 (grub_net_fs_close): Likewise.
15201 (grub_net_fs_read_real): Use eof member.
15202 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15203 (+grub_net_udp_close): New inline function.
15205 * include/grub/net/tftp.h: Moved to the top of ...
15206 * grub-core/net/tftp.c: ... here.
15207 * include/grub/net/ip.h: Moved mostly to the top of ...
15208 * grub-core/net/ip.c: ... here.
15209 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15210 * grub-core/net/ethernet.c: ... here.
15212 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15214 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15217 * include/grub/net/ip.h (ipv4_ini): Removed.
15218 (ipv4_fini): Likewise.
15220 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15221 (grub_net_send_ip_packets): Likewise.
15223 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15225 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15226 grub_read_cmos prototype.
15228 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15230 VGA text support in qemu-mips
15232 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15233 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15234 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15236 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15237 * grub-core/kern/vga_init.c: ... this.
15238 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15239 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15240 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15242 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15243 GRUB_MACHINE_PCI_IO_BASE.
15245 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15247 MIPS qemu flash support.
15249 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15251 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15252 (grub_machine_init): Probe memory if its size isn't known.
15253 * util/grub-mkimage.c (image_targets): Add flash targets.
15254 (generate_image): Handle flash targets.
15256 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15258 MIPS qemu at_keyboard support.
15260 * gentpl.py (videoinkernel): Add qemu-mips.
15261 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15262 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15263 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15265 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15266 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15267 * grub-core/term/serial.c (grub_serial_register)
15268 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15270 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15272 CMOS support on sparc.
15274 * gentpl.py (cmos): Add powerpc and sparc.
15275 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15277 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15278 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15279 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15280 grub_set_datetime_cmos.
15281 * grub-core/lib/ieee1275/cmos.c: New file.
15282 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15283 (find_rtc): Set no_ieee1275_rtc on error.
15284 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15285 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15286 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15287 fail. Move value to argument. All users updated
15288 (grub_cmos_write): Likewise.
15289 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15290 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15291 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15292 grub_get_datetime_cmos and grub_set_datetime_cmos.
15294 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15296 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15297 sourcing grub-mkconfig_lib.
15298 * util/update-grub_lib.in: Likewise.
15299 * util/grub.d/00_header.in: Likewise.
15300 * util/grub.d/10_hurd.in: Likewise.
15301 * util/grub.d/10_kfreebsd.in: Likewise.
15302 * util/grub.d/10_linux.in: Likewise.
15303 * util/grub.d/10_netbsd.in: Likewise.
15304 * util/grub.d/10_windows.in: Likewise.
15305 * util/grub.d/20_linux_xen.in: Likewise.
15306 * util/grub.d/30_os-prober.in: Likewise.
15308 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
15310 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15311 default_bg_color rather than black.
15312 (grub_gfxterm_fullscreen): Likewise.
15313 (grub_gfxterm_background_color_cmd): Save new background color in
15316 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15318 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15320 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15322 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15325 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15327 Chainloading on coreboot support.
15329 * grub-core/Makefile.core.def (chain): Add coreboot.
15330 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15332 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15334 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15337 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15339 Implement time command.
15341 * grub-core/Makefile.core.def (time): New module.
15342 * grub-core/commands/time.c: New file.
15343 * grub-core/script/parser.y: Remove "time" keyword.
15344 * grub-core/script/yylex.l: Likewise.
15346 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15348 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15350 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15352 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15353 when handling leftovers.
15355 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15357 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15358 so that help2man doesn't fail.
15360 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15362 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15363 type in pointers on sparc64.
15364 (get_card_packet): Likewise.
15366 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
15368 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15370 (grub_cmd_videoinfo): Fetch current video mode.
15372 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15374 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15375 because of underlying system restrictions.
15377 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15379 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15382 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15384 Coreboot video support.
15386 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15388 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15389 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15391 * grub-core/kern/i386/int.S: ... here.
15392 * grub-core/video/i386/pc/vbe.c: Updated includes.
15393 * grub-core/video/i386/pc/vga.c: Likewise.
15394 * include/grub/i386/coreboot/memory.h
15395 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15396 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15397 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15398 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15399 Disable interrupts.
15400 * include/grub/i386/pc/vga.h: Removed. All users updated.
15402 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15404 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15405 definitions for dprintf.
15406 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15408 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15410 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15412 (get_card_packet): Likewise.
15414 2011-06-26 Yves Blusseau <blusseau@zetam.org>
15416 Display the path of the file when file is not found
15418 * grub-core/fs/fat.c: Display the filename when file is not found.
15419 * grub-core/fs/fshelp.c: Likewise.
15420 * grub-core/fs/hfs.c: Likewise.
15421 * grub-core/fs/jfs.c: Likewise.
15422 * grub-core/fs/minix.c: Likewise.
15423 * grub-core/fs/ufs.c: Likewise.
15424 * grub-core/fs/btrfs.c: Likewise.
15425 * grub-core/commands/i386/pc/play.c: Likewise.
15427 2011-06-26 Szymon Janc <szymon@janc.net.pl>
15429 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15430 pointer checks before calling grub_free().
15431 * grub-core/commands/wildcard.c (match_devices): Likewise.
15432 * grub-core/commands/wildcard.c (match_files): Likewise.
15433 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15434 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15435 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15436 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15437 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15438 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15439 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15440 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15441 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15443 2011-06-25 Patrick <p55@mailinator.com>
15445 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15447 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15449 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15450 (grub_pxe_send): Likewise.
15451 (GRUB_MOD_INIT): Fix types.
15453 2011-06-24 Szymon Janc <szymon@janc.net.pl>
15455 * grub-core/io/xzio.c: Fix code style issues
15457 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15458 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
15460 Network infrastructure.
15461 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15463 * include/grub/net/arp.h: New file.
15464 * include/grub/net/device.h: Likewise.
15465 * include/grub/net/ethernet.h: Likewise.
15466 * include/grub/net/ip.h: Likewise.
15467 * include/grub/net/netbuff.h: Likewise.
15468 * include/grub/net/tftp.h: Likewise.
15469 * include/grub/net/udp.h: Likewise.
15470 * include/grub/ieee1275/ofnet.h: Likewise.
15471 * include/grub/emu/export.h: Likewise.
15472 * include/grub/net.h: Likewise.
15473 * grub-core/net/arp.c: Likewise.
15474 * grub-core/net/ethernet.c: Likewise.
15475 * grub-core/net/ip.c: Likewise.
15476 * grub-core/net/udp.c: Likewise.
15477 * grub-core/net/tftp.c: Likewise.
15478 * grub-core/net/netbuff.c: Likewise.
15479 * grub-core/net/net.c: Likewise.
15480 * grub-core/net/drivers/emu/emunet.c: Likewise.
15481 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15482 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15484 * grub-core/Makefile.core.def (net): New module.
15487 (emunet): Likewise.
15488 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15490 * grub-core/kern/device.c (grub_net_open) : New variable.
15491 (grub_device_open): Handle network device.
15492 (grub_device_close): Likewise.
15493 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15494 (grub_grubnet_fini): Likewise.
15495 (grub_file_seek): Seek in network device.
15496 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15497 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15499 (grub_machine_fini): Call grub_grubnet_fini.
15500 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15502 (grub_ieee1275_get_aliasdevname): New function.
15503 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15504 Add unofficial Solaris network info.
15505 (grub_multiboot_make_mbi): Likewise.
15506 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15507 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15508 * include/grub/device.h (grub_fs): Removed.
15509 * include/grub/err.h (grub_err_t): Add network-related values.
15510 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15511 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15512 (grub_ieee1275_get_aliasdevname): New proto.
15513 * include/grub/net.h: Rewritten.
15515 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15517 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15520 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15522 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15523 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15524 it truncates the output.
15525 Reported by: Ximin Luo.
15527 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15529 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15531 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15533 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15534 partmap before abstraction.
15536 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15538 * util/grub-mkconfig_lib.in: Add missing quotes.
15540 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15542 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15543 old method if mountinfo would return /dev/root and /dev/root doesn't
15546 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15550 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15551 (decomp_table): Add zlib entries.
15552 (zio_read): USe 8 bits for compression function rather than 3.
15553 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15555 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15557 * grub-core/disk/ahci.c: Add missing license statements.
15558 * grub-core/fs/romfs.c: Likewise.
15559 * grub-core/lib/ia64/setjmp.S: Likewise.
15560 * grub-core/loader/i386/pc/freedos.c: Likewise.
15561 * grub-core/loader/ia64/efi/linux.c: Likewise.
15562 * grub-core/video/colors.c: Likewise.
15563 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15565 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15569 * grub-core/Makefile.core.def (ata_pthru): Removed.
15570 (ahci): New module.
15572 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15574 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15576 (grub_hdparm_do_check_powermode_cmd): Likewise.
15577 (grub_hdparm_do_smart_cmd): Likewise.
15578 (grub_hdparm_set_val_cmd): Likewise.
15579 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15580 * grub-core/disk/ahci.c: New file.
15581 * grub-core/disk/ata.c: Factor out the low-level part into ...
15582 * grub-core/disk/pata.c: ... here.
15583 * grub-core/disk/ata_pthru.c: Contents moved to ...
15584 * grub-core/disk/pata.c: ... here.
15585 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15586 (grub_scsi_iterate): Use grub_scsi_names.
15587 (grub_scsi_open): Likewise.
15588 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15589 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15590 (grub_ata_regs_t): New struct.
15591 (grub_disk_ata_pass_through_parms): Likewise.
15592 (grub_ata_device): Renamed to ...
15593 (grub_ata): ... this.
15594 (grub_ata_dev): New struct.
15595 Removed all low-level inline functions.
15596 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15597 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15598 iterate hooks and open. All users updated.
15599 * util/grub-install.in: Handle AHCI disk module.
15601 2011-06-23 Szymon Janc <szymon@janc.net.pl>
15603 Add support for DRI and RSTn markers in JPEG files.
15605 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15606 (JPEG_MARKER_RST0): Likewise.
15607 (JPEG_MARKER_RST1): Likewise.
15608 (JPEG_MARKER_RST2): Likewise.
15609 (JPEG_MARKER_RST3): Likewise.
15610 (JPEG_MARKER_RST4): Likewise.
15611 (JPEG_MARKER_RST5): Likewise.
15612 (JPEG_MARKER_RST6): Likewise.
15613 (JPEG_MARKER_RST7): Likewise.
15614 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15615 (grub_jpeg_decode_dri): New function.
15616 (grub_jpeg_decode_sos): Move image data related part into
15617 grub_jpeg_decode_data function.
15618 (grub_jpeg_decode_data): New function.
15619 (grub_jpeg_reset): New function.
15620 (grub_jpeg_decode_jpeg): Handle new markers.
15622 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15624 * util/ieee1275/ofpath.c (check_sas): Close fd.
15625 (main): Free of_path.
15626 Reported by: David Volgyes <dvolgyes>.
15628 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15630 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15631 Reported by: David Volgyes <dvolgyes>.
15633 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15635 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15637 Reported by: David Volgyes <dvolgyes>.
15639 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15641 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15643 Reported by: David Volgyes <dvolgyes>.
15645 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15647 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15648 Prevent memory leak.
15650 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15652 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15653 (main): Close file.
15654 Reported by: David Volgyes <dvolgyes>.
15656 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15658 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15659 to continue if allocation is failed.
15661 Reported by: David Volgyes <dvolgyes>.
15663 2011-06-23 David Volgyes <dvolgyes>
15665 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15668 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15670 Fix spurious warning.
15672 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15673 (acorn_partition_map_find): Use .bin member.
15675 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15677 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15678 /dev/root as a valid device.
15680 2011-06-23 Jim Meyering <meyering@redhat.com>
15682 Avoid NULL deref in grub_device_open.
15684 * grub-core/kern/device.c (grub_device_open): Don't dereference
15685 a NULL pointer upon failed grub_env_get.
15687 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15689 Support non-512B sectors and agglomerate reads.
15691 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15692 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15693 (disk_io_guid): Removed.
15694 (make_devices): Locate solely by BlockIO.
15695 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15696 (grub_efidisk_read): Use read_blocks.
15697 (grub_efidisk_write): Use write_blocks.
15698 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15700 (get_safe_sectors): Handle non-512B sectors.
15701 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15703 (grub_biosdisk_write): Handle non-512B sectors.
15704 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15705 (grub_scsi_read): Remove special non-512B block handling (now handled
15707 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15708 and do sanity checks.
15709 (grub_disk_adjust_range): Handle non-512B sectors.
15710 (transform_sector): New function.
15711 (grub_disk_read_small): Likewise.
15712 (grub_disk_read): Rewritten.
15713 (grub_disk_write): Handle non-512B sectors.
15714 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15716 (open_device): Use log_sector_size.
15717 (grub_util_biosdisk_read): Likewise.
15718 (grub_util_biosdisk_write): Likewise.
15719 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15721 (pc_partition_map_embed): Likewise.
15722 * include/grub/disk.h (grub_disk): New field log_sector_size.
15723 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15724 (GRUB_DISK_CACHE_BITS): Increased to 6.
15725 * util/grub-fstest.c (fstest): New command testload.
15726 (argp_parser): Likewise.
15728 2011-06-16 Robert Millan <rmh@gnu.org>
15730 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15731 `ata' driver on kernel of FreeBSD 9.
15733 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15734 (get_ataraid_disk_name): New functions.
15735 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15736 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15737 get_ataraid_disk_name() and get_ada_disk_name().
15739 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
15741 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15744 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
15746 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15747 `ftp.gnu.org' for `alpha.gnu.org'.
15749 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
15751 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15752 partitions under /dev/disk/by-id/.
15754 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
15756 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15757 after ten consecutive open failures. Scanning all the way up to
15758 10000 is excessive and can cause serious performance problems in
15759 some configurations.
15760 Fixes Ubuntu bug #787461.
15762 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15764 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15767 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
15768 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15770 Don't stat devices unless we have to.
15772 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15773 dir == /dev/mapper.
15774 (grub_guess_root_device): Use already known os_dev if possible.
15775 * grub-core/kern/emu/hostdisk.c
15776 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15777 if device is known to be a dm one.
15779 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
15781 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15782 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15783 Reported by: Pawel Tecza.
15785 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15787 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15788 (lsefisystab): Likewise.
15790 (lsefimmap): Likewise.
15791 (hdparm): Enable on qemu-mips.
15792 (setjmp): Add ia64 nodist.
15793 (serial): Simplify tags.
15795 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15797 * Makefile.util.def (grub-ofpathname): Install manual page.
15799 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15801 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15803 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15805 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15807 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15809 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15812 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15814 Use full 64-bit division.
15816 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15817 (grub_divmod64): ... this.
15818 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15821 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15823 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15826 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15828 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15829 to avoid accidents when debugging with 'sh -x'.
15830 * grub-core/gensyminfo.sh.in: Likewise.
15831 * tests/example_scripted_test.in: Likewise.
15832 * tests/grub_cmd_regexp.in: Likewise.
15833 * tests/grub_script_blanklines.in: Likewise.
15834 * tests/grub_script_dollar.in: Likewise.
15835 * tests/grub_script_expansion.in: Likewise.
15836 * tests/grub_script_final_semicolon.in: Likewise.
15837 * tests/partmap_test.in: Likewise.
15838 * tests/util/grub-shell-tester.in: Likewise.
15839 * tests/util/grub-shell.in: Likewise.
15841 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15843 Move gfxmenu color handling to video, so that gfxterm can use it
15846 * grub-core/gfxmenu/named_colors.c: Move to ...
15847 * grub-core/video/colors.c: ... here. Rename
15848 grub_gui_get_named_color to grub_video_get_named_color.
15849 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15850 * grub-core/video/colors.c (my_isxdigit): ... here.
15851 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15853 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15854 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15856 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15858 * include/grub/gui.h (grub_gui_color_t): Move to ...
15859 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15860 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15861 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15862 * include/grub/gui.h (grub_gui_map_color): Move to ...
15863 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15864 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15866 * include/grub/video.h (grub_video_get_named_color): ... here.
15867 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15868 * include/grub/video.h (grub_video_parse_color): ... here.
15870 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15872 (gfxmenu): Remove gfxmenu/named_colors.c.
15873 (video) [videomodules]: Add video/colors.c.
15875 Add a background_color command.
15877 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15879 (GRUB_MOD_INIT): Register background_color command.
15880 (GRUB_MOD_FINI): Unregister background_color command.
15881 (redraw_screen_rect): Allow blend/replace of text layer to be
15882 controlled independently from whether there is a background bitmap.
15883 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15886 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15888 Patch BPB in ntldr and chainloader --bpb.
15890 * grub-core/fs/fat.c: Include grub/fat.h.
15891 (grub_fat_bpb): Moved to ...
15892 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15893 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15895 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15897 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15899 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15901 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15902 (GRUB_MOD_INIT): Show --bpb.
15903 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15904 * grub-core/normal/main.c (features): New variable.
15905 (GRUB_MOD_INIT): Set feature_* variables.
15906 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15908 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15910 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15912 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15915 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15917 FreeDOS direct loading support.
15919 * docs/grub.texi (Supported OS): Add FreeDOS.
15920 * grub-core/Makefile.core.def (freedos): New module.
15921 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15923 (grub_relocator16_boot): Handle %ebx.
15924 * grub-core/lib/i386/relocator16.S: Likewise.
15925 * grub-core/loader/i386/pc/freedos.c: New file.
15927 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15929 Long Linux command line support.
15931 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15932 (maximal_cmdline_size): New variable.
15933 (allocate_pages): Use maximal_cmdline_size.
15934 (grub_cmd_linux): Set and use maximal_cmdline_size.
15935 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15936 (allocate_pages): Use maximal_cmdline_size.
15937 (grub_cmd_linux): Set and use maximal_cmdline_size.
15938 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15939 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15942 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15943 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
15945 Improve devmapper support
15947 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15948 (grub_util_is_lvm): New function.
15949 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15950 than lvm if not dmraid.
15951 Handle mapped md nodes.
15952 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15953 (grub_util_device_is_mapped): ... this. Make always available. All users
15955 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15956 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15958 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15960 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15962 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15964 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15965 * grub-core/modinfo.sh.in: New file.
15966 * grub-core/Makefile.core.def (modinfo.sh): New script.
15967 * util/grub-mknetdir.in: Use modinfo.sh.
15968 * util/grub-mkrescue.in: Likewise.
15970 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15972 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15973 Fix potential usage of Elf32 instead of Elf64 when compiling on
15974 32-bit architecture. Add endianness macros while on it.
15976 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15978 Use mipsel- rather than mips- in directories involving mipsel ports to
15979 allow both endiannesses coexist.
15981 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15982 mips. All conditions adjusted.
15983 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15985 * util/grub-install.in: Adjust conditions to take renaming into account.
15986 * util/grub-mkimage.c (image_targets): Likewise. New target
15987 mips-qemu_mips-elf for bigendian mips.
15989 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15991 Avoid unnecessary copying on MIPS.
15993 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15994 early if src == dest.
15995 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15996 compression is none.
15998 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16000 Reduce memory footprint on SGI by putting modules before the kernel
16001 as opposed to after.
16003 * grub-core/Makefile.core.def (kernel): Increase linking address.
16004 (none_decompress): Likewise.
16005 (xz_decompress): Likewise.
16006 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
16008 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
16010 (grub_arch_modules_addr): New function.
16011 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
16012 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
16013 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
16015 * grub-core/kern/mips/startup.S (total_size): Rename to ...
16016 (grub_total_modules_size): ... this. Make global.
16017 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
16018 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
16020 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
16021 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
16022 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
16023 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
16024 * util/grub-mkimage.c (image_target_desc): New flag
16025 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
16026 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
16027 (generate_image): Handle images with modules before kernel.
16029 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16031 Prevent potential loss of memory map by overwrite on qemu-mips.
16033 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16034 Save ram size in $s4.
16035 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
16036 All users changed to grub_arch_memsize.
16037 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
16039 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
16040 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
16041 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
16044 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16046 * .bzrignore: Remove grub-dumpbios.
16048 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16050 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
16051 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
16052 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
16053 existing options which append).
16054 * docs/grub.texi (Simple configuration): Document new options.
16055 Reported by: Ian Jackson. Fixes Debian bug #617538.
16057 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16059 * util/grub-fstest.c (cmd_cat): New function.
16060 (fstest): Handle CMD_CAT.
16061 (options): Add cat.
16062 (argp_parser): Handle cat.
16064 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
16066 * Makefile.util.def (grub-bin2h): Don't install.
16067 * docs/man/grub-bin2h.h2m: Remove.
16069 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16071 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
16074 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16076 Reenable qemu-mips port.
16078 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16079 Fix small arc bug while on it.
16080 * gentpl.py: Handle qemu_mips.
16081 * grub-core/Makefile.am: Likewise.
16082 * grub-core/Makefile.core.def: Likewise.
16083 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16084 inappropriate includes.
16085 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16086 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16087 * grub-core/kern/main.c (grub_modules_get_end)
16088 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16089 * grub-core/kern/mips/qemu-mips: Moved to ..
16090 * grub-core/kern/mips/qemu_mips: ... this.
16091 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16092 (grub_machine_init): Call terminfo_init and serial_init.
16093 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16094 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16096 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16098 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16099 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16100 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16101 * include/grub/mips/qemu_mips/cmos.h: New file.
16102 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16103 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16105 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16106 Use correct mips-style address.
16107 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16108 (GRUB_TICKS_PER_SECOND): Removed.
16109 (grub_get_rtc): Likewise.
16110 (grub_cpu_idle): Likewise.
16111 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16113 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16114 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16115 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16116 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16117 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16118 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16119 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16120 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16122 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16126 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16127 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16129 * configure.ac: New target mips-arc.
16130 * gentpl.py: Likewise.
16131 * grub-core/Makefile.am: Likewise.
16132 * grub-core/Makefile.core.def: Likewise.
16133 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16134 (none_decompress): Likewise.
16135 (lsdev): New module.
16136 (datetime): Use lib/arc/datetime.c on ARC.
16137 (part_dvh): New module.
16138 * grub-core/commands/arc/lsdev.c: New file.
16139 * grub-core/disk/arc/arcdisk.c: Likewise.
16140 * grub-core/kern/mips/arc/init.c: Likewise.
16141 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16143 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16145 (grub_arch_dl_relocate_symbols): Likewise.
16146 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16147 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16148 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16150 * grub-core/lib/arc/datetime.c: New file.
16151 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16152 pci.h on non-loongson.
16153 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16154 (grub_linux_boot): Set unused registers to 0.
16155 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16156 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16157 * grub-core/mmap/mips/uppermem.c: ...here.
16158 * grub-core/partmap/dvh.c: New file.
16159 * grub-core/term/arc/console.c: Likewise.
16160 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16161 (grub_terminfo_set_current): Add terminal "arc".
16162 (grub_terminfo_readkey): Support ARC sequences.
16163 * include/grub/arc/arc.h: New file.
16164 * include/grub/arc/console.h: Likewise.
16165 * include/grub/disk.h (grub_disk_dev_id): Add
16166 GRUB_DISK_DEVICE_ARCDISK_ID.
16167 * include/grub/mips/arc/kernel.h: New file.
16168 * include/grub/mips/arc/memory.h: Likewise.
16169 * include/grub/mips/arc/time.h: Likewise.
16170 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16171 * include/grub/mips/kernel.h (grub_halt): ... here.
16172 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16174 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16175 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16176 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16177 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16179 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16181 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16182 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16183 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16184 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16185 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16186 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16187 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16188 (grub_phys_addr_t): Moved from here ...
16189 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16190 (grub_vtop): Moved from here ...
16191 * include/grub/mips/memory.h (grub_vtop): ... here.
16192 (grub_map_memory): Moved from here ...
16193 * include/grub/mips/memory.h (grub_map_memory): ... here.
16194 (grub_unmap_memory): Moved from here ...
16195 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16196 (grub_machine_mmap_iterate): Moved from here ...
16197 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16198 (grub_mmap_get_lower): Moved from here ...
16199 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16200 (grub_mmap_get_upper): Moved from here ...
16201 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16202 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16204 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16205 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16207 * include/grub/mips/time.h (grub_get_rtc): ... here.
16208 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16210 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16211 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16213 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16214 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16216 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16217 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16218 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16219 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16220 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16221 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16222 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16223 (GRUB_MACHINE_LINK_ADDR): Likewise.
16224 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16226 * util/grub-install.in: Run dvhtool on ARC.
16227 * util/grub-mkimage.c (image_targets): Add mips-arc.
16228 (generate_image): Handle ECOFF output for mips-arc.
16230 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16232 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16235 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16237 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16238 after enabling port.
16240 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16242 Skip incorrect USB devices.
16244 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16246 * include/grub/usb.h (grub_usb_err_t): New enum value
16247 GRUB_USB_ERR_BADDEVICE.
16249 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16251 Fuloong video init support.
16253 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16255 (grub_vga_read_arx): New function.
16256 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16258 (framebuffer): New members io, mmioptr and mmiobase.
16259 (read_sis_cmd): New function.
16260 (write_sis_cmd): Likewise.
16261 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16262 rather than 640x400.
16263 * grub-core/video/sis315_init.c: New file.
16265 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16267 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16269 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16270 to grub_dl_register_symbol.
16272 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16274 Fix compilation errors.
16276 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16277 potentially unused.
16278 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16279 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16280 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16281 to loongson machines.
16283 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16285 Several FS mtime support.
16287 * grub-core/fs/affs.c (grub_affs_time): New struct.
16288 (grub_affs_file): New field mtime.
16289 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16290 type. Removed 'size'. New field 'di'. All users updated.
16291 (grub_affs_mount): Simplify checsum checking.
16292 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16293 (grub_affs_dir): Handle mtime.
16294 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16295 (grub_cpio_dir): Likewise.
16296 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16297 (grub_hfs_filerec): New field mtime.
16298 (grub_hfs_dir): Handle mtime.
16299 (grub_hfs_mtime): New function.
16300 (grub_hfs_fs): Register grub_hfs_mtime.
16301 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16302 (grub_iso9660_dir): New field mtime.
16303 (grub_fshelp_node): New field dirent.
16304 (iso9660_to_unixtime): New function.
16305 (iso9660_to_unixtime2): Likewise.
16306 (grub_iso9660_read_symlink): Use node->dirent.
16307 (grub_iso9660_iterate_dir): Likewise.
16308 (grub_iso9660_dir): Set mtime.
16309 (grub_iso9660_mtime): New function.
16310 (grub_iso9660_fs): Register grub_iso9660_mtime.
16311 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16312 (grub_jfs_inode): New fields atime, ctime and mtime.
16313 (grub_jfs_dir): Set mtime.
16314 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16315 * grub-core/fs/ntfs.c (list_file): Set mtime.
16316 (grub_ntfs_dir): Likewise.
16317 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16318 (grub_reiserfs_iterate_dir): Set mtime.
16319 (grub_reiserfs_dir): Likewise.
16320 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16321 (grub_fshelp_node): Likewise.
16322 (grub_sfs_iterate_dir): Set mtime.
16323 (grub_sfs_dir): Likewise.
16324 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16325 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16326 (grub_xfs_inode): New fields atime, mtime, ctime.
16327 (grub_xfs_dir): Set mtime.
16328 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16329 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16330 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16332 Support UDF symlinks.
16334 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16335 (grub_ufs_read_symlink): New function. All users updated.
16337 Check amiga partmap checksum.
16339 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16340 (grub_amiga_partition): Likewise.
16341 (amiga_partition_map_checksum): New function.
16342 (amiga_partition_map_iterate): Check checksum.
16344 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16348 * Makefile.util.def (libgrubmods.a): Add romfs.
16349 * grub-core/Makefile.core.def (romfs): New module.
16350 * grub-core/fs/romfs.c: New file.
16352 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16354 Squashfs v4 support.
16356 * Makefile.util.def (libgrubmods.a): Add squash4.
16357 * grub-core/Makefile.core.def (squash4): New module.
16358 * grub-core/fs/squash4.c: New file.
16359 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16360 disk_input_start, disk_input.
16361 (get_byte): Handle disk_input.
16362 (grub_zlib_disk_read): New function.
16363 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16365 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16366 2011-05-15 Feiran Zheng <famcool@gmail.com>
16368 * Makefile.util.def (libgrubmods.a): Add minix3.
16369 * grub-core/Makefile.core.def (minix3): New module.
16370 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16371 (GRUB_MINIX_BSIZE): Removed.
16372 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16373 (grub_minix_ino_t): New type.
16374 (grub_minix_le_to_cpu_ino): New macro.
16375 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16376 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16377 (grub_minix_data): New field block_size.
16378 (grub_minix_read_file): Handle 64-bit correctly.
16379 * grub-core/fs/minix3.c: New file.
16381 2011-05-15 Tristan Gingold <gingold@free.fr>
16382 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
16383 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16387 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16388 * configure.ac: Add ia64-efi target.
16389 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16390 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16391 * gentpl.py: Add ia64_efi platform.
16392 Rename x86_efi to efi and Add ia64-efi. All users updated.
16393 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16394 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16395 Remove kern/generic/rtc_get_time_ms.c on EFI.
16396 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16397 kern/ia64/dl_helper.c on ia64-efi.
16398 Add kern/emu/cache.c on emu.
16399 (linux): Use on loader/ia64/efi/linux.c on ia64.
16400 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16401 whether symbol is a function.
16402 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16403 (grub_symbol): New field 'isfunc'.
16404 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16405 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16406 (grub_dl_load_segments): Place all sections into the same region.
16407 [__ia64__]: Create trampolines and got.
16408 [GRUB_MACHINE_EMU]: Call mprotect.
16409 (grub_dl_resolve_symbols): Resolve symbol type as well.
16410 [__ia64__]: Create function descriptors.
16411 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16412 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16413 (grub_get_rtc): New function.
16414 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16415 * grub-core/kern/emu/cache.S: Renamed to ...
16416 * grub-core/kern/emu/cache_s.S: ... this.
16417 [__ia64__]: Add a nop.
16418 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16419 [__ia64__]: New function.
16420 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16421 * grub-core/kern/ia64/dl.c: New file.
16422 * grub-core/kern/ia64/dl_helper.c: Likewise.
16423 * grub-core/kern/ia64/efi/init.c: New file.
16424 * grub-core/kern/ia64/efi/startup.S: Likewise.
16425 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16426 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16427 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16428 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16429 * grub-core/loader/ia64/efi/linux.c: New file.
16430 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16431 (GRUB_MOD_DEP): Likewise.
16432 (grub_dl) [__ia64__]: New fields got and tramp.
16433 (grub_dl): New field 'base'.
16434 (grub_dl_register_symbol): New argument isfunc. All users updated.
16435 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16436 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16437 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16438 (grub_ia64_dl_get_tramp_got_size): New proto.
16439 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16440 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16441 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16442 * include/grub/efi/api.h: Skip call wrappers on ia64.
16443 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16444 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16445 * include/grub/elf.h (ELF_ST_INFO): New definition.
16446 * include/grub/ia64/efi/kernel.h: New file.
16447 * include/grub/ia64/efi/memory.h: Likewise.
16448 * include/grub/ia64/efi/time.h: Likewise.
16449 * include/grub/ia64/kernel.h: Likewise.
16450 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16451 * include/grub/ia64/time.h: New file.
16452 * include/grub/ia64/types.h: Likewise.
16453 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16454 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16456 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16457 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16458 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16459 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16461 (EFI64_HEADER_SIZE): New definition. All users updated.
16462 (image_targets): Add ia64-efi.
16463 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16464 jumpers_addr. All users updated.
16465 Create function descriptors.
16466 (count_funcs): New function.
16467 (unaligned_uint32): New struct.
16468 (MASK20): New definition.
16469 (MASK19): Likewise.
16470 (MASKF21): Likewise.
16471 (add_value_to_slot_20b): New function.
16472 (add_value_to_slot_21_real): Likewise.
16473 (add_value_to_slot_21): Likewise.
16474 (ia64_kernel_trampoline): New struct.
16475 (nopm): New variable.
16477 (make_trampoline): New function.
16478 (relocate_addresses): Handle ia64.
16479 (make_reloc_section): Likewise.
16480 (load_image): Likewise.
16482 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16484 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16485 warning. Move variables before code while on it.
16487 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16491 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16492 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16493 * grub-core/boot/mips/loongson/fuloong.S: New file.
16494 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16495 Explicitly init CS5536.
16496 [FULOONG]: Don't use serial until CS5536 is available.
16497 Set GPIO based on dumps.
16498 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16499 [FULOONG]: Handle GPIO and memory controller differences.
16500 Parse machine type in $a2.
16501 * grub-core/boot/mips/startup_raw.S: Determine and save the
16503 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16504 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16505 init on architecture type.
16506 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16507 SIS315E. Don't init at_keyboard on fuloong.
16508 (grub_halt): Support Fuloong.
16509 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16510 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16511 (loongson_machtypes): New array.
16512 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16514 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16515 config. All users updated. Handle CS5536 serial.
16516 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16517 default port on machine type. Register serial as inactive.
16518 * grub-core/video/sis315pro.c: New file.
16519 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16521 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16522 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16523 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16524 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16525 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16526 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16528 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16529 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16531 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16532 (grub_arch_machine): New extern var.
16533 * include/grub/mips/loongson/serial.h
16534 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16535 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16536 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16537 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16538 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16539 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16540 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16541 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16542 * include/grub/term.h (grub_term_register_input_inactive): New inline
16544 (grub_term_register_output_inactive): Likewise.
16545 * include/grub/video.h (grub_video_driver_id): New value
16546 GRUB_VIDEO_DRIVER_SIS315PRO.
16547 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16548 New field "names". All users updated.
16549 New field value IMAGE_FULOONG_FLASH.
16550 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16552 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16554 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16555 and add some clarification.
16557 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16559 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16560 platforms if kernel is compressed.
16562 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16564 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16565 unused modules since currently referrence counter isn't reliable and
16566 there isn't much memory to recover there anyway.
16568 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16570 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16571 rather than resetting it to allow modules to reference themselves
16574 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16576 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16577 counter on dependencies since grub_dl_unref already handles this.
16579 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16581 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16582 on error if not already done.
16584 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16586 Fix few potential memory misusage.
16588 * grub-core/font/font.c (load_font_index): Don't free char_index to
16590 (grub_font_load): Zero-fill font at alloc for safety.
16591 Close file on error.
16592 (free_font): Free bmp_idx.
16594 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16596 * docs/grub.texi (Installation): Fix several outdated claims.
16598 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16600 Handle module_license on windows.
16602 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16604 (insert_string): Make argument const char * instead of char *.
16605 (write_section_data): Handle long section names.
16606 Handle module_license.
16608 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16610 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16611 handle class-free menuentries.
16612 (grub_normal_add_menu_entry): Add a check to be sure.
16614 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16616 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16619 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16621 * configure.ac: Bump version to 1.99.
16623 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16625 Give ATA device a bit more time on first try in order to allow disks
16628 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16629 if dev->present is 1. Reset dev->present on failure.
16630 (grub_ata_device_initialize): Set dev->present to 1.
16631 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16632 (grub_ata_device): New member 'present'.
16634 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16636 * util/grub-mkimage.c (generate_image): Update hash.
16638 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16640 Flush caches on DMA memory.
16642 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16643 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16644 (grub_dma_free): Likewise.
16645 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16647 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16649 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16650 to avoid asm treating ld and sd as macros.
16652 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16654 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16657 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16659 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16660 grub_decompress_core since later would fail if grub_decompress_core
16663 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16665 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16666 R_MIPS_JALR since it's used by newer compiler.
16668 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16670 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16672 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16674 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16675 file_path to 0 for surety.
16676 (grub_chainloader_boot): Set exit_data to NULL.
16677 Unset the loader once done.
16678 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16680 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16682 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16683 unknown key into a dprintf.
16685 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16687 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16688 on first non-existant partition.
16690 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16692 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16694 Reported by: Mark Korenberg.
16696 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16698 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16701 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16703 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16704 before closing to ensure that it will be readable by grub-setup.
16706 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16708 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16709 (devpath_1): Use MAKE_PIWG_PATH.
16710 (devpath_2): Likewise.
16711 (devpath_3): Likewise.
16712 (devpath_4): Likewise.
16713 (devpath_5): Likewise.
16714 (devpath_6): Likewise.
16716 The appleldr.mod was checked that to be binary identical to previous
16719 2011-05-05 Zach <mikezackles>
16721 Support 2010 Macbooks.
16723 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16724 (devs): Add devpath_6.
16726 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16728 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16729 /dev/random. /dev/urandom is good enough for our purposes (salting).
16731 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16733 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16735 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16737 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16740 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16742 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16743 and not 0 on failure.
16745 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
16747 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16748 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16749 disk; otherwise grub_fs_probe will not fall back to the next
16751 (grub_pxefs_open): Likewise, for consistency.
16752 Reported and tested by: Ezekiel Grave.
16754 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
16756 * tests/partmap_test.in: Don't hardcode path to parted.
16757 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16759 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
16761 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16762 of `ls' to find out which devices are available.
16764 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16766 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16767 than source address for efi mmap buffer.
16769 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16771 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16772 wrong action on non-detecting the magic.
16774 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16776 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16777 already supplied by another part of the module (fixes compilation on
16780 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16782 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16783 match the one used by mdadm.
16785 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
16787 * po/README: Add instructions for creating po/LINGUAS.
16789 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
16791 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16794 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16795 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16796 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16797 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16798 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16799 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16800 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16801 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16802 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16803 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16804 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16805 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16806 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16807 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16808 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16809 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16810 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16811 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16812 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16813 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16814 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16815 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16817 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
16819 * grub-core/kern/emu/getroot.c
16820 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16821 test that was incorrectly reintroduced in r3214.
16822 Reported by: Ian Dall. Fixes Savannah bug #33133.
16824 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
16826 Fix stack pointer handling in 16-bit relocator.
16828 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16829 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16830 Fixes Ubuntu bug #683904.
16832 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16834 * configure.ac: Bump version to 1.99~rc2.
16836 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16838 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16839 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16840 * grub-core/lib/x86_64/setjmp.S: Likewise.
16841 * grub-core/lib/mips/setjmp.S: Likewise.
16842 * grub-core/lib/powerpc/setjmp.S: Likewise.
16843 * grub-core/lib/sparc64/setjmp.S: Likewise.
16845 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16847 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16848 * grub-core/lib/efi/datetime.c: Likewise.
16850 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16852 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16854 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16855 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16856 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16858 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16860 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16862 (grub_gfxterm_term_init): Likewise.
16864 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16866 Take into account the decorations the computing menu entry width.
16868 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16869 (grub_gfxmenu_create_box): Register get_border_width.
16870 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16872 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16875 2011-04-18 Endres Puschner <code@e7p.de>
16877 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16878 Don't skip first class.
16880 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16882 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16884 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16886 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16888 Complete 64-bit division support.
16890 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16891 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16892 * include/grub/misc.h (grub_divmod64): Rename to ...
16893 (grub_divmod64_full): ... this.
16894 (grub_divmod64): New inline function.
16896 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16898 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16900 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16902 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16903 performing the necessary test.
16905 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16907 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16908 (kfreebsd.elf): Likewise.
16909 (pc-chainloader.elf): Likewise.
16910 (ntldr.elf): Likewise.
16912 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16914 Identify RAID by its UUID rather than (guessed) name.
16916 * grub-core/disk/raid.c (ascii2hex): New function.
16917 (grub_raid_open): Accept mduuid/%s specification.
16918 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16919 (get_mdadm_uuid): ... this.
16920 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16922 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16924 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16927 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
16929 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16931 * util/grub.d/20_linux_xen.in: Likewise.
16933 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
16935 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16936 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16938 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16939 Build a list of relevant visible mounts using the mnt_id and
16940 parent_mnt_id fields, and then scan that list at the end.
16942 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
16944 * docs/grub.texi (normal): New section.
16945 (normal_exit): New section.
16946 (Embedded configuration): Add reference to normal.
16947 (GRUB only offers a rescue shell): Likewise.
16948 * docs/grub-dev.texi (Error Handling): Fix typo.
16950 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
16952 * NEWS: Drop obsolete entry about probe-only btrfs support.
16954 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
16956 * util/import_gcry.py: Fix typo.
16958 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16960 * NEWS: Add btrfs support.
16962 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16963 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
16965 BtrFS support. Written by me (Vladimir) with important bugfixes and
16966 even more important testing by Colin.
16968 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16969 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16970 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16971 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16972 mem_input_off and mem_input. All users updated to accept in-RAM input.
16973 (gzio_seek): New function.
16974 (test_zlib_header): Likewise.
16975 (grub_gzio_read): Likewise.
16976 (grub_zlib_decompress): Likewise.
16977 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16978 Accept partial and non-virtual mounts.
16979 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16980 avoid receiving /dev/dm-X as device.
16981 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16982 Handle bind and partial mounts.
16983 * grub-core/lib/crc.c: New file.
16984 * include/grub/deflate.h: Likewise.
16985 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16987 * include/grub/lib/crc.h: New file.
16989 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16991 Implement automatic module license checking according to new GNU
16994 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16995 (grub_dl_load_core): Use grub_dl_check_license.
16996 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16997 (GRUB_MOD_LICENSE): Likewise.
16998 (GRUB_MOD_DUAL_LICENSE): Likewise.
16999 All modules updated.
17001 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
17003 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
17004 reserved_first_sector to 1. btrfs reserves plenty of space for boot
17006 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
17008 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17010 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
17012 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17014 * util/grub-fstest.c (read_file): Report GRUB error if file opening
17017 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/kern/file.c (grub_file_open): Don't take into account the
17020 parenthesis in the middle of the filename.
17022 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17024 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
17025 rather than trying to put initrd way too high.
17026 Reported by: Ryan Lortie <desrt@desrt.ca>
17028 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17030 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
17031 improperly removed string.
17033 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17035 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
17037 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
17038 (open_device) Likewise.
17039 (grub_util_biosdisk_close): Likewise.
17040 Reported by: Mark Korenberg.
17042 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
17044 * util/grub-mkconfig_lib.in: Add missing quotes.
17046 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
17048 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
17051 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17053 Dynamically count the number of lines for the lower banner.
17055 * grub-core/normal/menu_entry.c (per_term_screen): New member
17057 (print_down): Use num_entries.
17058 (update_screen): Likewise.
17059 (grub_menu_entry_run): Set num_entries.
17060 * grub-core/normal/menu_text.c (menu_viewer_data): New member
17062 (grub_print_message_indented): Move real part to ...
17063 (grub_print_message_indented_real): ... here. Additional argument
17065 (draw_border): Additional argument num_entries.
17066 (print_message): Additional argument dry_run.
17067 (print_entries): Receive menu viewer data.
17068 (grub_menu_init_page): New argment num_entries.
17069 (menu_text_set_chosen_entry): Use num_entries.
17070 (grub_menu_try_text): Likewise.
17071 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
17073 (grub_ucs4_count_lines): New function.
17074 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17075 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17076 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17077 (grub_term_border_height): Likewise.
17078 (grub_term_num_entries): Likewise.
17080 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17082 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17083 Remove now unused string.
17085 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
17087 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17089 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17091 (Comment): Fix typo.
17092 (Getting started): General copy-editing.
17093 (Typical Development Experience): Likewise.
17094 (Error Handling): Likewise.
17095 (Video API): Likewise.
17097 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
17099 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17102 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17104 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17107 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
17109 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17110 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17113 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17115 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17116 grub_strcpy since the lines aren't necessarily 0-terminated.
17118 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17120 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17123 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17125 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17126 (GRUB_MOD_INIT): DEVICE isn't optional.
17128 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17130 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17131 word on new line if it's too long anyway. Fixes a hang.
17133 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17135 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17137 * util/grub-setup.c (main): Reuse md device name if available.
17138 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17139 not GRUB name as argument.
17140 Based on patch by: Florian Wagner <fwagner>.
17142 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17144 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17145 Place mbi on low memory for better compatibility.
17147 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17149 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17151 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17152 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
17154 * autogen.sh: Ensure that collate and ctype locale is C.
17155 * conf/Makefile.common: Likewise.
17157 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17159 * grub-core/normal/menu.c: Add missing include.
17161 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17163 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
17165 2011-04-08 Martin Zuther <mzuther@mzuther.de>
17167 * util/grub-mkconfig.in: Ignore emacsen backup.
17169 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17171 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17173 (grub_util_biosdisk_close): Likewise.
17175 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17177 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17178 const attribute and use grub_isdigit.
17180 2011-04-06 Andrey <dev_null@ukr.net>
17182 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17185 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17187 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17188 useful grub_dprintf's.
17190 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17192 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17194 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17196 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17198 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17200 Output errors if theme loading failed.
17202 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17203 grub_gfxterm_fullscreen on error paths to ...
17204 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17205 theme loading error.
17207 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17209 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17210 space for older compilers.
17211 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17213 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17215 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17216 and report them as not RAID members since they are useless for GRUB.
17217 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17219 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17221 Increase LVM implementation robustness in order not to crash on
17222 configurations like pvmove. Previously code assumed that in some places
17223 only lvs or only pvs are used whereas it seems that they are used
17226 * grub-core/disk/lvm.c (read_node): New function.
17227 (read_lv): Use read_node.
17228 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17229 Match volumes only at the end when all lvs are found. Take both
17230 pvs (first) and lvs (second) into account.
17231 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17232 mirror_* into node_*. All users updated.
17233 (grub_lvm_stripe): Merge this ...
17234 (grub_lvm_mirror): ... and this ...
17235 (grub_lvm_node): ... into this. All users updated.
17237 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17239 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17240 of function to allow further scanning for LVMs.
17242 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17244 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17245 on failed seek as it breaks open fd reusage.
17247 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17249 * util/grub-install.in: Add a recommendation to use --recheck before
17252 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17254 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17257 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17259 GRUB developper manual based on existing Internals section and
17260 contributions by the various authors with active copyright assignment.
17262 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17263 * docs/font_char_metrics.png: New file.
17264 * docs/font_char_metrics.txt: Likewise.
17265 * docs/grub-dev.texi: Likewise.
17266 * docs/grub.texi (Internals): Move from here ...
17267 * docs/grub-dev.texi: ... here.
17269 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17271 Store the loopback device as data on loopback grub_disk structures,
17272 rather than the file it points to. This fixes use of freed memory
17273 if an existing loopback device is replaced.
17275 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17276 disk->data, not dev->file.
17277 (grub_loopback_read): Adjust file assignment to match.
17278 Fixes Ubuntu bug #742967.
17280 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17282 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17283 when replacing an existing device.
17285 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17287 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17288 memory corruptions.
17290 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17292 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17293 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17294 (grub_jfs_read_inode): Likewise.
17295 (grub_jfs_opendir): Likewise. Remove now useless casts.
17296 (grub_jfs_getent): Likewise.
17297 Make ino a grub_uint32_t rather than int.
17298 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17299 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17300 division and module with bit operations.
17301 (grub_jfs_find_file): Make ino a grub_uint32_t.
17302 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17304 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
17306 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17307 warning. (This was in fact always initialised before use, but GCC
17308 wasn't smart enough to prove that.)
17309 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17311 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17313 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17315 (efi_wrap_1): Likewise.
17316 (efi_wrap_2): Likewise.
17317 (efi_wrap_3): Likewise.
17318 (efi_wrap_4): Likewise.
17319 (efi_wrap_5): Likewise.
17320 (efi_wrap_6): Likewise.
17321 (efi_wrap_10): Likewise.
17322 Based on information by: Red Hat/Peter Jones.
17324 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
17326 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17327 set-but-not-used variable.
17329 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
17331 * docs/grub.texi (Simple configuration): Be more explicit about
17332 GRUB_DEFAULT, and add an example.
17333 Reported by: Leslie Rhorer.
17335 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17337 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17340 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17342 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17343 * util/grub.d/20_linux_xen.in: Likewise.
17345 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17347 * util/grub.d/10_linux.in: Try alternative config filenames where
17348 we parse config file.
17349 * util/grub.d/20_linux_xen.in: Likewise.
17351 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17353 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17354 * util/grub.d/20_linux_xen.in: Likewise.
17356 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17358 * grub-core/disk/raid.c (insert_array): Add few potentially
17359 useful grub_util_info.
17360 (grub_raid_register): Likewise.
17362 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17364 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17365 Preserve partition number in mdadm code path.
17367 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17369 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17370 few potentially useful grub_util_info.
17372 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17374 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17376 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17378 * docs/grub.texi (default): Use @example rather than nested
17379 itemized lists to avoid breaking gendocs.
17381 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17383 * docs/grub.texi (Future): Update.
17385 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17387 * docs/grub.texi (Environment): New chapter.
17388 (Changes from GRUB Legacy): Link to "Environment block" section for
17389 details of limitations.
17390 (Simple configuration): Likewise. Link to documentation of gfxmode
17391 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17393 (Shell-like scripting): Note that normal variables are stored in the
17395 (gettext): Link to documentation of lang and locale_dir.
17396 (list_env): New section.
17397 (load_env): New section.
17398 (save_env): New section.
17400 (Reporting bugs): Fix typo.
17402 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17404 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17407 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17409 * grub-core/term/at_keyboard.c (set_scancodes)
17410 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17412 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17414 * docs/grub.texi (Menu-specific commands): Remove some semantics
17415 that were true in GRUB Legacy but not in GRUB 2.
17416 (submenu): New section.
17417 (false): New section.
17418 (read): New section.
17419 (true): New section.
17421 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17423 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17425 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
17427 * docs/grub.texi (Simple configuration): Explain some of the
17428 current limitations of grub-mkconfig.
17429 Reported by: Leslie Rhorer.
17431 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17433 Old macs search for boot.efi rather than for bootia32.efi.
17435 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17436 * util/grub-mkrescue.in: Likewise.
17437 Suggested by: Peter Jones.
17439 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17441 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17443 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17445 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17446 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17447 (grub_lvm_mirror): New struct.
17448 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17449 (grub_lvm_iterate): Iterate only visible volumes.
17450 (grub_lvm_read): Factor out to ..
17451 (read_lv): ... this. Support mirrors.
17452 (grub_lvm_read): New wrapper function.
17453 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17454 stripped or mirrored.
17456 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17458 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17460 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17462 * docs/grub.texi (loopback): New section.
17464 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17466 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17469 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17471 * docs/grub.texi (BIOS installation): New section, partly based on
17472 previous text in other sections.
17473 (Installing GRUB using grub-install): Replace BIOS discussion with a
17475 (Images): Likewise.
17477 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17479 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17480 [HAVE_DIOCGDINFO]: Add safety checks.
17482 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17484 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17485 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17487 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
17489 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17490 real_sb->size is zero (e.g. RAID-0), get the disk size from
17491 real_sb->data_size instead.
17492 Fixes Ubuntu bug #743136.
17494 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17496 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17497 printf clauses for printing size and start.
17499 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17501 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17502 Reported and tested by: Timothy Nikkel.
17504 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17506 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17507 (dirty_region_add_real): ... this.
17508 (dirty_region_add): Don't discard margin refresh when performing
17511 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17513 * grub-core/lib/relocator.c (allocate_regstart)
17514 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17515 terminals are capabple of malloc-free operation.
17516 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17517 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17519 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17521 * util/grub-setup.c: Copy the partition table zone if floppy support
17522 is disabled, even if no partition table is found.
17524 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17525 during POST if an invalid partition table is contained in the PBR
17526 of the active partition when GRUB is installed to a partition.
17528 2011-03-28 Colin Watson <cjwatson@debian.org>
17530 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17533 2011-03-28 Colin Watson <cjwatson@debian.org>
17535 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17536 to be specific about what kind of RAID device we're scanning for.
17538 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17540 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17541 return freed string.
17543 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17545 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17547 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17549 Use libgeom on FreeBSD to detect partitions.
17551 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17552 (grub-mkrelpath): Likewise.
17553 (grub-script-check): Likewise.
17554 (grub-editenv): Likewise.
17555 (grub-mkpasswd-pbkdf2): Likewise.
17556 (grub-fstest): Likewise.
17557 (grub-mkfont): Likewise.
17558 (grub-mkdevicemap): Likewise.
17559 (grub-probe): Likewise.
17560 (grub-setup): Likewise.
17561 (grub-ofpathname): Likewise.
17562 (grub-mklayout): Likewise.
17563 (example_unit_test): Likewise.
17564 (grub-menulst2cfg): Likewise.
17565 * grub-core/Makefile.core.def (grub-emu): Likewise.
17566 (grub-emu-lite): Likewise.
17567 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17568 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17569 define HAVE_DIOCGDINFO.
17570 (follow_geom_up) [FreeBSD]: New function.
17571 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17572 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17573 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17574 unconditionally of HAVE_DIOCGDINFO.
17576 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17578 Fix FreeBSD compilation problem.
17580 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17581 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17583 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
17585 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17586 Switch back to page zero before loading a kernel, since some kernel
17587 drivers expect that.
17588 Thanks to: Felix Kuehling.
17590 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17592 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17593 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17594 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17596 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17598 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17599 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17601 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17603 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17604 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17605 malloc is disabled.
17607 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17609 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17610 for modules headers when counting the needed allocation size.
17612 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17614 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17615 if no ASCII character is found to prevent crash.
17617 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17619 * grub-core/video/bitmap.c (match_extension): Ignore case.
17621 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17623 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17625 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17627 * grub-core/script/parser.y: Declare "time" as valid argument.
17629 2011-03-23 Peter Jones <pjones@redhat.com>
17631 Fix incorrect assert failure reporting.
17633 * grub-core/tests/example_functional_test.c (example_test): Add
17635 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17636 (failure_start): ...this. Check that malloc succeeded.
17637 Don't call xvasprintf. Return failure struct.
17638 (failure_append_vtext): New function.
17639 (failure_append_text): Likewise.
17640 (add_failure): Likewise.
17641 (grub_test_assert_helper): Likewise.
17642 * include/grub/test.h (grub_test_assert_helper): New declaration.
17643 (grub_test_assert): Macro rewritten.
17645 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17647 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17649 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17651 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17653 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17655 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17656 into GRUB-style one.
17658 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17660 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17661 error and not grub_errno.
17662 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17664 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17666 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17667 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17669 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17671 * grub-core/efiemu/i386/pc/cfgtables.c
17672 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17673 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17674 (grub_xnu_unlock): Likewise.
17675 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17677 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17679 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17680 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17681 * grub-core/commands/hashsum.c (aliases): Likewise.
17682 * grub-core/commands/setpci.c (pci_registers): Likewise.
17683 * grub-core/disk/usbms.c (attach_hook): Likewise.
17684 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17685 (zio_checksum_table): Likewise.
17686 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17687 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17688 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17689 * grub-core/lib/relocator.c (leftovers): Likewise.
17690 (extra_blocks): Likewise.
17691 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17692 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17693 (modules_last): Likewise.
17694 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17695 (devices): Likewise.
17696 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17697 (modules_last): Likewise.
17698 * grub-core/normal/auth.c (users): Likewise.
17699 * grub-core/normal/context.c (initial_menu): Likewise.
17700 (current_menu): Likewise.
17701 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17702 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17703 (grub_serial_terminfo_input_template): Likewise.
17704 (grub_serial_terminfo_output_template): Likewise.
17705 (grub_serial_terminfo_input): Likewise.
17706 (grub_serial_terminfo_output): Likewise.
17707 (registered): Likewise.
17708 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17710 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17712 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17713 grub_video_mode_type_t.
17714 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17715 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17716 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17718 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17720 * util/grub-install.in: Correct the x86-64 name as x86_64.
17722 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
17724 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17725 initial chunk read from the kernel always includes GRUB's multiboot
17726 header, which is now outside the first sector.
17728 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
17730 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17731 cached mmap_size, so that this works correctly when called multiple
17733 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17735 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
17737 * docs/grub.texi (Simple configuration): Tidy up formatting.
17739 2011-03-07 Szymon Janc <szymon@janc.net.pl>
17741 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17742 Set-but-not-used variable removed.
17744 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17746 Workaround yet another IEEE1275 bug.
17748 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17749 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17750 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17751 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17753 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17754 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17756 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17758 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17761 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
17763 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17764 empty, since in that case we can only generate either nothing or a
17765 syntactically invalid configuration file.
17766 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17768 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
17770 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17771 (Making a GRUB bootable CD-ROM): Likewise.
17772 (Invoking grub-mkrescue): New section.
17773 Reported by: Yann Dirson. Fixes Debian bug #612585.
17775 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
17777 * util/grub-install.in: Remove unnecessary brackets from tr
17779 * util/grub.d/10_hurd.in: Likewise.
17780 * util/grub.d/10_kfreebsd.in: Likewise.
17781 * util/grub.d/10_linux.in: Likewise.
17782 * util/grub.d/20_linux_xen.in: Likewise.
17783 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17785 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
17787 * include/grub/file.h (not_easly_seekable): Rename to ...
17788 (not_easily_seekable): ... this. Update all users.
17790 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
17792 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17795 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17797 * util/grub-mkimage.c (generate_image): Refuse to create the images
17798 bigger than the actual flash (512K) in Loongson machines. 512K is also
17799 the biggest chip supported by them.
17801 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17803 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17805 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
17807 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17808 super_offset field.
17810 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17812 * util/grub-install.in: Ignore install device on platforms
17813 where it doesn't make sense. Always use UUIDs except on pc, efi and
17815 Reported by: Daniel Kahn Gillmor.
17817 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17819 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17821 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17823 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17824 (iterate_real): Don't rely on partition being non-NULL.
17826 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17828 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17829 supported platforms. Put a compile time assert for this rather than
17830 generate a warning with 32-bit shift.
17832 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17834 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17835 logical expression more readable.
17837 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17839 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17840 even if some elements have a name.
17841 Reported by: Alexander GQ Gerasiov.
17843 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
17845 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17846 path unreadable if `grub-probe -t abstraction' fails, for example if
17847 memberlist fails on an LVM volume group.
17848 Reported by: Darius Jahandarie.
17850 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
17852 * docs/grub.texi (Simple configuration): Document
17853 GRUB_PRELOAD_MODULES.
17855 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
17857 * .bzrignore: Remove nonexistent grub-pbkdf2.
17859 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17861 * configure.ac: Bump version to 1.99~rc1.
17863 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17865 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17868 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17870 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17873 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17875 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17877 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17879 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17882 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17884 Fix compilation on cygwin.
17886 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17887 -R .drectve on cygwin.
17888 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17889 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17890 (COND_CYGWIN): New condition.
17891 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17892 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17893 not @TARGET_OBJ2ELF@.
17894 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17895 type to determine whether aux is to be used.
17897 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17899 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17900 realpath'ed device string.
17901 Handle floppy (somewhat).
17902 Issue error in unknown case rather than garbage.
17903 Reported by: Axel Beckert.
17905 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17907 * util/grub.d/00_header.in (load_video): Handle the case when no video
17909 Thanks to: Axel Beckert.
17911 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17913 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17914 variable. Fixes problem on big endian platforms.
17916 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17918 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17919 It doesn't work well there.
17921 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17923 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17925 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17926 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17929 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17931 Use alias->path rather than buggy "canon".
17933 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17934 (ofdisk_hash_add): New argument curcan. All users updated.
17936 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
17938 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17940 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17942 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17943 loadmask before doing any calculations. Use correct type for offset.
17944 (grub_linux_load64): Likewise.
17946 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
17948 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17950 (console_grub_equivalences_unshift): Likewise.
17951 Reported by: Daniel Dehennin.
17953 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17955 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17956 (set_env_limn_ro): Likewise.
17957 (GRUB_MOD_INIT): Likewise.
17958 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17959 ARRAY_SIZE while on it.
17960 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17961 * grub-core/normal/context.c (grub_env_export): Move from here ...
17962 * grub-core/kern/env.c (grub_env_export): ... here.
17963 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17965 * grub-core/kern/main.c (grub_main): Export root and prefix.
17966 * include/grub/env.h (grub_env_export): Export.
17967 Reported by: Seth Goldberg.
17969 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17971 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17972 Take into account space used by ELF sections and multiboot palette.
17973 Reported by: Grégoire Sutre.
17975 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17979 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17981 Pass more appropriate video id to Linux.
17983 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17984 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17986 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17987 shift params->lfb_size.
17988 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17990 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17992 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17994 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17996 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17997 separator and pass bootpath/devid even if only one of them is available.
17998 Reported by: Seth Goldberg.
18000 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18002 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
18003 implementations bug on them.
18005 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
18007 (filter_memory_map): Likewise.
18009 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18011 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
18012 Reported by: nebuchadnezzar.
18014 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18016 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
18017 Reported by: nebuchadnezzar.
18019 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18021 Submenu default support.
18023 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
18024 auto_boot. All users updated.
18026 Handle chosen and default with submenus.
18027 (grub_menu_execute_with_fallback): Declared static.
18028 Don't notify failure if autobooted. Upper level does it.
18029 (menuentry_eq): New function.
18030 (get_entry_number): Use menuentry_eq.
18031 (show_menu): New parameter "autobooted". All users updated.
18032 (grub_show_menu): Likewise.
18033 * include/grub/normal.h (grub_show_menu): Likewise.
18034 * include/grub/menu.h (grub_menu_execute_entry): Removed.
18035 (grub_menu_execute_with_fallback): Likewise.
18037 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18039 * util/grub-mklayout.c (usage): Update help text.
18041 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18043 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
18045 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18047 * util/grub-menulst2cfg.c (main): Trim the line.
18049 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18051 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
18052 (grub_machine_init): Don't check amount of low memory as reportedly
18053 INT 12h can be broken and if low memory is too low we wouldn't have
18054 gotten into grub_machine_init anyway.
18056 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18058 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
18059 (grub_machine_mmap_iterate): Take low memory into account
18061 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18063 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
18065 Reported by: TiCPU.
18067 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18069 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
18072 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18074 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18075 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18077 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18079 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18080 openbsd and netbsd types being in part_bsd module.
18082 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18084 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18085 (_FILE_OFFSET_BITS): Likewise.
18086 Reported by: Seth Goldberg.
18088 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18090 * configure.ac: Check for libdevmapper header.
18092 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18094 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18096 (fzap_lookup): Likewise.
18097 (dnode_get): Likewise.
18098 (make_mdn): Likewise.
18099 (zfs_mount): Likewise.
18100 (fzap_iterate): Use temporary pointer to avoid aliasing.
18101 (grub_zfs_read): Likewise.
18102 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18103 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18104 pointers to avoid aliasing.
18105 (grub_cmd_xnu_kernel64): Likewise.
18106 (grub_xnu_load_driver): Likewise.
18108 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18110 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18112 (grub_cmd_terminal_output): Likewise.
18113 Reported and tested by: Grégoire Sutre.
18115 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18117 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18119 Reported and tested by: Grégoire Sutre.
18121 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18123 * configure.ac: Do CPU substitution even if it's specified explicitly.
18124 Reported and tested by: Alain Greppin.
18126 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18128 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18129 Reported and tested by: Alain Greppin.
18131 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18133 Satisfy some bison versions need for inttypes.h.
18135 * grub-core/lib/posix_wrap/inttypes.h: New file.
18136 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18137 (int16_t): Likewise.
18138 (int32_t): Likewise.
18139 (int64_t): Likewise.
18140 Reported and tested by: Alain Greppin.
18142 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18144 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18145 Silence spurious warning.
18146 Reported and tested by: Alain Greppin.
18148 2011-01-07 Szymon Janc <szymon@janc.net.pl>
18150 * docs/grub.texi (Support automatic decompression): Update with xz
18151 decompression support.
18153 2011-01-07 Szymon Janc <szymon@janc.net.pl>
18155 Improve loaders' kernel command line handling.
18157 * grub-core/lib/cmdline.c: New file.
18158 * include/grub/lib/cmdline.h: Likewise.
18159 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18160 grub_create_loader_cmdline to create kernel command line.
18161 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18162 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18163 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18164 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18165 (linux): Add lib/cmdline.c on common.
18167 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18169 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18170 inopos might be unaligned.
18172 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18174 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18175 endian transformations.
18176 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18177 Based on report by: Doug Nazar.
18179 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
18181 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18182 array->members[i].start_sector.
18183 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18185 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18187 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18188 Reported and tested by: Grégoire Sutre.
18190 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
18192 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18193 avoid causing test failures by clearing the screen.
18195 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
18197 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18198 Fix prefix check to handle the case where dir ends with a slash
18199 (most significantly, "/" itself).
18200 Reported by: Michael Vogt.
18202 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18204 Run terminfo_cls on initing terminfo output to clear the screen and
18205 move the cursor to (0,0).
18207 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18208 Call grub_terminfo_output_init.
18209 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18210 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18211 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18213 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18215 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18218 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18220 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18223 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18225 The E820 type 5 is BADRAM, not EXEC_CODE.
18227 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18228 (GRUB_E820_BADRAM): New define.
18229 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18230 into reserved. Propagate BADRAM.
18231 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18232 (GRUB_E820_BADRAM): New define.
18234 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18236 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18237 Ignore the memory post-4G.
18238 (grub_relocator_firmware_alloc_region): Additional debug statement.
18240 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18242 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18244 Reported by: David Pravec.
18246 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18248 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18251 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18253 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18255 (grub_reed_solomon_recover): Likewise.
18257 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18259 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18261 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18263 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18266 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
18268 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18269 descriptions of extract_legacy_entries_source and
18270 extract_legacy_entries_configfile.
18271 Reported by: Seung Soo, Ha.
18273 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
18275 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18276 on devices that do not implement function 0.
18278 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18280 * grub-core/fs/hfsplus.c: Make parent unsigned.
18281 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18283 (grub_hfsplus_cmp_extkey): Likewise
18285 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18287 * util/grub-install.in: Correctly use bootloader_id and not
18288 GRUB_DISTRIBUTOR on efibootmgr line.
18290 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18292 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18294 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
18296 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18297 Xen and reorder menu item wording to make it clearer that this entry
18298 will launch Xen. Print separate messages when loading Xen and
18301 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18303 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18304 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18305 loop in case of incorrect amiga partmap.
18307 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18309 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18310 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18313 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18315 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18317 Reported by: crocket
18319 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18321 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18323 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18325 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18327 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18329 (grub_cmd_xnu_kextdir): Likewise.
18330 (grub_cmd_xnu_splash): Likewise.
18332 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18334 Avoid using Reed-Solomon with 0 redundancy.
18336 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18337 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18339 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18340 (grub_reed_solomon_recover): Likewise.
18342 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18344 Don't use disk subsystem in freebsd_boot.
18346 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18347 (freebsd_biosdev): Likewise.
18348 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18349 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18351 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18353 Handling of files of unknown size is currently limited. They can't be
18354 used e.g. for initrd or modules. Moreover gzip handling of not
18355 easily seekable files is buggy. Disable unknown file size for now. May
18356 be inefficient but works.
18358 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18359 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18361 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18363 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18366 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18368 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18370 2010-12-25 Shea Levy <shlevy>
18372 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18374 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18376 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18377 Windows Server 2008.
18378 Reported by: Devin Giddings.
18380 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18382 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18383 writing an error message because of async power management.
18384 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18385 (grub_reboot): Likewise.
18387 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18389 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18390 keep unit tests from failing when they shouldn't.
18392 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18394 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18395 previous patch increased the size of the RS code by 20 bytes (at
18396 least with gcc-4.4), so increase this by 20 bytes to match.
18397 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18399 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18401 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18402 scratch area. Make sure to initialise chosen in standalone mode as
18403 well as non-standalone.
18404 Reported by: Robert Hooker and Andy Whitcroft.
18405 Tested by: Andy Whitcroft.
18407 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18409 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18410 constructing a new unescaped string and passing it to grub_xputs in
18411 one go, rather than passing characters to grub_printf one at a time.
18413 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18415 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18416 initialising utf16.
18418 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
18420 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18421 comment. Add an extra layer of quotation, requiring the output of
18422 this function to be used in a printf format string.
18423 (gettext_printf): New function.
18424 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18425 Extract translatable strings from here-documents and use a temporary
18426 variable instead, so that xgettext can find them.
18427 * util/grub.d/10_kfreebsd.in: Likewise.
18428 * util/grub.d/10_linux.in: Likewise.
18429 * util/grub.d/20_linux_xen.in: Likewise.
18431 * po/grub.d.sed: New file.
18432 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18433 arguments. Set c-format flags on all strings extracted from
18434 util/grub.d/ (xgettext refuses to include these itself for strings
18435 it extracted from a shell file, but these really are c-format).
18437 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18439 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18440 Avoid next pointing to nowhere.
18442 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18444 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18445 rather than assuming than rootblock is exactly in the middle.
18446 (grub_affs_label): Likewise.
18448 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18450 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18451 reserved_first_sector to 0.
18452 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18453 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18454 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18456 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18458 Fix handling of UTF-16 UDF labels.
18460 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18461 (read_string): .. here.
18462 (grub_udf_label): Use read_string.
18464 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18466 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18467 editor under argument scope.
18468 Reported by: Jordan Uggla
18470 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18472 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18474 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
18476 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18477 line, and other keys scroll an entire page (previous handling was
18478 for \r and \n to scroll a page and other keys to scroll two lines).
18480 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18482 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18483 Set ptrdest to correct get_physical_target_address rather than
18484 incorrect get_virtual_current_address.
18486 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18488 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18489 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18491 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
18493 * .bzrignore: Ignore grub-core/rs_decoder.S.
18495 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
18497 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18498 .mo/.mo.gz opening sequence to ...
18499 (grub_mofile_open_lang): ... here.
18500 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18501 * util/grub.d/00_header.in (grub_lang): Include country part of
18503 Reported by: Mario Limonciello.
18505 2010-12-09 Robert Millan <rmh@gnu.org>
18507 * NEWS: Document addition of ZFS support.
18509 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
18511 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18512 rather than `/ 2', as the latter requires -Wa,--divide which would
18513 require bumping our minimum binutils version.
18515 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18517 * util/grub-script-check.c (main): Print script line number on
18520 2010-12-01 Robert Millan <rmh@gnu.org>
18522 * grub-core/fs/zfs/zfs.c: New file.
18523 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18524 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18525 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18526 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18528 * include/grub/zfs/dmu.h: Likewise.
18529 * include/grub/zfs/dmu_objset.h: Likewise.
18530 * include/grub/zfs/dnode.h: Likewise.
18531 * include/grub/zfs/dsl_dataset.h: Likewise.
18532 * include/grub/zfs/dsl_dir.h: Likewise.
18533 * include/grub/zfs/sa_impl.h: Likewise.
18534 * include/grub/zfs/spa.h: Likewise.
18535 * include/grub/zfs/uberblock_impl.h: Likewise.
18536 * include/grub/zfs/vdev_impl.h: Likewise.
18537 * include/grub/zfs/zap_impl.h: Likewise.
18538 * include/grub/zfs/zap_leaf.h: Likewise.
18539 * include/grub/zfs/zfs.h: Likewise.
18540 * include/grub/zfs/zfs_acl.h: Likewise.
18541 * include/grub/zfs/zfs_znode.h: Likewise.
18542 * include/grub/zfs/zil.h: Likewise.
18543 * include/grub/zfs/zio.h: Likewise.
18544 * include/grub/zfs/zio_checksum.h: Likewise.
18546 * Makefile.util.def: Build ZFS into libgrubmods.
18547 * grub-core/Makefile.core.def: Build zfs.mod.
18549 2010-11-30 Szymon Janc <szymon@janc.net.pl>
18551 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18553 * grub-core/commands/wildcard.c (match_files): Likewise.
18555 2010-11-30 Robert Millan <rmh@gnu.org>
18557 * grub-core/loader/i386/bsd.c
18558 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18559 whether kernel is loaded using grub_loader_is_loaded(), rather
18560 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18561 certain error conditions.
18563 2010-11-30 Robert Millan <rmh@gnu.org>
18565 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18566 (grub_cmd_echo): Call grub_refresh() after printing a message.
18568 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18570 Avoid using tricks for initialising endian variables.
18572 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18574 (GRUB_MOD_INIT): Don't byte-swap.
18575 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18576 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18577 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18578 (grub_swap_bytes32_compile_time): Likewise.
18579 (grub_cpu_to_le32_compile_time): Likewise.
18580 (grub_cpu_to_le16_compile_time): Likewise.
18582 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18584 * util/grub-setup.c (setup): Stop recommending --force. People who
18585 understand the dangers of blocklists are able to find this option
18586 anyway and the ones who don't shouldn't use it anyway.
18588 2010-11-26 Robert Millan <rmh@gnu.org>
18590 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18593 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
18595 Fix LVM-on-RAID probing.
18597 * util/grub-probe.c (probe): Remember which disk was detected as
18598 RAID (perhaps an LVM physical volume). Use that disk's raidname
18599 rather than that of the top-level disk.
18601 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
18603 Fix cmdline argument quotes for setparams command of menuentry
18606 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18607 quotes for arguments.
18608 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
18609 grub_strchrsub function instead.
18611 * include/grub/misc.h (grub_strchrsub): New function.
18613 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
18615 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18616 effort by skipping "." and ".." entries up-front.
18617 Suggested by: Michael Lazarev.
18619 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
18621 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18622 ldflags to ldadd, to fix link line ordering.
18623 (none_decompress): Likewise.
18625 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
18627 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18629 (grub-emu-lite): Remove kern/emu/cache.S.
18631 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
18633 * util/deviceiter.c (compare_devices): If the by-id link for a
18634 device couldn't be resolved, fall back to sorting by the by-id link
18635 rather than segfaulting.
18636 Reported and tested by: Daniel Mierswa.
18638 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
18640 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18641 ldflags, to fix link line ordering.
18643 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
18645 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18646 linkers are picky about this.
18648 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
18650 * grub-core/Makefile.am (command.lst): Adjust sed expression
18651 ordering so that extended and priority commands aren't treated as
18654 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
18656 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18657 Remove byte-swapping function calls, which are not valid in
18658 structure initialisers.
18659 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18661 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18662 grub_gpt_partition_type_bios_boot.
18664 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
18666 Fix test program build on GNU/kFreeBSD.
18668 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18669 $(LIBNVPAIR)' library dependencies.
18671 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
18673 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18675 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
18677 * util/grub-install.in: Remove excessive quoting that broke
18678 installations to RAID devices.
18680 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18682 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18683 bootloader version instead of 0.
18685 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18687 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18690 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18692 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18693 retrieve the metadat sector if size isn't known.
18694 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18696 2010-11-18 Robert Millan <rmh@gnu.org>
18698 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18699 with grub_memcmp().
18701 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18703 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18705 Reported by: Jordan Uggla.
18707 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18709 Make better UTF compliant.
18711 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18712 sequences as incorrect.
18713 (grub_is_valid_utf8): Likewise.
18714 (grub_utf8_to_ucs4): Likewise.
18715 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18716 (grub_ucs4_to_utf8_alloc): Likewise.
18717 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18719 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18721 Make legacy_source behave like source.
18723 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18725 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18727 2010-11-16 Colin Watson <cjwatson@debian.org>
18729 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18730 (-Wunused implies -Wunused-parameter, but not vice versa).
18732 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
18734 * configure.ac: Make error messages less confusing by testing for
18735 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18736 accepted, but produces a diagnostic if something else is wrong).
18738 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18740 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18741 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18743 (grub_keyboard_controller_init)
18744 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18745 read the initial state since controller isn't inited yet.
18747 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18749 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18750 allocate_regbeg may need to create new chunk header.
18752 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18754 Fix quoting in legacy parser.
18756 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18758 (grub_legacy_parse): Likewise.
18759 Reported by: Jordan Uggla.
18760 Tested by: Jordan Uggla.
18762 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18764 Don't add -lgcc on i386 and x86_64.
18766 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18767 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18768 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18770 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18772 * configure.ac: Add -Wno-trampolines when supported.
18774 2010-11-14 Modestas Vainius <modax@debian.org>
18776 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18779 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18781 Add generic logical block size support for UDF.
18783 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18784 (GRUB_UDF_BLKSZ): Removed.
18785 (struct grub_udf_data): New field "lbshift" to hold the logical block
18786 size of the file system in log2 format. All users updated.
18787 (sblocklist): Change type to unsigned.
18788 (grub_udf_mount): Change type of "sblklist" to unsigned.
18789 Move AVDP search before VRS recognition, because the latter requires
18790 knowledge of the logical block size, which is detected during the
18792 Detect and validate logical block size during AVDP search, adding
18793 support for block sizes 512, 1024 and 4096.
18794 Make VRS recognition independent of block size.
18796 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18798 Properly handle deleted files on UDF.
18800 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18801 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18804 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18806 Support reading files larger than 2 GiB.
18808 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18809 "offset" to grub_off_t.
18810 (grub_udf_read_file): Likewise for parameter "pos".
18812 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18814 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18816 (Simple configuration): Refer to Changes from GRUB Legacy about
18817 save_env availability.
18819 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18821 * util/grub-install.in: Ignore empty partition table detection
18822 instead of trying to include part_ module.
18824 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18826 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18827 LVM on RAID support.
18829 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18831 Properly define WORDS_BIGENDIAN in wrapped environments.
18833 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18835 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18837 Reported by: Manoel Rebelo Abranches.
18838 Tested by: Manoel Rebelo Abranches.
18840 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18842 * util/grub-mkconfig.in: Fix quoting.
18844 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18846 Support big ext2 files.
18848 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18849 (grub_ext2_read_block): Support triple indirect blocks.
18850 (grub_ext2_read_file): Use 64-bit types and read size_high.
18851 (grub_ext2_open): Read size_high.
18852 Reported by: Ximin Luo.
18853 Tested by: Manoel Rebelo Abranches.
18855 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18857 * util/grub-install.in: Handle filenames containing spaces.
18858 Reported by: Jordan Uggla.
18859 Tested by: Jordan Uggla.
18861 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18863 * util/grub-mkconfig.in (grub_script_check): New variable.
18864 Use grub_script_check instead of grub-script-check.
18865 Reported by: Barry Jackson.
18867 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18869 * docs/grub.texi (menu): Correct the order.
18870 Reported by: D. Hugh Redelmeier.
18872 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18874 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18877 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18879 * include/grub/elfload.h (grub_elf32_size): New parameter.
18881 Return maximum segments alignment.
18882 (grub_elf64_size): Likewise.
18883 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18884 Return maximum segments alignment.
18885 (grub_elf64_size): Likewise.
18886 * grub-core/loader/powerpc/ieee1275/linux.c:
18887 (grub_linux_claimmap_iterate): New function. Uses the
18888 "available" property in the "memory" node for memory allocation
18889 for kernel in the PowerPC loader.
18890 (grub_linux_load32): Correctly find linux entry point offset.
18891 (grub_linux_load64): Likewise.
18893 2010-11-07 Robert Millan <rmh@gnu.org>
18895 On mips-yeeloong, build with -march=loongson2f when this flag is
18896 available (GCC >= 4.4).
18897 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18899 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18900 or otherwise add -march=mips3.
18902 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18904 Suppress shell expansion on echo '*' and echo "*" like cases.
18905 Reported by: Jordan Uggla.
18907 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18908 string arguments before shell expansion.
18909 * tests/grub_cmd_echo.in: New testcases.
18911 2010-11-07 Robert Millan <rmh@gnu.org>
18913 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18916 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18918 * grub-core/kern/emu/hostdisk.c
18919 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18921 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18923 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18924 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18925 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18927 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18929 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18931 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18933 * util/grub-install.in: Replace useless recomendation to pass
18934 --modules with a recomendation to report a bug.
18936 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18938 Properly register serial terminfo.
18939 Reported by: Jordan Uggla
18941 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18943 (grub_serial_terminfo_output_template): Likewise.
18944 (grub_cmd_serial): Register "serial" with terminfo.
18945 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18946 grub_serial_terminfo_output.
18948 2010-11-05 Robert Millan <rmh@gnu.org>
18950 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18953 2010-11-05 Robert Millan <rmh@gnu.org>
18955 On Yeeloong, pass machine type information to Linux.
18957 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18958 (LOONGSON_MACHTYPE): New macro, set to
18959 "machtype=lemote-yeeloong-2f-8.9inches".
18960 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18961 additional argument to Linux.
18963 2010-11-04 Robert Millan <rmh@gnu.org>
18965 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18966 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18967 (its SATA disks are detected as slaveless IDE master drives on
18969 Reported by Carsten Aulbert.
18971 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
18973 * util/bin2h.c (main): Fix spelling error in generated output.
18975 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18977 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18979 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18981 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18982 vga= option is supplied.
18984 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18986 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18987 * util/grub.d/10_kfreebsd.in: Likewise.
18988 * util/grub.d/10_linux.in: Likewise.
18989 * util/grub.d/20_linux_xen.in: Likewise.
18991 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18993 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18994 argument as an argument to no-argument option.
18996 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18998 * util/grub.d/10_linux.in: Add missing load_video with explicit
18999 GRUB_GFXPAYLOAD_LINUX.
19001 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19003 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
19005 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19007 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
19008 elements with invlid index.
19009 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19010 * grub-core/disk/raid.c (insert_array): Automatically reallocate
19012 * include/grub/raid.h (grub_raid_member): New struct.
19013 (grub_raid_array): Transform devices and start_sector into usage of
19014 grub_raid_member. All users updated
19015 (allocated_devs): New member.
19017 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19019 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
19022 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
19024 NetBSD build fix for getline function conflict from gnulib.
19026 * Makefile.util.def (libgrubkern.a): New library for grub kernel
19027 components that depend on gnulib headers.
19028 (libgrubmods.a): Renamed from earlier libgrub.a.
19029 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
19031 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19033 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
19034 install rather than creating a broken install.
19036 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19038 * util/grub-setup.c (argp): Remove misleading example of installing to
19041 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19043 * util/grub-setup.c (setup): Clarify the error message.
19045 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19047 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
19049 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19051 * grub-core/kern/emu/misc.c
19052 (grub_make_system_path_relative_to_its_root)
19053 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
19055 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19057 * grub-core/kern/emu/misc.c
19058 (grub_make_system_path_relative_to_its_root): Revert r2882.
19060 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
19062 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
19063 useless field head. All users updated.
19064 (free_subchunk): Correct handling of IN_REGION subchunk.
19066 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
19068 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
19069 (Supported kernels): Likewise.
19071 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
19073 Make mktemp invocations portable.
19075 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19076 exit if mktemp fails.
19077 * tests/grub_script_blockarg.in: Likewise.
19078 * tests/partmap_test.in: Likewise.
19079 * tests/util/grub-shell-tester.in: Likewise.
19080 * tests/util/grub-shell.in: Likewise.
19081 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19082 * Makefile.am: Likewise, and chain shell commands with `&&'
19084 * util/grub-mkrescue.in: Use the same explicit template as above, and
19085 exit if mktemp fails.
19087 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19089 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19090 Linux kernel, reported by Dennis Schridde.
19092 2010-10-17 Szymon Janc <szymon@janc.net.pl>
19094 * grub-core/normal/auth.c (grub_auth_check_authentication):
19095 Set-but-not-used variable removed.
19097 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19099 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19100 32-bit linux protocol.
19102 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19104 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19105 cursor shape for sanity.
19107 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19109 * docs/grub.texi (Installation): Document buggy BIOS install.
19111 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19113 * docs/grub.texi (Installation): Indent.
19115 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19117 * util/grub-setup.c (setup): New parameter allow_floppy.
19118 (arguments): New member allow_floppy.
19119 (argp_parser): Handle --allow-floppy.
19120 (main): Pass allow_floppy.
19121 * util/grub-install.in: New option --allow-floppy passed though to
19124 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19126 * util/grub-install.in: Handle partitionless disks.
19128 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19130 * util/grub-setup.c (setup): Don't clean blocklists before readability
19133 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19135 * docs/grub.texi (Installation): Document embedding zone. Remove
19136 obsolete grub-install example.
19138 2010-10-16 Szymon Janc <szymon@janc.net.pl>
19140 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19141 Set-but-not-used variable ifdef'ed.
19142 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19143 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19145 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19146 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19147 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19148 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19149 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19150 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19151 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19152 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19153 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19154 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19155 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19158 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19160 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19161 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19164 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19166 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19167 synonym to _S5_. Needed for some DSDTs.
19169 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19171 Userspace ACPI parser debugging.
19173 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19174 headers and add relevant defines. Don't include standard headers.
19175 (main) [GRUB_DSDT_TEST]: New function.
19176 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19177 Don't declare functions.
19179 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19181 Remove dead grub_efi_mm_fini.
19183 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19184 (ALLOCATED_PAGES_SIZE): Likewise.
19185 (MAX_ALLOCATED_PAGES): Likewise.
19186 (allocated_pages): Likewise.
19187 (grub_efi_allocate_pages): Don't record allocated pages.
19188 (grub_efi_free_pages): Likewise.
19189 (grub_efi_mm_init): Likewise.
19190 (grub_efi_mm_fini): Removed.
19192 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19194 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19195 (grub_efi_mm_init): Take into account the memory map size increase.
19197 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19199 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19200 (serial_hw_put): Wait based on real time rather than port reads. Don't
19202 * include/grub/serial.h (grub_serial_port): New field broken.
19204 2010-10-16 Robert Millan <rmh@gnu.org>
19206 * grub-core/kern/emu/misc.c
19207 (grub_make_system_path_relative_to_its_root): Fix premature return
19208 when processing non-root ZFS filesystems.
19209 Reported by Sergio Talens-Oliag.
19211 2010-10-15 Robert Millan <rmh@gnu.org>
19213 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19214 guarantee compressed ones are processed first.
19216 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19218 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19219 grub_efiemu_autocore.
19221 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19223 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19225 (grub_console_getkey): Use correct jae opcode rather than ja.
19227 2010-10-12 Robert Millan <rmh@gnu.org>
19229 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19230 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19231 variable. All references updated.
19233 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19235 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19237 Correctly distinguish mdraid flavours.
19239 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19240 (insert_array): New argument raid.
19241 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19242 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19243 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19245 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19247 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19248 handling of special keys.
19250 2010-10-02 Aleš Nesrsta <starous@volny.cz>
19252 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19253 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
19255 2010-10-02 Aleš Nesrsta <starous@volny.cz>
19257 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19258 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19260 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
19261 Use right endpoint when querying descriptor.
19263 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19265 Clear out 0x80 color bit on EFI.
19267 Reported by: decoder and meta tech.
19269 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19270 (grub_console_setcolorstate): Clear out 0x80 bit.
19271 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19272 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19273 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19275 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19277 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19280 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19282 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19283 mo_file after freeing.
19285 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19287 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19289 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19291 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19294 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19296 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19299 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19301 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19303 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19304 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19305 and terminfo.h when needed.
19306 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19307 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19308 (terminfo): Enable only on terminfokernel.
19309 (extcmd): Likewise.
19310 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19311 * include/grub/lib/arg.h: Likewise.
19312 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19313 incorrect usage of ->.
19315 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19317 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19318 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19320 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19322 Fix coreboot compilation.
19324 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19325 Take VBE info into account even if only text is supported.
19326 (fill_vbe_info): Take into account the case when only VGA text
19328 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19329 on coreboot, multiboot and qemu.
19331 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19333 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19335 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19337 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19339 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19342 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19344 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19345 if they were BSD-style.
19347 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19349 * grub-core/boot/i386/pc/lnxboot.S: Replace
19350 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19351 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19353 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19355 Write embedding zone using Reed-Solomon.
19357 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19358 * grub-core/Makefile.am (rs_decoder.S): New target.
19359 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19360 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19361 (multiboot): Move to RS part.
19362 (post_reed_solomon): New label.
19363 (grub_boot_drive): Move to non-RS part since it's modified in memory
19365 Include rs_decoder.S.
19366 * grub-core/lib/reed_solomon.c: New file.
19367 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19369 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19370 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19371 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19372 * include/grub/partition.h (grub_partition_map): Change prototype of
19373 embed to allow returning additional sectors.
19374 * include/grub/reed_solomon.h: New file.
19375 * util/grub-setup.c (setup): Handle Reed-Solomon.
19377 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
19379 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19380 i386 and x86-64 definedness tests.
19382 2010-09-27 Yves Blusseau <blusseau@zetam.org>
19384 Fix generation of kernel_syms.lst
19386 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19389 2010-09-26 Robert Millan <rmh@gnu.org>
19391 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19393 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19394 the pool is an array of devices, iterate through it and return the
19395 first device that passes a stat() test (instead of blindly returning
19398 2010-09-26 Robert Millan <rmh@gnu.org>
19400 Build fixes for GNU/kFreeBSD.
19402 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19403 to programs that require ZFS conversion.
19404 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19405 kernels that don't have FLOPPY_MAJOR.
19407 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19409 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19411 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19413 Fix grub-emu build.
19415 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19416 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19417 mdraid09 and mdraid1x.
19419 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
19421 Re-enable grub-extras.
19423 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19424 avoid confusing Automake. Run autogen only twice, once for the top
19425 level and once for grub-core. Add Makefile.util.def and
19426 Makefile.core.def from extra modules to the appropriate autogen
19427 invocations. If Makefile.common exists in an extra module, include
19428 it in both Makefile.util.am and grub-core/Makefile.core.am;
19429 similarly, include any Makefile.util.common file in Makefile.util.am
19430 and any Makefile.core.common file in grub-core/Makefile.core.am.
19431 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19432 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19433 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19434 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19436 * gentpl.py (gvar_add): Turn GVARS into a set.
19437 (global_variable_initializers): Sort global variables on output.
19438 (vars_init): New function.
19439 (first_time): Likewise.
19440 (library): Ensure that non-global variable initialisations are
19441 emitted before the first time we emit code for a library block.
19442 Append to variables rather than setting them. Only emit
19443 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19444 each conditional path.
19445 (program): installdir() emits an Autogen macro, so must be passed to
19446 var_add rather than gvar_add.
19448 (script): Likewise.
19449 (rules): New function, centralising handling for different target
19450 types. Set up Guile association lists for first_time and vars_init,
19451 and send most output to a diversion so that variable initialisations
19452 can be emitted first.
19453 (module_rules): Use new rules function.
19454 (kernel_rules): Likewise.
19455 (image_rules): Likewise.
19456 (library_rules): Likewise.
19457 (program_rules): Likewise.
19458 (script_rules): Likewise.
19459 (data_rules): Likewise.
19461 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19463 * .bzrignore: Add contrib and grub-core/contrib. Remove
19464 grub-core/Makefile.gcry.am.
19466 2010-09-24 Yves Blusseau <blusseau@zetam.org>
19468 * grub-core/lib/LzFind.c: Add missing include.
19469 * grub-core/lib/LzmaEnc.c: Likewise.
19470 * grub-core/script/lexer.c: Likewise.
19471 * grub-core/script/yylex.l: Likewise.
19472 * util/grub-macho2img.c: Likewise.
19473 * util/grub-menulst2cfg.c: Likewise.
19474 * util/grub-mklayout.c: Likewise.
19475 * util/grub-mkpasswd-pbkdf2.c
19476 * util/grub-mkrelpath.c: Likewise.
19477 * util/resolve.c: Likewise.
19479 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19481 * Makefile.util.def (example_unit_test): Add
19482 grub-core/gnulib/libgnu.a.
19484 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19486 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19488 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19490 Support xz compression on yeeloong.
19492 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19493 * configure.ac: Check for LZMA.
19494 * grub-core/Makefile.core.def (xz_decompress): New target.
19495 (none_decompress): Likewise.
19496 * grub-core/boot/decompressor/minilib.c: New file.
19497 * grub-core/boot/decompressor/none.c: Likewise.
19498 * grub-core/boot/decompressor/xz.c: Likewise.
19499 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19500 * grub-core/kern/mips/cache_flush.S: Likewise.
19501 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19502 * grub-core/kern/mips/startup.S: Move first stage to ...
19503 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19505 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19506 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19507 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19508 Allocate statically.
19509 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19510 Allocate statically or use scratch. Don't check CRC32.
19511 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19512 Allocate statically. Don't check CRC32.
19513 * include/grub/decompressor.h: New file.
19514 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19516 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19517 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19518 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19519 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19520 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19521 * util/grub-mkimage.c (grub_compression_t): New type.
19522 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19523 (image_target_desc): New field default_compression.
19524 (image_targets): Adjust yeeloong targets.
19525 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19526 (compress_kernel): New parameter comp.
19527 (generate_image): Likewise. Handle new compression case.
19528 (options): New option --compression
19530 (main): Handle new option.
19532 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19534 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19536 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
19538 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19539 typo in __i386__ conditional.
19541 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19543 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19546 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19548 Implement EFI and ACPI multiboot2 extensions.
19550 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19551 new tags as supported.
19552 (acpiv2_size): New function.
19553 (grub_multiboot_get_mbi_size): Take new tags into account.
19554 (grub_multiboot_make_mbi): Add new tags.
19555 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
19557 2010-09-21 Aleš Nesrsta <starous@volny.cz>
19559 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19560 Added missing configuration of USB device.
19562 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19564 * grub-core/normal/menu_entry.c (run): Make sure we always return
19567 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19569 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19570 NumberOfPages is UINT64 according to the UEFI specification, not
19571 UINTN. Fix printf format.
19573 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19575 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19576 `err' to grub_usb_err_t.
19577 Reported and tested by: KESHAV P.R.
19579 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19581 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19582 tpart non-const, so that we can assign to it. (Since this is a
19583 typedef, the constness refers to the pointer rather than what it
19586 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19588 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19589 $(top_srcdir)/grub-core/gnulib as well as
19590 $(top_builddir)/grub-core/gnulib.
19591 Reported by: KESHAV P.R.
19593 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19595 * util/grub-install.in: Fix the bootloader ID option to be
19596 consistently --bootloader-id, not --bootloader_id.
19597 Reported by: KESHAV P.R.
19599 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19601 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19602 check hash checksum." consistently translatable.
19604 2010-09-21 Yves Blusseau <blusseau@zetam.org>
19606 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19609 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19611 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19612 (GRUB_MOD_INIT): Register sha1sum command.
19613 (GRUB_MOD_FINI): Unregister sha1sum command.
19615 2010-09-21 Yves Blusseau <blusseau@zetam.org>
19617 Keep boot and grub directory names in sync with utils scripts
19619 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19620 * config.h.in: Add previous macros.
19621 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19622 * util/grub-install.in: Use $bootdir and $grubdir variables.
19624 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19626 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19627 convert partition names to disk names if the new `convert' parameter
19629 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19630 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19631 disk in its own right. This can happen with Xen disk images.
19633 2010-09-21 Yves Blusseau <blusseau@zetam.org>
19635 * util/grub-editenv.c: Update strings to avoid warnings when generating
19637 * util/grub-setup.c: Likewise.
19639 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19641 * configure.ac: Change version to 1.99~beta0.
19643 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19645 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19647 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19649 * include/multiboot.h: Resynced with specification.
19650 * include/multiboot2.h: Likewise.
19652 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
19654 Fix po directory handling.
19656 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19657 * grub-core/gnulib/Makefile.am: Import gettext module.
19658 * m4/gnulib-cache.m4: Likewise.
19659 * m4/gnulib-comp.m4: Likewise.
19660 * m4/gettext.m4: New file, from gnulib.
19661 * m4/glibc2.m4: Likewise.
19662 * m4/iconv.m4: Likewise.
19663 * m4/intdiv0.m4: Likewise.
19664 * m4/intl.m4: Likewise.
19665 * m4/intldir.m4: Likewise.
19666 * m4/intlmacosx.m4: Likewise.
19667 * m4/intmax.m4: Likewise.
19668 * m4/inttypes-pri.m4: Likewise.
19669 * m4/lcmessage.m4: Likewise.
19670 * m4/lib-ld.m4: Likewise.
19671 * m4/lib-link.m4: Likewise.
19672 * m4/lib-prefix.m4: Likewise.
19673 * m4/lock.m4: Likewise.
19674 * m4/nls.m4: Likewise.
19675 * m4/po.m4: Likewise.
19676 * m4/printf-posix.m4: Likewise.
19677 * m4/progtest.m4: Likewise.
19678 * m4/threadlib.m4: Likewise.
19679 * m4/uintmax_t.m4: Likewise.
19680 * m4/visibility.m4: Likewise.
19681 * po/Makefile.am: Remove.
19682 * po/Makefile.in.in: New file, from gettext.
19683 ($(DOMAIN).pot-update): Support POTFILES-shell.
19684 * po/Makevars: New file.
19685 * po/POTFILES-shell: Rename to ...
19686 * po/POTFILES-shell.in: ... this. Update.
19687 * po/POTFILES: Rename to ...
19688 * po/POTFILES.in: ... this. Update.
19689 * po/Rules-quot: New file, from gettext.
19690 * po/boldquot.sed: Likewise.
19691 * po/en@boldquot.header: Likewise.
19692 * po/en@quot.header: Likewise.
19693 * po/insert-header.sin: Likewise.
19694 * po/quot.sed: Likewise.
19695 * po/remove-potcdate.sin: Likewise.
19697 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19699 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19701 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19703 * util/grub.d/20_linux_xen.in: Use submenus.
19705 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19709 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19710 parameter submenu. All users updated.
19711 * grub-core/normal/main.c (free_menu): Rename to ...
19712 (grub_normal_free_menu): ... this. Made global.
19713 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19715 * grub-core/normal/menu_entry.c (screen): New field submenu.
19716 (make_screen): Set submenu.
19717 (run): Open new context if requested.
19718 * include/grub/menu.h (grub_menu_entry): New field submenu.
19719 * include/grub/normal.h (grub_normal_free_menu): New proto.
19721 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19723 Menu entries extractor.
19725 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19727 (GRUB_MOD_INIT): Register new variants.
19728 (GRUB_MOD_FINI): Unregister new variants.
19729 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19730 into grub_cmd_legacy_source.
19731 (grub_cmd_legacy_source): Implement extractor variants.
19732 (GRUB_MOD_INIT): Register new variants.
19733 (GRUB_MOD_FINI): Unregister new variants.
19734 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19736 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19737 search as an extractor.
19738 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19739 test as an extractor.
19740 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19742 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19743 (grub_env_new_context): New function.
19744 (grub_env_context_open): Likewise.
19745 (grub_env_extractor_open): Likewise.
19746 (grub_env_extractor_close): Likewise.
19747 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19748 grub_extractor_level.
19749 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19750 * include/grub/env.h (grub_env_extractor_open): New proto.
19751 (grub_env_extractor_close): Likewise.
19752 * include/grub/normal.h (grub_extractor_level): New external variable.
19754 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19756 Make cutmem accept a region specification.
19757 Suggested by: Samuel Thibault
19759 * grub-core/mmap/mmap.c (parsemem): New function.
19760 (grub_cmd_cutmem): Handle new arguments.
19762 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19764 New command cutmem.
19766 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19767 (GRUB_MOD_INIT): Register new command.
19768 (GRUB_MOD_FINI): Unregister new command.
19770 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19772 Support some annoying BSD and Minix subpartitions.
19774 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19775 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19776 Properly handle concatenation.
19777 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19778 * grub-core/normal/completion.c (iterate_partition): Likewise.
19779 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19780 contain partition. All users updated.
19781 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19783 (grub_openbsdlabel_partition_map): Likewise.
19784 (bsdlabel_partition_map_iterate): Rename to ..
19785 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19786 (bsdlabel_partition_map_iterate): New function.
19787 (netopenbsdlabel_partition_map_iterate): Likewise.
19788 (netbsdlabel_partition_map_iterate): Likewise.
19789 (openbsdlabel_partition_map_iterate): Likewise.
19790 (GRUB_MOD_INIT): Register new partmaps.
19791 (GRUB_MOD_FINI): Unregister new partmaps.
19792 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19793 (grub_partition_msdos_iterate): ... this. All users updated.
19794 Don't support embedding other than in a minix partition.
19795 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19797 * include/grub/partition.h (grub_partition): New field msdostype.
19798 * util/grub-install.in: Handle openbsd and netbsd types being in
19801 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19803 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19805 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19806 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19807 (mdraid09): ... this.
19808 (mdraid1x): New module.
19809 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19810 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19812 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19814 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19817 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19819 * grub-core/commands/efi/lsefimmap.c: Correct header.
19822 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19824 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19825 as printf format strings; the translations might contain '%' which
19826 could cause a crash.
19828 * util/grub-fstest.c (argp_parser): Likewise.
19829 * util/grub-setup.c (argp_parser): Likewise.
19832 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19834 Use argp in grub-fstest.
19836 * util/grub-fstest.c: Don't include getopt.h.
19838 (root): New variable.
19839 (args_count): Likewise.
19841 (num_disks): Likewise.
19842 (images): Likewise.
19844 (debug_str): Likewise.
19846 (options): Transformed to argp.
19848 (main): Split argument parsing into ...
19849 (argp_parser): ... this. Changed to argp format.
19850 (argp): New variable.
19851 (main): Use argp_parse.
19853 2010-09-20 Tristan Gingold <gingold@free.fr>
19854 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
19855 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19857 * grub-core/commands/efi/lsefimmap.c: New file.
19858 * grub-core/Makefile.core.def (lsefimmap): New module.
19859 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19861 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19863 Pause the execution (10s max) if any errors are displayed so the user
19864 has a chance to see them.
19866 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19867 (grub_print_error): Increment grub_err_printed_errors.
19868 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19869 execution if any errors were displayed.
19870 (show_menu): Remove old code for pause.
19871 * grub-core/normal/menu_entry.c (run): Likewise.
19872 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19874 (grub_normal_get_char_counter): Likewise.
19875 * include/grub/err.h (grub_err_printed_errors): New external variable.
19876 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19878 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19880 Support multiboot VBE info.
19882 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19883 Take VBE info into account.
19884 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19885 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19886 Call fill_vbe_info when appropriate.
19887 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19888 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19890 (grub_multiboot_get_mbi_size): Take new tags into account.
19891 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19892 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19893 Call fill_vbe_tag when appropriate.
19894 (grub_multiboot_make_mbi): Properly align tags.
19895 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19897 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19899 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19901 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19903 Suport manual terminal geometry specification.
19905 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19906 Save state in grub_ofconsole_terminfo_output.
19907 (grub_ofconsole_term): Use grub_terminfo_getwh.
19908 (grub_ofconsole_getwh): Removed.
19909 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19910 (grub_serial_term): Use grub_terminfo_getwh.
19911 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19912 (options): New struct.
19913 (OPTION_*): New enum.
19914 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19915 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19917 (grub_terminfo_getwh): New proto.
19918 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19920 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19922 Handle legacy "terminal" command.
19924 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19926 (legacy_commands): Add terminal and title.
19927 (grub_legacy_parse): Handle terminal. Simplify title handling.
19929 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19931 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19932 parameters overflow.
19934 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19936 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19939 * docs/grub.texi (Shell-like scripting): Document `!'.
19940 (Network): Simplify using new i386-pc-pxe format. Mention
19945 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19947 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19948 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19951 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19953 * grub-core/commands/efi/lsefisystab.c: Correct header.
19954 * grub-core/commands/efi/lssal.c: Likewise.
19955 * grub-core/commands/testload.c: Likewise.
19957 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19959 * util/grub-mkrescue.in: Add explicit root argument to --set to
19960 prevent the UUID being interpreted as an argument to --set (matches
19961 previous change to prepare_grub_to_access_device).
19963 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
19965 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19966 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19967 the verbosity of later #ifs.
19968 (find_partition_start): Define this function on FreeBSD too.
19969 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19971 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19974 2010-09-20 Yves Blusseau <blusseau@zetam.org>
19976 * util/grub-editenv.c: Use argp instead of getopt.
19978 2010-09-20 Yves Blusseau <blusseau@zetam.org>
19980 * util/grub-setup.c: Use argp instead of getopt.
19982 2010-09-20 Yves Blusseau <blusseau@zetam.org>
19984 Use gnulib-tool to create gnulib source files.
19986 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19987 grub-core/gnulib directories
19988 * .bzignore: Add **/.deps and autogenerated gnulib files
19989 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19990 of gnulib macros, add grub-core/gnulib/Makefile
19991 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19992 include m4 directory to aclocal.
19993 * Makefile.util.def: Remove direct compilation of gnulib source files
19994 and use the new grub-core/gnulib/libgnu.a.
19995 * build-aux/config.rpath: move config.rpath from top directory to
19997 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19999 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
20000 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
20001 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
20003 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
20006 2010-09-20 Yves Blusseau <blusseau@zetam.org>
20008 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
20009 grub-core/genmod.sh and grub-core/gensyminfo.sh
20011 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
20013 Add a test for echo command options.
20015 * tests/grub_cmd_echo.in: New test.
20016 * Makefile.util.def: Rules for new test.
20018 2010-09-20 Szymon Janc <szymon@janc.net.pl>
20020 Remove crc.mod and move crc command to hashsum.mod.
20021 Remove lib/crc.c - users updated to use gcrypt implementation.
20023 * grub-core/commands/crc.c: Removed.
20024 * grub-core/Makefile.core.def (crc): Module removed.
20025 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
20026 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
20027 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
20028 * grub-core/lib/crc.c: Removed.
20029 * include/grub/lib/crc.h: Removed.
20030 * Makefile.util.def (crc): Remove lib/crc.c
20031 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
20032 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
20033 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
20034 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
20035 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
20036 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
20038 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20040 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
20042 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20044 Split config.h for util and core.
20046 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
20047 (ADDR32): Likewise.
20048 (DATA32): Likewise.
20049 (BSS_START_SYMBOL): Likewise.
20050 (END_SYMBOL): Likewise.
20051 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
20052 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
20053 * config.h.in: New file.
20054 * configure.ac: Use config-util.h as config define file.
20055 Rename MACHINE into GRUB_MACHINE. All users updated.
20056 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
20058 (NESTED_FUNC_ATTR): Likewise.
20059 Substitue new variables.
20060 (COND_HAVE_ASM_USCORE): New conditional.
20061 * grub-core/Makefile.am (ASM_PREFIX): New variable.
20062 (kernel_syms.lst): Use ASM_PREFIX.
20063 * grub-core/kern/emu/console.c: Include config-util.h.
20064 * grub-core/kern/emu/misc.c: Likewise.
20065 * grub-core/kern/emu/mm.c: Likewise.
20066 * include/grub/emu/misc.h: Likewise.
20067 * include/grub/libgcc.h: Likewise.
20069 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20071 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
20073 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20074 Fix GRUB_TERM_KEY_* constants usage.
20075 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20077 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20079 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20081 * grub-core/bus/usb/uhci.c: Remove empty define.
20082 (grub_uhci_check_transfer): Add missing cast.
20083 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20085 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20087 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20089 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20091 * grub-core/Makefile.core.def (legacycfg): Add
20092 lib/i386/pc/vesa_modes_table.c on emu.
20094 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20096 Reduce number of temporary files generated by build system.
20098 * grub-core/gencmdlist.sh: Removed.
20099 * grub-core/genfslist.sh: Removed.
20100 * grub-core/genhandlerlist.sh: Removed.
20101 * grub-core/genmodsrc.sh: Removed.
20102 * grub-core/genpartmaplist.sh: Removed.
20103 * grub-core/genparttoollist.sh: Removed.
20104 * grub-core/gentermiinallist.sh: Removed.
20105 * grub-core/genvideolist.sh: Removed.
20107 * grub-core/genmod.sh.in: New file.
20108 * grub-core/gensyminfo.sh.in: New file.
20110 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20111 * conf/Makefile.extra-dist: Update with new files.
20112 * gentpl.py: Remove rules related to unnecessary temporary files.
20113 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20115 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20117 * grub-core/bus/usb/uhci.c: Remove empty #define.
20118 * grub-core/genmoddep.awk: Updated with new syminfo format.
20119 * util/bash-completion.d/Makefile.am: Add config.log to
20122 2010-09-19 Yves Blusseau <blusseau@zetam.org>
20124 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20126 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20128 * util/grub-mkconfig.in: Check the config script for syntax errors
20131 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
20132 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20134 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20136 * util/grub-install.in: Add EFI and IEEE1275 support.
20137 * util/i386/efi/grub-install.in: Removed.
20138 * util/ieee1275/grub-install.in: Likewise.
20140 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20142 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20143 (grub_cmd_cmosclean): Likewise.
20144 (GRUB_MOD_INIT): Register command cmosclean.
20145 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20146 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20148 2010-09-18 Carles Pina i Estany <carles@pina.cat>
20149 2010-09-18 Aleš Nesrsta <starous@volny.cz>
20150 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20152 Add keyboard layouts support.
20154 * Makefile.util.def (grub-mklayout): New file.
20155 (grub-kbdcomp): New script.
20156 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20157 Add keyboard_layouts.h.
20158 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20159 commands/boot.c on yeeloong.
20160 (keylayouts): New module.
20161 * grub-core/bus/usb/ohci.c
20162 * grub-core/bus/usb/uhci.c
20163 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20164 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20165 (attach_root_port): Likewise.
20166 (poll_nonroot_hub): Likewise.
20167 (grub_usb_poll_devices): Likewise.
20168 (detach_device): Close transfer.
20169 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20171 (grub_usb_bulk_setup_readwrite): Likewise.
20172 (grub_usb_bulk_finish_readwrite): Likewise.
20173 * grub-core/commands/keylayouts.c: New file.
20174 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20175 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20177 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20178 support scancode 2.
20179 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20180 * include/grub/keyboard_layouts.h: New file.
20181 * util/grub-mklayout.c: New file.
20182 * util/grub-kbdcomp.in: Likewise.
20184 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20186 Unify memory types.
20188 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20189 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20191 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20192 (grub_upper_mem): Likewise.
20193 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20194 * include/grub/memory.h (grub_memory_type_t): New enum.
20197 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20199 * grub-core/Makefile.core.def (lsapm): New module.
20200 * grub-core/commands/i386/pc/lsapm.c: New file.
20201 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20202 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20204 * include/grub/i386/pc/apm.h: New file.
20205 * include/multiboot.h (multiboot_apm_info): New struct.
20207 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20209 GRUB-legacy configuration file support.
20211 * Makefile.util.def (grub-menulst2cfg): New util.
20212 * docs/man/grub-menulst2cfg.h2m: New file.
20213 * grub-core/Makefile.core.def (legacycfg): New module.
20214 * grub-core/commands/legacycfg.c: New file.
20215 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20216 (grub_normal_add_menu_entry): ... this.
20217 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20218 (grub_normal_set_password): ...this.
20219 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20220 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20221 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20222 * grub-core/lib/legacy_parse.c: New file.
20223 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20224 * include/grub/i386/pc/vesa_modes_table.h: New file.
20225 * include/grub/legacy_parse.h: Likewise.
20226 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20227 * util/grub-menulst2cfg.c: New file.
20229 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20231 * grub-core/kern/emu/hostdisk.c
20232 (convert_system_partition_to_system_disk): Initialise node.
20234 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20236 * grub-core/kern/emu/hostdisk.c
20237 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20239 Reported and based on patch by: Modestas Vainius.
20241 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
20243 Fix DM-RAID probing with recent versions of device-mapper udev
20246 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20247 canonicalise device paths under /dev/mapper/.
20248 (convert_system_partition_to_system_disk): Compare the
20249 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20250 path, since device nodes under /dev/mapper/ are often symlinks.
20252 2010-09-17 Yves Blusseau <blusseau@zetam.org>
20254 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20256 2010-09-16 Yves Blusseau <blusseau@zetam.org>
20258 * configure.ac: Avoid some annoying error messages if freetype-config
20259 program is not found.
20261 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20263 Support RAID on virtio devices, and others.
20265 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20267 [__MINGW32__] (grub_find_device): ... this.
20268 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20269 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20270 reasonable default if dir is NULL.
20271 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20273 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20274 (grub_guess_root_device): Update callers.
20275 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20277 * util/raid.c (grub_util_getdiskname): Remove.
20278 (grub_util_raid_getmembers): Use grub_find_device rather than
20279 grub_util_getdiskname.
20281 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20283 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20284 needing to be compiled with serial support.
20285 (ls): Indicate that multiple files are accepted.
20286 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20287 indicate that multiple files are accepted.
20289 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
20291 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20292 libgrub_a_init.c, and util/bash-completion.d/grub.
20294 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20296 * util/grub-setup.c (setup): Fix incorrect container semantics.
20298 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20300 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20302 Reported by: J. Nick Terry
20304 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20306 Move embedding routines to partmap sources files.
20308 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20309 [GRUB_UTIL]: New variable.
20310 (gpt_partition_map_iterate): Set part.parent.
20311 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20312 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20313 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20315 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20316 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20317 (grub_partition_map) [GRUB_UTIL]: New field embed.
20318 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20319 (setup): Use ->embed.
20321 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20323 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20325 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20326 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20328 2010-09-15 Yves Blusseau <blusseau@zetam.org>
20330 Add function to get completions from usage.
20332 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20333 completions from usage. Use LC_ALL=C to get options properly.
20335 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20337 * grub-core/gnulib/basename-lgpl.c: Imported.
20338 * grub-core/gnulib/basename.c: Likewise.
20339 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20340 * grub-core/gnulib/dirname.c: Likewise.
20341 * grub-core/gnulib/dirname.h: Likewise.
20342 * grub-core/gnulib/stripslash.c: Likewise.
20344 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20346 * grub-core/gnulib/error.c: Resynced.
20347 * grub-core/gnulib/getopt.c: Likewise.
20348 * grub-core/gnulib/getopt_int.h: Likewise.
20349 * grub-core/gnulib/regex.h: Likewise.
20350 * grub-core/gnulib/regex_internal.c: Likewise.
20351 * grub-core/gnulib/regex_internal.h: Likewise.
20353 2010-09-15 Szymon Janc <szymon@janc.net.pl>
20355 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20356 CRC calculations and validity checks.
20357 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20360 2010-09-15 Szymon Janc <szymon@janc.net.pl>
20362 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20364 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20366 Fix incorrect echo options handling.
20367 Reported by: Yves Blusseau.
20369 * include/grub/command.h (grub_command_flags_t): New flags
20370 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20371 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20372 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20374 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20376 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20378 (GRUB_COMMAND_FLAG_MENU): Likewise.
20379 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20380 (GRUB_COMMAND_FLAG_TITLE): Removed.
20381 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20382 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20383 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20384 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20385 (grub_command_flags_t): New enum. All users updated.
20387 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20389 Fix solaris compilation.
20391 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20392 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20393 (grub-emu-list): Likewise.
20395 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20397 Remove deprecated root command.
20399 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20402 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20404 * util/i386/pc/grub-setup.c: Merge this ...
20405 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20406 * util/grub-setup.c: ... into this.
20407 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20410 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20412 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20415 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20417 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20420 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20422 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20423 explicit root argument to set to prevent UUID to be interpreted as
20426 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20428 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20430 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20432 Don't export grub_gate_a20.
20434 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20435 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20437 (grub_gate_a20): ... this. All users updated.
20438 * include/grub/i386/pc/init.h: Removed. All users updated.
20440 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20442 Create euro.pf2 which supports most European languages.
20444 * Makefile.am (grubdata_DATA): Add euro.pf2.
20445 (euro.pf2): New target.
20446 (CLEANFILES): Add euro.pf2.
20448 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20450 * configure.ac: Disable emu-usb by default to prevent inadvertent
20453 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20455 Disable usbserial on grub-emu since our libusb code isn't good enough
20458 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20459 (usbserial_pl2303): Likewise.
20460 (usbserial_ftdi): Likewise.
20462 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20464 * include/grub/disk.h (grub_disk): Remove has_partitions.
20466 * disk/loopback.c (grub_loopback): Remove has_partitions.
20468 (options): Remove partitions. All users updated.
20469 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20470 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20471 actual partition table is found.
20473 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20475 Remove readability checks (too many false negatives).
20477 * util/grub-install.in: Remove readability checks.
20478 * util/grub-mkconfig.in: Likewise.
20479 * util/grub.d/10_hurd.in: Likewise.
20480 * util/grub.d/10_kfreebsd.in: Likewise.
20481 * util/grub.d/10_linux.in: Likewise.
20482 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20485 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20487 Enable acpi shutdown on all ACPI platforms.
20489 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20490 on coreboo, multiboot and EFI.
20491 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20492 (grub_acpi_halt): Likewise.
20493 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20494 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20495 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20496 * grub-core/lib/i386/halt.c (grub_halt)
20497 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20499 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20501 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20504 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20506 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20507 * grub-core/video/efi_uga.c: Likewise.
20509 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20511 Filter devaliases and never open same device twice.
20513 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20514 (last_ihandle): Likewise.
20515 (ofdisk_hash_ent): New member shortest.
20516 (ofdisk_hash_add): Add canonical path too.
20517 (scan): New function.
20518 (grub_ofdisk_iterate): Iterate over hashed entries.
20519 (compute_dev_path): Don't add :0.
20520 (grub_ofdisk_open): Don't really open the disk.
20521 (grub_ofdisk_close): Avoid closing unrelated disk.
20522 (grub_ofdisk_read): Implement reopen logic.
20523 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20525 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20528 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20532 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20533 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20534 right address. Add sparc64_ieee1275_ldflags.
20535 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20536 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20537 to grub_host_to_target_addr
20538 (load_image): Likewise.
20540 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20542 * grub-core/normal/completion.c (complete_file): Handle device
20544 Fix based on patch by Doug Nazar.
20546 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20548 grub-mknetdir script.
20550 * Makefile.util.def (grub-mknetdir): New module.
20551 * tests/util/grub-shell.in: Support boot=net
20552 * util/grub-mknetdir.in: New file.
20554 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20556 videoinfo on non-vbe.
20558 * grub-core/Makefile.core.def (vbeinfo): Removed.
20559 (vbetest): Removed.
20560 (videoinfo): New module.
20561 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20562 * grub-core/commands/i386/pc/vbetest.c: Removed.
20563 * grub-core/commands/videoinfo.c: New file.
20564 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20566 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20568 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20569 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20570 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20571 mode_number. New parameter mode. All users updated.
20572 (grub_video_gop_iterate): New function.
20573 (grub_video_efi_gop): New member iterate.
20574 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20575 (grub_vbe_set_video_mode): Remove setting useless fields.
20576 (vbe2videoinfo): New function.
20577 (grub_video_vbe_iterate): Likewise.
20578 (grub_video_vbe_setup): Use vbe2videoinfo.
20579 (grub_video_vbe_print_adapter_specific_info): New function.
20580 (grub_video_vbe_adapter): New fields iterate and
20581 print_adapter_specific_info.
20582 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20584 (grub_video_mode_info): New field mode_number.
20585 (grub_video_adapter): New fields iterate and
20586 print_adapter_specific_info.
20588 2010-09-13 Tristan Gingold <gingold@free.fr>
20589 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
20590 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20592 * grub-core/commands/efi/lsefisystab.c: New file.
20593 * grub-core/commands/efi/lssal.c: Likewise.
20594 * grub-core/Makefile.core.def (lsacpi): New module.
20595 (lsefisystab): Likewise.
20596 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20597 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20598 (grub_efi_sal_system_table): New struct.
20599 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20600 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20601 (grub_efi_sal_system_table_platform_features): Likewise.
20602 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20603 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20604 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20605 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20607 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20609 Support explicit user claim that a device is BIOS-visible.
20611 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20612 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20613 * grub-core/kern/emu/hostdisk.c
20614 (convert_system_partition_to_system_disk): Support mdX.
20615 (find_system_device): New parameter add. All users updated.
20616 (grub_util_biosdisk_is_present): New function.
20617 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20620 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20622 Search hints support.
20624 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20627 2010-09-13 Yves Blusseau <blusseau@zetam.org>
20629 Bash completion script for util commands
20631 * Makefile.am: Add util/bash-completion.d directory
20632 * configure.ac: Likewise.
20633 * util/bash-completion.d/Makefile.am: New file.
20634 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20636 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20638 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20639 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20640 Reported by: Yves Blusseau.
20642 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20644 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20645 partition size and offset.
20647 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20649 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20651 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20653 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20655 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20657 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20658 (grub_xvasprintf): Likewise.
20660 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20662 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20664 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20666 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20667 args ending with NULL.
20669 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20671 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20674 2010-09-11 Szymon Janc <szymon@janc.net.pl>
20676 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20678 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20680 Shutdown using ACPI.
20682 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20683 * grub-core/commands/acpihalt.c: New file.
20684 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20685 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20686 (grub_acpi_halt): New proto.
20687 (GRUB_ACPI_SLP_EN): New const.
20688 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20689 (GRUB_ACPI_OPCODE_*): New enum.
20690 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20692 2010-09-11 Tristan Gingold <gingold@free.fr>
20693 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
20694 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20696 * commands/lsacpi.c: New file.
20697 * grub-core/Makefile.core.def (lsacpi): New module.
20698 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20699 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20700 (grub_acpi_madt_entry_header): New struct.
20701 (grub_acpi_madt): Likewise.
20702 (grub_acpi_madt_entry_interrupt_override): Likewise.
20703 (grub_acpi_madt_entry_sapic): Likewise.
20704 (grub_acpi_madt_entry_lsapic): Likewise.
20705 (grub_acpi_madt_entry_platform_int_source): Likewise.
20706 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20707 (PRIuGRUB_UINT32_T): Likewise.
20708 (PRIxGRUB_UINT64_T): Likewise.
20710 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20712 Implement loading palette on ieee1275_fb.
20714 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20715 (have_setcolors): Likewise.
20716 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20717 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20718 (grub_video_ieee1275_set_palette): Implement.
20720 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20721 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
20723 * util/grub-install.in (grub_partition): New variable.
20724 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20725 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20726 Fixes a bug reported by Yves Blusseau.
20728 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20732 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20733 =grub_cpu_flush_cache on all mips and not only yeeloong.
20734 * configure.ac (COND_mips): New conditional.
20735 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20737 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20738 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20739 [GRUB_LINKER_HAVE_INIT]: New function.
20740 (grub_emu_post_init): Likewise.
20741 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20742 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20743 * include/grub/cache.h (_mips): Include mips/cache.h.
20744 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20745 LVM and RAID prototypes.
20746 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20747 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20750 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
20752 * util/grub-install.in: Don't try to verify core.img until after
20753 running grub-mkimage to create it.
20755 2010-09-10 Robert Millan <rmh@gnu.org>
20757 * util/grub.d/10_hurd.in: Add misc readability checks.
20758 * util/grub.d/10_kfreebsd.in: Likewise.
20759 * util/grub.d/10_linux.in: Likewise.
20761 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
20763 * util/grub-install.in: ${imgext} won't be defined here until the
20764 install branch is merged. For the meantime, only verify core.img on
20765 i386-pc and sparc64-ieee1275 platforms.
20767 2010-09-10 Robert Millan <rmh@gnu.org>
20769 Solaris support in grub_find_zpool_from_dir(). Thanks
20770 Seth Goldberg for referring to getextmntent() facility.
20772 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20774 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20776 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20777 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20778 method for finding zpool name.
20780 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
20782 grub-fstest needs the host and hostfs modules while other utilities
20783 actively require those modules to be absent, so grub-fstest needs
20784 its own initialisation and finalisation code.
20786 * Makefile.am (grub_fstest.pp): New target.
20787 (grub_fstest_init.lst): Likewise.
20788 (grub_fstest_init.c): Likewise.
20789 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20791 2010-09-10 Robert Millan <rmh@gnu.org>
20793 * configure.ac: Check for `struct statfs.f_fstypename' and
20794 `struct statfs.f_mntfromname'.
20796 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20797 kFreeBSD-specific code.
20799 2010-09-10 Robert Millan <rmh@gnu.org>
20801 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20802 on ZFS. Now non-main filesystems are supported as / too.
20804 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
20806 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20807 and grub-core/disk/host.c to ...
20808 (grub-fstest): ... here. Having the host disk implementation
20809 present confuses grub-probe and other utility programs.
20811 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20812 when writing to a file, not when writing to stdout.
20814 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20816 * tests/partmap_test.in: New test for partitions.
20817 * Makefile.util.def: Rules for new test.
20819 2010-09-09 Robert Millan <rmh@gnu.org>
20821 * util/grub-probe.c (probe): Fix a pair of unhandled error
20824 2010-09-09 Robert Millan <rmh@gnu.org>
20826 Basic Btrfs support (detection and UUID).
20828 * grub-core/fs/btrfs.c: New file.
20829 * Makefile.util.def (library): Register btrfs.c.
20830 * grub-core/Makefile.core.def: Likewise.
20832 2010-09-08 Robert Millan <rmh@gnu.org>
20834 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20835 with (optional) parameters to specify device and relative path.
20836 * util/grub-install.in: Use is_path_readable_by_grub() to
20837 verify readability of a few critical files.
20838 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20839 verify readability of grub.cfg.new.
20841 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20843 Split minix.mod into minix.mod and minix2.mod.
20845 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20846 * grub-core/Makefile.core.def (minix2): New module.
20847 * grub-core/fs/minix.c: Use definitions instead of runtime version
20849 * grub-core/fs/minix2.c: New file.
20851 2010-09-08 Yves Blusseau <blusseau@zetam.org>
20853 Add new --boot-directory option to replace --root-directory
20855 * util/grub-install.in: Add new --boot-directory option
20856 * util/grub-reboot.in: Likewise.
20857 * util/grub-set-default.in: Likewise.
20859 2010-09-08 Yves Blusseau <blusseau@zetam.org>
20861 * util/grub-mkconfig.in: Use new variable.
20863 2010-09-08 Yves Blusseau <blusseau@zetam.org>
20865 * configure.ac: Define some useful variables.
20867 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20869 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20870 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20871 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20872 Use terminfo and don't use cursor-on/cursor-off unless it's known
20874 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20875 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20877 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
20879 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20880 starts with "(,", fill the drive containing the loaded image in
20881 between those two characters, but expect that a full partition
20882 specification including partition map names will follow.
20884 2010-09-08 Robert Millan <rmh@gnu.org>
20886 * configure.ac: Remove `--enable-grub-fstest' option.
20887 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20889 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20890 `grub-fstest' instead of `grub-probe' for readability verification.
20891 * util/grub-probe.c (probe): Remove readability verification kludge.
20893 2010-09-08 Robert Millan <rmh@gnu.org>
20895 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20896 initializing `GRUB_FS'.
20898 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20900 Not command (!) support to GRUB script.
20902 * tests/grub_script_not.in: New test.
20903 * Makefile.util.def: Rules for new test.
20905 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20906 ! command as a special case.
20907 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20909 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20911 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20914 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20916 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20918 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20920 * docs/grub.texi (Shell-like scripting): Documentation for break,
20921 continue, shift and return commands.
20923 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20925 Rename CD-ROM to cd on BIOS.
20927 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20929 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20931 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20933 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20934 * util/grub-probe.c (main): Likewise.
20935 * util/i386/pc/grub-setup.c (main): Likewise.
20936 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20937 Reported and debugged by: alexxy
20939 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20941 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20944 2010-09-05 Jo Shields <directhex@apebox.org>
20946 * util/grub.d/30_os-prober.in: Add missing classes.
20948 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20950 * docs/grub.texi (Theme file format): Document new position format.
20952 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20954 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20955 a table. Use @code instead of @verbatim.
20957 2010-09-05 Colin D Bennett <colin@gibibit.com>
20959 Gfxmenu documentation.
20961 * docs/grub.texi (Theme file format): New chapter.
20963 2010-09-05 Szymon Janc <szymon@janc.net.pl>
20965 * grub-core/Makefile.core.def (xzio): New module.
20966 * grub-core/io/xzio.c: New file.
20967 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20968 * grub-core/lib/xzembed/xz_config.h: Likewise.
20969 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20970 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20971 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20972 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20973 * grub-core/lib/xzembed/xz_private.h: Likewise.
20974 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20975 * include/grub/file.h (grub_file_filter_id): New compression filter
20976 GRUB_FILE_FILTER_XZIO.
20978 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20980 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20981 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20984 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20986 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20987 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20989 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20991 Uncompressed checksum support.
20993 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20994 (check_list): New parameter uncompress.
20995 (grub_cmd_hashsum): Handle --uncompress.
20997 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20999 Reintroduce testload.
21001 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
21003 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
21004 (GRUB_MOD_INIT): New function.
21005 (GRUB_MOD_FINI): Likewise.
21006 * grub-core/Makefile.core.def (testload): New module.
21008 2010-09-05 Szymon Janc <szymon@janc.net.pl>
21010 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
21011 (uint8_t): New type.
21012 (uint16_t): Likewise.
21013 (uint32_t): Likewise.
21014 (uint64_t): Likewise.
21016 2010-09-05 Szymon Janc <szymon@janc.net.pl>
21018 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
21020 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21022 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
21024 (grub_gzfile_open): Removed. All users updated.
21025 (GRUB_MOD_INIT): New function.
21026 (GRUB_MOD_FINI): Likewise.
21027 * grub-core/kern/file.c (grub_file_filters_all): New variable.
21028 (grub_file_filters_enabled): Likewise.
21029 (grub_file_open): Handle filters.
21030 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
21031 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
21032 * include/grub/file.h (grub_file_filter_id_t): New type.
21033 (grub_file_filter_t): Likewise.
21034 (grub_file_filters_all): New extern variable.
21035 (grub_file_filters_enabled): Likewise.
21036 (grub_file_filter_register): New inline function.
21037 (grub_file_filter_unregister): Likewise.
21038 (grub_file_filter_disable): Likewise.
21039 (grub_file_filter_disable_compression): Likewise.
21040 * include/grub/gzio.h: Removed.
21042 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21044 Filename expansion support for wildcards in GRUB script.
21046 * tests/grub_script_expansion.in: New test.
21047 * Makefile.util.def: Rule for new test.
21049 * grub-core/commands/wildcard.c: New file, implements filename
21050 expansion support for GRUB script.
21051 * grub-core/Makefile.core.def: Rule update for regexp.mod.
21052 * grub-core/script/argv.c: Cosmetic changes.
21053 * grub-core/script/execute.c (grub_script_arglist_to_argv):
21054 Refactored to perform wildcard expansion on arguments.
21055 * include/grub/script_sh.h (grub_script_wildcard_translator): New
21058 * tests/util/grub-shell.in: Fix quoting for read input.
21060 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21062 Support for updating environment variables with matched substrings
21065 * tests/grub_cmd_regexp.in: New test.
21066 * Makefile.util.def: Rule for new test.
21068 * grub-core/commands/regexp.c: New option -s to update environment
21069 variables with regexp matches.
21071 2010-09-04 Szymon Janc <szymon@janc.net.pl>
21073 * include/grub/file.h (grub_file): New member not_easly_seekable.
21074 (grub_file_seekable): New inline function.
21075 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21077 (grub_gzio_open): Set not_easly_seekable.
21078 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21079 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21081 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21083 Support for options to appear multiple times on cmdline.
21085 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21086 * grub-core/commands/extcmd.c: Support for repeatable option.
21087 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21088 repeatable option support.
21090 Refactor menuentry into a regular command.
21092 * grub-core/commands/menuentry.c: New file, menuentry command
21094 * grub-core/Makefile.core.def: Rule update for normal.mod.
21095 * grub-core/normal/main.c: Moved menuentry creation to
21096 grub-core/commands/menuentry.c.
21097 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21098 (grub_menu_execute_entry_real): Removed.
21099 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21101 (grub_script_execute_menuentry): Removed.
21102 * grub-core/script/parser.y (menuentry): Removed.
21103 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21104 * grub-core/script/yylex.l (menuentry): Removed.
21105 * include/grub/menu.h (grub_menu_init): New prototype.
21106 (grub_menu_fini): New prototype.
21107 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21108 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21109 (grub_script_execute_sourcecode): New prototype.
21111 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21113 "return" command for GRUB script functions.
21115 * tests/grub_script_return.in: New test.
21116 * Makefile.util.def: Rules for new test.
21118 * grub-core/script/execute.c (grub_script_return): New function.
21119 * grub-core/script/main.c: Register/unregister return commaond.
21120 * include/grub/script_sh.h (grub_script_return): New prototype.
21122 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21124 "setparams" command to update positional parameters.
21126 * tests/grub_script_setparams.in: New test.
21127 * Makefile.util.def: Rules for new test.
21129 * grub-core/script/argv.c (grub_script_argv_make): New function.
21130 * grub-core/script/execute.c (replace_scope): New function.
21131 (grub_script_setparams): New function.
21132 * grub-core/script/lexer.c: Remove unused variables.
21133 * grub-core/script/main.c: Register/unregister setparams command.
21134 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21135 (grub_script_setparams): New prototype.
21137 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21139 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21142 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21144 Support for passing block of commands as an argument to extcmds.
21146 * Makefile.util.def: Rules for new test.
21147 * tests/grub_script_blockarg.in: New test.
21148 * grub-core/tests/test_blockarg.c: New file, block argument
21149 command used in the test.
21151 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21152 (grub_register_extcmd_prio): New function prototype.
21153 (grub_extcmd_dispatcher): New function prototype.
21154 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21156 * include/grub/script_sh.h (struct grub_script): New members
21157 `children', `next_siblings' and `refcnt' for block arguments and
21158 reference counting.
21159 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21160 (grub_script_arg): New member `script' for block argument.
21161 (grub_script_argv): New member `script' for block argument.
21162 (grub_parser_param): New member `scripts' for block argument.
21163 (grub_script_mem_free): New extern function prototype.
21164 (grub_script_ref): New function prototype.
21165 (grub_script_unref): New function prototype.
21167 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21168 extcmd form to support block arguments.
21169 * grub-core/script/argv.c: Block arguments support.
21170 * grub-core/script/execute.c: Likewise.
21171 * grub-core/script/lexer.c: Likewise.
21172 * grub-core/script/main.c: Likewise.
21173 * grub-core/script/script.c: Likewise.
21174 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21177 * grub-core/commands/acpi.c: Update extcmd implementations with
21178 grub_extcmd_context_t.
21179 * grub-core/commands/cat.c: Likewise.
21180 * grub-core/commands/echo.c: Likewise.
21181 * grub-core/commands/extcmd.c: Likewise.
21182 * grub-core/commands/hashsum.c: Likewise.
21183 * grub-core/commands/hdparm.c: Likewise.
21184 * grub-core/commands/help.c: Likewise.
21185 * grub-core/commands/hexdump.c: Likewise.
21186 * grub-core/commands/i386/cpuid.c: Likewise.
21187 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21188 * grub-core/commands/i386/pc/halt.c: Likewise.
21189 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21190 * grub-core/commands/iorw.c: Likewise.
21191 * grub-core/commands/keystatus.c: Likewise.
21192 * grub-core/commands/loadenv.c: Likewise.
21193 * grub-core/commands/ls.c: Likewise.
21194 * grub-core/commands/lspci.c: Likewise.
21195 * grub-core/commands/memrw.c: Likewise.
21196 * grub-core/commands/probe.c: Likewise.
21197 * grub-core/commands/search_wrap.c: Likewise.
21198 * grub-core/commands/setpci.c: Likewise.
21199 * grub-core/commands/sleep.c: Likewise.
21200 * grub-core/disk/loopback.c: Likewise.
21201 * grub-core/hello/hello.c: Likewise.
21202 * grub-core/loader/i386/bsd.c: Likewise.
21203 * grub-core/loader/xnu.c: Likewise.
21204 * grub-core/term/gfxterm.c: Likewise.
21205 * grub-core/term/serial.c: Likewise.
21206 * grub-core/tests/lib/functional_test.c: Likewise.
21208 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21210 Multi-line quoted strings support.
21212 * grub-core/script/lexer.c (append_newline): Removed.
21213 (grub_script_lexer_yywrap): Refactored.
21214 (grub_script_lexer_init): Refactored.
21215 * grub-core/script/yylex.l (yywrap): New function.
21216 (grub_lexer_resplit): New function.
21217 (grub_lexer_unput): New function.
21218 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21220 * tests/grub_script_echo1.in: Added few more testcases.
21222 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21224 * grub-core/kern/misc.c: Don't add abort alias in utils.
21225 Reported by: echoline.
21227 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21229 Add missing files into "make dist" tarball for other platforms.
21231 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21232 * conf/Makefile.common (dist_noinst_DATA): New variable.
21233 * conf/Makefile.extra-dist: Added missing make dist files.
21234 * grub-core/Makefile.core.def: Likewise.
21236 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21238 Compress grub_prefix.
21240 * grub-core/boot/i386/pc/lnxboot.S: Use
21241 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21242 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21243 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21244 GRUB_MACHINE_PREFIX_END. All users updated.
21245 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21246 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21248 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21249 * util/grub-mkimage.c (image_target_desc): Change data_end to
21250 prefix_end. All users updated.
21252 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21254 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21256 (grub_openbsd_boot): Likewise.
21257 (grub_netbsd_boot): Likewise.
21258 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21259 (grub_xnu_boot): Likewise.
21261 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21263 * configure.ac: Clean LIBS variable after tests.
21265 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21267 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21269 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21271 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21272 echo if libdevmapper will be used.
21274 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21276 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21277 constant for the same file.
21279 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21281 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21283 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21285 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21288 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
21290 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21291 required by the boot protocol.
21293 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21294 ebp and edi members.
21295 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21296 state.ebp and state.edi.
21297 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21298 %ebp and %edi according to grub_relocator32_ebp and
21299 grub_relocator32_edi respectively.
21300 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21303 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21305 Add i386-pc-pxe image target.
21307 * util/grub-mkimage.c (image_target_desc): New enum value
21309 (image_targets): New target i386-pc-pxe.
21310 (generate_image): Handle i386-pc-pxe image.
21312 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21316 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21317 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21319 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21320 (grub_pxe_pxenv): Correct type.
21322 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21324 * NEWS: Document most of the important changes since 1.98.
21326 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21328 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21329 generated manual page) a little.
21331 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
21333 * docs/grub.texi: Add myself as an author.
21335 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21337 * Makefile.util.def (libgrub.a): Add missing sunpc.
21338 Reported by: Seth Goldberg.
21340 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21342 Interrupt wrapping and code simplifications.
21344 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21345 x86_noieee1275 which are functionaly equivalent in this case.
21346 (grub-install): Make source on each platform explicit. Enable on
21348 * gentpl.py (x86_efi_pc): Removed group.
21349 (x86_noefi): Likewise.
21350 (i386_noefi): Likewise.
21351 (x86_noieee1275): Likewise.
21352 (i386_noieee1275): Likewise.
21353 (i386_noefi_noieee1275): Likewise.
21354 (i386_pc_qemu_coreboot): Likewise.
21355 (i386_coreboot_multiboot): Likewise.
21356 (i386_pc_coreboot_multiboot_qemu): Likewise.
21357 (x86_noefi_mips): Likewise.
21358 (noieee1275): Likewise.
21359 (ieee1275_mips): Likewise.
21360 (noemu_noieee1275): Likewise.
21363 (videoinkernel): Likewise.
21364 (videomodules): Likewise.
21365 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
21366 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21367 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21368 include/grub/loader.h, include/grub/msdos_partition.h,
21369 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21370 include/grub/machine/console.h, include/grub/machine/vga.h,
21371 include/grub/machine/vbe.h, include/grub/machine/init.h,
21372 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21373 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
21374 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
21375 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21376 * grub-core/Makefile.core.def (kernel): Explicit the source for
21377 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21378 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21379 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21380 Use videoinkernel tag.
21381 (usb): Enable on all usb.
21382 (usbserial_common): Likewise.
21383 (usbserial_pl2303): Likewise.
21384 (usbserial_ftdi): Likewise.
21385 (uhci): Enable on all x86.
21386 (ohci): Enable on all pci.
21387 (cmostest): Enable on all CMOS.
21388 (acpi): Include commands/acpi.c on all platforms.
21389 (halt): Add relevant lib/*/halt.c.
21390 (hdparm): Enable on all pci.
21392 (usbtest): Enable on all usb.
21393 (ata): Enable on all pci.
21394 (ata_pthru): Likewise.
21395 (usbms): Enable on all usb.
21396 (usb_keyboard): Likewise.
21397 (font): Use tag videomodules.
21399 (datetime): Use tag cmos. Enable on all noemu.
21400 (mmap): Use tags common and x86.
21401 (gfxterm): Use tag videomodules.
21402 (bitmap): Likewise.
21403 (bitmap_scale): Likewise.
21404 (video_fb): Likewise.
21406 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21407 adjust padding accordingly. All users updated.
21408 (grub_ohci_transaction): Fix bad format specification.
21409 (GRUB_MOD_INIT): Add asserts for struct size.
21410 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21411 (grub_alloc_td): Likewise.
21412 (grub_free_queue): Likewise.
21413 (grub_uhci_transfer): Likewise.
21414 (grub_uhci_transaction): Fix bad format specification.
21415 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21416 (grub_usb_bulk_readwrite): Likewise.
21417 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21418 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21420 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21422 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21423 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21424 Transformed into C.
21425 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21426 Moved from here ...
21427 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21428 ... here. Transformed into C. Made static.
21429 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21430 Moved from here ...
21431 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21432 ... here. Transformed into C. Made static.
21433 * grub-core/kern/i386/pc/startup.S
21434 (grub_biosdisk_check_int13_extensions): Moved from here ...
21435 * grub-core/disk/i386/pc/biosdisk.c
21436 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21438 * grub-core/kern/i386/pc/startup.S
21439 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21440 * grub-core/disk/i386/pc/biosdisk.c
21441 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21442 Transformed into C. Made static.
21443 * grub-core/kern/i386/pc/startup.S
21444 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21445 * grub-core/disk/i386/pc/biosdisk.c
21446 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21447 Transformed into C. Made static.
21448 * grub-core/kern/i386/pc/startup.S
21449 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21450 * grub-core/disk/i386/pc/biosdisk.c
21451 (grub_biosdisk_get_diskinfo_standard): ... here.
21452 Transformed into C. Made static.
21453 * grub-core/kern/i386/pc/startup.S
21454 (grub_biosdisk_get_num_floppies): Moved from here ...
21455 * grub-core/disk/i386/pc/biosdisk.c
21456 (grub_biosdisk_get_num_floppies): ... here.
21457 Transformed into C. Made static.
21458 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21460 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21461 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21462 Transformed into C. Made static.
21463 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21464 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21465 Transformed into C. Made static.
21466 * grub-core/kern/i386/ieee1275/init.c: Removed.
21467 * grub-core/kern/i386/misc.S: Likewise.
21468 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21469 Splitted from here ...
21470 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21471 Transformed into C. Made static. All users updated.
21472 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21473 Transformed into C. Made static. All users updated.
21474 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21476 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21477 Transformed into C. Made static. All users updated.
21478 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21480 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21481 Transformed into C. Made static. All users updated.
21482 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21483 Removed (replaced by C version).
21484 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21486 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21487 Transformed into C. Made static.
21488 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21490 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21491 ... here. Transformed into C.
21492 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21494 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21495 ... here. Transformed into C.
21496 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21498 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21499 ... here. Transformed into C. Made static.
21500 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21502 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21503 ... here. Transformed into C.
21504 * grub-core/kern/i386/pc/startup.S
21505 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21506 * grub-core/video/i386/pc/vbe.c
21507 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
21508 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21510 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21511 ... here. Transformed into C.
21512 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21514 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21515 ... here. Transformed into C.
21516 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21518 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21519 ... here. Transformed into C.
21520 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21522 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21523 ... here. Transformed into C.
21524 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21526 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21527 ... here. Transformed into C. Made static.
21528 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21530 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21531 ... here. Transformed into C. Made static.
21532 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21534 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21535 ... here. Transformed into C. Made static.
21536 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21537 pxe_rm_entry as third argument.
21538 (grub_bios_interrupt): New function.
21539 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21540 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21541 of calling grub_stop.
21542 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21543 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21544 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21545 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21546 * grub-core/lib/i386/halt.c: Moved from here ...
21547 * grub-core/lib/i386/halt.c: ... here.
21548 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21549 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21550 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21552 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21553 * include/grub/i386/coreboot/init.h: Removed.
21554 * include/grub/i386/multiboot/init.h: Likewise.
21555 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21556 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21557 * include/grub/i386/pc/int.h: New file.
21558 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21559 (grub_pxe_scan): Removed.
21560 (grub_pxe_call): Update prototype.
21561 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21563 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21564 * include/grub/i386/qemu/init.h: Removed.
21565 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21567 (grub_halt): Likewise.
21568 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21569 (grub_reboot): Likewise.
21570 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21571 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21572 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21574 2010-08-30 Robert Millan <rmh@gnu.org>
21576 * NEWS: Document addition of ZFS support in `grub-install' and
21579 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21581 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21584 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21586 Remove leftover embedding of font objects.
21588 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21589 * util/grub-install.in (font): Removed.
21590 * util/grub-mkimage.c (generate_image): Remove font support. All users
21593 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21595 Remove leftover embedding of font objects.
21597 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21598 * util/grub-install.in (font): Removed.
21599 * util/grub-mkimage.c (generate_image): Remove font support. All users
21602 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21604 * docs/grub.texi (Network): Fix reference to pxe_blksize.
21605 Reported by: Ian Turner
21607 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21609 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21610 timeout to avoid indefinite boot stalling.
21612 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21614 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21615 (grub_env_write_color_highlight): Likewise.
21617 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21619 * grub-core/normal/term.c (print_more): Return to normal and not
21620 to standard state after printing "---MORE---".
21622 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21624 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21625 Mask out the bit 0x80 since it has other meaning that specifiing color.
21627 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21629 New relocator. Allows for more kernel support and more straightforward
21632 * Makefile.am (BOOTTARGET): New variable.
21633 (QEMU32): Likewise.
21634 (linux.init.x86_64): New target.
21635 (linux.init.i386): Likewise.
21636 (multiboot.elf): Likewise.
21637 (kfreebsd.elf): Likewise.
21638 (kfreebsd.aout): Likewise.
21639 (pc-chainloader.elf): Likewise.
21640 (pc-chainloader.bin): Likewise.
21641 (ntldr.elf): Likewise.
21642 (ntldr.bin): Likewise.
21643 (multiboot2.elf): Likewise.
21644 (kfreebsd.init.x86_64): Likewise.
21645 (kfreebsd.init.i386): Likewise.
21646 (knetbsd.init.i386): Likewise.
21647 (kopenbsd.init.i386): Likewise.
21648 (knetbsd.init.x86_64): Likewise.
21649 (kopenbsd.init.x86_64): Likewise.
21650 (linux-initramfs.i386): Likewise.
21651 (linux-initramfs.x86_64): Likewise.
21652 (kfreebsd-mfsroot.i386.img): Likewise.
21653 (knetbsd.image.i386): Likewise.
21654 (kopenbsd.image.i386): Likewise.
21655 (kopenbsd.image.x86_64): Likewise.
21656 (knetbsd.miniroot-image.i386.img): Likewise.
21657 (kfreebsd-mfsroot.x86_64.img): Likewise.
21658 (knetbsd.image.x86_64): Likewise.
21659 (knetbsd.miniroot-image.x86_64.img): Likewise.
21660 (kfreebsd-mfsroot.i386.gz): Likewise.
21661 (bootcheck-kfreebsd-i386): Likewise.
21662 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21663 (bootcheck-kfreebsd-x86_64): Likewise.
21664 (knetbsd.miniroot-image.i386.gz): Likewise.
21665 (bootcheck-knetbsd-i386): Likewise.
21666 (bootcheck-kopenbsd-i386): Likewise.
21667 (bootcheck-kopenbsd-x86_64): Likewise.
21668 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21669 (bootcheck-knetbsd-x86_64): Likewise.
21670 (bootcheck-linux-i386): Likewise.
21671 (bootcheck-linux-x86_64): Likewise.
21672 (bootcheck-linux16-i386): Likewise.
21673 (bootcheck-linux16-x86_64): Likewise.
21674 (bootcheck-multiboot): Likewise.
21675 (bootcheck-multiboot2): Likewise.
21676 (bootcheck-kfreebsd-aout): Likewise.
21677 (bootcheck-pc-chainloader): Likewise.
21678 (bootcheck-ntldr): Likewise.
21679 (CLEANFILES): Add new targets.
21680 (BOOTCHECKS): New variable.
21681 (.PHONY): Add bootchecks.
21682 (SUCCESSFUL_BOOT_STRING): New variable.
21683 (BOOTCHECK_TIMEOUT): Likewise.
21684 (bootcheck): New target
21685 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21686 * configure.ac: Correct efiemu excuse.
21687 * docs/grub.texi (Supported kernels): New chapter.
21688 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21689 include/grub/mm_private.h. Simplify inclusion of
21690 include/grub/boot.h, include/grub/loader.h
21691 and include/grub/msdos_partition.h
21692 (KERNEL_HEADER_FILES) [i386_coreboot]:
21693 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21694 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21695 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21696 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21697 include/grub/machine/loader.h.
21698 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21699 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21701 (pci.mod): Enable on i386-multiboot.
21702 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21703 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21705 (relocator.mod): Rewritten.
21706 (aout.mod): Enable on all x86.
21707 (bsd.mod): Likewise.
21708 (ntldr.mod): New module.
21709 (linux.mod): Use loader/i386/linux.c on all x86.
21710 (xnu.mod): Enable on all x86.
21711 (vga_text.mod): disable on EFI and QEMU.
21712 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21713 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21714 * grub-core/efiemu/loadcore.c: Likewise.
21715 * grub-core/efiemu/main.c: Likewise.
21716 (grub_efiemu_exit_boot_services): Removed.
21717 (grub_efiemu_finish_boot_services): Likewise.
21718 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21720 * grub-core/efiemu/i386/nocfgtables.c: New file.
21721 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21722 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21723 (grub_efi_finish_boot_services): Moved from here ...
21724 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21725 Fille finish memory map and related data.
21726 (finish_mmap_buf): New variable.
21727 (grub_efi_uintn_t finish_mmap_size): Likewise.
21728 (grub_efi_uintn_t finish_key): Likewise.
21729 (grub_efi_uintn_t finish_desc_size): Likewise.
21730 (grub_efi_uint32_t finish_desc_version): Likewise.
21731 (grub_efi_is_finished): Likewise.
21732 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21734 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21735 (grub_elf64_phdr_iterate): Likewise.
21736 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21737 (grub_os_area_size): Likewise.
21738 (grub_machine_init): Don't reserve os area.
21739 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21740 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21741 * grub-core/kern/i386/loader.S: Removed.
21742 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21743 (grub_os_area_size): Likewise.
21744 (grub_machine_init): Don't reserve os area.
21745 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21746 Don't call grub_dl_unload_all.
21747 Don't include loader.S.
21748 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21749 Declare the memory after _end as available.
21750 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
21751 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
21752 (GRUB_MM_ALLOC_MAGIC): Moved from here...
21753 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21754 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21755 * include/grub/mm_private.h (grub_mm_header): ... here.
21756 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21757 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
21758 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21759 (grub_mm_region): ..here. Removed addr. Added pre_size.
21761 * grub-core/kern/mm.c (base): Renamed to ...
21762 (grub_mm_base): ... this. Made global.
21763 (grub_real_malloc): Alloc from end of region.
21764 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21765 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21766 * grub-core/kern/powerpc/cache_flush.S: ... here.
21767 * grub-core/lib/efi/relocator.c: New file.
21768 * grub-core/lib/i386/relocator.c: Rewritten.
21769 * grub-core/lib/i386/relocator16.S: New file.
21770 * grub-core/lib/i386/relocator32.S: Likewise.
21771 * grub-core/lib/i386/relocator64.S: Likewise.
21772 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21773 * grub-core/lib/i386/relocator_common.S: New file.
21774 * grub-core/lib/ieee1275/relocator.c: Likewise.
21775 * grub-core/lib/mips/relocator.c: Rewritten.
21776 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21777 stylistic adjustments.
21778 * grub-core/lib/powerpc/relocator.c: New file.
21779 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21780 * grub-core/lib/relocator.c: Rewritten.
21781 * grub-core/lib/x86_64/relocator_asm.S: New file.
21782 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21783 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21784 (bsd_tag): New struct.
21785 (tags): New variable.
21786 (tags_last): Likewise.
21787 (netbsd_module): New struct.
21788 (netbsd_mods): New variable.
21789 (netbsd_mods_last): Likewise.
21790 (openbsd_opts): New parameter "serial".
21791 (OPENBSD_SERIAL_ARG): New definition.
21792 (netbsd_opts): New parameter "serial".
21793 (NETBSD_SERIAL_ARG): New definition.
21794 (grub_freebsd_add_meta): Reorganised into ...
21795 (grub_bsd_add_meta): ...this. All users updated.
21796 (grub_freebsd_add_mmap): Reorganised into ...
21797 (generate_e820_mmap): ...this...
21798 (grub_bsd_add_mmap): ...and this. All users updated.
21799 (grub_freebsd_list_modules): Use tags.
21800 (grub_netbsd_add_meta_module): New function.
21801 (grub_netbsd_list_modules): Likewise.
21802 (grub_freebsd_boot): Use relocator and finish EFI.
21803 (grub_openbsd_boot): Likewise.
21804 (grub_netbsd_setup_video): New function.
21805 (grub_netbsd_add_modules): Likewise.
21806 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21808 (grub_bsd_unload): Unload tags.
21809 (grub_bsd_load_aout): Use relocator.
21810 (grub_bsd_elf32_size_hook): New function.
21811 (grub_bsd_elf32_hook): Use relocator.
21812 (grub_bsd_elf64_size_hook): New function.
21813 (grub_bsd_elf64_hook): Use relocator.
21814 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21815 (grub_bsd_load): Zero-out openbsd_ramdisk.
21816 (grub_bsd_load): Use relocator.
21817 (grub_cmd_openbsd): Support serial.
21818 (grub_cmd_netbsd): Support modules.
21819 (grub_cmd_freebsd_module): Use relocator.
21820 (grub_netbsd_module_load): New function.
21821 (grub_cmd_netbsd_module): Likewise.
21822 (grub_cmd_openbsd_ramdisk): Likewise.
21823 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21825 (GRUB_MOD_FINI): Unregister new commands.
21826 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21827 (grub_freebsd_load_elfmodule_obj): Use relocator.
21828 (grub_freebsd_load_elfmodule): Likewise.
21829 (grub_freebsd_load_elf_meta): Likewise.
21830 (grub_netbsd_load_elf_meta): New function.
21831 (grub_openbsd_find_ramdisk): Likewise.
21832 * grub-core/loader/i386/bsd_helper.S: Removed.
21833 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21834 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21835 * grub-core/loader/i386/efi/linux.c: Likewise.
21836 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21837 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21838 (DEFAULT_VIDEO_MODE): Likewise.
21839 (real_mode_target): New variable.
21840 (prot_mode_target): Likewise.
21841 (initrd_mem_target): Likewise.
21842 (relocator): Likewise.
21843 (efi_mmap_buf): Likewise.
21844 (efi_mmap_size): Likewise.
21845 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21846 (free_pages): Use relocator.
21847 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21848 (grub_linux_setup_video): Return error.
21849 (grub_linux_trampoline_start): Removed.
21850 (grub_linux_trampoline_end): Likewise.
21851 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21852 andd video parameters depending on firmware.
21853 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21854 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21855 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21856 (grub_cmd_initrd): Use relocator.
21857 * grub-core/loader/i386/linux_trampoline.S: Removed.
21858 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21859 (elf_sec_entsize): Likewise.
21860 (elf_sec_shstrndx): Likewise.
21861 (elf_sections): Likewise.
21862 (grub_multiboot_load): Use relocator.
21863 (grub_multiboot_get_mbi_size): Account for sections.
21864 (grub_multiboot_make_mbi): Use relocator and support sections.
21865 (grub_multiboot_add_elfsyms): New function.
21866 (grub_multiboot_free_mbi): Free sections.
21867 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21868 (grub_linux_real_target): Likewise.
21869 (grub_linux_real_chunk): Likewise.
21870 (grub_linux16_prot_size): Likewise.
21871 (grub_linux16_boot): Use relocator.
21872 (grub_linux_unload): Unload relocator.
21873 (grub_cmd_linux): Use relocator.
21874 (grub_cmd_initrd): Likewise.
21875 * grub-core/loader/i386/pc/ntldr.c: New file.
21876 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21877 Don't try to guess CPU frequency.
21878 (grub_xnu_set_video): Stretch bitmap.
21879 (grub_xnu_boot): Use relocator.
21880 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21881 (grub_linux_unload): Free relocator.
21882 (grub_linux_load32): Use relocator.
21883 (grub_linux_load64): Likewise.
21884 (grub_cmd_initrd): Likewise.
21885 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21886 (grub_multiboot_unload): Unload relocator.
21887 (grub_cmd_multiboot): Use relocator.
21888 (grub_cmd_module): Likewise.
21889 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21890 Use relocator and support sections.
21891 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21892 (elf_sec_entsize): Likewise.
21893 (elf_sec_shstrndx): Likewise.
21894 (elf_sections): Likewise.
21895 (grub_multiboot_load): Use relocator.
21896 (grub_multiboot_get_mbi_size): Account for sections.
21897 (grub_multiboot_make_mbi): Use relocator and support sections.
21898 (grub_multiboot_add_elfsyms): New function.
21899 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21900 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21901 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21902 Prototype changed. All users updated.
21903 (grub_xnu_align_heap): Simplified.
21904 (grub_xnu_writetree_toheap): Likewise.
21905 (grub_xnu_unload): Unload relocator.
21906 (grub_cmd_xnu_kernel): Use relocator.
21907 (grub_cmd_xnu_kernel64): Likewise.
21908 (grub_xnu_register_memory): Simplified.
21909 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
21910 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21912 (grub_console_checkkey): Likewise.
21913 (grub_console_getkey): Likewise.
21914 (grub_console_getwh): Likewise.
21915 (grub_console_getxy): Likewise.
21916 (grub_console_gotoxy): Likewise.
21917 (grub_console_cls): Likewise.
21918 (grub_console_setcolorstate): Likewise.
21919 (grub_console_setcursor): Likewise.
21920 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21921 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21922 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21923 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21924 * grub-core/tests/boot/kernel-8086.S: Likewise.
21925 * grub-core/tests/boot/kernel-i386.S: Likewise.
21926 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21927 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21928 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21929 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21930 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21931 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21932 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21933 * grub-core/tests/boot/linux.cfg: Likewise.
21934 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21935 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21936 * grub-core/tests/boot/linux16.cfg: Likewise.
21937 * grub-core/tests/boot/multiboot.cfg: Likewise.
21938 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21939 * grub-core/tests/boot/ntldr.cfg: Likewise.
21940 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21941 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21942 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21944 * include/grub/dl.h (grub_dl_unload_all): Removed.
21945 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21946 (grub_efi_finish_boot_services): Change prototype.
21947 (grub_efi_is_finished): New variable.
21948 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21950 (grub_efiemu_finish_boot_services): Removed.
21951 (grub_machine_efiemu_init_tables): New prototype.
21952 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21953 (grub_elf64_phdr_iterate): Likewise.
21954 * include/grub/i386/bsd.h: Include relocator.h.
21955 (freebsd_tag_header): New struct.
21956 (grub_openbsd_bios_mmap): Removed.
21957 (grub_unix_real_boot): Removed.
21958 (grub_freebsd_load_elfmodule32): Changed prototype.
21959 (grub_freebsd_load_elfmodule_obj64): Likewise.
21960 (grub_freebsd_load_elf_meta32): Likewise.
21961 (grub_freebsd_load_elf_meta64): Likewise.
21962 (grub_freebsd_add_meta): Removed.
21963 (grub_netbsd_load_elf_meta32): New prototype.
21964 (grub_netbsd_load_elf_meta64): Likewise.
21965 (grub_bsd_add_meta): Likewise.
21966 (grub_openbsd_ramdisk_descriptor): New struct.
21967 (grub_openbsd_find_ramdisk32): New prototype.
21968 (grub_openbsd_find_ramdisk64): Likewise.
21969 * include/grub/i386/coreboot/loader.h: Removed.
21970 * include/grub/i386/efi/loader.h: Likewise.
21971 * include/grub/i386/ieee1275/loader.h: Likewise.
21972 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21974 * include/grub/i386/loader.h: Removed.
21975 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21977 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21978 (grub_phys_addr_t): New type.
21979 (grub_vtop): New inline function.
21980 (grub_map_memory): Likewise.
21981 (grub_unmap_memory): Likewise.
21982 * include/grub/i386/multiboot/loader.h: Removed.
21983 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21984 (NETBSD_BTINFO_CONSOLE): New definition.
21985 (NETBSD_BTINFO_SYMTAB): Likewise.
21986 (NETBSD_BTINFO_MODULES): Likewise.
21987 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21988 (grub_netbsd_bootinfo): New struct.
21989 (grub_netbsd_btinfo_common): Use explicit bitsize.
21990 (grub_netbsd_btinfo_mmap_entry): Removed.
21991 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21992 (grub_netbsd_btinfo_bootdisk): New struct.
21993 (grub_netbsd_btinfo_symtab): Likewise.
21994 (grub_netbsd_btinfo_serial): Likewise.
21995 (grub_netbsd_btinfo_modules): Likewise.
21996 (grub_netbsd_btinfo_framebuf): Likewise.
21997 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21998 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
22000 (grub_openbsd_bootargs): Use explicit bitsize.
22001 (grub_openbsd_bootarg_console): New struct.
22002 (GRUB_OPENBSD_COM_MAJOR): New definition.
22003 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
22004 * include/grub/i386/pc/efiemu.h: Removed.
22005 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
22006 * include/grub/i386/qemu/loader.h: Removed.
22007 * include/grub/i386/relocator.h: Rewritten.
22008 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
22009 * include/grub/mips/memory.h: New file.
22010 * include/grub/mips/multiboot.h: Rewritten.
22011 * include/grub/mips/relocator.h: Rewritten.
22012 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
22013 (grub_vtop): New function.
22014 (grub_map_memory): Likewise.
22015 (grub_unmap_memory): Likewise.
22016 * include/grub/misc.h (ALIGN_DOWN): New definition.
22017 * include/grub/mm.h (grub_mm_check_real): New proto.
22018 (GRUB_MM_CHECK): New definition.
22019 * include/grub/mm_private.h: New file.
22020 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
22021 (grub_multiboot_get_mbi_size): Removed.
22022 (grub_multiboot_make_mbi): Change prottype.
22023 (grub_multiboot_set_accepts_video): New proto.
22024 (grub_multiboot_add_elfsyms): Likewise.
22025 (grub_multiboot_payload_eip): New variable.
22026 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
22028 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
22030 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
22031 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
22032 * include/grub/powerpc/ieee1275/loader.h: Removed.
22033 * include/grub/powerpc/memory.h: New file.
22034 * include/grub/powerpc/relocator.h: Likewise.
22035 * include/grub/relocator.h: Likewise.
22036 * include/grub/relocator_private.h: Likewise.
22037 * include/grub/sparc64/ieee1275/loader.h: Removed.
22038 * include/grub/x86_64/memory.h: New file.
22039 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
22040 (grub_xnu_heap_malloc): Likewise.
22041 (grub_xnu_heap_real_start): Removed.
22042 (grub_xnu_heap_start): Likewise.
22043 (grub_xnu_relocator): New variable.
22044 (grub_xnu_heap_target_start): Likewise.
22045 * tests/util/grub-shell.in: Support non-pc.
22046 * util/grub-mkimage.c (image_targets): Fix multiboot target.
22048 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22050 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
22052 (grub_bidi_logical_to_visual): Check that malloc succeded.
22053 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
22055 (grub_xputs_normal): Likewise.
22057 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22059 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
22062 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22064 * grub-core/efiemu/runtime/efiemu.sh: Removed.
22066 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22068 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
22070 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22072 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
22075 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22077 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22079 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22081 * grub-core/normal/term.c (print_more): Fix a memory leak.
22082 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22083 (grub_xputs_normal): Likewise.
22085 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22087 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22088 the begining of the string
22090 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22092 * grub-core/script/script.c (grub_script_parse): Free parsed on
22095 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22097 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22100 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22102 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22105 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22107 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22108 (scroll_up): Fix a memory leak.
22110 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22112 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22115 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22117 Handle USB pendrives exposed as floppies.
22119 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22121 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22122 Check for partitions on all devices.
22124 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22126 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22127 (readkey): Likewise.
22129 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22131 Multiple variable names support to "export" command.
22133 * normal/context.c (grub_cmd_export): "export" command supports
22134 multiple variable names.
22136 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22138 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22139 --target=drive output to Mach device name.
22141 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22143 New Automake based build system for GRUB.
22145 * ABOUT-NLS: New file.
22146 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22147 in Makefile.util.def file.
22148 * Makefile.util.def: New file. Autogen build definitions file for
22150 * conf/Makefile.common: New file. Common variables for GRUB host
22151 utils and target modules.
22152 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22153 * docs/Makefile.am: New file. Automake file for docs.
22154 * gentpl.py: New file. Python script to generate Autogen
22156 * grub-core/Makefile.am: New file. GRUB target modules' rules
22157 that doesn't fit in Makefile.core.def file.
22158 * grub-core/Makefile.core.def: New file. Autogen build
22159 definitions file for GRUB target modules.
22160 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22161 specific setjmp.S file.
22162 * po/Makefile.am: New file.
22164 * .bzrignore: New ignores.
22165 * INSTALL: New requirements, without Ruby.
22166 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22167 * autogen.sh: Updated to invoke autogen as necessary.
22168 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22169 and defines for Automake conditionals.
22170 * geninit.sh: Refactoring.
22172 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22174 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22177 * include/grub/test.h: Fix functional test modules' naming.
22178 * grub-core/tests/example_functional_test.c: Fix test module name.
22180 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22181 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22182 * util/grub-editenv.c: Likewise.
22183 * util/grub-fstest.c: Likewise.
22184 * util/grub-mkdevicemap.c: Likewise.
22185 * util/grub-mkfont.c: Likewise.
22186 * util/grub-mkimage.c: Likewise.
22187 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22188 * util/grub-probe.c: Likewise.
22189 * util/grub-script-check.c: Likewise.
22190 * util/i386/pc/grub-setup.c: Likewise.
22191 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22193 * tests/util/grub-shell.in: Fix override directory path.
22194 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22195 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22197 * util/lvm.c: Update #includes.
22198 * util/raid.c: Likewise.
22199 * util/resolve.c: Likewise.
22200 * grub-core/bus/emu/pci.c: Likewise.
22201 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22202 * grub-core/lib/posix_wrap/string.h: Likewise.
22203 * grub-core/kern/emu/main.c: Likewise.
22205 * grub-core/gensymlist.sh: New file. Script for generating kernel
22207 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22209 * grub-core/gentrigtables.c: Fix unused variable warnings.
22211 * Makefile.in: Removed.
22212 * conf/any-emu.rmk: Removed.
22213 * conf/common.rmk: Removed.
22214 * conf/i386-coreboot.rmk: Removed.
22215 * conf/i386-efi.rmk: Removed.
22216 * conf/i386-ieee1275.rmk: Removed.
22217 * conf/i386-multiboot.rmk: Removed.
22218 * conf/i386-pc.rmk: Removed.
22219 * conf/i386-qemu.rmk: Removed.
22220 * conf/i386.rmk: Removed.
22221 * conf/mips-yeeloong.rmk: Removed.
22222 * conf/mips.rmk: Removed.
22223 * conf/powerpc-ieee1275.rmk: Removed.
22224 * conf/sparc64-ieee1275.rmk: Removed.
22225 * conf/tests.rmk: Removed.
22226 * conf/x86-efi.rmk: Removed.
22227 * conf/x86_64-efi.rmk: Removed.
22228 * gendistlist.sh: Removed.
22229 * geninitheader.sh: Removed.
22230 * genkernsyms.sh.in: Removed.
22231 * genmk.rb: Removed.
22232 * gensymlist.sh.in: Removed.
22233 * mkinstalldirs: Removed.
22235 * grub-core/boot: ... to here.
22237 * grub-core/bus: ... to here.
22238 * commands: Moved ...
22239 * grub-core/commands: ... to here.
22241 * grub-core/disk: ... to here.
22242 * efiemu: Moved ...
22243 * grub-core/efiemu: ... to here.
22245 * grub-core/font: ... to here.
22247 * grub-core/fs: ... to here.
22248 * gencmdlist.sh: Moved ...
22249 * grub-core/gencmdlist.sh: ... to here.
22250 * genemuinit.sh: Moved ...
22251 * grub-core/genemuinit.sh: ... to here.
22252 * genemuinitheader.sh: Moved ...
22253 * grub-core/genemuinitheader.sh: ... to here.
22254 * genfslist.sh: Moved ...
22255 * grub-core/genfslist.sh: ... to here.
22256 * genhandlerlist.sh: Moved ...
22257 * grub-core/genhandlerlist.sh: ... to here.
22258 * genmoddep.awk: Moved ...
22259 * grub-core/genmoddep.awk: ... to here.
22260 * genmodsrc.sh: Moved ...
22261 * grub-core/genmodsrc.sh: ... to here.
22262 * genpartmaplist.sh: Moved ...
22263 * grub-core/genpartmaplist.sh: ... to here.
22264 * genparttoollist.sh: Moved ...
22265 * grub-core/genparttoollist.sh: ... to here.
22266 * genterminallist.sh: Moved ...
22267 * grub-core/genterminallist.sh: ... to here.
22268 * gentrigtables.c: Moved ...
22269 * grub-core/gentrigtables.c: ... to here.
22270 * genvideolist.sh: Moved ...
22271 * grub-core/genvideolist.sh: ... to here.
22272 * gettext: Moved ...
22273 * grub-core/gettext: ... to here.
22274 * gfxmenu: Moved ...
22275 * grub-core/gfxmenu: ... to here.
22276 * gnulib: Moved ...
22277 * grub-core/gnulib: ... to here.
22279 * grub-core/hello: ... to here.
22281 * grub-core/hook: ... to here.
22283 * grub-core/io: ... to here.
22285 * grub-core/kern: ... to here.
22287 * grub-core/lib: ... to here.
22288 * loader: Moved ...
22289 * grub-core/loader: ... to here.
22291 * grub-core/mmap: ... to here.
22292 * normal: Moved ...
22293 * grub-core/normal: ... to here.
22294 * partmap: Moved ...
22295 * grub-core/partmap: ... to here.
22296 * parttool: Moved ...
22297 * grub-core/parttool: ... to here.
22298 * script: Moved ...
22299 * grub-core/script: ... to here.
22301 * grub-core/term: ... to here
22302 * tests/example_functional_test.c: Moved ...
22303 * grub-core/tests/example_functional_test.c: ... to here.
22304 * tests/lib/functional_test.c: Moved ...
22305 * grub-core/tests/lib/functional_test.c: ... to here.
22306 * tests/lib/test.c: Moved ...
22307 * grub-core/tests/lib/test.c: ... to here.
22309 * grub-core/video: ... to here.
22311 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22313 Replace --enable-grub-emu-modules with grub-emu-lite.
22315 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22318 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22319 * kern/emu/full.c: New file. For grub-emu specific initialization.
22320 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22321 * kern/emu/main.c: Call initialization function grub_emu_init.
22323 * Makefile.in: Include grub-emu-lite in install.
22324 * commands/parttool.c: Use grub_no_autoload to differentiate
22325 between grub-emu and grub-emu-lite.
22326 * include/grub/misc.h: New variable grub_no_autoload.
22328 * conf/any-emu.rmk: New rules for grub-emu-lite.
22329 * configure.ac: Remove --enable-grub-emu-modules.
22330 * genmk.rb: Cleanup unnecessary rules.
22331 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22333 * normal/main.c: Don't load list files on grub-emu-lite.
22334 * util/misc.c (grub_arch_sync_caches): Removed.
22336 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
22338 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22339 grub-mkimage rather than grub-mkelfimage.
22340 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22342 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22344 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22345 a key after CapsLock or NumLock. It's just a qemu bug.
22347 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22349 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22350 needed by libusb wrapper.
22352 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22354 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22356 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22358 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22359 --nounzip is passed.
22361 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22363 USB hotunplugging and USB serial support.
22365 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22366 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22367 (grub_uhci_transfer): Respect timeout and set *actual.
22368 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22369 non-standard length.
22370 (grub_usb_device_attach): Autoload modules.
22371 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22372 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22373 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22375 (grub_usb_add_hub): Fill nports and children.
22376 (attach_root_port): Receive hub instead of controller.
22377 All users updated. Fill hub->devices.
22378 (grub_usb_root_hub): Allocate hub->devices.
22379 (detach_device): New function.
22380 (poll_nonroot_hub): Fill children and detach devices.
22381 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22382 actual arguments. All users updated.
22383 (grub_usb_bulk_read_extended): New function.
22384 * bus/usb/serial/common.c: New file.
22385 * bus/usb/serial/ftdi.c: Likewise.
22386 * bus/usb/serial/pl2303.c: Likewise.
22387 * commands/terminal.c (handle_command): Support wildcard.
22388 * commands/usbtest.c: Output "Unknown" instead of empty string.
22389 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22390 (usbserial_common_mod_SOURCES): New variable.
22391 (usbserial_common_mod_CFLAGS): Likewise.
22392 (usbserial_common_mod_LDFLAGS): Likewise.
22393 (pkglib_MODULES): Add usbserial_pl2303.mod.
22394 (usbserial_pl2303_mod_SOURCES): New variable.
22395 (usbserial_pl2303_mod_CFLAGS): Likewise.
22396 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22397 (pkglib_MODULES): Add usbserial_ftdi.mod.
22398 (usbserial_ftdi_mod_SOURCES): New variable.
22399 (usbserial_ftdi_mod_CFLAGS): Likewise.
22400 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22401 (pkglib_MODULES): Add serial.mod.
22402 (serial_mod_SOURCES): New variable.
22403 (serial_mod_CFLAGS): Likewise.
22404 (serial_mod_LDFLAGS): Likewise.
22405 * conf/i386-pc.rmk: Likewise.
22406 * conf/mips-yeeloong.rmk: Likewise.
22407 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22408 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22409 * disk/usbms.c (first_available_slot): New variable.
22410 (grub_usbms_attach): Don't reuse free slots due to potential cache
22412 * include/grub/serial.h: Moved to ..
22413 * include/grub/ns8250.h: ...this.
22414 * include/grub/serial.h: New file.
22415 * include/grub/term.h (grub_term_poll_usb): New variable.
22416 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22417 readkey. All users updated.
22418 (grub_terminfo_output_state): Pass term to put.
22419 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22420 (grub_usb_controller_dev): Add timeout and actual arguments to
22421 transfer. All users updated.
22422 (grub_usb_interface): New field detach_data.
22423 (grub_usb_device): New fields children and nports.
22424 (grub_usb_ep_type_t): New type.
22425 (grub_usb_get_ep_type): New function.
22426 (grub_usb_bulk_read_extended): Likewise.
22427 * include/grub/usbdesc.h (grub_usb_desc): New type.
22428 * include/grub/usbserial.h: New file.
22429 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22430 * kern/term.c (grub_term_poll_usb): New variable.
22431 (grub_getkey): Call grub_term_poll_usb if set.
22432 (grub_checkkey): Likewise.
22433 (grub_getkeystatus): Likewise.
22434 * term/serial.c: Moved controller-specific parts to ...
22435 * term/ns8250.c: ... here.
22436 * term/serial.c: Mostly rewritten.
22437 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22440 2010-08-20 Robert Millan <rmh@gnu.org>
22442 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22443 a separate module and maybe other interesting combinations.
22445 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22446 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22447 (kfreebsd_entry): Add generic filesystem module load routine.
22448 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22450 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
22452 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22453 "numcenter" (I misunderstood the purpose of this entry).
22454 * docs/grub.texi (sendkey): Likewise.
22456 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
22458 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22459 status flag options; simply omitting the option is equivalent and
22460 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22461 (keysym_table): Rename "num5numlock" to "numlock".
22462 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22463 can uniformly say that only the last of multiple `sendkey'
22464 invocations has any effect.
22465 * docs/grub.texi (sendkey): New section.
22467 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
22469 * commands/i386/pc/sendkey.c (options): Fix three typos.
22471 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22473 Implement sendkey support.
22475 * commands/i386/pc/sendkey.c: New file.
22476 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22477 (sendkey_mod_SOURCES): New variable.
22478 (sendkey_mod_CFLAGS): Likewise.
22479 (sendkey_mod_LDFLAGS): Likewise.
22481 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
22483 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22484 fix warnings from Autoconf.
22486 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
22488 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22489 to avoid false positives with some assemblers that output things
22490 like "someprefix_func" as part of their output.
22492 2010-08-15 Robert Millan <rmh@gnu.org>
22494 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22496 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22497 grub_get_libzfs_handle() errors.
22499 2010-08-14 Robert Millan <rmh@gnu.org>
22501 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22502 filesystem is not ZFS.
22504 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22506 Fix for misspelled color names defaulting to black/black (bug
22507 reported by Doug Nazar)
22509 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22510 status to prototype.
22511 * normal/color.c (grub_parse_color_name_pair): Return failure
22513 (grub_env_write_color_normal): Ignore bad color names.
22514 (grub_env_write_color_highlight): Likewise.
22515 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22517 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22519 "shift" command support to GRUB script.
22521 * include/grub/script_sh.h (grub_script_shift): New prototype.
22522 * script/execute.c (grub_script_shift): New function.
22523 * script/main.c (grub_script_init): Register shift command.
22524 (grub_script_fini): Unregister shift command.
22525 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22527 * tests/grub_script_shift.in: New testcase.
22528 * conf/tests.rmk: Rules for new testcase.
22530 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22532 "continue" command support to GRUB script.
22534 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22535 (grub_script_break): Continue support.
22536 * script/main.c (grub_script_init): Register continue command.
22537 (grub_script_fini): Unregister continue command.
22539 * tests/grub_script_continue.in: New testcase.
22540 * conf/tests.rmk: Rules for new testcase.
22542 2010-08-12 BVK Chaitanya <bvk@dbook>
22544 "break" command support to GRUB script.
22546 * conf/common.rmk: Rule updates to grub-script-check.
22547 * include/grub/misc.h (grub_min): New function.
22548 * include/grub/script_sh.h (grub_script_init): New prototype.
22549 (grub_script_fini): New prototype.
22550 (grub_script_break): New prototype.
22551 * script/main.c (grub_script_init): New function.
22552 (grub_script_fini): New function.
22553 * script/execute.c (grub_script_break): New function.
22554 * normal/main.c: Calls to grub_script_{init,fini}.
22555 * util/grub-script-check.c (grub_script_break): New function.
22557 * tests/grub_script_break.in: New testcase.
22558 * conf/tests.rmk: Rules for new test case.
22560 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22562 Function parameters support to GRUB script.
22564 * script/yylex.l (VARIABLE): Regular expression update.
22565 * script/function.c (grub_script_function_call): Moved ...
22566 * script/execute.c (grub_script_function_call): ... to here.
22567 (grub_script_execute_arglist_to_argv): Removed.
22568 (grub_script_arglist_to_argv): New function.
22569 * script/argv.c: New file.
22570 (grub_script_argv_free): New function.
22571 (grub_script_argv_next): Likewise.
22572 (grub_script_argv_append): Likewise.
22573 (grub_script_argv_split_append): Likewise.
22574 * include/grub/script_sh.h (grub_script_argv): New struct.
22575 (grub_script_argv_free): New function.
22576 (grub_script_argv_next): Likewise.
22577 (grub_script_argv_append): Likewise.
22578 (grub_script_argv_split_append): Likewise.
22580 * conf/common.rmk (normal.mod): New source script/argv.c.
22582 * tests/grub_script_echo1.in: More tests.
22583 * tests/grub_script_vars1.in: Likewise.
22584 * tests/grub_script_functions.in: New test case.
22585 * conf/tests.rmk: Rules for new testcase.
22587 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22589 Remove grub_script_cmdblock struct.
22591 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22592 * script/parser.y: Likewise.
22593 * script/execute.c: Rename cmdblock suffix to cmdlist.
22594 * script/script.c: Likewise.
22595 * util/grub-script-check.c: Likewise.
22597 2010-08-11 Yves Blusseau <blusseau@zetam.org>
22599 * .bzrignore: add grub-macho2img
22601 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22603 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22605 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22607 Remove the dump of sm712 initialisation sequence.
22609 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22610 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22611 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22612 (GRUB_VGA_CR_*): Added many registers.
22613 (GRUB_VGA_SR_*): Likewise.
22614 (GRUB_VGA_GR_*): Likewise.
22615 (grub_vga_write_arx): New function.
22616 (grub_video_hw_config): New struct.
22617 (grub_vga_set_geometry): New function.
22618 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22619 GRUB_PCI_CLASS_SUBCLASS_VGA.
22620 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22621 * video/sm712.c (grub_sm712_write_reg): New function
22622 (grub_sm712_read_reg): Likewise.
22623 (grub_sm712_sr_write): Likewise.
22624 (grub_sm712_gr_write): Likewise.
22625 (grub_sm712_cr_write): Likewise.
22626 (grub_sm712_write_arx): Likewise.
22627 (grub_sm712_cr_shadow_write): Likewise.
22628 (grub_sm712_write_dda_lookup): Likewise.
22629 (grub_video_sm712_setup): Initialise the video rather then
22630 blindly replay the dump.
22631 (main) [TEST]: Add a routine to be able to compile as standalone for
22633 * video/sm712_init.c (sm712_init): Removed.
22634 (sm712_sr_seq1): New array.
22635 (sm712_sr_seq2): Likewise.
22637 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22639 * include/grub/vga.h: Add missing grub/pci.h include.
22641 2010-08-10 Yves Blusseau <blusseau@zetam.org>
22643 * util/grub-macho2img.c (main): fix typo
22645 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22647 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22648 (grub_vga_gr_read): Likewise.
22649 (grub_vga_cr_write): Likewise.
22650 (grub_vga_cr_read): Likewise.
22651 (grub_vga_sr_write): Likewise.
22652 (grub_vga_sr_read): Likewise.
22653 (grub_vga_palette_read): Likewise.
22654 (grub_vga_palette_write): Likewise.
22655 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22656 (grub_sm712_sr_read): New function.
22657 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22658 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22660 2010-08-09 Robert Millan <rmh@gnu.org>
22662 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22663 out unused variables on non-ZFS build.
22665 2010-08-08 Robert Millan <rmh@gnu.org>
22667 Fix path generation for sub-filesystems in ZFS.
22669 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22672 2010-08-08 Robert Millan <rmh@gnu.org>
22674 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22676 2010-08-08 Robert Millan <rmh@gnu.org>
22678 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22679 exist, issue a proper error message (rely on `ls' for translated
22682 2010-08-08 Robert Millan <rmh@gnu.org>
22684 Fix grub-probe invocation.
22686 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22688 2010-08-04 Robert Millan <rmh@gnu.org>
22690 * configure.ac: Remove checks for getfsstat() and getmntany().
22691 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22692 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22693 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22694 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22695 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22697 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22698 via find_mount_point_from_dir() and getfsstat() / getmntany().
22700 2010-08-04 Robert Millan <rmh@gnu.org>
22702 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22703 (grub_find_zpool_from_mount_point): Merge into ...
22704 (grub_find_zpool_from_dir): ... this.
22705 * kern/emu/misc.c: Likewise.
22708 (grub_make_system_path_relative_to_its_root): Replace
22709 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22710 with grub_find_zpool_from_dir().
22711 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22713 2010-08-04 Robert Millan <rmh@gnu.org>
22715 Support OpenSolaris in ZFS device resolution.
22717 * configure.ac: Check for getmntany().
22718 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22719 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22722 2010-08-03 Robert Millan <rmh@gnu.org>
22724 Fix grub-emu build.
22726 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22727 * include/grub/emu/misc.h: ... here.
22729 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22730 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22732 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22733 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22734 (grub_get_libzfs_handle): Move to ...
22735 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22736 (grub_get_libzfs_handle): ... here.
22738 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22740 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22741 as command name case.
22743 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
22745 * disk/raid.c (insert_array): Select unique numbers for named arrays
22746 as well, for use as keys in the disk cache.
22748 2010-08-01 Robert Millan <rmh@gnu.org>
22750 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22751 kFreeBSD device name, except on ZFS where the filesystem label is
22753 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22754 `/boot/zfs/zpool.cache'.
22755 Set mountfrom kernel variable using ${kfreebsd_device}.
22757 2010-08-01 Robert Millan <rmh@gnu.org>
22759 Make it even harder to use uninitialized `libzfs_handle' (and
22760 make the interface a bit simpler).
22762 * include/grub/util/misc.h (grub_util_init_libzfs)
22763 (libzfs_handle): Remove.
22764 (grub_get_libzfs_handle): New prototype.
22766 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22768 (grub_util_init_libzfs): Remove.
22769 (grub_get_libzfs_handle): New function.
22771 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22772 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22773 accessing `libzfs_handle' directly.
22775 2010-08-01 Robert Millan <rmh@gnu.org>
22777 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22778 (grub_find_zpool_from_mount_point): New function prototypes.
22780 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22781 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22783 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22784 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22785 `static' attribute.
22787 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22788 finding zpool from mount point into ...
22789 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22791 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22792 requested path is part of a ZFS pool, use
22793 grub_find_zpool_from_mount_point() to detect its filesystem name,
22794 and generate a path with `/fsname@path' syntax.
22796 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22798 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22799 (void) rather than () so that this is a proper prototype.
22801 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22803 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22805 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22807 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22808 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22810 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22812 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22814 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22816 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22818 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22820 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22821 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22822 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22823 disable gfxpayload.
22824 (Shell-like scripting): Add real content.
22825 (Serial terminal): Suggest `terminal_input serial; terminal_output
22826 serial' rather than putting the two commands on separate lines,
22827 since console input will be inoperative after the first command.
22828 (menuentry): Document --class, --users, and --hotkey options.
22829 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22830 Vladimir Serbinenko).
22832 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22833 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22835 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22837 2010-08-01 Robert Millan <rmh@gnu.org>
22839 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22840 (grub_find_zpool_from_mount_point): New function prototypes.
22842 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22843 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22845 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22846 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22847 `static' attribute.
22849 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22850 finding zpool from mount point into ...
22851 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22853 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22854 requested path is part of a ZFS pool, use
22855 grub_find_zpool_from_mount_point() to detect its filesystem name,
22856 and generate a path with `/fsname@path' syntax.
22858 2010-08-01 Robert Millan <rmh@gnu.org>
22860 Prevent accidental use of uninitialized libzfs_handle.
22862 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22863 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22864 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22866 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
22868 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22869 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22871 2010-08-01 Robert Millan <rmh@gnu.org>
22873 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
22875 2010-07-31 Robert Millan <rmh@gnu.org>
22877 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22879 2010-07-31 Robert Millan <rmh@gnu.org>
22881 * kern/emu/misc.c: Add missing license header.
22883 2010-07-31 Robert Millan <rmh@gnu.org>
22885 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22887 * include/grub/util/libnvpair.h: Include `<config.h>'.
22888 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22889 declaring libnvpair prototypes ourselves.
22890 * include/grub/util/libzfs.h: Include `<config.h>'.
22891 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22892 declaring libzfs prototypes ourselves.
22894 (libzfs_handle): Moved to ...
22895 * include/grub/util/misc.h (libzfs_handle): ... here.
22896 Include `<grub/util/libzfs.h>'.
22898 2010-07-30 Robert Millan <rmh@gnu.org>
22900 * include/grub/emu/misc.h: Add missing license header.
22902 2010-07-30 Robert Millan <rmh@gnu.org>
22904 Enable `grub-probe -t device' resolution on ZFS.
22906 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22907 * include/grub/util/libnvpair.h: New file.
22908 * include/grub/util/libzfs.h: New file.
22910 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22911 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22912 `<grub/util/libnvpair.h>'.
22913 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22915 (find_mount_point_from_dir): New static function.
22916 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22918 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22919 find_root_device_from_libzfs() before ressorting to find_root_device().
22921 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22923 * util/misc.c: Include `<grub/util/libzfs.h>'.
22924 (grub_util_init_libzfs): New function.
22925 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22926 [HAVE_LIBZFS] (fini_libzfs): New static function.
22927 (grub_util_init_libzfs): New function.
22928 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22930 2010-07-30 Robert Millan <rmh@gnu.org>
22932 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22933 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22934 `warn_unused_result' attribute.
22935 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22936 (grub_xasprintf, grub_xvasprintf): Likewise.
22937 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22939 2010-07-29 Robert Millan <rmh@gnu.org>
22941 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22942 (probe): Handle `PRINT_FS_LABEL'.
22943 (main): Handle `-t fs_label'.
22945 2010-07-29 Robert Millan <rmh@gnu.org>
22947 * configure.ac: Remove grub-mkisofs checks.
22949 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22951 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22952 Reported by: Lennart Sorensen.
22954 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22956 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22957 prior to terminal_input/terminal_output separation. It's been over 1.5
22958 years and those versions weren't widely deployed.
22960 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
22962 * disk/raid.c (insert_array): Don't count named arrays when looking
22963 for unused array numbers.
22964 Reported and tested by: Michael Guntsche.
22966 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
22968 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22969 implementation of this so that grub-emu links again, with a note
22970 that this should support hotplugging in the future.
22972 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
22974 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22976 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
22978 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22980 (grub_loopback_close): Remove empty function.
22981 (grub_loopback_dev): Remove close method.
22983 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
22985 Disable EFI cursor when the EFI console becomes inactive.
22987 * term/efi/console.c (grub_efi_console_init): New function.
22988 (grub_efi_console_fini): New function.
22989 (grub_console_term_output): Register init and fini methods.
22991 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22993 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22996 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22998 * disk/loopback.c (grub_loopback): Replace filename with file.
22999 (delete_loopback): Handle new semantics.
23000 (grub_cmd_loopback): Likewise.
23001 (grub_loopback_iterate): Likewise.
23002 (grub_loopback_close): Likewise.
23004 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23006 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
23008 Reported by: Tito Keitel.
23010 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23012 * docs/grub.texi (Naming convention): Document new naming convention.
23014 2010-07-20 Vadim Solomin <vadic052@gmail.com>
23015 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23017 Generate device.map in something closer to the old ordering.
23019 * util/deviceiter.c (struct device): New declaration.
23020 (compare_file_names): Rename to ...
23021 (compare_devices): ... this. Sort by kernel name in preference to
23022 the stable by-id name, but keep the latter as a fallback comparison.
23023 Update header comment.
23024 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
23025 of `struct device' rather than of plain file names.
23027 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
23029 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
23032 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23034 * commands/acpi.c (setup_common_tables): Use sizeof instead of
23036 (setv1table): Likewise.
23038 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23040 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
23041 removing the homehost if present.
23042 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
23043 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
23044 removing the homehost if present.
23045 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
23047 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
23049 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
23050 parameter. Set its pointer target to 0.
23051 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
23052 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
23053 `data_offset' value from the superblock for 1.x metadata.
23054 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
23055 data on the device.
23056 (insert_array): Record the start sector of data on the device.
23057 (grub_raid_register): Pass start_sector parameters to
23058 grub_raid_list->detect and insert_array.
23059 * include/grub/raid.h (struct grub_raid_array): Add start_sector
23061 (struct grub_raid): Add start_sector parameter to `detect'.
23063 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
23064 __attribute__ ((packed)), leaving a comment.
23065 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
23066 (grub_mdraid_detect_09): ... here and ...
23067 (grub_mdraid_detect_1x): ... here.
23069 2010-07-20 Peter Henn <peter.henn@web.de>
23071 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
23072 chunk size and disk size, which are already given as sector counts
23073 as distinct from the 0.90 units. Fetch the correct device number
23074 from the role table instead of using the table index.
23076 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
23078 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23079 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23080 (WriteMostly1): New macro.
23081 Set array->name to NULL for metadata format 0.90. Add support for
23082 metadata 1.x. Fix some comments.
23083 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23085 * util/getroot.c (grub_util_get_grub_dev): Add support for
23086 /dev/md/name style devices.
23088 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
23090 * .bzrignore: Ignore 20_linux_xen.
23092 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
23094 * util/import_unicode.py: Remove unnecessary imports.
23096 2010-07-17 Aleš Nesrsta <starous@volny.cz>
23098 Hotplugging and USB hub support.
23100 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23101 (grub_ohci): Likewise.
23102 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23103 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23104 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23105 (GRUB_OHCI_CTRL_EDS): Likewise.
23106 (GRUB_OHCI_BULK_EDS): Likewise.
23107 (GRUB_OHCI_TDS): Likewise.
23108 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23109 (grub_ohci_ed_phys2virt): New function.
23110 (grub_ohci_virt_to_phys): Likewise.
23111 (grub_ohci_td_phys2virt): Likewise.
23112 (grub_ohci_td_virt2phys): Likewise.
23113 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23115 (grub_ohci_find_ed): New function.
23116 (grub_ohci_alloc_td): Likewise.
23117 (grub_ohci_free_td): Likewise.
23118 (grub_ohci_free_tds): Likewise.
23119 (grub_ohci_transfer): Use previously allocated memory.
23120 (grub_ohci_portstatus): Reset status changed bit.
23121 (grub_ohci_detect_dev): Supply status changed.
23122 (grub_ohci_fini_hw): Free memory.
23123 (grub_ohci_restore_hw): Reallocate memory.
23124 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23125 Reset status change.
23126 (grub_uhci_detect_dev): Supply status_change.
23127 * bus/usb/usb.c (attach_hooks): New var.
23128 (grub_usb_device_attach): New function.
23129 (grub_usb_register_attach_hook_class): Likewise.
23130 (grub_usb_unregister_attach_hook_class): Likewise.
23131 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23132 (grub_usb_add_hub): Reset connection changed bit.
23133 (attach_root_port): New function.
23134 (grub_usb_root_hub): Likewise.
23135 (poll_nonroot_hub): Likewise.
23136 (grub_usb_poll_devices): Likewise.
23137 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23138 * disk/usbms.c (grub_usbms_open): Use device hooks.
23139 (grub_usbms_iterate) :Poll devices.
23140 (grub_usbms_finddevs): Split into ...
23141 (grub_usbms_attach): ... this ...
23142 (grub_usbms_attach): ... and this.
23143 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23145 (grub_usb_interface): New fields attached and detach_hook.
23146 (grub_usb_attach_hook_class): New type.
23147 (grub_usb_attach_desc): New struct.
23148 (grub_usb_register_attach_hook_class): New function.
23149 (grub_usb_unregister_attach_hook_class): Likewise.
23150 (grub_usb_poll_devices): Likewise.
23151 (grub_usb_device_attach): Likewise.
23152 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23153 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23155 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23157 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23158 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23159 delta determination style. Works with most NetBSD partitions too.
23161 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23163 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23164 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23166 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23168 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23170 2010-07-14 Anton Blanchard <anton@samba.org>
23172 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23175 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23177 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23179 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23181 * kern/partition.c (grub_partition_check_containment): New function to
23182 check that a partition is physically contained in a parent. Since
23183 offsets are relative (and non-negative), this reduces to checking that
23184 the partition ends before its parent.
23185 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23186 (grub_partition_iterate): Likewise.
23187 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23189 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23190 partitions that start before their parent, and add debug printfs.
23192 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
23194 * Makefile.in (.SUFFIX): Spell correctly, as ...
23195 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23196 bare module name without `.mod', e.g. `test') tried to invoke a
23199 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
23201 * README: Point to the Info manual.
23203 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
23205 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23206 2nd superblock position from partition size.
23208 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
23210 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23211 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23212 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23215 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23217 Restructure SCSI .id handling.
23218 Reported and tested by: Aleš Nesrsta.
23220 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23221 (grub_atapi_dev): Changed .name to "ata". New field .id.
23222 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23223 (grub_usbms_dev): New field .id.
23224 * disk/scsi.c (grub_scsi_iterate): Generate name.
23225 (grub_scsi_open): Parse name.
23226 * include/grub/scsi.h (grub_make_scsi_id): New function.
23227 (grub_scsi_dev): Change iterate and open to number instead of naming
23228 busses. All users updated.
23229 (grub_scsi): Remove name. Add .bus.
23231 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23233 * commands/help.c (grub_cmd_help): Fix a typo.
23235 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23237 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23238 Reported and tested by: Colin Watson.
23240 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23242 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23245 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23247 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23249 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
23251 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23254 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23256 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23257 and disk/raid6_recover.c.
23258 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23259 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23261 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23263 * term/gfxterm.c (repaint_schedulded): Rename to ...
23264 (repaint_scheduled): ... this. Update all callers.
23265 (repaint_was_schedulded): Rename to ...
23266 (repaint_was_scheduled): ... this. Update all callers.
23268 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23270 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23271 which we expect to be handled by upper layers.
23273 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23275 * bus/usb/usbhub.c: #include time.h header.
23277 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23279 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23280 entry_name also for entries without stat blocks (e.g. ".."); fixes
23281 corruption of the first entry in a directory.
23283 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
23285 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23286 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23287 doesn't work otherwise.
23289 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23291 * docs/grub.texi (Features): Update list of supported file systems.
23292 (GNU/Linux): Update for GRUB 2.
23293 (Serial terminal): Remove mention of --disable-serial, which was a
23294 GRUB Legacy configure option. Update instructions to use
23295 `terminal_input' and `terminal_output' rather than `terminal'.
23296 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23297 configuration' and `Installing GRUB using grub-install'.
23298 (Menu entry editor): Update for GRUB 2.
23299 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23300 Document new -a, -u, and -v options.
23301 (initrd): New section.
23302 (initrd16): New section.
23303 (linux): New section.
23304 (linux16): New section.
23305 (search): The `var' argument to `--set' is optional.
23306 (GRUB only offers a rescue shell): Go into a little more detail on
23309 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23311 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23313 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23315 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23316 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23318 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
23320 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23321 install_prefix, in line with install_dos_part and install_bsd_part.
23322 Add new prefix variable, which is copied to install_prefix after
23323 comparing core.img in memory with the one read from disk in the
23324 no-embedding case, and use that rather than overwriting
23325 install_prefix immediately when installing to a partition.
23326 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23329 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23331 * configure.ac: Avoid == in test command, it's not portable.
23332 * util/grub.d/30_os-prober.in: Likewise.
23334 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
23336 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23338 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23340 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23341 multiple (top-level) partmaps.
23343 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23345 * util/i386/efi/grub-install.in: Don't use empty grub_device.
23346 Reported by: Tino Keitel.
23348 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23350 Bidi and diacritics support.
23352 * Makefile.in (widthspec.bin): New target.
23353 (widthspec.h): Likewise.
23354 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23355 * autogen.sh: Generate unidata.c.
23356 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23357 * commands/ls.c (grub_ls_list_devices): Likewise.
23358 (grub_ls_list_files): Likewise.
23359 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23360 (grub_mini_cmd_lsmod): Likewise.
23361 * commands/read.c: Likewise.
23362 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23363 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23364 * lib/arg.c (grub_arg_show_help): Likewise.
23365 * lib/crypto.c (grub_password_get): Likewise.
23366 * normal/auth.c (grub_username_get): Likewise.
23367 * normal/misc.c (grub_normal_print_device_info): Likewise.
23368 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23369 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23370 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23371 (normal/charset.c_DEPENDENCIES): New variable.
23372 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23373 (pkglib_MODULES): Remove charset.mod.
23374 (charset_mod_SOURCES): Removed.
23375 (charset_mod_CFLAGS): Likewise.
23376 (charset_mod_LDFLAGS): Likewise.
23377 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23378 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23380 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23381 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23382 (kernel_img_HEADERS): Add terminfo.h.
23383 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23384 Fill ->font. Reverse ascii bitmaps.
23385 (grub_font_get_xheight): New function.
23386 * font/font.c (grub_font_get_string_width): Moved from here ...
23387 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23388 * font/font.c (grub_font_draw_string): Moved from here ...
23389 * gfxmenu/font.c (grub_font_draw_string): ... here.
23390 * font/font.c (grub_font_dup_glyph): New function.
23391 (grub_font_blit_glyph): Likewise.
23392 (grub_font_blit_glyph_mirror): Likewise.
23393 (blit_comb): Likewise.
23394 (grub_font_construct_dry_run): Likewise.
23395 (grub_font_get_constructed_device_width): Likewise.
23396 (grub_font_construct_glyph): Likewise.
23397 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23398 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23399 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23400 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23401 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23402 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23403 (grub_font_get_xheight): New proto.
23404 (grub_font_get_constructed_device_width): Likewise.
23405 (grub_font_construct_glyph): Likewise.
23406 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23407 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23408 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23409 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23410 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23411 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23412 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23413 (grub_console_getcharwidth): Likewise.
23414 * include/grub/misc.h (grub_xputs): New proto.
23415 (grub_puts): Inlined.
23416 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23417 (grub_normal_get_line_counter): Removed.
23418 (grub_install_newline_hook): Likewise.
23419 (grub_normal_get_char_counter): New proto.
23420 (grub_normal_reset_more): Likewise.
23421 (grub_xputs_normal): Likewise.
23422 * include/grub/powerpc/ieee1275/console.h: Removed.
23423 * include/grub/sparc64/ieee1275/console.h: Likewise.
23424 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23425 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23426 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23427 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23428 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23429 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23430 (grub_term_input): Pass reference to self. All users updated.
23431 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23432 Pass reference to self. New fields normal_color, highlight_color and
23433 data. All users updated.
23434 (grub_putchar): Removed.
23435 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23436 (grub_unicode_estimate_width): New function.
23437 (grub_term_getcharwidth): Add defaults.
23438 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23439 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23440 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23441 (grub_cls): Remove EXPORT_FUNC.
23442 (grub_setcolorstate): Inline.
23443 (grub_newline_hook): Removed.
23444 * include/grub/terminfo.h: Rewritten. All users updated.
23445 * include/grub/unicode.h: New file.
23446 * include/grub/video.h (grub_video_signed_rect): New type.
23447 * kern/emu/console.c (grub_console_highlight_color): Removed.
23448 (grub_console_normal_color): Likewise.
23449 (grub_console_standard_color): Made static.
23450 (grub_ncurses_putchar): Remove mapping.
23451 (grub_ncurses_getcharwidth): Removed.
23452 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23453 (grub_ncurses_setcolor): Removed.
23454 (grub_ncurses_getcolor): Likewise.
23455 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23456 (grub_console_putchar): ... this.
23457 (grub_console_putchar): Handle argument difference.
23458 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23459 console_init_early and console_init_lately.
23460 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23461 * kern/misc.c (grub_puts): Removed.
23462 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23463 (grub_vsnprintf_real): Remove str = NULL support.
23464 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23465 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23466 * kern/term.c (grub_putcode): Renamed to ...
23467 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23468 (grub_putchar): Removed.
23469 (grub_xputs_dumb): New function.
23470 (grub_xputs): New variable.
23471 * lib/charset.c: Move from here ...
23472 * normal/charset.c: ... to here.
23473 (grub_ucs4_to_utf8): New function.
23474 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23475 (join_types): New variable.
23476 (unpack_join): New function.
23477 (bidi_types): New variable.
23478 (unpack_bidi): New function.
23479 (get_bidi_type): Likewise.
23480 (get_join_type): Likewise.
23481 (is_mirrored): Likewise.
23482 (grub_unicode_get_comb_type): Likewise.
23483 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23484 (is_type_after): Likewise.
23485 (grub_unicode_aglomerate_comb): Likewise.
23486 (bidi_line_wrap): Likewise.
23487 (grub_bidi_line_logical_to_visual): Likewise.
23488 (grub_bidi_logical_to_visual): Likewise.
23489 (grub_unicode_mirror_code): Likewise.
23490 (grub_unicode_shape_code): Likewise.
23491 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23492 Don't use grub_putchar.
23493 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23494 (grub_normal_reader_init): Likewise.
23495 (grub_xputs_saved): New variable.
23496 (GRUB_MOD_INIT): Set grub_xputs.
23497 (GRUB_MOD_FINI): Restore grub_xputs.
23498 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23499 (menu_init): Avoid printing gfxmenu error.
23500 (show_menu): Use grub_normal_get_char_counter.
23501 * normal/menu_entry.c (update_screen): Fix out-of-array.
23502 (complete): Avoid NULL dereferencing.
23503 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23504 * normal/menu_text.c (print_spaces): Removed.
23505 (grub_print_ucs4): Likewise.
23506 (grub_print_message_indented): Use grub_print_ucs4.
23507 (print_message): Use grub_putcode.
23508 (print_entry): Hanlde diacritics.
23509 * normal/term.c (term_state): New type.
23510 (grub_more_lines): Removed.
23511 (term_states): New variable.
23512 (grub_normal_line_counter): Renamed to ..
23513 (grub_normal_char_counter): ...this. All users updated.
23514 (grub_normal_get_line_counter): Renamed to ...
23515 (grub_normal_get_char_counter): ... this.
23516 (grub_normal_reset_more): New function.
23517 (process_newline): Removed.
23518 (print_more): New function.
23519 (grub_install_newline_hook): Removed.
23520 (map_code): New function.
23521 (grub_puts_terminal): Use grub_print_ucs4.
23522 (putglyph): New function.
23523 (putcode_real): Likewise.
23524 (grub_putcode): Use putcode_real.
23525 (get_maxwidth): New function.
23526 (get_startwidth): Likewise.
23527 (print_ucs4_terminal): Likewise.
23528 (find_term_state): Likewise.
23529 (put_glyphs_terminal): Likewise.
23530 (print_backlog): Likewise.
23531 (print_ucs4_real): Likewise.
23532 (grub_print_ucs4): Likewise.
23533 (grub_xputs_normal): Likewise.
23534 * term/efi/console.c (grub_console_putchar): Output diacritics.
23535 (grub_console_getcharwidth): Removed.
23536 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23537 * term/gfxterm.c (clear_char): Free chars.
23538 (scroll_up): Avoid leaking memory.
23539 (grub_gfxterm_putchar): Support diacritics.
23540 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23541 * term/i386/pc/console.c (grub_console_term_output): Declare as
23542 GRUB_TERM_CODE_TYPE_VGA.
23543 * term/i386/pc/vga.c (grub_vga_term): Declare as
23544 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23545 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23546 GRUB_TERM_CODE_TYPE_VGA.
23547 * term/i386/vga_common.c (map_char): Removed.
23548 (grub_console_putchar): Likewise.
23549 (grub_console_getcharwidth): Likewise.
23550 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23551 (colors): Reordered to match terminfo.
23552 (grub_ofconsole_normal_color): Removed.
23553 (grub_ofconsole_writeesc): Likewise.
23554 (grub_ofconsole_highlight_color): Likewise.
23555 (grub_ofconsole_getcharwidth): Likewise.
23556 (grub_ofconsole_setcolorstate): Likewise.
23557 (grub_ofconsole_setcolor): Likewise.
23558 (grub_ofconsole_getcolor): Likewise.
23559 (grub_ofconsole_readkey): Renamed to ...
23560 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23562 (grub_ofconsole_checkkey): Removed.
23563 (grub_ofconsole_getkey): Likewise.
23564 (grub_ofconsole_getxy): Likewise.
23565 (grub_ofconsole_gotoxy): Likewise.
23566 (grub_ofconsole_cls): Likewise.
23567 (grub_ofconsole_refresh): Likewise.
23568 (grub_ofconsole_terminfo_input): New struct.
23569 (grub_ofconsole_terminfo_output): Likewise.
23570 (grub_ofconsole_term_input): Use terminfo.
23571 (grub_ofconsole_term_output): Likewise.
23572 (grub_console_init): Split into ...
23573 (grub_console_init_early): ...this and ...
23574 (grub_console_init_lately): ...this. Use terminfo.
23575 (grub_ofconsole_putchar): Renamed to ...
23576 (put): ... this. Remove mapping.
23577 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23578 * term/serial.c: Simplify using terminfo.
23581 (keep_track): Likewise.
23582 (registered): Likewise.
23583 (input_buf): Likewise.
23584 (npending): Likewise.
23585 (serial_translate_key_sequence): Likewise.
23586 (fill_input_buf): Likewise.
23587 (grub_serial_checkkey): Likewise.
23588 (grub_serial_getkey): Likewise.
23589 (grub_serial_getxy): Likewise.
23590 (grub_serial_gotoxy): Likewise.
23591 (grub_serial_putchar): Likewise.
23592 (grub_serial_cls): Likewise.
23593 (grub_serial_setcolorstate): Likewise.
23594 (grub_serial_setcursor): Likewise.
23595 (serial_hw_init): Use serial_hw_fetch.
23596 (grub_serial_terminfo_input): New variable.
23597 (grub_serial_terminfo_output): Likewise.
23598 (grub_serial_term_input): Use terminfo.
23599 (grub_serial_term_output): Likewise.
23600 * term/terminfo.c (putstr): Use put.
23601 (grub_terminfo_all_free): New function
23602 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23603 (grub_terminfo_output_register): New function.
23604 (grub_terminfo_output_unregister): Likewise.
23605 (grub_terminfo_getxy): Likewise.
23606 (grub_terminfo_readkey): Likewise.
23607 (grub_terminfo_checkkey): Likewise.
23608 (grub_terminfo_getkey): Likewise.
23609 (grub_terminfo_input_init): Likewise.
23610 (print_terminfo): Likewise.
23611 (grub_cmd_terminfo): Handle encoding.
23612 (grub_terminfo_gotoxy): Track position.
23613 (grub_terminfo_cls): Likewise.
23614 (grub_terminfo_putchar): Likewise.
23615 (grub_terminfo_setcolorstate): Handle colors
23616 (grub_terminfo_cursor_on): This ...
23617 (grub_terminfo_cursor_off): ... and this merged into ...
23618 (grub_terminfo_setcursor): ... this.
23619 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23620 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23621 * unicode/BidiMirroring.txt: Likewise.
23622 * unicode/UnicodeData.txt: Likewise.
23623 * unicode/COPYING: Likewise.
23624 * util/grub-editenv.c (grub_putchar): Removed.
23625 (grub_xputs_real): New function.
23626 (grub_xputs): New variable.
23627 * util/grub-fstest.c (grub_putchar): Removed.
23628 (grub_xputs_real): New function.
23629 (grub_xputs): New variable.
23630 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23631 (grub_xputs_real): New function.
23632 (grub_xputs): New variable.
23633 * util/grub-probe.c (grub_putchar): Removed.
23634 (grub_xputs_real): New function.
23635 (grub_xputs): New variable.
23636 * util/grub-script-check.c (grub_putchar): Removed.
23637 (grub_xputs_real): New function.
23638 (grub_xputs): New variable.
23639 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23640 (grub_xputs_real): New function.
23641 (grub_xputs): New variable.
23642 * util/import_unicode.py: New file.
23643 * util/grub-mkfont.c (ft_errmsgs): New array.
23644 (grub_glyph_info): Make bitmap a pointer.
23645 (file_formats): New type WIDTH_SPEC.
23646 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23647 (options): Add width-spec.
23649 (add_char): Renamed to ...
23650 (add_glyph): ... this.
23651 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23652 (glyph_replace): New type.
23653 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23654 (add_char): New function.
23655 (add_subst): Likewise.
23656 (process_cursive): Likewise.
23657 (add_font): Handle GSUB.
23658 (write_font_width_spec): New function.
23659 (main): Sort glyphs.
23660 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23661 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23662 * kern/term.c (grub_cls): Moved from here...
23663 * normal/term.c (grub_cls): ... here.
23665 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23667 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23668 suitable for using within the format argument of printf when
23669 converting grub_size_t.
23670 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23671 "x" to convert grub_size_t arguments.
23673 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23675 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23677 (list_get_minimal_size): Take selection box into account.
23679 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23681 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23684 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23686 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23687 devices when iterating over /dev/disk/by-id; they will be handled
23688 later if appropriate, which they aren't always (e.g. LVM).
23690 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23692 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23693 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23695 (grub_halt): Likewise.
23696 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23698 (grub_halt): Don't return, even if all of shut-down, power-off, and
23701 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23703 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23704 arguments, not three.
23706 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23708 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23709 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23710 LVM-on-RAID is handled correctly.
23712 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23714 * docs/grub.texi (Changes from GRUB Legacy): New section.
23715 (Future): Fix typo.
23717 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
23719 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23720 grub.d/README accidentally ends up executable for one reason or
23721 another. Ignore it.
23723 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23725 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23726 (gpt_partition_map_iterate): Support non-512B sectors.
23728 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23730 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23731 Tested by: Seth Goldberg.
23733 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23735 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23736 Properly align mbi.
23737 Reported by: Seth Goldberg.
23739 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23741 * util/grub-mkrescue.in: Avoid module duplication.
23743 2010-07-01 Sean Finney <seanius@seanius.net>
23745 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23747 2010-07-01 Sean Finney <seanius@seanius.net>
23749 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23751 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23753 * disk/lvm.c (grub_lvm_checkvalue): New function.
23754 (grub_lvm_check_flag): Likewise.
23756 2010-07-01 Robert Millan <rmh@gnu.org>
23758 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23759 Support 'p' as partition separator on kernel of FreeBSD (used
23761 (grub_util_biosdisk_get_grub_dev): Likewise.
23763 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23765 Yeeloong firmware port.
23767 * boot/mips/yeeloong/fwstart.S: New file.
23768 * bus/cs5536.c (gpiodump): New const.
23769 (set_io_space): New function.
23770 (set_iod): Likewise.
23771 (set_p2d): Likewise.
23772 (grub_cs5536_init_geode): Likewise.
23773 * commands/mips/yeeloong/lsspd.c: New file.
23774 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23775 (serial_mod_SOURCES): New variable.
23776 (serial_mod_CFLAGS): Likewise.
23777 (serial_mod_LDFLAGS): Likewise.
23778 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23779 term/terminfo.c and term/tparm.c.
23780 (pkglib_IMAGES): Add fwstart.img.
23781 (fwstart_img_SOURCES): New variable.
23782 (fwstart_img_CFLAGS): Likewise.
23783 (fwstart_img_ASFLAGS): Likewise.
23784 (fwstart_img_LDFLAGS): Likewise.
23785 (fwstart_img_FORMAT): Likewise.
23786 (pkglib_MODULES): Add lsspd.mod.
23787 (lsspd_mod_SOURCES): New variable.
23788 (lsspd_mod_CFLAGS): Likewise.
23789 (lsspd_mod_LDFLAGS): Likewise.
23790 (pkglib_MODULES): Add halt.mod.
23791 (halt_mod_SOURCES): New variable.
23792 (halt_mod_CFLAGS): Likewise.
23793 (halt_mod_LDFLAGS): Likewise.
23794 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23795 (serial_mod_SOURCES): Removed.
23796 (serial_mod_CFLAGS): Likewise.
23797 (serial_mod_LDFLAGS): Likewise.
23798 * disk/ata.c (check_device): New function.
23799 (grub_ata_device_initialize): Use check_device.
23800 (grub_ata_iterate): Recheck devices.
23801 (grub_ata_open): Likewise.
23802 (grub_atapi_iterate): Likewise.
23803 (grub_atapi_open): Likewise.
23804 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23805 (GRUB_ATA_CH1_PORT1): Likewise.
23806 (GRUB_ATA_CH0_PORT2): Likewise.
23807 (GRUB_ATA_CH1_PORT2): Likewise.
23808 * include/grub/mips/loongson.h: New file.
23809 * include/grub/mips/yeeloong/ec.h: Likewise.
23810 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23811 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23812 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23813 * include/grub/misc.h (grub_halt): Declare as noreturn.
23814 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23815 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23816 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23817 (UART_ENABLE_DTRRTS): Likewise.
23818 (UART_ENABLE_MODEM): Removed.
23819 (UART_ENABLE_OUT2): New const.
23820 * include/grub/term.h (grub_term_register_input_active): New function.
23821 (grub_term_register_output_active): Likewise.
23822 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23824 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23825 (init_pci): New function.
23826 (grub_machine_init): Execute platform init when firmware. Init serial.
23827 (grub_halt): Implement.
23828 (grub_exit): Likewise.
23829 (grub_reboot): Likewise.
23830 * term/serial.c (serial_hw_init): Update macros.
23831 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23832 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23833 (image_targets): New target mipsel-yeeloong-flash.
23834 (generate_image): Support IMAGE_YEELOONG_FLASH.
23835 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23836 (grub_video_sm712_setup): Init card.
23837 (grub_video_sm712_set_palette): Removed.
23838 * video/sm712_init.c: New file.
23840 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
23842 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23843 PATH when running help2man and then run it on the unadorned
23844 executable names, rather than passing $(builddir)/* paths to
23845 help2man. This avoids the build directory ending up in generated
23848 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
23850 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23851 to avoid accidents when debugging with 'sh -x'.
23852 * util/grub-mkrescue.in: Likewise.
23853 * util/grub.d/00_header.in: Likewise.
23854 * util/grub.d/10_hurd.in: Likewise.
23855 * util/grub.d/10_kfreebsd.in: Likewise.
23856 * util/grub.d/10_linux.in: Likewise.
23857 * util/grub.d/10_netbsd.in: Likewise.
23858 * util/grub.d/10_windows.in: Likewise.
23859 * util/grub.d/20_linux_xen.in: Likewise.
23860 * util/grub.d/30_os-prober.in: Likewise.
23861 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23863 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
23865 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23866 last character in the buffer.
23867 Reported by: Vladimir Serbinenko.
23869 2010-06-29 Robert Millan <rmh@gnu.org>
23871 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23872 (Command-line and menu entry commands): Document `badram' command.
23874 2010-06-28 Robert Millan <rmh@gnu.org>
23876 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23877 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23878 command using ${GRUB_BADRAM} as parameter.
23880 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
23882 * docs/grub.texi (Device map): New section.
23883 (Themes): New section (stub).
23884 * Makefile.in (docs/grub.info): The info documentation now builds
23885 without errors. Make sure it stays that way.
23887 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23889 Use normal parser for menu entries.
23890 Reported by: Thomas Frauendorfer
23892 * include/grub/parser.h (grub_parser_execute): Don't export.
23893 * normal/menu.c (grub_menu_execute_entry_real): New function.
23894 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23896 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
23898 * docs/grub.texi (Embedded configuration): New section (replacing
23899 old "Preset Menu" stub).
23900 (Images): New section.
23901 (configfile): Note that any menu entries defined in `file' are shown
23904 2010-06-28 Josh Triplett <josh@joshtriplett.org>
23906 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23908 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
23910 * util/grub-install.in: Add --debug-image= option.
23912 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
23914 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23917 * util/deviceiter.c (check_device): Rename to ...
23918 (check_device_readable_unique): ... this. Update all callers.
23919 Maintain and check a list of which devices (by canonicalized name)
23920 have already been seen.
23921 (clear_seen_devices): New function.
23922 (compare_file_names) [__linux__]: New function.
23923 (grub_util_iterate_devices): Clear the list of seen devices on exit
23924 and (just in case) on entry.
23925 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23926 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23927 seen-devices list, superseded by general code in check_device.
23929 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
23931 * commands/cat.c (options): New variable.
23932 (grub_cmd_cat): Parse options. If the --dos option is given, print
23933 DOS-style "\r\n" line endings as simple newlines (Debian bug
23935 (GRUB_MOD_INIT): Use extcmd.
23936 (GRUB_MOD_FINI): Likewise.
23937 * docs/grub.texi (cat): Document --dos.
23939 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23941 XEN with Linux grub-mkconfig support.
23943 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23944 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23945 GRUB_CMDLINE_XEN_DEFAULT.
23946 * util/grub.d/20_linux_xen.in: New file.
23948 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23950 Initialise VGA video on qemu ourselves.
23952 * boot/i386/qemu/boot.S: Don't call 0xc000.
23953 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23954 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23955 (kernel_img_HEADERS): Add pci.h.
23956 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23957 * configure.ac: Force unifont on qemu and yeeloong.
23958 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23959 (grub_vga_palette_write): Use correct register.
23960 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23961 Call grub_qemu_init_cirrus.
23962 * kern/i386/qemu/init.c: New file.
23963 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23965 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23967 2010-06-26 Pavel Roskin <proski@gnu.org>
23969 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23972 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
23974 * docs/grub.texi (Simple configuration): Explain that
23975 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23976 set to `true' to disable their respective recovery entries, not
23979 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
23981 Make the `source' command slightly faster.
23983 * normal/main.c (grub_normal_execute): Don't re-read list files when
23986 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
23988 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23989 field position and mask size to red fields from mode_info, not
23991 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23992 Remove redundant tag->common.framebuffer_type assignment.
23993 Reported by: Seth Goldberg.
23995 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
23997 Sync up other versions of the Linux loader with Robert Millan's
23998 change of 2010-01-09, "Make loader output a bit more user-friendly".
24000 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
24002 (grub_cmd_linux): Likewise.
24003 (grub_cmd_initrd): Likewise.
24004 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
24005 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24007 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
24009 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
24010 larger than MEMORY_MAP_SIZE.
24012 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
24014 Fix parallel build.
24016 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
24018 * script/parser.y: #include grub_script.tab.h header.
24020 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24022 Support >3GiB and <16MiB RAM in i386-qemu.
24024 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
24025 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
24026 (grub_lower_mem): Removed.
24027 (grub_upper_mem): Likewise.
24028 (mem_size): Made static.
24029 (above_4g): New variable.
24030 (grub_machine_mmap_init): Detect small mem_size and above_4g.
24031 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
24034 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24036 Cirrus 5446 and Bochs video cards support.
24038 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
24040 (video_cirrus_mod_SOURCES): New variable.
24041 (video_cirrus_mod_CFLAGS): Likewise.
24042 (video_cirrus_mod_LDFLAGS): Likewise.
24043 (video_bochs_mod_SOURCES): Likewise.
24044 (video_bochs_mod_CFLAGS): Likewise.
24045 (video_bochs_mod_LDFLAGS): Likewise.
24046 * include/grub/vga.h: New file.
24047 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
24048 (grub_video_fb_set_page_t): New type.
24049 (grub_video_fb_setup): New prototype.
24050 (grub_video_fb_swap_buffers): Likewise.
24051 (grub_video_fb_get_info_and_fini): Likewise.
24052 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
24053 (CRTC_DATA_PORT): Likewise.
24054 (CRTC_CURSOR): Likewise.
24055 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24056 (CRTC_CURSOR_ADDR_LOW): Likewise.
24057 (CRTC_CURSOR_DISABLE): Likewise.
24058 (update_cursor): Use grub_vga_cr_write.
24059 (grub_vga_text_setcursor): Likewise.
24060 * video/bochs.c: New file.
24061 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
24062 (palette): Likewise.
24063 (palette_size): Likewise.
24064 (framebuffer): New variable.
24065 (grub_video_fb_init): Use 'framebuffer'.
24066 (grub_video_fb_fini): Likewise.
24067 (grub_video_fb_get_info): Likewise.
24068 (grub_video_fb_get_palette): Likewise.
24069 (grub_video_fb_set_palette): Likewise.
24070 (grub_video_fb_set_viewport): Likewise.
24071 (grub_video_fb_get_viewport): Likewise.
24072 (grub_video_fb_map_color): Likewise.
24073 (grub_video_fb_map_rgb): Likewise.
24074 (grub_video_fb_map_rgba): Likewise.
24075 (grub_video_fb_unmap_color): Likewise.
24076 (grub_video_fb_unmap_color_int): Likewise.
24077 (grub_video_fb_fill_rect): Likewise.
24078 (grub_video_fb_blit_bitmap): Likewise.
24079 (grub_video_fb_blit_render_target): Likewise.
24080 (grub_video_fb_scroll): Likewise.
24081 (grub_video_fb_create_render_target): Likewise.
24082 (grub_video_fb_doublebuf_blit_init): Likewise.
24083 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24084 (doublebuf_pageflipping_update_screen): New function.
24085 (doublebuf_pageflipping_init): Likewise.
24086 (grub_video_fb_setup): Likewise.
24087 (grub_video_fb_swap_buffers): Likewise.
24088 (grub_video_fb_get_info_and_fini): Likewise.
24089 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24091 (doublebuf_pageflipping_commit): Restructured into ...
24092 (doublebuf_pageflipping_set_page): ... this.
24093 (doublebuf_pageflipping_update_screen): Removed.
24094 (doublebuf_pageflipping_init): Likewise.
24095 (double_buffering_init): Likewise.
24096 (grub_video_vbe_setup): Use grub_video_fb_setup.
24097 (grub_video_vbe_swap_buffers): Removed.
24098 (grub_video_vbe_set_active_render_target): Likewise.
24099 (grub_video_vbe_get_active_render_target): Likewise.
24100 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24101 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24102 grub_video_fb_set_active_render_target and
24103 grub_video_fb_get_active_render_target.
24104 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24105 (SEQUENCER_DATA_PORT): Likewise.
24106 (MAP_MASK_REGISTER): Likewise.
24107 (CRTC_ADDR_PORT): Likewise.
24108 (CRTC_DATA_PORT): Likewise.
24109 (START_ADDR_HIGH_REGISTER): Likewise.
24110 (START_ADDR_LOW_REGISTER): Likewise.
24111 (GRAPHICS_ADDR_PORT): Likewise.
24112 (GRAPHICS_DATA_PORT): Likewise.
24113 (READ_MAP_REGISTER): Likewise.
24114 (INPUT_STATUS1_REGISTER): Likewise.
24115 (INPUT_STATUS1_VERTR_BIT): Likewise.
24116 (get_map_mask): Use grub_vga_sr_read.
24117 (set_map_mask): Use grub_vga_sr_write.
24118 (set_read_map): Use grub_vga_gr_write.
24119 (set_start_address): Use grub_vga_cr_write.
24120 * video/sm712.c (framebuffer): Remove leftover fields.
24122 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
24124 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24125 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24126 instead. Replace the gfxterm backend check with a check that
24127 ${GRUB_PREFIX}/video.lst is non-empty.
24128 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24130 (load_video): New generated function. Call it before loading
24131 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24132 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24133 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24134 * docs/grub.texi (Simple configuration): Document
24135 GRUB_VIDEO_BACKEND.
24137 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24139 Use video functions in linux and xnu loaders.
24141 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24142 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24143 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24144 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24145 loader/i386/pc/linux.c.
24146 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24147 (find_line_len): Removed.
24148 (find_framebuf): Likewise.
24149 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24150 * loader/i386/efi/xnu.c: Removed.
24151 * loader/i386/pc/xnu.c: Moved from here...
24152 * loader/i386/xnu.c: ...here.
24154 Enable priorities in video drivers.
24156 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24157 (grub_video_adapter): New field prio.
24158 (grub_video_register): Respect prio when inserting.
24159 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24160 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24161 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24162 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24163 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24164 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24165 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24169 * include/grub/video.h (grub_video_driver_id_t): New value
24170 GRUB_VIDEO_DRIVER_SDL.
24171 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24173 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24175 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24176 argument to printf.
24177 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24179 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24181 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24182 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24184 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24186 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24187 directly, and recommend grub-install instead.
24188 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24190 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
24192 Fix i386-pc prefix handling with nested partitions (Debian bug
24193 #585068). Note that the case where the core image is booted using
24194 multiboot and relocated from its original location still requires
24197 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24198 with "(,", fill the boot drive in between those two characters, but
24199 expect that a full partition specification including partition map
24201 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24202 specified, write a prefix without the drive name but including a
24203 full partition specification.
24205 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
24207 * util/grub-mkconfig.in: Ignore non-option arguments, for
24208 compatibility with older versions (before 2010-06-12) which did the
24209 same. In particular, this makes it easier to ship an update-grub
24210 wrapper which is compatible with that used with GRUB Legacy (Debian
24213 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24215 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24216 for manual page generation.
24218 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24220 * po/POTFILES: Remove leftover commands/handler.c.
24222 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
24224 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24225 left this script non-functional.
24227 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
24229 * docs/man/grub-emu.h2m: New file.
24231 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
24233 * docs/grub.texi (Commands): Document reduced command set in rescue
24235 (cpuid): New section.
24237 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24239 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24240 new partition naming style.
24241 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24243 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24245 Add "-o grub.iso" like cmdline options support.
24247 * util/grub-install.in: Improve cmdline option parsing.
24248 * util/grub-mkconfig.in: Likewise.
24249 * util/grub-mkrescue.in: Likewise.
24250 * util/grub-reboot.in: Likewise.
24251 * util/grub-set-default.in: Likewise.
24252 * util/i386/efi/grub-install.in: Likewise.
24253 * util/ieee1275/grub-install.in: Likewise.
24254 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24256 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24258 * .bzrignore: Ignore 41_custom.
24260 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24262 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24264 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24266 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24267 prototype declarations.
24269 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24270 generating fs, partmap, and video lists.
24271 * include/grub/fs.h (grub_fs_register): Omit prototype if
24272 GRUB_LST_GENERATOR is defined.
24273 * include/grub/partition.h (grub_partition_map_register): Likewise.
24274 * include/grub/video.h (grub_video_register): Likewise.
24276 2010-06-12 Javier Martín <lordhabbit@gmail.com>
24278 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24280 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24282 * util/grub-mkrescue.in: Support --xorriso argument.
24284 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24286 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24287 Suggested by: Thomas Schmitt.
24289 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24291 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24292 Suggested by: Thomas Schmitt.
24294 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24296 custom.cfg support.
24298 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24299 * util/grub.d/41_custom.in: New file.
24301 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
24303 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24304 been merged back into normal.
24306 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
24308 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24309 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24311 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
24313 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24314 when generating manual pages.
24315 * docs/man/grub-bin2h.h2m: New file.
24316 * docs/man/grub-editenv.h2m: New file.
24317 * docs/man/grub-fstest.h2m: New file.
24318 * docs/man/grub-install.h2m: New file.
24319 * docs/man/grub-macho2img.h2m: New file.
24320 * docs/man/grub-mkconfig.h2m: New file.
24321 * docs/man/grub-mkdevicemap.h2m: New file.
24322 * docs/man/grub-mkfont.h2m: New file.
24323 * docs/man/grub-mkimage.h2m: New file.
24324 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24325 * docs/man/grub-mkrelpath.h2m: New file.
24326 * docs/man/grub-mkrescue.h2m: New file.
24327 * docs/man/grub-ofpathname.h2m: New file.
24328 * docs/man/grub-pe2elf.h2m: New file.
24329 * docs/man/grub-probe.h2m: New file.
24330 * docs/man/grub-reboot.h2m: New file.
24331 * docs/man/grub-script-check.h2m: New file.
24332 * docs/man/grub-set-default.h2m: New file.
24333 * docs/man/grub-setup.h2m: New file.
24335 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24337 Use FOR_* macros instead of *_iterate whenever possible.
24339 * commands/handler.c: Removed.
24340 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24341 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24342 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24343 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24344 (grub_probe_SOURCES): Remove kern/parser.c.
24345 (util/grub-script-check.c_DEPENDENCIES): Removed.
24346 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24347 and grub_script_check_init.c.
24348 (grub_script_check_init.lst): Removed.
24349 (grub_script_check_init.h): Likewise.
24350 (grub_script_check_init.c): Likewise.
24351 (pkglib_MODULES): Remove handler.mod and sh.mod.
24352 (handler_mod_SOURCES): Removed.
24353 (handler_mod_CFLAGS): Likewise.
24354 (handler_mod_LDFLAGS): Likewise.
24355 (normal_mod_SOURCES): Remove normal/handler.c.
24356 Add script/main.c, script/script.c, script/execute.c,
24357 script/function.c, script/lexer.c, grub_script.tab.c
24358 and grub_script.yy.c.
24359 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24360 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24361 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24362 (grub_setup_SOURCES): Remove kern/parser.c.
24363 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24364 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24365 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24366 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24367 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24368 (grub_setup_SOURCES): Remove kern/parser.c.
24369 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24370 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24371 * include/grub/command.h (grub_command_iterate): Removed.
24372 (FOR_COMMANDS): New macro.
24373 * include/grub/dl.h (grub_dl): New member next.
24374 (grub_dl_iterate): Removed.
24375 (grub_dl_head): New variable declaration.
24376 (FOR_DL_MODULES): New macro.
24377 * include/grub/fs.h: Include list.h.
24378 (grub_fs): Make next first element.
24379 (grub_fs_list): New variable declaration.
24380 (grub_fs_register): Make inline.
24381 (grub_fs_unregister): Likewise.
24382 (grub_fs_iterate): Removed.
24383 (FOR_FILESYSTEMS): New macro.
24384 * include/grub/handler.h: Removed.
24385 * include/grub/list.h (grub_list_hook_t): Removed.
24386 (grub_list_test_t): Likewise.
24387 (grub_list_pop): Likewise.
24388 (grub_list_iterate): Likewise.
24389 (grub_list_insert): Likewise.
24390 (FOR_LIST_ELEMENTS): New macro.
24391 * include/grub/parser.h (grub_parser_class): Removed.
24392 (grub_parser_register): Likewise.
24393 (grub_parser_unregister): Likewise.
24394 (grub_parser_get_current): Likewise.
24395 (grub_parser_set_current): Likewise.
24396 (grub_register_rescue_parser): Likewise.
24397 (grub_rescue_parse_line): New function.
24398 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24399 * include/grub/script_sh.h (grub_script_function_list): New variable
24401 (FOR_SCRIPT_FUNCTIONS): New macro.
24402 (grub_script_function_iterate): Removed.
24403 (grub_normal_parse_line): New prototype.
24404 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24405 (FOR_DISABLED_TERM_INPUTS): Likewise.
24406 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24407 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24408 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24410 (grub_video_register): Inline.
24411 (grub_video_unregister): Likewise.
24412 (grub_video_adapter_list): New variable declaration.
24413 (grub_video_iterate): Removed.
24414 (FOR_VIDEO_ADAPTERS): New macro.
24415 * kern/dl.c (grub_dl_list): Removed. All users updated.
24416 (grub_dl_iterate): Removed.
24417 * kern/fs.c (grub_fs_list): Make global.
24418 (grub_fs_register): Removed.
24419 (grub_fs_unregister): Likewise.
24420 (grub_fs_iterate): Likewise.
24421 * kern/handler.c: Removed.
24422 * kern/list.c (grub_list_pop): Removed.
24423 (grub_list_iterate): Likewise.
24424 (grub_list_insert): Likewise.
24425 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24426 (grub_prio_list_insert): Don't use grub_list_insert.
24427 * kern/main.c (grub_register_rescue_parser): Don't call
24428 grub_register_rescue_parser.
24429 * kern/parser.c (grub_parser_class): Removed.
24430 (grub_parser_execute): Use grub_rescue_parse_line.
24431 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24432 (grub_rescue_parser): Removed.
24433 (grub_register_rescue_parser): Likewise.
24434 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24435 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24436 (grub_auth_check_authentication): Likewise.
24437 * normal/completion.c (iterate_command): Removed.
24438 (grub_normal_do_completion): Use FOR_COMMANDS.
24439 * normal/handler.c: Removed.
24440 * normal/main.c (read_config_file): Remove parser changing.
24441 (grub_normal_execute): Don't call read_handler_list.
24442 (grub_normal_read_line_real): Statically allocate prompt.
24443 (grub_cmdline_run): Use grub_normal_parse_line.
24444 (GRUB_MOD_FINI): Don't call free_handler_list.
24445 * normal/menu_entry.c (run): Likewise.
24446 * script/function.c (grub_script_function_list): Make global.
24447 (grub_script_function_iterate): Removed.
24448 * script/main.c (grub_normal_parse_line): Make global.
24449 (grub_sh_parser): Removed.
24450 (GRUB_MOD_INIT): Likewise.
24451 (GRUB_MOD_FINI): Likewise.
24452 * tests/lib/functional_test.c (grub_functional_test): Use
24454 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24455 (grub_test_run): Use FOR_LIST_ELEMENTS.
24456 * tests/lib/unit_test.c (main): Likewise.
24457 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24459 * util/grub-fstest.c (grub_term_input_class): Removed.
24460 (grub_term_output_class): Likewise.
24461 * util/grub-probe.c: Likewise.
24462 * util/i386/pc/grub-setup.c: Likewise.
24463 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24464 * util/grub-script-check.c (main): Don't call grub_init_all and
24466 * video/video.c (grub_video_adapter_list): Make global.
24467 (grub_video_register): Removed.
24468 (grub_video_unregister): Likewise.
24469 (grub_video_iterate): Likewise.
24471 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24473 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24474 reported by Henrique Ferreiro.
24476 2010-06-09 Robert Millan <rmh@gnu.org>
24478 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24479 ones, when both are available.
24481 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24483 Make --version uniform and avoid hard-coded program name.
24485 * util/grub-mkimage.c (main): Use `program_name' instead of
24487 * util/i386/pc/grub-setup.c (main): Likewise.
24488 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24489 * util/grub-install.in: Save the basename of $0 in $self, and use the
24490 latter in informational messages. Use the same format for --version
24491 as the binary programs.
24492 * util/grub-mkconfig.in: Likewise.
24493 * util/grub-mkrescue.in: Likewise.
24494 * util/grub-reboot.in: Likewise.
24495 * util/grub-set-default.in: Likewise.
24496 * util/i386/efi/grub-install.in: Likewise.
24497 * util/ieee1275/grub-install.in: Likewise.
24498 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24500 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24502 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24503 embedding area. Use <= instead of == when checking for non-emptiness.
24505 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24507 * configure.ac: Add `.' to the directories searched for unifont.
24509 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24511 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24514 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24516 * docs/grub.texi (History): Expand to cover GRUB 2.
24517 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24518 commands, not `terminal'.
24519 (serial): Likewise.
24520 (terminal_input): New section.
24521 (terminal_output): New section.
24522 (uppermem): New section (stub).
24523 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24525 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
24527 * docs/grub.texi (Security): Menu entries are unrestricted by
24528 default, not restricted to superusers as I had previously thought.
24529 Reword to account for this.
24531 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24533 * kern/emu/misc.c (device_mapper_null_log): New function.
24534 (grub_device_mapper_supported): New function.
24535 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24537 * kern/emu/hostdisk.c (find_partition_start): Check whether
24538 device-mapper is supported before trying to use it.
24539 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24541 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24543 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24544 (File name syntax): Likewise.
24545 (help): --all is no longer supported in GRUB 2. Be more precise
24546 about pattern matching.
24548 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24550 * normal/completion.c (grub_normal_do_completion): When completing
24551 arguments to "set" and the current word contains an equals sign,
24552 skip to after the equals sign before starting completion.
24554 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24556 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24558 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24560 * docs/grub.texi (Network): New section.
24561 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24562 `(nd)' as in GRUB Legacy.
24563 (pxe_unload): New section.
24565 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24567 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24568 in the rescue shell, so recommend using `set' instead. Thanks,
24571 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24573 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24574 (password): New section.
24575 (password_pbkdf2): New section.
24576 (search): New section.
24577 (Security): New section.
24578 (Troubleshooting): New section, currently very incomplete.
24579 (Invoking grub-mkpasswd-pbkdf2): New section.
24580 (Internals): New section, currently very incomplete.
24582 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24584 * util/grub.d/00_header.in: Add some more quoting (of
24585 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24587 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24589 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
24591 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24592 to `count', fixing variable shadowing that broke the -c option.
24594 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
24596 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24597 in case they contain spaces.
24599 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
24601 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24602 "part_" to partmap module names, in line with grub-install.
24603 Reported by: Jindřich Makovička (Debian bug #584426).
24605 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
24607 * util/grub-mkimage.c: Make target-related error messages slightly
24608 more helpful; -O talks about "format". Explicitly point to the use
24609 of -O if no target is specified.
24610 Reported by: Didier Raboud (Debian bug #584415).
24612 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
24614 * INSTALL: Document several build requirements for optional features
24615 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24617 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24619 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24620 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24621 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24623 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24625 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24626 Thanks to Jordan Uggla for spotting this.
24628 2010-06-02 Aleš Nesrsta <starous@volny.cz>
24630 Finally make USB usable.
24632 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24633 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24634 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24635 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24636 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24637 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24638 (GRUB_OHCI_FSMPS): Likewise.
24639 (GRUB_OHCI_PERIODIC_START): Likewise.
24640 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24641 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24642 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24643 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24644 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24645 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24646 (grub_ohci_transaction): Likewise.
24647 (grub_ohci_transfer): Improve condition detection algorithms.
24648 Handle toggle property. Program the transactions correctly.
24649 Improve error handling. Various important fixups.
24650 (grub_ohci_portstatus): Put register writes in right order.
24651 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24652 (grub_uhci_transfer): Don't show "failed" message on success.
24653 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24655 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24656 determine its size.
24657 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24658 before initialization is completed. Use IN direction for empty
24659 transfers. Use last_trans and compute toggle.
24660 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24661 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24662 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24663 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24664 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24665 (grub_usb_device): Increase toggle to 256.
24666 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24667 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24668 GRUB_USBMS_SUBCLASS_SFF8070.
24669 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24670 (grub_scsi_inquiry): New member page and alloc_length.
24671 (grub_scsi_request_sense): New structure.
24672 (grub_scsi_request_sense_data): Likewise.
24673 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24675 * disk/scsi.c (grub_scsi_request_sense): New function.
24676 (grub_scsi_test_unit_ready): Likewise.
24677 (grub_scsi_inquiry): Fill new fields.
24678 (grub_scsi_read_capacity): Likewise.
24679 (grub_scsi_read10): Add request sense at the end.
24680 (grub_scsi_read12): Likewise.
24681 (grub_scsi_write10): Likewise.
24682 (grub_scsi_write12): Likewise.
24683 (grub_scsi_open): Add Test Unit Ready.
24684 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24685 Support additional subclasses. Con't clear halt yet. Activate the
24686 proper config. Calculate LUNs correctly.
24687 (grub_usbms_transfer): Various important fixups.
24689 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24691 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24692 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24693 (grub_ohci_fini_hw): New function.
24694 (grub_ohci_restore_hw): Likewise.
24695 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24696 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24697 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24699 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24701 Dedicated DMA allocations.
24703 * bus/pci.c (grub_memalign_dma32): New function
24704 (grub_dma_free): Likewise.
24705 (grub_dma_get_virt): Likewise.
24706 (grub_dma_get_phys): Likewise.
24707 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24708 (grub_ohci_pci_iter): Use dma32_alloc.
24709 (grub_ohci_transfer): Likewise.
24710 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24711 (grub_usb_bulk_readwrite): Likewise.
24712 * include/grub/pci.h: Add declarations.
24714 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24718 * bus/cs5536.c: New file.
24719 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24720 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24721 (cs5536_mod_SOURCES): New variable.
24722 (cs5536_mod_CFLAGS): Likewise.
24723 (cs5536_mod_LDFLAGS): Likewise.
24724 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24726 (kernel_img_SOURCES): Add bus/cs5536.c.
24727 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24729 (usb_mod_SOURCES): New variable.
24730 (usb_mod_CFLAGS): New variable.
24731 (usb_mod_LDFLAGS): New variable.
24732 (usbtest_mod_SOURCES): New variable.
24733 (usbtest_mod_CFLAGS): New variable.
24734 (usbtest_mod_LDFLAGS): New variable.
24735 (ohci_mod_SOURCES): New variable.
24736 (ohci_mod_CFLAGS): New variable.
24737 (ohci_mod_LDFLAGS): New variable.
24738 (usbms_mod_SOURCES): New variable.
24739 (usbms_mod_CFLAGS): New variable.
24740 (usbms_mod_LDFLAGS): New variable.
24741 (usb_keyboard_mod_SOURCES): New variable.
24742 (usb_keyboard_mod_CFLAGS): New variable.
24743 (usb_keyboard_mod_LDFLAGS): New variable.
24744 * include/grub/smbus.h: New file.
24745 * include/grub/cs5536.h: New file.
24747 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24749 * util/grub.d/00_header.in: Add safety check to make sure that
24750 ${locale_dir} exists before trying to probe it.
24752 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24754 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24755 per the GNU Coding Standards; this is now too obscure to be worth
24758 (chainloader): Remove cross-reference to `SCO UnixWare'.
24760 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24762 * docs/grub.texi (Chain-loading): New section.
24763 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24764 adjusted for GRUB 2.
24765 (SCO UnixWare): Likewise.
24767 (chainloader): Add reference to `Block list syntax'.
24768 (drivemap): New section.
24769 (parttool): New section.
24771 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24773 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24775 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24776 (Installing GRUB using grub-install): Remove reference to the grub
24777 shell; mention `grub-mkimage' and `grub-setup' instead.
24778 (Invoking grub-install): Likewise.
24779 (Interface): Add reference to `Menu entry editor'.
24780 (serial): Remove `--device' option.
24782 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24784 * docs/grub.texi (Configuration): New section, documenting
24785 configuration file generation using grub-mkconfig. I've left a slot
24786 for documenting the full shell scripting format but have not yet
24787 started on writing that up.
24788 (Invoking grub-mkconfig): New section.
24790 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24792 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24793 (GNU GRUB manual): Likewise.
24794 (General commands): Update description of `terminfo' for GRUB 2.
24796 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24798 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24799 (GRUB_MOD_INIT): Fix capitalisation.
24800 * docs/grub.texi (Command-line and menu entry commands): Document
24801 gettext and gptsync commands.
24803 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
24805 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24806 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24808 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
24810 Add btrfs probing support, currently only in the single-device case.
24812 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24814 (grub_guess_root_device): Call find_root_device_from_mountinfo
24815 before looking in /dev.
24817 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24819 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24820 GRUB_DISK_SIZE_UNKNOWN.
24821 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24823 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
24825 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24826 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24827 corrupted or not synced properly.
24829 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24831 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24832 Reported by: Seth Goldberg.
24834 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24836 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24838 Reported by: Seth Goldberg.
24840 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24842 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24843 Reported by: Seth Goldberg.
24845 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24847 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24848 64-bit address as signed on MIPS.
24850 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
24852 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24853 to the empty string.
24855 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24857 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24859 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24860 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24861 * kern/misc.c (__enable_execute_stack): Disable on
24864 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
24866 Make grub-probe work with symbolic links under /dev/mapper as well
24867 as with real block devices. The Linux world seems to be (at best)
24868 in transition here, and GRUB shouldn't get caught in the middle.
24870 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24873 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
24875 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24876 input files (in which case exit zero).
24878 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
24880 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24881 return NULL for various reasons even if it has a maximum-length
24882 buffer: for example, there might be a symlink loop, or the path
24883 might exceed PATH_MAX. If this happens, return NULL.
24885 2010-05-27 Robert Millan <rmh@gnu.org>
24887 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24888 partmap module to handle cross-partmap setups.
24889 Reported by Orestes Mas. Gràcies!
24891 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
24893 * util/grub-mkrescue.in: Initialise override_dir rather than
24894 assuming that it's unset or empty in the environment.
24896 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24898 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24899 variable index into p_index to suppress a warning with -Wshadow.
24901 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24903 * INSTALL: Added flex >= 2.5.35 requirement.
24905 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24907 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24909 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24913 * commands/i386/cmostest.c: New file.
24914 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24915 (cmostest_mod_SOURCES): New variable.
24916 (cmostest_mod_CFLAGS): Likewise.
24917 (cmostest_mod_LDFLAGS): Likewise.
24918 * conf/i386-pc.rmk: Likewise.
24919 * docs/grub.texi (Vendor power-on keys): New section.
24920 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24921 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24922 and GRUB_BUTTON_CMOS_ADDRESS.
24923 * util/grub.d/00_header.in: Handle powering-on by separate button.
24925 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24927 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24928 Removed drawing_scrollbar argument. All users updated
24930 Reported by Jo Shields
24932 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24934 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24935 buffer since gfxterm handles double repaint.
24937 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24939 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24940 * term/gfxterm.c (real_scroll): Likewise.
24942 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24944 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24945 before calling BIOS.
24947 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24949 * include/grub/i18n.h: Always enable grub_gettext.
24951 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24953 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24954 partition naming style.
24956 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
24958 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24959 not the first option.
24961 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
24963 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24965 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
24967 * util/misc.c: Move inclusion of <limits.h> to ...
24968 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24970 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24972 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24973 Fix merge error in NetBSD code.
24974 (find_partition_start) [__NetBSD__]: Likewise.
24976 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24978 Fix grub-mkrescue usage unit testing.
24980 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24982 2010-05-18 Christian Franke <franke@computer.org>
24984 * util/grub.d/10_windows.in: Use path names instead of
24985 drive letters to prevent warning from Cygwin 1.7.
24986 Add drivemap command to menuentry if needed.
24988 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24990 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24991 gnumach and gnumach.gz.
24993 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24995 * include/grub/i18n.h (gettext): Inline instead of using #define.
24996 (grub_gettext): Likewise.
24999 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25001 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
25002 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
25003 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
25004 (main): Add a slash after pkglibdirroot.
25006 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25008 * util/grub-install.in: Add missing "in" keyword.
25010 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25012 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
25013 Reported by: Seth Goldberg.
25015 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25017 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
25019 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25021 * configure.ac: Check for Linux device-mapper support.
25023 * util/hostdisk.c (device_is_mapped): New function.
25024 (find_partition_start): New function, partly broken out from
25025 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
25026 device-mapper support added.
25027 (linux_find_partition): Use find_partition_start.
25028 (convert_system_partition_to_system_disk): Add `st' argument.
25029 Support Linux /dev/mapper/* devices if device-mapper support is
25030 available; only DM-RAID devices are understood at present.
25031 (find_system_device): Add `st' argument. Pass it to
25032 convert_system_partition_to_system_disk.
25033 (grub_util_biosdisk_get_grub_dev): Pass stat result to
25034 find_system_device and convert_system_partition_to_system_disk. Use
25035 find_partition_start.
25037 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
25038 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
25039 * util/deviceiter.c [__linux__]: Define MINOR.
25040 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
25041 * util/mkdevicemap.c (grub_putchar): New function.
25042 (grub_getkey): New function.
25043 (grub_refresh): New function.
25044 (main): Set debug=all if -v -v is used.
25046 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25048 Fix build with non-GNU libcs.
25050 * util/misc.c (canonicalize_file_name): Move to ...
25051 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
25052 grub_make_system_path_relative_to_its_root.
25054 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
25056 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
25057 we handle finding grub-mkimage. Default to finding grub-mkimage in
25058 ${bindir} with program_transform_name applied, and provide a
25059 --grub-mkimage option to override this.
25061 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25063 Remove grub-mkisofs.
25065 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
25066 (grub_mkisofs_SOURCES): Removed.
25067 (grub_mkisofs_CFLAGS): Removed.
25068 * util/mkisofs/defaults.h: Removed.
25069 * util/mkisofs/eltorito.c: Likewise.
25070 * util/mkisofs/exclude.h: Likewise.
25071 * util/mkisofs/hash.c: Likewise.
25072 * util/mkisofs/include/: Likewise.
25073 * util/mkisofs/include/fctldefs.h: Likewise.
25074 * util/mkisofs/include/mconfig.h: Likewise.
25075 * util/mkisofs/include/prototyp.h: Likewise.
25076 * util/mkisofs/include/statdefs.h: Likewise.
25077 * util/mkisofs/iso9660.h: Likewise.
25078 * util/mkisofs/joliet.c: Likewise.
25079 * util/mkisofs/match.c: Likewise.
25080 * util/mkisofs/match.h: Likewise.
25081 * util/mkisofs/mkisofs.c: Likewise.
25082 * util/mkisofs/mkisofs.h: Likewise.
25083 * util/mkisofs/msdos_partition.h: Likewise.
25084 * util/mkisofs/multi.c: Likewise.
25085 * util/mkisofs/name.c: Likewise.
25086 * util/mkisofs/rock.c: Likewise.
25087 * util/mkisofs/tree.c: Likewise.
25088 * util/mkisofs/write.c: Likewise.
25090 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25092 Unify grub-mkimage accross platforms.
25094 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25095 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25096 (grub_mkelfimage_SOURCES): Removed.
25097 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25098 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25099 (bin_UTILITIES): Add grub-mkimage.
25100 (grub_mkimage_SOURCES): New variable.
25101 (kernel_img_HEADERS): Remove machine/kernel.h.
25102 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25103 (pkglib_PROGRAMS): Add kernel.img.
25104 (kernel_img_HEADERS): Add machine/kernel.h.
25105 (kernel_img_FORMAT): Removed.
25106 (bin_UTILITIES): Remove grub-mkimage.
25107 (grub_mkimage_SOURCES): Removed.
25108 (grub_mkimage_CFLAGS): Likewise.
25109 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25110 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25111 (pkglib_PROGRAMS): Add kernel.img.
25112 (bin_UTILITIES): Remove grub-mkimage.
25113 (grub_mkimage_SOURCES): Removed.
25114 (grub_mkimage_CFLAGS): Likewise.
25115 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25116 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25117 (pkglib_PROGRAMS): Add kernel.img.
25118 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25119 (pkglib_PROGRAMS): Add kernel.img.
25120 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25121 (grub_mkimage_SOURCES): Removed.
25122 (grub_mkimage_CFLAGS): Likewise.
25123 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25124 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25125 (pkglib_PROGRAMS): Add kernel.img.
25126 (bin_UTILITIES): Remove grub-mkimage.
25127 (grub_mkimage_SOURCES): Removed.
25128 (grub_mkimage_CFLAGS): Likewise.
25129 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25130 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25131 (grub_mkimage_SOURCES): Removed.
25132 (grub_mkimage_CFLAGS): Likewise.
25133 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25134 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25135 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25136 (grub_pe32_optional_header): ... this.
25137 (grub_pe64_optional_header): ... and this. All users updated.
25138 (GRUB_PE32_PE32_MAGIC): Split into ..
25139 (GRUB_PE32_PE32_MAGIC): .. this.
25140 (GRUB_PE32_PE64_MAGIC): .. and this.
25141 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25142 * include/grub/elf.h (PT_GNU_STACK): New definition.
25143 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25144 * include/grub/i386/efi/kernel.h: Likewise.
25145 * include/grub/i386/kernel.h: Likewise.
25146 * include/grub/i386/pc/kernel.h: Likewise.
25147 * include/grub/i386/qemu/boot.h: Likewise.
25148 * include/grub/mips/kernel.h: Likewise.
25149 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25150 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25151 * include/grub/powerpc/kernel.h: Likewise.
25152 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25153 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25154 * include/grub/sparc64/kernel.h: Likewise.
25155 * include/grub/x86_64/efi/kernel.h: Likewise.
25156 * include/grub/x86_64/kernel.h: Likewise.
25157 * include/grub/offsets.h: New file.
25158 * include/grub/kernel.h (grub_module_info): Split into ...
25159 (grub_module_info32): ... this.
25160 (grub_module_info64): ... and this.
25161 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25162 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25163 (grub_boot_blocklist): Moved from here ...
25164 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25165 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25166 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25167 * include/grub/types.h (grub_target_to_host16): Removed.
25168 (grub_target_to_host32): Likewise.
25169 (grub_target_to_host64): Likewise.
25170 (grub_host_to_target16): Likewise.
25171 (grub_host_to_target32): Likewise.
25172 (grub_host_to_target64): Likewise.
25173 (grub_host_to_target_addr): Likewise.
25175 Support grub-mkrescue for efi, coreboot and qemu.
25177 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25178 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25179 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25180 * util/grub-mkrawimage.c: Moved from here ...
25181 * util/grub-mkimage.c: ... here. All users updated.
25182 (ALIGN_ADDR): Use image_target.
25183 (TARGET_NO_FIELD): New const.
25184 (image_target_desc): New type.
25185 (image_targets): New array.
25186 (grub_target_to_host64): Use image_target.
25187 (grub_target_to_host32): Likewise.
25188 (grub_target_to_host16): Likewise.
25189 (grub_host_to_target64): Likewise.
25190 (grub_host_to_target32): Likewise.
25191 (grub_host_to_target16): Likewise.
25192 (grub_host_to_target_addr): Likewise.
25193 (generate_image): Handle multiimage.
25194 (main): Require -O parameter. All users updated.
25195 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25196 util/efi/grub-mkimage.c
25197 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25198 New option --rom-directory.
25200 * util/i386/efi/grub-mkimage.c: Removed.
25201 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25202 (grub_target_to_host32): Likewise.
25203 (grub_target_to_host64): Likewise.
25204 (grub_host_to_target16): Likewise.
25205 (grub_host_to_target32): Likewise.
25206 (grub_host_to_target64): Likewise.
25207 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25208 (grub_target_to_host32): Likewise.
25209 (grub_target_to_host64): Likewise.
25210 (grub_host_to_target16): Likewise.
25211 (grub_host_to_target32): Likewise.
25212 (grub_host_to_target64): Likewise.
25214 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25216 Source tree is reorganized for emu build.
25218 * include/grub/util/console.h: Move from here...
25219 * include/grub/emu/console.h: ...to here.
25220 * include/grub/util/getroot.h: Move from here...
25221 * include/grub/emu/getroot.h: ...to here.
25222 * include/grub/util/hostdisk.h: Move from here...
25223 * include/grub/emu/hostdisk.h: ...to here.
25224 * util/console.c: Move from here...
25225 * kern/emu/console.c: ...to here.
25226 * util/getroot.c: Move from here...
25227 * kern/emu/getroot.c: ...to here.
25228 * util/grub-emu.c: Move from here...
25229 * kern/emu/main.c: ...to here.
25230 * util/hostdisk.c: Move from here...
25231 * kern/emu/hostdisk.c: ...to here.
25232 * util/hostfs.c: Move from here...
25233 * kern/emu/hostfs.c: ...to here.
25234 * util/mm.c: Move from here...
25235 * kern/emu/mm.c: ...to here.
25236 * util/pci.c: Move from here...
25237 * bus/emu/pci.c: ...to here.
25238 * util/sdl.c: Move from here...
25239 * video/emu/sdl.c: ...to here.
25240 * util/time.c: Move from here...
25241 * kern/emu/time.c: ...to here.
25242 * util/usb.c: Move from here...
25243 * bus/usb/emu/usb.c: ...to here.
25245 * include/grub/emu/misc.h: New header for grub-emu functions.
25246 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25248 * conf/any-emu.rmk: Rule updates for above renames.
25249 * conf/common.rmk: Likewise.
25250 * conf/i386-pc.rmk: Likewise.
25251 * conf/i386-qemu.rmk: Likewise.
25252 * conf/mips.rmk: Likewise.
25253 * conf/sparc64-ieee1275.rmk: Likewise.
25254 * conf/x86-efi.rmk: Likewise.
25256 * disk/lvm.h: #include updates for above renames.
25257 * util/grub-mkrelpath.c: Likewise.
25258 * util/grub-probe.c: Likewise.
25259 * util/i386/pc/grub-setup.c: Likewise.
25260 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25261 * kern/emu/console.c: Likewise.
25262 * kern/emu/getroot.c: Likewise.
25263 * kern/emu/hostdisk.c: Likewise.
25264 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25266 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25267 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25268 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25269 * util/misc.c: Remove grub-emu functions.
25271 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25274 Reported by: Thorsten Grützmacher.
25276 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25278 (circprog_set_property): Register and unregister timeout hook.
25279 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25280 (label_destroy): Free template. and unregister hook.
25281 (label_set_state): New function.
25282 (label_set_property): Handle templates and hooks.
25283 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25285 (progress_bar_set_property): Register and unregister timeout hook.
25286 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25287 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25288 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25289 (update_timeout_visit): Removed.
25290 (update_timeouts): New function.
25291 (redraw_timeouts): Likewise.
25292 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25293 (grub_gfxmenu_clear_timeout): Likewise.
25294 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25295 (grub_gfxmenu_timeout_notify): Likewise.
25296 (grub_gfxmenu_timeout_notifications): New external variable.
25297 (grub_gfxmenu_timeout_register): New function.
25298 (grub_gfxmenu_timeout_unregister): Likewise.
25300 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25302 Transform (broken) vga terminal into (working) vga video driver.
25304 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25305 video/i386/pc/vga.c.
25306 * include/grub/video.h (grub_video_driver_id):
25307 Add GRUB_VIDEO_DRIVER_VGA.
25308 * term/i386/pc/vga.c: Renamed to ...
25309 * video/i386/pc/vga.c: ...this
25310 (DEBUG_VGA): Removed.
25311 (CHAR_WIDTH): Likewise.
25312 (CHAR_HEIGHT): Likewise.
25313 (TEXT_WIDTH): Likewise.
25314 (TEXT_HEIGHT): Likewise.
25315 (DEFAULT_FG_COLOR): Likewise.
25316 (DEFAULT_BG_COLOR): Likewise.
25317 (colored_char): Likewise.
25320 (cursor_state): Likewise.
25321 (fg_color): Likewise.
25322 (bg_color): Likewise.
25323 (text_buf): Likewise.
25326 (framebuffer): New variable.
25327 (set_read_map): Disabled.
25328 (setup): New variable.
25329 (is_target): Likewise.
25330 (grub_vga_mod_init): Likewise.
25331 (grub_vga_mod_fini): Likewise.
25332 (check_vga_mem): Likewise.
25333 (write_char): Likewise.
25334 (write_cursor): Likewise.
25335 (scroll_up): Likewise.
25336 (grub_vga_putchar): Likewise.
25337 (grub_vga_getcharwidth): Likewise.
25338 (grub_vga_getwh): Likewise.
25339 (grub_vga_getxy): Likewise.
25340 (grub_vga_gotoxy): Likewise.
25341 (grub_vga_cls): Likewise.
25342 (grub_vga_setcolorstate): Likewise.
25343 (grub_vga_setcursor): Likewise.
25344 (grub_video_vga_init): New function.
25345 (grub_video_vga_setup): Likewise.
25346 (grub_video_vga_fini): Likewise.
25347 (update_target): Likewise.
25348 (grub_video_vga_blit_bitmap): Likewise.
25349 (grub_video_vga_blit_render_target): Likewise.
25350 (grub_video_vga_set_active_render_target): Likewise.
25351 (grub_video_vga_get_active_render_target): Likewise.
25352 (grub_video_vga_swap_buffers): Likewise.
25353 (grub_video_vga_set_palette): Likewise.
25354 (grub_video_vga_get_info_and_fini): Likewise.
25355 (grub_vga_term): Removed.
25356 (grub_video_vga_adapter): New variable.
25357 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25358 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25360 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25362 * video/readers/jpeg.c: Indented.
25364 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25366 Various jpeg cleanups.
25368 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25369 (grub_jpeg_decode_quan_table): Use sizeof.
25370 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25372 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
25374 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25375 tables. Ignore non-last ac bit.
25376 (grub_jpeg_decode_quan_table): Likewise.
25378 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25380 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25381 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25382 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25383 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25384 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25385 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25387 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25389 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25392 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25394 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25396 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25398 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25401 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25403 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25406 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25408 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25411 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25413 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25415 2010-05-01 Christian Franke <franke@computer.org>
25417 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25418 Remove broken Cygwin path conversion.
25419 * util/misc.c: [__CYGWIN__] Add include and define.
25420 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25422 (make_system_path_relative_to_its_root): Simplify loop, replace early
25424 [__CYGWIN__] Add conversion to win32 path.
25425 Include "/" case in trailing slash removal.
25427 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25429 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25430 Reported by: Seth Goldberg
25432 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25434 * commands/help.c (grub_cmd_help): Fix a typo.
25435 Reported by: Seth Goldberg
25437 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25439 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25441 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25442 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25443 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25444 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25445 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25446 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25447 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25448 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25449 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25450 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25451 * normal/context.c (GRUB_MOD_INIT): Likewise.
25452 * normal/main.c (GRUB_MOD_INIT): Likewise.
25453 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25454 * term/serial.c (GRUB_MOD_INIT): Likewise.
25455 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25457 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25459 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25462 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25464 * commands/iorw.c: New file.
25465 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25466 (iorw_mod_SOURCES): New variable.
25467 (iorw_mod_CFLAGS): Likewise.
25468 (iorw_mod_LDFLAGS): Likewise.
25470 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25474 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25475 * normal/main.c (hotkey_aliases): New variable.
25476 (grub_normal_add_menu_entry): Parse "--hotkey".
25477 * normal/menu_text.c (run_menu): Handle hotkeys.
25479 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25481 * kern/i386/coreboot/init.c (grub_machine_init): Call
25482 grub_machine_mmap_init on qemu.
25484 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25486 * boot/i386/qemu/boot.S: Add a missing .code16.
25488 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25490 Use LBIO on coreboot.
25492 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25493 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25494 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25496 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25497 grub_machine_mmap_init on coreboot.
25498 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25499 GRUB_LINUXBIOS_MEMBER_LINK.
25500 (grub_machine_mmap_iterate): Fix declaration.
25501 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25503 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25505 Split coreboot and multiboot ports.
25507 * conf/i386-multiboot.rmk: New file.
25508 * configure.ac: Add multiboot port.
25509 * include/grub/i386/multiboot/boot.h: New file.
25510 * include/grub/i386/multiboot/console.h: Likewise.
25511 * include/grub/i386/multiboot/init.h: Likewise.
25512 * include/grub/i386/multiboot/kernel.h: Likewise.
25513 * include/grub/i386/multiboot/loader.h: Likewise.
25514 * include/grub/i386/multiboot/memory.h: Likewise.
25515 * include/grub/i386/multiboot/serial.h: Likewise.
25516 * include/grub/i386/multiboot/time.h: Likewise.
25517 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25518 * loader/multiboot.c: Likewise.
25519 * loader/multiboot_mbi2.c: Likewise.
25520 * util/grub-mkrescue.in: Generate multiboot rescue.
25522 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25524 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25526 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25528 Merge handling of input and output terminals. Fix a hang.
25530 * commands/terminal.c (abstract_terminal): New struct.
25531 (handle_command): New function. Based on grub_cmd_terminal_input.
25532 (grub_cmd_terminal_input): Use handle_command.
25533 (grub_cmd_terminal_output): Use handle_command.
25535 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25537 Fix comment handling.
25539 * tests/grub_script_comments.in: New testcase.
25540 * conf/tests.rmk: Rules for new testcase.
25541 * script/yylex.l: Updated flex rules.
25543 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25545 * docs/grub.texi (play): Document that zero pitches produce rests.
25546 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25549 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25551 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25554 2010-04-26 Christian Franke <franke@computer.org>
25556 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25557 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25558 (grub_get_prefix): Remove function.
25559 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25560 make_system_path_relative_to_its_root ().
25561 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25563 2010-04-24 Christian Franke <franke@computer.org>
25565 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25566 (kernel_img_LDFLAGS): Remove -static-libgcc.
25568 2010-04-24 Christian Franke <franke@computer.org>
25570 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25571 and CHECK_END_SYMBOL if grub-emu is built.
25572 Unset TARGET_OBJ2ELF if grub-emu is built
25573 without module support.
25575 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
25579 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25580 (grub_fstest_SOURCES): Likewise.
25581 (pkglib_MODULES): Add nilfs2.mod.
25582 (nilfs2_mod_SOURCES): New variable.
25583 (nilfs2_mod_CFLAGS): Likewise.
25584 (nilfs2_mod_LDFLAGS): Likewise.
25585 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25586 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25587 * fs/nilfs2.c: New file.
25589 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25591 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25594 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25596 Add grub-mkconfig support for NetBSD.
25598 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25599 * util/grub-mkconfig.in: export new NetBSD specific variables.
25600 * po/POTFILES-shell: added 10_netbsd.in.
25601 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25603 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25605 Fix emu build with grub-emu-pci and grub-emu-modules.
25607 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25609 * include/grub/libpciaccess.h: New file.
25610 * conf/any-emu.rmk: Update kernel headers for emu build.
25612 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25614 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25616 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25618 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25620 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25622 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25623 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25624 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25625 util/ieee1275/ofpath.c.
25626 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25627 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25628 * include/grub/sparc64/ieee1275/boot.h
25629 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25630 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25631 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25632 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25634 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25635 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25636 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25639 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25641 * util/grub-mkconfig.in: Corrected two == equality tests.
25642 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25643 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25644 expect a number appended to it.
25645 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25646 expects a number appended to it.
25648 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25650 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25652 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25654 * util/hostdisk.c (make_device_name): Change to new partition naming.
25656 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25658 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25660 2010-04-17 Christian Franke <franke@computer.org>
25662 * Makefile.in: Add missing localedir setting.
25664 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
25666 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25667 mistake in r2156. Noticed by Anthony Fok.
25669 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25671 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25673 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25675 Fix a spurious, uninitialized variable warning.
25677 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25678 Initialize variable, shdr.
25679 (grub_freebsd_load_elfmodule): Likewise.
25680 (grub_freebsd_load_elf_meta): Likewise.
25682 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25684 Fix for escaped dollar in double quoted strings.
25686 * script/yylex.l: Updated flex rules.
25687 * conf/tests.rmk: Rule for new testcase.
25688 * tests/grub_script_dollar.in: New testcase.
25690 2010-04-13 Carles Pina i Estany <carles@pina.cat>
25691 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
25693 Enclose all translated strings in grub.cfg in single quotes, and
25694 escape them appropriately (Ubuntu bug #552921).
25696 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25697 * util/grub.d/10_hurd.in: Use it.
25698 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25699 * util/grub.d/10_linux.in (linux_entry): Likewise.
25701 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25703 Fix cygwin compilation.
25705 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25706 * include/grub/misc.h (__register_frame_info)
25707 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25708 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25709 * kern/misc.c (__register_frame_info)
25710 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25711 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25713 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25715 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25717 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25719 Unify libgcc processing.
25721 * Makefile.in (kernel_img_LDFLAGS): New variable.
25722 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25723 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25725 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25726 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25727 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25728 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25729 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25730 overwriting. Remove -lgcc and -static-libgcc
25731 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25732 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25733 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25734 (kernel_img_LDFLAGS): Append instead of overwriting.
25735 Remove -lgcc and -static-libgcc
25736 * conf/sparc64-ieee1275.rmk: Likewise.
25737 * include/grub/powerpc/libgcc.h: Move to ...
25738 * include/grub/libgcc.h: .. this.
25739 * include/grub/libgcc.h: Don't export most of the function on x86.
25740 (__bswapsi2): New export.
25741 (__bswapdi2): Likewise.
25742 * include/grub/mips/libgcc.h: Removed.
25743 * include/grub/sparc64/libgcc.h: Likewise.
25745 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25747 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25748 disk_info_msg (conflicts with gettexting into languages with cases).
25750 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25752 Add grub-probe support for NetBSD.
25754 * util/getroot.c (find_root_device): Convert block device to
25755 character device on NetBSD.
25756 * util/probe.c (probe): Require character device on NetBSD.
25757 * util/hostdisk.c: NetBSD specific headers.
25758 (configure_device_driver): new function to tune device driver
25759 parameters (currently only for NetBSD floppy driver).
25760 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25761 via disklabel ioctl).
25762 (open_device): call configure_device_driver on NetBSD.
25763 (convert_system_partition_to_system_disk): NetBSD specific code.
25764 (device_is_wholedisk): Likewise.
25765 (grub_util_biosdisk_get_grub_dev): Likewise.
25766 (make_device_name): Fixed a typo in bsd_part_str.
25767 * configure.ac: check for opendisk() and getrawpartition() on
25768 NetBSD and set LIBUTIL.
25769 * Makefile.in: add LIBUTIL to LIBS.
25771 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25775 * util/grub-script-check.c: Better help message.
25777 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25781 * configure.ac: Flex version check.
25782 * conf/common.rmk: Add -Wno-error to sh.mod.
25783 * script/yylex.l: Remove all #pragma.
25785 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25787 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25789 Reported by: Seth Goldberg.
25791 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25793 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25794 Rename "module" to "module2".
25795 Reported by: Seth Goldberg.
25797 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25799 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25801 Reported by: Seth Goldberg.
25803 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25805 * lib/posix_wrap/locale.h: Add missing file.
25806 Reported by: Seth Goldberg.
25808 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25810 grub-emu module load support.
25812 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25813 NO_DYNAMIC_MODULES switched to this.
25814 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25815 (CFLAGS): Likewise.
25816 * conf/any-emu.rmk: Generate symlist.
25817 (kernel_img_HEADERS): Add util/datetime.h.
25818 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25819 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25820 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25821 kern/$(target_cpu)/cache.S.
25822 * configure.ac (grub-emu-modules): New option.
25823 * genmk.rb: Handle multiple source lists.
25824 * include/grub/sdl.h: New file.
25825 * include/grub/libusb.h: Likewise.
25826 * util/grub-emu.c (main): Hanle (host) root.
25827 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25828 GRUB_ERR_UNKNOWN_DEVICE.
25829 * util/misc.c: Move mm functions to ...
25830 * util/mm.c: ... here. All users updated.
25832 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25834 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25835 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25837 (maintainer-clean): Remove libgcrypt-grub.
25839 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25841 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25843 2010-04-09 EFI Coder <eficoder@hotmail.com>
25845 * normal/menu_text.c (print_message): Clean up the message and show
25846 the Fn information when on EFI
25847 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25849 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25851 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25853 * normal/crypto.c (read_crypto_list): Likewise.
25854 * normal/dyncmd.c (read_command_list): Likewise.
25855 * normal/term.c (read_terminal_list): Likewise.
25856 * normal/main.c (read_lists): Use explicit prefix.
25857 (read_lists_hook): Use read_lists.
25858 (grub_normal_execute): Likewise.
25860 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25862 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25863 Reported by: Thomas Schmitt.
25864 Add -no-emul-boot to grub-mkisofs parameters.
25866 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25868 * font/font.c: Indented.
25870 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25872 Elif support to GRUB script (by Deepak Vankadaru).
25874 * tests/grub_script_if.in: New testcase.
25875 * conf/tests.rmk: Rule for new testcase.
25876 * script/parser.y: Grammar rules for elif.
25878 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25880 While and until loops support to GRUB script.
25882 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25883 (grub_script_create_cmdwhile): New function prototype.
25884 (grub_script_execute_cmdwhile): New function prototype.
25885 * script/execute.c (grub_script_execute_cmdwhile): New function.
25886 * script/parser.y (command): New commands.
25887 (whilecmd): New grammar rule.
25888 (untilcmd): New grammar rule.
25889 * script/script.c (grub_script_create_cmdwhile): New function.
25890 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25893 * tests/grub_script_while1.in: New testcase.
25894 * conf/tests.rmk: Rule for new testcase.
25896 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25898 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25901 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
25903 GRUB_BACKGROUND support.
25905 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25906 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25908 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25910 Load fonts and modules for gfxmenu in grub-mkconfig.
25911 Idea by: Mario Vazquez
25913 * util/grub.d/00_header.in: Load pf2 and image modules.
25915 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25917 grub-mkconfig multiple terminal support.
25919 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25920 * util/grub.d/00_header.in: Likewise.
25922 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25924 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25925 we use cd $(srcdir).
25927 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
25929 * util/grub.d/10_linux.in: Only use the first word of
25930 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25931 spaces in GRUB_DISTRIBUTOR.
25932 * util/grub.d/10_kfreebsd.in: Likewise.
25933 * util/grub.d/10_hurd.in: Likewise.
25935 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25937 Fix unit testing framework for Qemu 0.12.
25939 * tests/util/grub-shell.in: Remove -serial stdio option.
25941 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25943 POSIX header file wrappers.
25945 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25947 * lib/posix_wrap/ctype.h: Likewise.
25948 * lib/posix_wrap/errno.h: Likewise.
25949 * lib/posix_wrap/langinfo.h: Likewise.
25950 * lib/posix_wrap/limits.h: Likewise.
25951 * lib/posix_wrap/localcharset.h: Likewise.
25952 * lib/posix_wrap/stdint.h: Likewise.
25953 * lib/posix_wrap/stdio.h: Likewise.
25954 * lib/posix_wrap/stdlib.h: Likewise.
25955 * lib/posix_wrap/string.h: Likewise.
25956 * lib/posix_wrap/sys/types.h: Likewise.
25957 * lib/posix_wrap/unistd.h: Likewise.
25958 * lib/posix_wrap/wchar.h: Likewise.
25959 * lib/posix_wrap/wctype.h: Likewise.
25960 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25961 (grub_script.yy.h): Likewise.
25962 * script/yylex.l: Remove POSIX emulation #defines.
25963 * Makefile.in (POSIX_CFLAGS): New variable.
25964 (GNULIB_UTIL_CFLAGS): Likewise.
25968 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25969 (regexp_mod_SOURCES): New variable.
25970 (regexp_mod_CFLAGS): Likewise.
25971 (regexp_mod_LDFLAGS): Likewise.
25972 * commands/regexp.c: New file.
25973 * gnulib/regcomp.c: New file. Imported from gnulib.
25974 * gnulib/regex.c: Likewise.
25975 * gnulib/regex_internal.c: Likewise.
25976 * gnulib/regex_internal.h: Likewise.
25977 * gnulib/regexec.c: Likewise.
25978 * gnulib/regex.h: Likewise.
25980 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25982 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25983 unsupported video mode types.
25985 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25987 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25989 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25991 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25992 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25994 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25996 Remove unused grub_vga_get_font.
25998 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25999 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
26001 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26003 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
26004 * include/grub/misc.h: Likewise.
26006 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26008 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
26009 for which failure is fatal.
26011 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26013 * util/grub-install.in: Use mkdir -p to create grub directory.
26014 * util/i386/efi/grub-install.in: Likewise.
26015 * util/ieee1275/grub-install.in: Likewise.
26017 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26019 * Makefile.in (LEX): new variable.
26021 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26023 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
26024 `=' and added double quotes on operands of this equality test.
26026 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26028 * Makefile.in (uninstall): Remove a leftover debug echo.
26029 Reported by: Grégoire Sutre
26031 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26033 MIPS multiboot2 support.
26035 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
26036 (multiboot2_mod_SOURCES): New variable.
26037 (multiboot2_mod_CFLAGS): Likewise.
26038 (multiboot2_mod_LDFLAGS): Likewise.
26039 (multiboot2_mod_ASFLAGS): Likewise.
26040 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
26042 (MULTIBOOT_ENTRY_REGISTER): Likewise.
26043 (MULTIBOOT_MBI_REGISTER): Likewise.
26044 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
26045 (MULTIBOOT_ELF32_MACHINE): Likewise.
26046 (MULTIBOOT_ELF64_MACHINE): Likewise.
26047 * include/grub/mips/multiboot.h: New file.
26048 * include/grub/video.h (grub_video_driver_id): New type
26049 GRUB_VIDEO_DRIVER_SM712.
26050 (grub_video_get_info_and_fini): Export.
26051 (grub_video_get_palette): Likewise.
26052 (grub_video_get_driver_id): Likewise.
26053 * include/multiboot2.h: Resynced with spec.
26054 * loader/i386/multiboot.c: Moved from here ...
26055 * loader/multiboot.c: ... here. All users updated.
26056 (grub_multiboot_boot): Use platform-specific macros.
26057 * loader/i386/multiboot_elfxx.c: Moved from here ...
26058 * loader/multiboot_elfxx.c: ... here. All users updated.
26059 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
26060 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
26061 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
26063 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
26065 Import gnulib argp module.
26067 * gnulib/argp-ba.c: New file.
26068 * gnulib/argp-eexst.c: Likewise.
26069 * gnulib/argp-fmtstream.c: Likewise.
26070 * gnulib/argp-fmtstream.h: Likewise.
26071 * gnulib/argp-fs-xinl.c: Likewise.
26072 * gnulib/argp-help.c: Likewise.
26073 * gnulib/argp-namefrob.h: Likewise.
26074 * gnulib/argp-parse.c: Likewise.
26075 * gnulib/argp-pin.c: Likewise.
26076 * gnulib/argp-pv.c: Likewise.
26077 * gnulib/argp-pvh.c: Likewise.
26078 * gnulib/argp-version-etc.c: Likewise.
26079 * gnulib/argp-version-etc.h: Likewise.
26080 * gnulib/argp-xinl.c: Likewise.
26081 * gnulib/argp.h: Likewise.
26083 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26085 * kern/device.c (grub_device_iterate): Clear errors after failed
26088 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26090 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26091 returned by firmware.
26093 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26095 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26096 compilation on coreboot and qemu
26098 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26100 * include/multiboot2.h: Resync with spec.
26102 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26104 Multiboot2 tag support
26106 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26107 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26108 Remove loader/multiboot_loader.c.
26109 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26110 (grub_multiboot2_real_boot): Likewise.
26111 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26112 (grub_get_multiboot_mmap_count): New proto.
26113 (grub_fill_multiboot_mmap): Likewise.
26114 (grub_multiboot_set_video_mode): Likewise.
26115 (grub_multiboot_set_console): Likewise.
26116 (grub_multiboot_load): Likewise.
26117 (grub_multiboot_load_elf): Likewise.
26118 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26119 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26120 * include/multiboot.h: Resynced with specification.
26121 * include/multiboot2.h: Resynced with specification.
26122 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26123 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26124 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26125 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26127 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26128 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26129 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26131 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26133 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26134 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26136 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26137 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26138 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26140 * loader/i386/multiboot_mbi2.c: New file.
26142 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26144 Resync with gnulib.
26146 * Makefile.in (GNULIB_CFLAGS): New variable.
26147 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26148 (grub_script_check_CFLAGS): New variable.
26149 * gnulib/alloca.h: Resync with gnulib.
26150 * gnulib/error.c: Likewise.
26151 * gnulib/error.h: Likewise.
26152 * gnulib/fnmatch.c: Likewise.
26153 * gnulib/fnmatch_loop.c: Likewise.
26154 * gnulib/getdelim.c: Likewise.
26155 * gnulib/getline.c: Likewise.
26156 * gnulib/getopt.c: Likewise.
26157 * gnulib/getopt1.c: Likewise.
26158 * gnulib/getopt_int.h: Likewise.
26159 * gnulib/gettext.h: Likewise.
26160 * gnulib/progname.c: Likewise.
26161 * gnulib/progname.h: Likewise.
26163 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26165 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26166 which is the case with --disabled-nls.
26168 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26169 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26170 * util/misc.c: Likewise.
26171 * util/mkisofs/mkisofs.c: Likewise.
26172 * util/mkisofs/mkisofs.h: Likewise.
26174 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26176 Simplify Apple CC support.
26178 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26179 Add 0 byte at the end not to have a symbol with empty target.
26180 * mmap/i386/pc/mmap_helper.S: Likewise.
26181 * genmk.rb: Ignore errors 2030 and 2050.
26182 * kern/i386/pc/startup.S: Use LOCAL when possible.
26184 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26186 Testcase and the fix for final semicolon on cmdline.
26188 * tests/grub_script_final_semicolon.in: New testcase.
26189 * conf/tests.rmk: Rules for the new testcase.
26190 * script/parser.y: Grammar fix.
26192 2010-03-26 BVK Chaitanya <bvk@localhost>
26194 Blank lines testcase for GRUB script.
26196 * tests/grub_script_blanklines.in: New testcase.
26197 * conf/tests.rmk: Rules for the new testcase.
26199 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26201 Don't use __FILE__.
26203 * genmk.rb: Add -DGRUB_FILE to all C targets.
26204 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26205 * include/grub/list.h: Likewise.
26206 * include/grub/misc.h: Likewise.
26207 * include/grub/mm.h: Likewise.
26208 * include/grub/test.h: Likewise.
26209 * kern/mm.c: Likewise.
26210 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26212 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26214 Sunpc partitions support.
26216 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26217 (grub_fstest_SOURCES): Likewise.
26218 (pkglib_MODULES): Add part_sunpc.mod.
26219 (part_sunpc_mod_SOURCES): New variable.
26220 (part_sunpc_mod_CFLAGS): Likewise.
26221 (part_sunpc_mod_LDFLAGS): Likewise.
26222 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26223 * partmap/sunpc.c: New file.
26225 2010-03-26 BVK Chaitanya <bvk@localhost>
26227 For loop support to GRUB script.
26229 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26230 (grub_script_create_cmdfor): New function prototype.
26231 (grub_script_execute_cmdfor): New function prototype.
26232 * script/execute.c (grub_script_execute_cmdfor): New function.
26233 * script/parser.y (command): New for command.
26234 (forcmd): New grammar rule.
26235 * script/script.c (grub_script_create_cmdfor): New function.
26236 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26238 * tests/grub_script_for1.in: New testcase.
26239 * conf/tests.rmk: Rules for new testcase.
26241 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26245 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26246 'partition' is NULL, grub_partition_get_start already does that.
26247 * commands/loadenv.c (check_blocklists): Likewise.
26248 (write_blocklists): Likewise.
26249 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26250 (grub_fstest_SOURCES): Likewise.
26251 (pkglib_MODULES): Add part_bsd.mod.
26252 (part_bsd_mod_SOURCES): New variable.
26253 (part_bsd_mod_CFLAGS): Likewise.
26254 (part_bsd_mod_LDFLAGS): Likewise.
26255 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26256 (grub_emu_SOURCES): Likewise.
26257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26258 * include/grub/bsdlabel.h: New file.
26259 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26261 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26262 (grub_partition_map_list): New variable.
26263 (grub_partition_map_register): Inline.
26264 (grub_partition_map_unregister): Likewise.
26265 (FOR_PARTITION_MAPS): New macro.
26266 (grub_partition_map_iterate): Removed.
26267 (grub_partition_get_start): Handle nested partitions.
26268 * include/grub/msdos_partition.h: Remove bsd-related entries.
26269 (grub_pc_partition): Remove.
26270 * kern/disk.c (grub_disk_close): Free partition data.
26271 (grub_disk_adjust_range): Handle nested partitions.
26272 * kern/partition.c (grub_partition_map_probe): New function.
26273 (grub_partition_probe): Parse name to number, handle subpartitions.
26274 (get_partmap): New function.
26275 (grub_partition_iterate): Handle subpartitions.
26276 (grub_partition_get_name): Likewise.
26277 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26278 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26279 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26280 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26282 (acorn_partition_map_probe): Remove.
26283 (acorn_partition_map_get_name): Likewise.
26284 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26286 Set 'index' to 0 since there can be only one partition entry per sector.
26287 (amiga_partition_map_probe): Remove.
26288 (amiga_partition_map_get_name): Likewise.
26289 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26291 Set 'offset' and 'index' to real positions of partitions.
26292 (apple_partition_map_probe): Remove.
26293 (apple_partition_map_get_name): Likewise.
26294 * partmap/bsdlabel.c: New file.
26295 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26297 Allocate 'data' so it can be correctly freed.
26298 Set 'index' to offset inside sector.
26299 (gpt_partition_map_probe): Remove.
26300 (gpt_partition_map_get_name): Likewise.
26301 * partmap/msdos.c (grub_partition_parse): Remove.
26302 (pc_partition_map_iterate): Don't force raw access.
26304 Make 'ext_offset' a local variable.
26305 (pc_partition_map_probe): Remove.
26306 (pc_partition_map_get_name): Remove.
26307 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26309 (sun_partition_map_probe): Remove.
26310 (sun_partition_map_get_name): Likewise.
26311 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26312 (grub_pcpart_type): Likewise.
26313 * util/hostdisk.c (open_device): Handle new numbering scheme.
26314 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26315 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26316 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26317 * util/grub-install.in: Insert all subpartition modules.
26318 * util/ieee1275/grub-install.in: Likewise.
26320 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26322 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26325 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
26327 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26329 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
26331 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26332 match where 'make install' puts them.
26333 * util/i386/efi/grub-install.in: Likewise.
26335 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
26337 * .bzrignore: Add gentrigtables, grub-script-check,
26338 grub_script_check_init.c, grub_script_check_init.h, and
26341 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26343 * kern/parser.c: Indented.
26345 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26347 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26349 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26351 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26352 alpha_mask_size == 0 case.
26354 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26356 GRUB shell lexer and parser improvements.
26358 * conf/any-emu.rmk: Build rule updates.
26359 * conf/common.rmk: Likewise.
26360 * conf/i386-coreboot.rmk: Likewise.
26361 * conf/i386-efi.rmk: Likewise.
26362 * conf/i386-ieee1275.rmk: Likewise.
26363 * conf/i386-pc.rmk: Likewise.
26364 * conf/powerpc-ieee1275.rmk: Likewise.
26365 * conf/x86_64-efi.rmk: Likewise.
26367 * configure.ac: Configure check for flex.
26369 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26371 (grub_lexer_param): Struct member updates.
26372 (grub_parser_param): Likewise.
26373 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26374 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26375 (grub_script_lexer_init): Prototype update.
26376 (grub_script_lexer_record_start): Likewise.
26377 (grub_script_lexer_record_stop): Likewise.
26378 (grub_script_lexer_yywrap): New function prototype.
26379 (grub_script_lexer_fini): Likewise.
26380 (grub_script_execute_argument_to_string): Removed by...
26381 (grub_script_execute_argument_to_argv): ...better version.
26383 * script/execute.c (ROUND_UPTO): New macro.
26384 (grub_script_execute_cmdline): Out of memory fixes.
26385 (grub_script_execute_menuentry): Likewise.
26386 (grub_script_execute_argument_to_string): Removed. Update all
26388 (grub_script_execute_argument_to_argv): ...better version.
26389 * script/function.c (grub_script_function_create): Use
26390 grub_script_execute_argument_to_argv instead of
26391 grub_script_execute_argument_to_string.
26393 * script/lexer.c (check_varstate): Removed.
26394 (check_textstate): Removed.
26395 (grub_script_lexer_record_start): Likewise.
26396 (grub_script_lexer_record_stop): Likewise.
26397 (recordchar): Replaced with...
26398 (grub_script_lexer_record): ...new function.
26399 (nextchar): Removed.
26400 (grub_script_lexer_init): Rewritten.
26401 (grub_script_yylex): Rewritten.
26402 (append_newline): New function.
26403 (grub_script_lexer_yywrap): New function.
26404 (grub_script_lexer_fini): New function.
26405 (grub_script_yyerror): Sets error flag.
26407 * script/yylex.l: New file.
26408 (grub_lexer_yyfree): Wrapper for flex yyffre.
26409 (grub_lexer_yyalloc): Likewise.
26410 (grub_lexer_yyrealloc): Likewise.
26411 * script/parser.y: Refactored.
26413 * script/script.c (grub_script_arg_add): Out of memory fixes.
26414 (grub_script_add_arglist): Likewise.
26415 (grub_script_create_cmdline): Likewise.
26416 (grub_script_create_cmdmenu): Likewise.
26417 (grub_script_add_cmd): Likewise.
26418 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26419 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26422 * tests/grub_script_echo1.in: New testcase.
26423 * tests/grub_script_vars1.in: New testcase.
26424 * tests/grub_script_echo_keywords.in: New testcase.
26426 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26428 Remove some redundancy in build system.
26430 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26431 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26432 (TARGET_LDFLAGS): Add -nostdlib.
26433 (TARGET_IMG_LDFLAGS): Likewise.
26434 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26435 anything since mmap isn't available.
26436 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26438 (pkglib_MODULES): Remove reboot.mod.
26439 (reboot_mod_SOURCES): Removed.
26440 (reboot_mod_CFLAGS): Likewise.
26441 (reboot_mod_LDFLAGS): Likewise.
26442 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26443 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26444 (DEFSYMFILES): Add kernel_syms.lst.
26445 (kernel_img_HEADERS): Add common headers.
26446 (symlist.c): New target.
26447 (kernel_syms.lst): Likewise.
26448 (pkglib_MODULES): Add memdisk.mod.
26449 (memdisk_mod_SOURCES): New variable.
26450 (memdisk_mod_CFLAGS): Likewise.
26451 (memdisk_mod_LDFLAGS): Likewise.
26452 (pkglib_MODULES): Add reboot.mod.
26453 (reboot_mod_SOURCES): New variable.
26454 (reboot_mod_CFLAGS): Likewise.
26455 (reboot_mod_LDFLAGS): Likewise.
26456 (pkglib_MODULES): Add date.mod.
26457 (date_mod_SOURCES): New variable.
26458 (date_mod_CFLAGS): Likewise.
26459 (date_mod_LDFLAGS): Likewise.
26460 (pkglib_MODULES): Add datehook.mod.
26461 (datehook_mod_SOURCES): New variable.
26462 (datehook_mod_CFLAGS): Likewise.
26463 (datehook_mod_LDFLAGS): Likewise.
26464 (pkglib_MODULES): Add lsmmap.mod.
26465 (lsmmap_mod_SOURCES): New variable.
26466 (lsmmap_mod_CFLAGS): Likewise.
26467 (lsmmap_mod_LDFLAGS): Likewise.
26468 (pkglib_MODULES): Add boot.mod.
26469 (boot_mod_SOURCES): New variable.
26470 (boot_mod_CFLAGS): Likewise.
26471 (boot_mod_LDFLAGS): Likewise.
26472 * conf/i386-coreboot.rmk: Removed redundant parts.
26473 * conf/i386-ieee1275.rmk: Likewise.
26474 * conf/i386-pc.rmk: Likewise.
26475 * conf/mips-yeeloong.rmk: Likewise.
26476 * conf/mips.rmk: Likewise.
26477 * conf/powerpc-ieee1275.rmk: Likewise.
26478 * conf/sparc64-ieee1275.rmk: Likewise.
26479 * conf/x86_64-efi.rmk: Likewise.
26480 * conf/i386-coreboot.rmk: Moved qemu parts ..
26481 * conf/i386-qemu.rmk: ... here
26482 * conf/i386-efi.rmk: Moved common parts to...
26483 * conf/x86-efi.rmk: ... here.
26484 * conf/i386.rmk: Added modules common to all x86 variants.
26485 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26486 * disk/memdisk.c: Remove grub/machine/kernel.h.
26487 * gensymlist.sh.in: Include symbol.h.
26488 * hook/datehook.c: Correct module name.
26489 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26490 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26491 * include/grub/i386/efi/serial.h: New file.
26492 * include/grub/x86_64/efi/serial.h: Likewise.
26493 * util/time.c: Likewise.
26494 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26496 2010-03-14 Colin King <colin.king@ubuntu.com>
26497 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
26499 Shrink the pre-partition-table part of boot.img by eight bytes.
26501 * boot/i386/pc/boot.S (ERR): New macro.
26502 (chs_mode): Use ERR.
26503 (geometry_error): Likewise.
26504 (hd_probe_error): Remove. This is only used once, so we wrwite
26506 (read_error): Instead of printing read_error_string, just set up
26507 %si and fall through to ...
26508 (error_message): ... this new function, also used by ERR.
26510 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
26512 Speed up consecutive hostdisk operations on the same device.
26514 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26515 (grub_util_biosdisk_open): Initialise disk->data.
26516 (struct linux_partition_cache): New structure.
26517 (linux_find_partition): Cache partition start positions; these are
26518 expensive to compute on every read and write.
26519 (open_device): Cache open file descriptor in disk->data, so that we
26520 don't have to reopen it and flush the buffer cache for consecutive
26521 operations on the same device.
26522 (grub_util_biosdisk_close): New function.
26523 (grub_util_biosdisk_dev): Set `close' member.
26525 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26526 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26527 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26528 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26529 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26531 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26533 Compile parts of grub-emu as modules.
26535 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26536 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26537 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26538 (all-local): Add $(GRUB_EMU).
26539 (install-local): Install $(GRUB_EMU).
26540 (uninstall): Uninstall $(GRUB_EMU).
26541 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26542 * kern/dl.c: Likewise.
26543 * commands/sleep.c: Not include machine/time.h.
26544 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26545 (COMMON_CFLAGS): Likewise.
26546 (sbin_UTILITIES): Remove grub-emu.
26547 (grub_emu_SOURCES): Removed.
26548 (kernel_img_RELOCATABLE): New variable.
26549 (pkglib_PROGRAMS): Add kernel.img.
26550 (kernel_img_SOURCES): New variable
26551 (kernel_img_CFLAGS): Likewise.
26552 (kernel_img_LDFLAGS): Likewise.
26553 (TARGET_NO_STRIP): Likewise.
26554 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26555 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26556 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26557 (grub-emu): New target.
26558 (GRUB_EMU): New variable.
26559 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26560 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26561 * loader/xnu.c: Likewise.
26562 * include/grub/pci.h: Likewise.
26563 * genemuinit.sh: New file.
26564 * genemuinitheader.sh: Likewise.
26565 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26566 Support TARGET_NO_DYNAMIC_MODULES.
26567 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26568 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26569 * disk/loopback.c: Likewise.
26570 * font/font_cmd.c: Likewise.
26571 * partmap/acorn.c: Likewise.
26572 * partmap/amiga.c: Likewise.
26573 * partmap/apple.c: Likewise.
26574 * partmap/gpt.c: Likewise.
26575 * partmap/msdos.c: Likewise.
26576 * partmap/sun.c: Likewise.
26577 * parttool/msdospart.c: Likewise.
26578 * term/gfxterm.c: Likewise.
26579 * video/bitmap.c: Likewise.
26580 * video/readers/jpeg.c: Likewise.
26581 * video/readers/png.c: Likewise.
26582 * video/readers/tga.c: Likewise.
26583 * video/video.c: Likewise.
26584 * util/grub-emu.c (read_command_list): Removed.
26585 (main): Don't call util_init_nls.
26586 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26587 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26589 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26591 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26592 date.mod, datehook.mod.
26593 (datetime_mod_SOURCES): New variable.
26594 (datetime_mod_CFLAGS): Likewise.
26595 (datetime_mod_LDFLAGS): Likewise.
26596 (date_mod_SOURCES): Likewise.
26597 (date_mod_CFLAGS): Likewise.
26598 (date_mod_LDFLAGS): Likewise.
26599 (datehook_mod_SOURCES): Likewise.
26600 (datehook_mod_CFLAGS): Likewise.
26601 (datehook_mod_LDFLAGS): Likewise.
26602 * conf/sparc64-ieee1275.rmk: Likewise.
26603 * lib/ieee1275/datetime.c: New file.
26605 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26607 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26608 (ieee1275_fb_mod_SOURCES): New variable.
26609 (ieee1275_fb_mod_CFLAGS): Likewise.
26610 (ieee1275_fb_mod_LDFLAGS): Likewise.
26611 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26613 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26614 (HEAP_MAX_ADDR): Likewise.
26615 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26617 Correct stop condition.
26618 (grub_ieee1275_devices_iterate): New function.
26619 * video/ieee1275.c: New file.
26621 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26623 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26625 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26627 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26628 SCRATCH_PAD_DISKBOOT as scratch.
26629 (bootit): Pass Openfirmware pointer in %o4.
26630 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26632 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26633 with util/grub-mkrawimage.c.
26634 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26635 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26636 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26637 (grub_aout_load) [GRUB_UTIL]: Likewise.
26638 * include/grub/kernel.h (grub_modules_get_end): New proto.
26639 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26640 (SCRATCH_PAD_BOOT): New definition.
26641 (SCRATCH_PAD_DISKBOOT): Likewise.
26642 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26643 * include/grub/sparc64/ieee1275/ieee1275.h
26644 (grub_ieee1275_original_stack): New variable
26645 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26647 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26648 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26649 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26650 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26651 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26652 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26653 (grub_platform_image_format_t): New type.
26654 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26655 * kern/main.c (grub_modules_get_end)
26656 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26657 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26658 (codestart): Switch stacks.
26659 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26661 (grub_heap_init): Use grub_modules_get_end.
26662 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26664 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26666 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26668 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
26670 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26672 2010-03-08 Matt Kraai <kraai@ftbfs.org>
26674 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26677 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26679 * genmoddep.awk: Output all missing symbols and not only first.
26681 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26683 * NEWS: Put the date of 1.98 release.
26685 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26687 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26690 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26692 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26693 completition in the middle of string.
26695 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26697 * util/grub-mkrescue.in: Use mktemp with explicit template.
26699 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26701 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26703 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26705 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26708 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26710 Fix FreeBSD compilation.
26712 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26713 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26715 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26717 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26719 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26721 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26723 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26725 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26727 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26729 Support relative image path in theme file.
26731 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26732 (image_set_property): Handle theme_dir and relative path.
26734 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26736 * configure.ac: Alias amd64 to x86_64.
26738 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26740 * NEWS: mention multiboot on EFI.
26742 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26744 * kern/main.c (grub_load_modules): Handle errors from init functions of
26747 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26749 * normal/autofs.c (autoload_fs_module): Handle errors.
26751 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26753 Disable linux.mod on qemu-mips since it's not functional and leads
26754 to compilation failure.
26756 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26757 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26758 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26759 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26760 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26761 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26762 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26763 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26764 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26765 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26766 Reported by: BVK Chaitanya
26768 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26770 * INSTALL: Add gettext as a dependency and add qemu to a new section
26771 "Prerequisites for make-check".
26773 2010-03-04 Christian Franke <franke@computer.org>
26775 * util/grub-pe2elf.c: Add missing include "progname.h".
26777 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26779 * normal/crypto.c (read_crypto_list): Fix a typo.
26780 Reported by: Seth Goldberg.
26782 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26784 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
26785 Reported by: Seth Goldberg.
26787 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26789 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26792 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26794 * genmk.rb: Remove terminal*.lst in make clean.
26795 Reported by: Seth Goldberg.
26797 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26799 * util/i386/efi/grub-install.in: Copy gettext files.
26801 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26803 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26805 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26807 Wait for user entry basing on presence of output rather than on errors.
26809 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26810 (grub_install_newline_hook): Likewise.
26811 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26812 * normal/menu.c (show_menu): Check line_counter to determine presence
26814 * normal/term.c (grub_normal_line_counter): New variable.
26815 (grub_normal_get_line_counter): New function.
26816 (grub_install_newline_hook): Likewise.
26818 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26820 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26822 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26824 * configure.ac: Update version to 1.98.
26826 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26828 * util/grub.d/10_linux.in (linux_entry): Don't default to
26829 gfxpayload=keep if Linux doesn't support video handover.
26831 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26833 Don't compile video modules on yeeloong since video subsystem is part
26836 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26837 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26838 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26839 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26840 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26841 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26842 * include/grub/bitmap_scale.h: Likewise.
26843 * include/grub/bufio.h: Likewise.
26844 * include/grub/font.h: Likewise.
26845 * include/grub/gfxterm.h: Likewise.
26846 * include/grub/video.h: Likewise.
26847 * include/grub/vbe.h: Don't include video_fb.h.
26848 * video/i386/pc/vbe.c: Include video_fb.h.
26849 * commands/i386/pc/vbetest.c: Include video.h.
26851 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26853 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26854 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26855 default entry if GRUB_SAVEDEFAULT=true. This allows using
26856 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26857 saving a new default on every boot.
26859 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26861 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26862 * normal/term.c (read_terminal_list): Likewise.
26863 * normal/main.c (grub_normal_init_page): Likewise.
26864 (grub_normal_read_line_real): Likewise.
26866 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26868 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26870 Reported by: Seth Goldberg.
26872 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26874 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26875 duplicate declaration of `start'.
26877 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26879 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26881 Reported by: Georgy Buranov
26883 2010-02-20 Carles Pina i Estany <carles@pina.cat>
26885 * util/grub-mkrawimage.c (usage): Change string formatting to
26888 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26890 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26893 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26895 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26896 Reported by: Michael Suchanek.
26898 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
26900 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26901 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26903 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26905 Remove any reference to non-free fonts.
26907 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26908 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26909 uses non-free components.
26910 * font/font.c (grub_font_get_name): Remove example name.
26911 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26912 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26913 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26914 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26916 2010-02-16 Georgy Buranov <gburanov@gmail.com>
26918 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26920 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26922 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26924 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26926 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26928 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26930 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26932 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26934 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26935 * docs/grub.texi (Command-line and menu entry commands): Document play
26938 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26940 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26941 parse arguments as inline tempo and notes. Move code for playing notes
26943 (play): ... new function.
26945 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26947 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26948 grub_uint16_t instead of short.
26949 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26950 disk from little endian to cpu endianness.
26952 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26954 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26955 GRUB_TICKS_PER_SECOND instead of 120.
26957 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26959 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26960 escape sequence after \e.
26962 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26964 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26965 non-ASCII characters.
26967 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26969 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26970 set root in single quotes to prevent \, from being unescaped.
26972 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26974 Prevent unknown commands from stopping menuentry execution.
26976 * script/execute.c (grub_script_execute_cmdline): Print error after
26979 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26981 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26982 Reported by: Pavel Pisa.
26984 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26986 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26988 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26990 Merge grub_ieee1275_map_physical into grub_map and rename to
26993 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26994 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26996 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26997 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26999 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
27001 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27003 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
27004 opening and not after.
27006 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27008 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
27011 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27013 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
27014 (alloc_phys): Use ALIGN_UP instead of align_addr.
27016 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27018 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
27020 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27022 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
27024 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27026 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
27029 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27031 Fix over-4GiB seek on sparc64.
27033 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
27034 Replace pos_i and pos_lo with pos. All users updated.
27035 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27037 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27039 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
27042 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27044 * util/grub-mkrawimage.c (main): Call set_program_name.
27046 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27048 Properly align 64-bit targets.
27050 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
27051 (generate_image): Use ALIGN_ADDR.
27053 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27055 Properly create cross-endian images.
27057 * include/grub/types.h (grub_host_to_target_addr): New macro
27058 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
27060 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27062 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
27064 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27066 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
27068 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
27069 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
27070 (grub_linux_boot): Divide by 64K when on VESA.
27072 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27074 Support GRUB_GFXPAYLOAD_LINUX.
27076 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27077 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27079 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27081 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27082 to show messages instead of discarding them.
27083 Process errors after executing command and not before. Keep old method
27086 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27088 * configure.ac: Check for ft2build.h.
27090 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27092 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27094 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27096 * genkernsyms.sh.in: Use TARGET_CC.
27098 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
27102 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27104 * include/grub/multiboot2.h: Remove leftover file.
27105 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27106 * include/grub/partition.h [GRUB_UTIL]: Likewise.
27108 2010-02-07 Yves Blusseau <blusseau@zetam.org>
27110 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
27112 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27114 Fix warnings in grub-emu when compiling with maximum warning options.
27116 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27117 (grub_arch_modules_addr): Return 0 and not NULL.
27118 * util/misc.c (ENABLE_RELOCATABLE): New definition.
27119 (xstrdup): Use newstr instead of dup.
27120 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27121 of disk to dsk to avoid shadowing.
27122 (find_free_slot): Fix prototype.
27123 * util/getroot.c (grub_util_is_dmraid): Make static.
27124 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27125 Add missing prototype.
27126 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
27128 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27130 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27133 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27135 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27138 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27140 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27141 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27142 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27143 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27144 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27145 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27147 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27149 * include/grub/err.h (grub_err_printf): Don't export.
27151 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27153 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27155 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27157 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27158 * kern/misc.c (grub_gettext_dummy): Make static.
27160 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27162 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27164 * kern/term.c (grub_putchar): Likewise.
27166 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27168 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27169 buggy hook call and memory leak.
27171 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27173 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27175 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27177 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27179 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27181 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27183 Return grub_errno on allocation error.
27185 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27187 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27189 2010-02-06 Yves Blusseau <blusseau@zetam.org>
27191 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27192 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27194 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27196 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27198 (grub_pxefs_open): Likewise.
27200 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27202 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27203 * util/grub.d/10_kfreebsd.in: Likewise.
27204 * util/grub.d/10_linux.in: Likewise.
27206 2010-02-06 Colin D Bennett <colin@gibibit.com>
27208 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27209 (gfxmenu_mod_SOURCES): New variable.
27210 (gfxmenu_mod_CFLAGS): Likewise.
27211 (gfxmenu_mod_LDFLAGS): Likewise.
27212 * include/grub/term.h (grub_term_set_current_output): Declare
27214 * docs/gfxmenu-theme-example.txt: New file.
27215 * gfxmenu/gfxmenu.c: Likewise.
27216 * gfxmenu/gui_box.c: Likewise.
27217 * gfxmenu/gui_canvas.c: Likewise.
27218 * gfxmenu/gui_circular_progress.c: Likewise.
27219 * gfxmenu/gui_image.c: Likewise.
27220 * gfxmenu/gui_label.c: Likewise.
27221 * gfxmenu/gui_list.c: Likewise.
27222 * gfxmenu/gui_progress_bar.c: Likewise.
27223 * gfxmenu/gui_string_util.c: Likewise.
27224 * gfxmenu/gui_util.c: Likewise.
27225 * gfxmenu/icon_manager.c: Likewise.
27226 * gfxmenu/model.c: Likewise.
27227 * gfxmenu/named_colors.c: Likewise.
27228 * gfxmenu/theme_loader.c: Likewise.
27229 * gfxmenu/view.c: Likewise.
27230 * gfxmenu/widget-box.c: Likewise.
27231 * include/grub/gfxmenu_model.h: Likewise.
27232 * include/grub/gfxmenu_view.h: Likewise.
27233 * include/grub/gfxwidgets.h: Likewise.
27234 * include/grub/gui.h: Likewise.
27235 * include/grub/gui_string_util.h: Likewise.
27236 * include/grub/icon_manager.h: Likewise.
27238 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27240 Agglomerate scrolling in gfxterm.
27242 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27243 (grub_virtual_screen_setup): Initialise 'total_screen'.
27244 (write_char): Split to ...
27245 (paint_char): ... this ...
27246 (write_char): ... and this.
27247 (paint_char): Handle delayed scrolling.
27248 (draw_cursor): Likewise.
27249 (scroll_up): Split to ...
27250 (real_scroll): ... this ...
27251 (scroll_up): ... and this.
27252 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27254 (grub_gfxterm_refresh): Call real_scroll.
27256 2010-02-06 Colin D Bennett <colin@gibibit.com>
27258 * include/grub/misc.h (grub_iscntrl): New inline function.
27259 (grub_isalnum): Likewise.
27260 (grub_strtol): Likewise.
27262 2010-02-06 Colin D Bennett <colin@gibibit.com>
27264 * normal/menu_text.c (get_entry_number): Move from here ...
27265 * normal/menu.c (get_entry_number): ... moved here.
27266 * include/grub/menu.h (grub_menu_get_default_entry_index):
27268 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27269 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27270 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27271 (grub_menu_viewer_should_return): Likewise.
27272 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27273 * normal/menu_text.c (run_menu): Enable menu switching.
27274 * normal/menu_viewer.c (should_return): New variable.
27275 (menu_viewer_changed): Likewise.
27276 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27277 (grub_menu_viewer_should_return): New function.
27278 (menuviewer_write_hook): Likewise.
27279 (grub_menu_viewer_init): Likewise.
27281 2010-02-06 Colin D Bennet <colin@gibibit.com>
27282 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27284 Support for gfxterm in a window.
27286 * include/grub/gfxterm.h: New file.
27287 * include/grub/video.h (struct grub_video_rect): New declaration.
27288 (grub_video_rect_t): Likewise.
27289 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27290 (refcount): New variable.
27291 (render_target): Likewise.
27292 (window): Likewise.
27293 (repaint_callback): Likewise.
27294 (grub_virtual_screen_setup): Use 'render_target'.
27295 (init_window): New function.
27296 (grub_gfxterm_init_window): Likewise.
27297 (grub_gfxterm_init): Check reference counter.
27299 (destroy_window): New function.
27300 (grub_gfxterm_destroy_window): Likewise.
27301 (grub_gfxterm_fini): Check reference counter.
27302 Use destroy_window.
27303 (redraw_screen_rect): Restore viewport.
27304 Use 'render_target' and 'window'.
27305 Call 'repaint_callback'.
27306 (write_char): Use 'render_target'.
27307 (draw_cursor): Likewise.
27308 (scroll_up): Restore viewport.
27309 Use 'render_target' and 'window'.
27310 Call 'repaint_callback'.
27311 (grub_gfxterm_cls): Likewise.
27312 (grub_gfxterm_refresh): Use 'window'.
27313 (grub_gfxterm_set_repaint_callback): New function.
27314 (grub_gfxterm_background_image_cmd): Use 'window'.
27315 (grub_gfxterm_get_term): New function.
27316 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27318 2010-02-06 Colin D Bennett <colin@gibibit.com>
27320 Bitmap scaling support.
27322 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27323 (bitmap_scale_mod_SOURCES): New variable.
27324 (bitmap_scale_mod_CFLAGS): Likewise.
27325 (bitmap_scale_mod_LDFLAGS): Likewise.
27326 * include/grub/bitmap_scale.h: New file.
27327 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27328 (background_image_cmd_options): New variable.
27329 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27330 (cmd): Rename and change type to ...
27331 (background_image_cmd_handle): ... this. All users updated.
27332 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27333 * video/bitmap_scale.c: New file.
27335 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27339 * Makefile.in (LIBSDL): New variable.
27340 (enable_grub_emu_sdl): Likewise.
27341 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27342 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27343 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27344 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27345 * util/sdl.c: New file.
27347 2010-02-06 Colin D Bennett <colin@gibibit.com>
27348 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27350 Double buffering support.
27352 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27353 * include/grub/video.h: Update comment.
27354 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27356 (grub_video_fb_doublebuf_blit_init): New prototype.
27357 * term/gfxterm.c (scroll_up): Support double buffering.
27358 (grub_gfxterm_refresh): Likewise.
27359 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27360 (grub_video_fb_doublebuf_blit_init): Likewise.
27361 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27362 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27363 'displayed_page', 'render_page' and 'update_screen'.
27364 (grub_video_vbe_fini): Free offscreen buffer.
27365 (doublebuf_pageflipping_commit): New function.
27366 (doublebuf_pageflipping_update_screen): Likewise.
27367 (doublebuf_pageflipping_init): Likewise.
27368 (double_buffering_init): Likewise.
27369 (grub_video_vbe_setup): Enable doublebuffering.
27370 (grub_video_vbe_swap_buffers): Implement.
27371 (grub_video_vbe_set_active_render_target): Handle double buffering.
27372 (grub_video_vbe_get_active_render_target): Likewise.
27373 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27374 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27375 (grub_video_vbe_enable_double_buffering): Likewise.
27376 (grub_video_vbe_swap_buffers): Use update_screen.
27377 (grub_video_set_mode): Use double buffering.
27379 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27381 * maintainance/gentrigtables.py: Remove.
27382 * lib/trig.c: Likewise.
27384 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27386 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27388 (trigtables.c): New rule.
27389 (gentrigtables): Likewise.
27390 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27392 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27394 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27397 2010-02-06 Colin D Bennet <colin@gibibit.com>
27399 Trigonometry support.
27401 * include/grub/trig.h: New file.
27402 * lib/trig.c: Likewise.
27403 * maintainance/gentrigtables.py: Likewise.
27404 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27405 (trig_mod_SOURCES): New variable.
27406 (trig_mod_CFLAGS): Likewise.
27407 (trig_mod_LDFLAGS): Likewise.
27409 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27411 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27414 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27416 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27419 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27421 * util/hostdisk.c (open_device): Don't use partition device when reading
27422 before the partition.
27423 (grub_util_biosdisk_read): Don't read from partition and before the
27424 partition in single operation.
27425 (grub_util_biosdisk_write): Don't write to partition and before the
27426 partition in single operation.
27428 2010-02-03 Torsten Landschoff <torsten@debian.org>
27430 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27433 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27435 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27437 (grub_biosdisk_write): Refuse to write to CDROM.
27439 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27441 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27443 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27445 * font/font.c (find_glyph): Check that bmp_idx is available before
27447 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27448 with (font == NULL).
27450 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
27452 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27454 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27456 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27457 * util/grub-script-check.c (getline): Fix empty lines case.
27459 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27461 * Makefile.in (check): Exit with fail status when one of the tests
27463 * tests/example_functional_test.c (example_test): Fix reversed assert.
27464 * tests/example_unit_test.c (example_test): Likewise.
27466 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
27468 * util/grub.d/10_linux.in: This script does not use any of the
27469 contents of gettext.sh, only the external command `gettext', so stop
27470 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27471 the same prefix as GRUB.)
27472 * util/grub.d/10_kfreebsd.in: Likewise.
27474 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27476 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27479 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27481 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27484 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27486 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27487 having a 4KiB and not 32KiB buffer size.
27489 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27491 * util/hostfs.c: Include `<errno.h>'.
27492 (grub_hostfs_read): Handle errors from fseeko() and fread().
27494 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27496 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27497 loop when using read hooks on files whose size isn't sector-aligned.
27499 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27501 Remove unused parameter.
27503 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27504 (grub_iso9660_open): Remove initialization of `data->length'.
27506 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27508 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27509 memleak conditions.
27511 2010-01-27 Carles Pina i Estany <carles@pina.cat>
27513 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27514 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27516 2010-01-26 Carles Pina i Estany <carles@pina.cat>
27518 * util/bin2h.c (usage): Fix warning (space after backslash).
27520 2010-01-26 Carles Pina i Estany <carles@pina.cat>
27522 * font/font.c: Include `grub/fontformat.h.
27523 Remove font file format constants.
27524 (grub_font_load): Use the new macros.
27525 * include/grub/fontformat.h: New file.
27526 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27527 (write_font_pf2): Use the new macros.
27529 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27531 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27534 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27536 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27538 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27539 (_start): Macroify `0x7F'.
27541 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27542 (make_install_device): Use "(pxe)" as fallback prefix when booting
27545 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27547 * configure.ac: Reset LIBS after check for libgcc symbols.
27549 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
27551 * util/hostdisk.c (open_device): Add trailing newline to debug
27554 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27556 * configure.ac: Check for `limits.h'.
27557 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27559 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27561 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27562 capitalize error strings.
27564 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27566 * util/grub.d/10_hurd.in: Add a recovery mode.
27568 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27570 * configure.ac: Check for libgcc symbols with -nostdlib.
27572 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27574 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27576 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27578 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27579 stack since heap may be unavailable at that point.
27580 (grub_ofconsole_gotoxy): Likewise.
27582 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27584 * configure.ac: Check for _restgpr_14_x.
27585 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27586 and _savegpr_* prototypes.
27588 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27590 Use generic grub_reboot() for i386-efi.
27592 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27593 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27594 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27596 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27598 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27599 presence of "prefix" variable as it breaks when normal.mod is
27602 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27604 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27605 stack since heap is unavailable at that point.
27607 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27609 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27610 (grub_freebsd_bootinfo): Rewritten.
27611 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27613 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27615 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27617 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27619 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27622 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
27624 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27625 around for handling "/" to the correct fix. Fix a memory leak. Use
27626 xstrdup instead of strdup.
27628 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27630 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27632 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27634 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27636 * font/font.c (struct grub_font): New member 'bmp_idx'.
27637 (font_init): Initialise 'bmp_idx'.
27638 (load_font_index): Fill 'bmp_idx'.
27639 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27641 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27643 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27646 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27648 Move context handling out of the kernel.
27650 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27651 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27652 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27653 * conf/i386-efi.rmk: Likewise.
27654 * conf/i386-ieee1275.rmk: Likewise.
27655 * conf/i386-pc.rmk: Likewise.
27656 * conf/powerpc-ieee1275.rmk: Likewise.
27657 * conf/sparc64-ieee1275.rmk: Likewise.
27658 * conf/x86_64-efi.rmk: Likewise.
27659 * include/grub/env.h: Include grub/menu.h.
27660 (grub_env_var_type): Removed.
27661 (grub_env_var): Replaced field 'type' with 'global'.
27662 (grub_env_find): New prototype.
27663 (grub_env_context_open): Remove EXPORT_FUNC.
27664 (grub_env_context_close): Likewise.
27665 (grub_env_export): Likewise.
27666 (grub_env_set_data_slot): Removed.
27667 (grub_env_get_data_slot): Likewise.
27668 (grub_env_unset_data_slot): Likewise.
27669 (grub_env_unset_menu): New prototype.
27670 (grub_env_set_menu): Likewise.
27671 (grub_env_get_menu): Likewise.
27672 * include/grub/env_private.h: New file.
27673 * include/grub/normal.h (grub_context_init): New prototype.
27674 (grub_context_fini): Likewise.
27675 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27676 * normal/context.c (grub_cmd_export): ... to here.
27677 * kern/env.c: Include env_private.h.
27678 (HASHSZ): Moved to include/grub/env_private.h.
27679 (grub_env_context): Likewise.
27680 (grub_env_sorted_var): Likewise.
27681 (current_context): Renamed from this ...
27682 (grub_current_context): ...to this. 'static' removed. All users updated.
27683 (grub_env_find): Removed 'static'.
27684 (grub_env_context_open): Moved to normal/context.c.
27685 (grub_env_context_close): Likewise.
27686 (grub_env_export): Likewise.
27687 (mangle_data_slot_name): Removed.
27688 (grub_env_set_data_slot): Likewise.
27689 (grub_env_get_data_slot): Likewise.
27690 (grub_env_unset_data_slot): Likewise.
27691 * kern/main.c (grub_set_root_dev): Don't export root.
27692 It will be done later.
27693 (grub_main): Don't export prefix.
27694 It will be done later.
27695 * normal/context.c: New file.
27696 * normal/main.c (free_menu): Use grub_env_unset_menu.
27697 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27698 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27699 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27700 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27702 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27706 * commands/setpci.c: New file.
27707 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27708 (setpci_mod_SOURCES): New variable.
27709 (setpci_mod_CFLAGS): Likewise.
27710 (setpci_mod_LDFLAGS): Likewise.
27712 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27714 Byte-addressable PCI configuration space.
27716 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27718 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27719 GRUB_PCI_REG_CACHELINE.
27720 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27721 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27722 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27723 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27724 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27725 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27726 grub_pci_make_address.
27727 (lock_rom_area): Likewise.
27728 * commands/lspci.c (grub_lspci_iter): Use macroses
27729 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27730 of grub_pci_make_address.
27731 * disk/ata.c (grub_ata_pciinit): Likewise.
27732 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27733 (GRUB_PCI_REG_VENDOR): Likewise.
27734 (GRUB_PCI_REG_DEVICE): Likewise.
27735 (GRUB_PCI_REG_COMMAND): Likewise.
27736 (GRUB_PCI_REG_STATUS): Likewise.
27737 (GRUB_PCI_REG_REVISION): Likewise.
27738 (GRUB_PCI_REG_CLASS): Likewise.
27739 (GRUB_PCI_REG_CACHELINE): Likewise.
27740 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27741 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27742 (GRUB_PCI_REG_BIST): Likewise.
27743 (GRUB_PCI_REG_ADDRESSES): Likewise.
27744 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27745 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27746 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27747 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27748 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27749 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27750 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27751 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27752 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27753 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27754 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27755 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27756 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27757 (GRUB_PCI_REG_MIN_GNT): Likewise.
27758 (GRUB_PCI_REG_MAX_LAT): Likewise.
27759 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27760 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27761 * video/efi_uga.c (find_framebuf): Likewise.
27762 * video/sm712.c (grub_video_sm712_setup): Likewise.
27763 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27766 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27768 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27769 can be reliably determined to be supported.
27771 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27773 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27774 that VESA is supported.
27775 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27778 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27780 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27782 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27784 * util/misc.c (make_system_path_relative_to_its_root): Work around
27785 special-casing of "/", as previous incarnation of this routine did.
27787 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27789 Fix any-emu compilation.
27791 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27792 * grub_bin2h_SOURCES: New variable.
27794 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27796 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27798 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27800 * util/grub.d/00_header.in: Fix handling of locale_dir.
27802 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27804 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27805 as possible unifont location (Gentoo).
27806 Reported by: Alexander Brüning
27808 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27810 Don't try to generate lists for kernel.img.
27812 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27813 (pkglib_MODULES): Remove kernel.img.
27814 (kernel_img_EXPORTS): Removed.
27815 (kernel_img_RELOCATABLE): New variable.
27816 * conf/x86_64-efi.rmk: Likewise.
27817 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27819 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27821 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27822 grub_xasprintf or grub_snprintf.
27823 (grub_vsprintf): Likewise.
27824 (grub_snprintf): New proto.
27825 (grub_vsnprintf): Likewise.
27826 (grub_xasprintf): Likewise.
27827 (grub_xvasprintf): Likewise.
27828 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27829 (grub_sprintf): Removed.
27830 (grub_vsnprintf): New function.
27831 (grub_snprintf): Likewise.
27832 (grub_xvasprintf): Likewise.
27833 (grub_xasprintf): Likewise.
27834 (grub_vsprintf): Renamed to ...
27835 (grub_vsnprintf_real): ...this. New argument max_len.
27837 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27839 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27840 fix grub-script-check warning.
27842 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27844 * include/grub/font.h (grub_font_load): Fix prototype.
27846 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27848 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27850 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27852 * include/grub/x86_64/at_keyboard.h: New file.
27854 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27856 * loader/mips/linux.c: Include missing grub/i18n.h.
27858 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27860 * normal/menu.c (notify_execution_failure): Clarify error message.
27862 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27864 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27865 return value (and revert all return statements). Update users.
27867 2010-01-20 Dan Merillat <debian@dan.merillat.org>
27869 * kern/device.c (grub_device_iterate): Allocate new part_ent
27870 structure based on sizeof (*p) rather than sizeof (p->next), to
27871 account for structure padding.
27873 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27874 disk is NULL, which might happen for LVM physical volumes with no
27877 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27879 * loader/mips/linux.c (grub_cmd_initrd)
27880 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27882 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27884 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27885 (grub_video_video_init, grub_video_bitmap_init)
27886 (grub_font_manager_init, grub_term_gfxterm_init)
27887 (grub_at_keyboard_init): New extern declarations.
27888 (grub_machine_init): Initialize gfxterm and at_keyboard.
27890 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27892 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27893 `gfxterm.mod' into core image.
27895 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27896 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27897 (kernel_img_FORMAT): Copy to ...
27899 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27900 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27901 (kernel_img_FORMAT): ... here, and ...
27903 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27904 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27905 (kernel_img_FORMAT): ... here.
27907 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27908 and input (at_keyboard) terminals in kernel.
27909 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27911 (pkglib_MODULES): Remove `pci.mod'.
27912 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27913 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27914 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27915 (at_keyboard_mod_LDFLAGS): Remove variables.
27917 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
27919 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27921 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27923 * include/grub/mips/libgcc.h: Only export symbols for functions
27924 that libgcc provides.
27926 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27930 * bus/bonito.c: New file.
27931 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27932 GRUB_PCI_NUM_DEVICES.
27933 * term/i386/pc/serial.c: Move to ...
27934 * term/serial.c: ... here. All users updated.
27935 * util/i386/pc/grub-mkimage.c: Move to ...
27936 * util/grub-mkrawimage.c: ... here. All users updated.
27937 * term/i386/pc/at_keyboard.c: Move to ...
27938 * term/at_keyboard.c: ... here. All users updated.
27939 * conf/mips-qemu-mips.rmk: New file.
27940 * conf/mips-yeeloong.rmk: Likewise.
27941 * conf/mips.rmk: Likewise.
27942 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27944 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27946 (grub_ata_pciinit): Support CS5536.
27947 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27948 * font/font_cmd.c (loadfont_command): Open file before passing it to
27950 (pseudo_file_read): New function.
27951 (pseudo_file_close): Likewise.
27952 (pseudo_fs): New structure.
27953 (load_font_module): New function.
27954 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27955 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27956 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27957 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27958 * include/grub/i386/at_keyboard.h: Split into ...
27959 * include/grub/at_keyboard.h: ... this ...
27960 * include/grub/i386/at_keyboard.h: ... and this.
27961 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27963 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27965 (grub_elf64_size): Likewise.
27966 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27968 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27969 * include/grub/i386/coreboot/serial.h: Rewritten.
27970 * include/grub/i386/ieee1275/serial.h: Include
27971 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27972 * include/grub/i386/pc/serial.h: Moved from here ...
27973 * include/grub/serial.h: ... to here. All users updated.
27974 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27975 (GRUB_PCI_NUM_BUS): Likewise.
27976 (GRUB_PCI_NUM_DEVICES): Likewise.
27977 (grub_pci_device_map_range): Add missing volatile keyword.
27978 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27979 * include/grub/mips/at_keyboard.h: New file.
27980 * include/grub/mips/cache.h: Likewise.
27981 * include/grub/mips/io.h: Likewise.
27982 * include/grub/mips/kernel.h: Likewise.
27983 * include/grub/mips/libgcc.h: Likewise.
27984 * include/grub/mips/pci.h: Likewise.
27985 * include/grub/mips/qemu-mips/boot.h: Likewise.
27986 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27987 * include/grub/mips/qemu-mips/loader.h: Likewise.
27988 * include/grub/mips/qemu-mips/memory.h: Likewise.
27989 * include/grub/mips/qemu-mips/serial.h: Likewise.
27990 * include/grub/mips/qemu-mips/time.h: Likewise.
27991 * include/grub/mips/relocator.h: Likewise.
27992 * include/grub/mips/time.h: Likewise.
27993 * include/grub/mips/types.h: Likewise.
27994 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27995 * include/grub/mips/yeeloong/boot.h: Likewise.
27996 * include/grub/mips/yeeloong/kernel.h: Likewise.
27997 * include/grub/mips/yeeloong/loader.h: Likewise.
27998 * include/grub/mips/yeeloong/memory.h: Likewise.
27999 * include/grub/mips/yeeloong/pci.h: Likewise.
28000 * include/grub/mips/yeeloong/serial.h: Likewise.
28001 * include/grub/mips/yeeloong/time.h: Likewise.
28002 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
28003 * kern/elf.c (grub_elf32_size): New parameter. All users
28005 (grub_elf64_size): Likewise.
28006 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
28007 Load modules before saying "Welcome to GRUB!".
28008 Call grub_refresh after saying "Welcome to GRUB!".
28009 * kern/mips/cache.S: New file.
28010 * kern/mips/cache_flush.S: Likewise.
28011 * kern/mips/dl.c: Likewise.
28012 * kern/mips/init.c: Likewise.
28013 * kern/mips/qemu-mips/init.c: Likewise.
28014 * kern/mips/startup.S: Likewise.
28015 * kern/mips/yeeloong/init.c: Likewise.
28016 * kern/term.c (grub_putcode): Handle NULL terminal.
28017 (grub_getcharwidth): Likewise.
28018 (grub_getkey): Likewise.
28019 (grub_checkkey): Likewise.
28020 (grub_getkeystatus): Likewise.
28021 (grub_getxy): Likewise.
28022 (grub_getwh): Likewise.
28023 (grub_gotoxy): Likewise.
28024 (grub_cls): Likewise.
28025 (grub_setcolorstate): Likewise.
28026 (grub_setcolor): Likewise.
28027 (grub_getcolor): Likewise.
28028 (grub_refresh): Likewise.
28029 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
28030 (write_jump): Add hatch nop.
28031 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
28032 * lib/mips/setjmp.S: New file.
28033 * loader/mips/linux.c: Likewise.
28034 * term/i386/pc/at_keyboard.c: Move from here ...
28035 * term/at_keyboard.c: ... to here.
28036 * term/i386/pc/serial.c: Moved from here ...
28037 * term/serial.c: ... to here. All users updated.
28038 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
28039 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
28040 (serial_translate_key_sequence): Avoid deadlock.
28041 (grub_serial_getkey): Handle backspace.
28042 (grub_serial_putchar): Fix newline handling.
28043 * util/i386/pc/grub-mkimage.c: Move from here ...
28044 * util/grub-mkrawimage.c: ... to here. All users updated.
28045 (generate_image): New parameters 'font_path' and 'format'.
28046 Support embedding font.
28047 Use grub_host_to_target* instead of grub_cpu_to_le*.
28048 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
28049 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
28050 (options): New option "--font".
28052 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
28053 (main): Handle "--font".
28054 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
28055 (grub_virtual_screen_setup): Set bg_color_display.
28056 (redraw_screen_rect): Use bg_color_display instead of incorrect
28058 (grub_gfxterm_cls): Likewise.
28059 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
28060 Support embedding config file.
28061 (add_segments): Likewise.
28062 (options): New option "--config".
28063 (main): Handle "--config".
28064 * video/sm712.c: New file.
28066 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28068 Fix parallel builds.
28070 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
28071 font.c depend on ascii.h).
28073 2010-01-12 Carles Pina i Estany <carles@pina.cat>
28075 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28077 2010-01-11 Carles Pina i Estany <carles@pina.cat>
28079 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28080 By default: disabled.
28081 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28084 2010-01-10 Carles Pina i Estany <carles@pina.cat>
28086 * font/font.c: Update copyright years.
28087 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28089 2010-01-10 Carles Pina i Estany <carles@pina.cat>
28091 * font/font.c: Include `ascii.h'.
28092 (ASCII_BITMAP_SIZE): New macro.
28093 (ascii_font_glyph): Define.
28094 (ascii_glyph_lookup): New function.
28095 (grub_font_get_string_width): Change comment. If glyph not found, use
28096 ascii_glyph_lookup.
28097 (grub_font_get_glyph_with_fallback): If glyph not available returns
28098 ascii_glyph_lookup.
28099 * util/grub-mkfont.c (file_formats): New enum.
28100 (options): Add `ascii-bitmaps' new option.
28101 (usage): Add `asii-bitmaps' new option.
28102 (write_font_ascii_bitmap): New function.
28103 (write_font): Rename to ...
28104 (write_font_p2): ... this. Remove print_glyphs call.
28105 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28106 used. Call print_glyphs.
28107 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28109 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28111 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28112 (grub_bin2h_SOURCES): New variable.
28113 * util/bin2h.c: New file.
28115 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28117 * include/multiboot.h: Resynced with spec.
28118 * include/multiboot2.h: Likewise.
28119 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28120 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28122 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28124 * include/grub/term.h (grub_term_register_input,
28125 grub_term_register_output): Check return of terminal init()
28126 routines, and abort if errors are raised.
28128 * commands/terminal.c: Update copyright year.
28130 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28132 * commands/terminal.c (grub_cmd_terminal_input)
28133 (grub_cmd_terminal_output): Check return of terminal init()
28134 routines, and abort if errors are raised.
28136 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28138 * include/grub/i386/bsd.h: Fix include pathes.
28140 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28142 Add missing *BSD copyright headers.
28144 * include/grub/aout.h: Add BSD licence.
28145 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28146 * include/grub/i386/freebsd_linker.h: ... here,
28147 * include/grub/i386/freebsd_reboot.h: ... here,
28148 * include/grub/i386/netbsd_bootinfo.h: ... here,
28149 * include/grub/i386/netbsd_reboot.h: ... here,
28150 * include/grub/i386/openbsd_bootarg.h: ... here,
28151 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28152 licence to each file.
28154 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28156 * acinclude.m4: Remove `nop' assembly instruction; it's not
28157 implemented by all architectures.
28159 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28161 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28162 ELILO. This is no longer necessary.
28164 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28166 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28168 * util/grub-script-check.c: grub-script-check tool.
28169 * conf/common.rmk: Make rules for grub-script-check.
28171 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28173 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28174 spotting it back in 2008. Shame on me for forgetting he did.
28176 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28178 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28180 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28181 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28182 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28183 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28184 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28185 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28187 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28189 * include/grub/test.h: Add license header.
28190 * tests/example_functional_test.c: Likewise.
28191 * tests/example_unit_test.c: Likewise.
28192 * tests/lib/functional_test.c: Likewise.
28193 * tests/lib/test.c: Likewise.
28194 * tests/lib/unit_test.c: Likewise.
28196 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28198 Use flag-based instead of hook-based video mode selection and "auto"
28201 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28202 (grub_video_set_mode): Changed prototype. All users updated.
28203 (grub_video_check_mode_flag): New inline function.
28204 * video/video.c (parse_modespec): New function.
28205 (grub_video_set_mode): Parse flags and keywords.
28207 2010-01-17 Carles Pina i Estany <carles@pina.cat>
28209 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28212 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28214 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28216 2010-01-16 Carles Pina i Estany <carles@pina.cat>
28218 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28220 * util/grub-emu.c (usage): Likewise.
28221 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28222 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28223 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28224 * util/i386/pc/grub-setup.c (usage): Likewise.
28226 2010-01-16 Carles Pina i Estany <carles@pina.cat>
28228 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28230 (grub_util_info): Likewise.
28231 (grub_util_error): Likewise.
28232 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28233 and/or new lines in `grub_util_warna', `grub_util_info',
28234 `grub_util_error' calls.
28235 * util/getroot.c: Likewise.
28236 * util/grub-editenv.c: Likewise.
28237 * util/grub-emu.c: Likewise.
28238 * util/grub-fstest.c: Likewise.
28239 * util/grub-mkdevicemap.c: Likewise.
28240 * util/grub-mkfont.c: Likewise.
28241 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28242 * util/grub-mkrelpath.c: Likewise.
28243 * util/grub-pe2elf.c: Likewise.
28244 * util/grub-probe.c: Likewise.
28245 * util/hostdisk.c: Likewise.
28246 * util/i386/efi/grub-mkimage.c: Likewise.
28247 * util/i386/pc/grub-mkimage.c: Likewise.
28248 * util/i386/pc/grub-setup.c: Likewise.
28249 * util/ieee1275/ofpath.c: Likewise.
28250 * util/mkisofs/eltorito.c: Likewise.
28251 * util/mkisofs/rock.c: Likewise.
28252 * util/mkisofs/write.c: Likewise.
28253 * util/raid.c: Likewise.
28254 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28255 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28257 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28259 Enable multiboot on non-pc.
28261 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28262 multiboot.mod and multiboot2.mod to ...
28263 * conf/i386.rmk (pkglib_MODULES): ... here.
28264 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28266 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28267 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28269 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28270 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28272 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28273 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28275 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28276 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28278 (ata_mod_SOURCES): Removed.
28279 (ata_mod_CFLAGS): Likewise.
28280 (ata_mod_LDFLAGS): Likewise.
28281 (relocator_mod_SOURCES): Removed.
28282 (relocator_mod_CFLAGS): Likewise.
28283 (relocator_mod_ASFLAGS): Likewise.
28284 (relocator_mod_LDFLAGS): Likewise.
28286 * include/grub/x86_64/multiboot.h: New file.
28287 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28290 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28292 Video multiboot support.
28294 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28296 * include/multiboot.h: Resynced with multiboot specification.
28297 * include/multiboot2.h: Likewise.
28298 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28299 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28300 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28301 (HAS_VGA_TEXT): Likewise.
28302 (accepts_video): New variable.
28303 (grub_multiboot_set_accepts_video): New function.
28304 (grub_multiboot_get_mbi_size): Account for video structures.
28305 (set_video_mode): New function.
28306 (retrieve_video_parameters): Likewise.
28307 (grub_multiboot_make_mbi): Fill video fields.
28309 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28313 * include/grub/video.h (grub_video_driver_id): New type.
28314 (grub_video_adapter): New member 'id'. All users updated.
28315 (grub_video_get_driver_id): New proto.
28316 * video/video.c (grub_video_get_driver_id): New function.
28318 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28320 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28323 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28325 * normal/cmdline.c (print_completion): Gettextizze.
28327 2001-01-14 Carles Pina i Estany <carles@pina.cat>
28329 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28331 2010-01-14 Carles Pina i Estany <carles@pina.cat>
28333 * gettext/gettext.c (grub_gettext_translate): Push and pop
28335 (grub_gettext_delete_list): Change comment style.
28336 * kern/err.c (grub_error): Gettextizze.
28337 (grub_fatal): Gettextizze.
28339 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28341 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28342 (grub_linux16_real_boot): ... this.
28343 * kern/i386/loader.S: Likewise.
28344 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28345 (grub_linux16_boot): New function. Switches to text mode and calls
28346 grub_linux16_real_boot().
28348 * loader/i386/bsd.c: Include `<grub/video.h>'.
28349 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28350 text mode before calling grub_unix_real_boot().
28352 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28353 (grub_multiboot_boot): Switch to text mode before calling
28354 grub_relocator32_boot().
28356 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28357 (grub_chainloader_boot): Switch to text mode before calling
28358 grub_chainloader_real_boot().
28360 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28361 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28363 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28366 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28367 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28369 * util/grub.d/00_header.in: Define a "savedefault" function for use
28371 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28373 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
28374 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28376 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28377 saved_entry if boot_once is unset.
28378 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28379 previous saved entry (i.e. grub-reboot).
28381 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28383 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28385 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28387 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28389 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28391 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28393 * util/grub-reboot.in: Fix --version output.
28394 * util/grub-set-default.in: Likewise.
28396 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28398 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28401 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28403 * util/grub.d/00_header.in: Quote the value assigned to `default',
28404 in case it contains spaces.
28406 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
28408 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28409 `save_default_entry' call from the macosx case to the linux case.
28411 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
28412 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
28414 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28415 in `chosen' environment variable.
28416 * normal/menu_text.c (get_entry_number): Check if the variable
28417 matches the title of a menu entry.
28418 (run_menu): Pass menu to get_entry_number.
28420 * util/grub-reboot.in: New file.
28421 * util/grub-set-default.in: New file.
28422 * conf/common.rmk (grub-reboot): New utility.
28423 (grub-set-default): New utility.
28425 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28426 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28427 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28428 move it to `saved_entry' for the next boot. Load environment on
28430 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28431 * util/grub.d/10_hurd.in: Likewise.
28432 * util/grub.d/10_linux.in (linux_entry): Likewise.
28433 * util/grub.d/10_windows.in: Likewise.
28434 * util/grub.d/30_os-prober.in: Likewise.
28436 * util/grub-install.in: Create environment block.
28437 * util/i386/efi/grub-install.in: Likewise.
28438 * util/ieee1275/grub-install.in: Likewise.
28439 * util/sparc64/ieee1275/grub-install.in: Likewise.
28441 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28443 Unit testing framework for GRUB.
28445 * Makefile.in: Test framework build rules for 'make check'.
28446 * conf/tests.rmk: Build rules for individual tests and framework.
28448 * include/grub/test.h: Header file for whitebox tests.
28449 * tests/lib/functional_test.c: Framework support for whitebox
28451 * tests/lib/test.c: Common whitebox testing code for unit and
28453 * tests/lib/unit_test.c: Framework support for whitebox unit
28456 * tests/util/grub-shell-tester.in: Support utility for grub-script
28458 * tests/util/grub-shell.in: Utility to execute grub-script
28459 commands in a Qemu instance.
28461 * tests/example_functional_test.c: Example whitebox functional
28463 * tests/example_grub_script_test.in: Example grub-script test.
28464 * tests/example_scripted_test.in: Example scripted test.
28465 * tests/example_unit_test.c: Example whitebox unit test.
28467 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28469 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28470 Add loader/i386/multiboot_mbi.c.
28471 (multiboot2_mod_SOURCES): Likewise.
28472 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28473 (multiboot2_mod_SOURCES): Likewise.
28474 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28475 (grub_multiboot_make_mbi): Likewise.
28476 (grub_multiboot_free_mbi): Likewise.
28477 (grub_multiboot_init_mbi): Likewise.
28478 (grub_multiboot_add_module): Likewise.
28479 (grub_multiboot_set_bootdev): Likewise.
28480 * loader/i386/multiboot.c (mbi): Removed.
28481 (mbi_dest): Likewise.
28482 (alloc_mbi): New variable.
28483 (grub_multiboot_payload_size): Removed. All users updated.
28484 (grub_multiboot_pure_size): New variable.
28485 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28486 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28487 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28488 (grub_fill_multiboot_mmap): Likewise.
28489 (grub_multiboot_get_bootdev): Likewise.
28490 (grub_multiboot): Use multiboot_mbi functions.
28491 * loader/i386/multiboot_mbi.c: New file.
28493 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28495 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28496 it would result in module crash.
28498 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28500 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28501 (grub_ofconsole_getwh): Split to ...
28502 (grub_ofconsole_getwh): ... this.
28503 (grub_ofconsole_dimensions): ...and this.
28504 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28506 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28508 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28510 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28512 * loader/i386/pc/multiboot2.c: Removed stalled file.
28514 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28516 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28517 Reported by: Grégoire Sutre
28519 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28521 * util/misc.c (canonicalize_file_name): New function.
28522 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28523 instead of realpath().
28525 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
28527 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28528 and make it clearer that it's optional. Based on confusion
28531 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28533 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28534 in premature implicit newline.
28536 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28538 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28539 which resulted in garbled command line at the end of screen.
28541 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28543 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28544 initialization with similar approach as with other Linux loaders.
28546 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28548 Fix i386-ieee1275 build.
28550 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28551 and grub_term_height() for video_{width,height} initialization.
28553 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28555 Fix grub-emu build.
28557 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28559 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28560 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28562 Support for multiple terminals.
28564 * Makefile.in (pkglib_DATA): terminal.lst.
28565 (terminal.lst): New target.
28566 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28567 (GRUB_MOD_INIT(handler)): Likewise.
28568 (GRUB_MOD_FINI(handler)): Likewise.
28569 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28570 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28571 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28572 (grub_cmd_sleep): Use grub_term_save_pos.
28573 * commands/terminal.c: New file.
28574 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28575 commands/terminal.c and lib/charset.c.
28576 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28577 (pkglib_MODULES): Add terminal.mod.
28578 (terminal_mod_SOURCES): New variable.
28579 (terminal_mod_CFLAGS): Likewise.
28580 (terminal_mod_LDFLAGS): Likewise.
28581 * genhandlerlist.sh: Don't handle terminals.
28582 * genmk.rb: Generate terminal-*.lst.
28583 * genterminallist.sh: New file.
28584 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28585 (grub_is_valid_utf8): Likewise.
28586 (grub_utf8_to_ucs4_alloc): Likewise.
28587 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28588 (grub_menu_register_viewer): Changed argument.
28589 (grub_menu_try_text): New proto.
28590 (grub_gfxmenu_try_hook): New declaration.
28591 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28592 (grub_menu_init_page): Additional argument term.
28593 (grub_normal_init_page): Likewise.
28594 (grub_cmdline_get): Arguments simplified.
28595 (grub_utf8_to_ucs4_alloc): Removed.
28596 (grub_print_ucs4): Additional argument term.
28597 (grub_getstringwidth): Likewise.
28598 (grub_print_message_indented): Likewise.
28599 (grub_menu_text_register_instances): New proto.
28600 (grub_show_menu): Likewise.
28601 (read_terminal_list): Likewise.
28602 (grub_set_more): Likewise.
28603 * include/grub/parser.h: Include handler.h.
28604 * include/grub/reader.h: Rewritten.
28605 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28606 (GRUB_TERM_WIDTH): Changed to function.
28607 (GRUB_TERM_HEIGHT): Likewise.
28608 (GRUB_TERM_BORDER_WIDTH): Likewise.
28609 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28610 (GRUB_TERM_NUM_ENTRIES): Likewise.
28611 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28612 (GRUB_TERM_CURSOR_X): Likewise.
28613 (grub_term_input_class): Likewise.
28614 (grub_term_output_class): Likewise.
28615 (grub_term_outputs_disabled): New declaration.
28616 (grub_term_inputs_disabled): Likewise.
28617 (grub_term_outputs): Likewise.
28618 (grub_term_inputs): Likewise.
28619 (grub_term_register_input): Rewritten.
28620 (grub_term_register_output): Likewise.
28621 (grub_term_unregister_input): Likewise.
28622 (grub_term_unregister_output): Likewise.
28623 (FOR_ACTIVE_TERM_INPUTS): New macro.
28624 (FOR_DISABLED_TERM_INPUTS): Likewise.
28625 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28626 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28627 * include/grub/terminfo.h: Add oterm argument to all protypes.
28628 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28629 Use grub_rescue_run.
28630 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28632 * kern/reader.c: Removed. All users updated.
28633 * kern/rescue_reader.c (grub_rescue_init): Removed.
28634 (grub_rescue_reader): Likewise.
28635 (grub_register_rescue_reader): Likewise.
28636 (grub_rescue_run): New function based on kern/reader.c.
28637 * kern/term.c: Adapted for multiterm.
28638 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28639 (grub_is_valid_utf8): Likewise.
28640 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28641 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28643 * loader/i386/linux.c (grub_linux_boot): Likewise.
28644 * normal/auth.c (grub_username_get): New function.
28645 (grub_auth_check_authentication): Use grub_username_get.
28646 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28647 * normal/color.c: Adapt for multiterm.
28648 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28649 (grub_normal_init_page): Additional argument term.
28650 (read_lists): Call read_terminal_lists.
28651 (grub_enter_normal_mode): Call grub_cmdline_run.
28652 Handle grub_normal_exit_level.
28653 (grub_cmd_normal): Make reentrant.
28654 (grub_cmd_normal_exit): New function.
28655 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28656 * normal/menu.c: Adapt for multiterm.
28657 * normal/menu_entry.c: Likewise.
28658 * normal/menu_text.c: Likewise.
28659 * normal/menu_viewer.c: Removed. All users updated.
28660 * normal/term.c: New file.
28661 * util/console.c: Change order of includes to workaround a bug in
28663 * term/terminfo.c: New argument oterm on all exported functions.
28665 * util/grub-editenv.c (grub_term_input_class): Removed.
28666 (grub_term_output_class): Likewise.
28668 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28670 Make loader output a bit more user-friendly.
28672 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28673 is being loaded. Likewise for the Hurd.
28675 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28676 that kernel of FreeBSD ${version} is being loaded.
28678 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28680 (grub_cmd_initrd): Likewise.
28681 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28682 that Linux ${version} is being loaded. Likewise for initrd.
28684 2010-01-09 Carles Pina i Estany <carles@pina.cat>
28686 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28688 2010-01-08 Carles Pina i Estany <carles@pina.cat>
28690 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28691 (GRUB_MOD_INIT): Gettextizze.
28692 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28693 (GRUB_MOD_INIT): Gettextizze.
28694 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28695 (grub_cmd_linux): Capitalise Linux.
28696 (GRUB_MOD_INIT): Gettextizze.
28697 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28698 (grub_cmd_linux): Capitalise Linux.
28699 (GRUB_MOD_INIT): Gettextizze.
28700 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28701 (grub_cmd_linux): Capitalise Linux.
28702 (GRUB_MOD_INIT): Gettextizze.
28703 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28704 (GRUB_MOD_INIT): Gettextizze.
28705 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28706 (grub_cmd_linux): Capitalise Linux.
28707 (GRUB_MOD_INIT): Gettextizze.
28708 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28709 (grub_cpu_xnu_init): Gettextizze.
28710 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28711 (GRUB_MOD_INIT): Gettextizze.
28712 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28713 (GRUB_MOD_INIT): Gettextizze.
28714 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28715 (grub_linux_load64): Capitalise Linux.
28716 (GRUB_MOD_INIT): Gettextizze.
28717 * loader/xnu.c: Include `<grub/i18n.h>'.
28718 (GRUB_MOD_INIT): Gettextizze.
28719 * po/POTFILES: Add `loader/efi/appleloader.c',
28720 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28721 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28722 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28723 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28724 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28725 and `loader/xnu.c'.
28727 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28729 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28731 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28733 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28734 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28735 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28737 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28739 Reset Multiboot 2 support. New loader implements the draft in
28740 /branches/multiboot2 and shares as much code as possible with the
28741 production Multiboot 1 implementation.
28743 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28744 * loader/multiboot2.c: Likewise.
28745 * loader/i386/multiboot_helper.S: Likewise.
28746 * include/multiboot2.h: Replace with latest version from the draft
28747 in /branches/multiboot2.
28749 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28750 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28751 and `loader/multiboot2.c'.
28752 (pkglib_MODULES): Add `multiboot2.mod'.
28753 (multiboot2_mod_SOURCES): New variable.
28754 (multiboot2_mod_LDFLAGS): Likewise.
28755 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28757 * conf/i386-pc.rmk: Likewise.
28759 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28760 (multiboot_mod_SOURCES): Remove variable.
28761 (multiboot_mod_LDFLAGS): Likewise.
28762 (multiboot_mod_CFLAGS): Likewise.
28764 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28765 `<multiboot2.h>' instead of `<multiboot.h>'.
28766 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28767 (MULTIBOOT_HEADER_MAGIC): New macros.
28769 * loader/multiboot_loader.c (module_version_status): Remove variable.
28770 (find_multi_boot2_header): Remove function.
28771 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28772 logic. Always check for the Multiboot version we're compiling for.
28773 (grub_cmd_module_loader): Likewise.
28774 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28775 command instead of `multiboot'.
28777 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28779 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28780 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28783 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28784 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28786 Fix breakage introduced with previous commit.
28788 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28790 * normal/handler.c (read_handler_list): Revert part of previous commit
28791 affecting this file.
28792 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28793 (grub_normal_execute): ... here.
28795 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28797 Merge prefix-redefinition-fix branch.
28799 * normal/autofs.c (read_fs_list): Make function capable of being
28800 run multiple times, gracefuly replacing the previous data
28802 * normal/dyncmd.c (read_command_list): Likewise.
28803 * normal/handler.c (read_handler_list): Likewise.
28804 * normal/main.c (read_lists): New function. Calls all the
28805 list reading functions.
28806 (grub_normal_execute): Use read_lists() instead of calling all
28807 list reading functions explicitly. Register read_lists() as a
28808 variable hook attached to ${prefix}.
28810 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28812 Merge crypto branch.
28814 * Makefile.in (pkglib_DATA): Add crypto.lst.
28815 (crypto.lst): New target.
28816 * commands/hashsum.c: New file.
28817 * commands/password.c (check_password): Use grub_crypto_memcmp.
28818 * commands/password_pbkdf2.c: New file.
28819 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28820 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28821 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28822 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28823 -I$(srcdir)/lib/libgcrypt_wrap.
28824 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28825 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28826 password_pbkdf2.mod.
28827 (crypto_mod_SOURCES): New variable.
28828 (crypto_mod_CFLAGS): Likewise.
28829 (crypto_mod_LDFLAGS): Likewise.
28830 (hashsum_mod_SOURCES): New variable.
28831 (hashsum_mod_CFLAGS): Likewise.
28832 (hashsum_mod_LDFLAGS): Likewise.
28833 (pbkdf2_mod_SOURCES): New variable.
28834 (pbkdf2_mod_CFLAGS): Likewise.
28835 (pbkdf2_mod_LDFLAGS): Likewise.
28836 (password_pbkdf2_mod_SOURCES): New variable.
28837 (password_pbkdf2_mod_CFLAGS): Likewise.
28838 (password_pbkdf2_mod_LDFLAGS): Likewise.
28839 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28840 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28841 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28842 Include conf/gcry.rmk.
28843 * include/grub/auth.h: Rewritten.
28844 * include/grub/crypto.h: New file.
28845 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28846 * include/grub/normal.h (read_crypto_list): New prototype.
28847 * lib/crypto.c: New file.
28848 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28849 * lib/pbkdf2.c: Likewise.
28850 * normal/auth.c (grub_auth_strcmp): Removed.
28851 (grub_iswordseparator): Likewise.
28852 (grub_auth_strword): Likewise.
28853 (is_authenticated): Use grub_strword.
28854 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28855 and grub_strword. Pass entered password to authentication callback.
28856 * normal/crypto.c: New file.
28857 * normal/main.c: Call read_crypto_list.
28858 * util/grub-mkpasswd-pbkdf2.c: New file.
28859 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28861 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28863 Fix descent and ascent calculation.
28865 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28866 (options): New option "asce".
28868 (add_char): Ignore invalid glyphs for descent calculation.
28869 Calculate ascent from actual content.
28870 (print_glyphs): Use 'asce'.
28871 (write_font): Likewise. Allow ascent override.
28872 (main): Handle "asce" option.
28874 2010-01-06 Carles Pina i Estany <carles@pina.cat>
28876 * kern/err.c: Include `<grub/i18n.h>'.
28877 (grub_print_error): Add full stop. Gettextizze.
28878 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28879 (grub_bsd_load_elf): Capitalise ELF.
28880 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28881 (grub_cmd_freebsd_module): Likewise.
28882 (grub_cmd_freebsd_module_elf): Likewise.
28883 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28885 2010-01-06 Carles Pina i Estany <carles@pina.cat>
28887 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28888 * commands/search_file.c (HELP_MESSAGE): New macro.
28889 * commands/search_label.c (HELP_MESSAGE): Likewise.
28890 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28891 * po/POTFILES: Add `commands/search_file.c',
28892 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28893 `commands/search.c'.
28895 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28897 * config.rpath: Update from Gnulib.
28899 2010-01-05 Yves Blusseau <blusseau@zetam.org>
28901 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28903 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28905 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28907 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28909 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28910 arguments to fread so that we get a return value in bytes, rather
28911 than something that will normally be rounded down to 0.
28912 Adjust error handling to avoid producing garbage when size_t is not
28913 the same size as long long.
28915 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
28917 * util/mkisofs/write.c (padblock_write): Check return value of
28920 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28922 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28925 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28927 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28929 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28930 instead of manual alignment.
28931 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28932 verbose). Avoid attempts to read past end of the device
28933 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28934 but GRUB_DISK_CACHE_SIZE may exceed that).
28936 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28938 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28939 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28942 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28944 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28946 (grub_efi_piwg_device_path): New structure
28947 (grub_efi_piwg_device_path_t): New type.
28948 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28949 (devpath_1): Transform to a structure. All users updated.
28950 (devpath_2): Likewise.
28951 (devpath_3): Likewise.
28952 (devpath_4): Likewise.
28953 (devpath_5): Likewise.
28955 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28957 * loader/efi/appleloader.c: Restored. Update all users.
28959 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28961 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28963 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28964 (struct boot_blocklist): Move from here ...
28965 * include/grub/i386/pc/boot.h [ASM_FILE]
28966 (struct grub_boot_blocklist): ... to here. Update all users.
28967 (setup): Only initialize `start' member of `first_block'
28968 structure. Add assert() calls to verify the other members.
28970 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28971 (generate_image): Fix broken blocklist length initialization.
28972 Add assert() call to verify blocklist `segment' field.
28974 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28976 * loader/efi/appleloader.c: Remove. Update all users.
28978 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28980 * boot/i386/pc/boot.S: Update copyright year.
28981 * boot/i386/pc/cdboot.S: Likewise.
28982 * boot/i386/pc/diskboot.S: Likewise.
28983 * boot/i386/pc/lnxboot.S: Likewise.
28984 * boot/i386/pc/pxeboot.S: Likewise.
28985 * bus/pci.c: Likewise.
28986 * commands/cmp.c: Likewise.
28987 * commands/help.c: Likewise.
28988 * commands/hexdump.c: Likewise.
28989 * commands/i386/pc/halt.c: Likewise.
28990 * commands/i386/pc/play.c: Likewise.
28991 * commands/i386/pc/vbeinfo.c: Likewise.
28992 * commands/ls.c: Likewise.
28993 * commands/test.c: Likewise.
28994 * disk/dmraid_nvidia.c: Likewise.
28995 * disk/i386/pc/biosdisk.c: Likewise.
28996 * disk/ieee1275/nand.c: Likewise.
28997 * disk/ieee1275/ofdisk.c: Likewise.
28998 * disk/lvm.c: Likewise.
28999 * disk/raid.c: Likewise.
29000 * disk/raid6_recover.c: Likewise.
29001 * disk/scsi.c: Likewise.
29002 * fs/affs.c: Likewise.
29003 * fs/cpio.c: Likewise.
29004 * fs/ext2.c: Likewise.
29005 * fs/hfs.c: Likewise.
29006 * fs/iso9660.c: Likewise.
29007 * fs/ntfs.c: Likewise.
29008 * fs/sfs.c: Likewise.
29009 * fs/udf.c: Likewise.
29010 * fs/ufs.c: Likewise.
29011 * fs/xfs.c: Likewise.
29012 * gencmdlist.sh: Likewise.
29013 * genmk.rb: Likewise.
29014 * include/grub/disk.h: Likewise.
29015 * include/grub/efi/api.h: Likewise.
29016 * include/grub/efi/efi.h: Likewise.
29017 * include/grub/efi/pe32.h: Likewise.
29018 * include/grub/elf.h: Likewise.
29019 * include/grub/fs.h: Likewise.
29020 * include/grub/i386/at_keyboard.h: Likewise.
29021 * include/grub/i386/pc/memory.h: Likewise.
29022 * include/grub/i386/pc/vbe.h: Likewise.
29023 * include/grub/i386/pci.h: Likewise.
29024 * include/grub/i386/tsc.h: Likewise.
29025 * include/grub/ieee1275/ieee1275.h: Likewise.
29026 * include/grub/ntfs.h: Likewise.
29027 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29028 * include/grub/sparc64/libgcc.h: Likewise.
29029 * include/grub/symbol.h: Likewise.
29030 * include/grub/types.h: Likewise.
29031 * include/multiboot2.h: Likewise.
29032 * io/gzio.c: Likewise.
29033 * kern/device.c: Likewise.
29034 * kern/disk.c: Likewise.
29035 * kern/efi/efi.c: Likewise.
29036 * kern/efi/mm.c: Likewise.
29037 * kern/elf.c: Likewise.
29038 * kern/file.c: Likewise.
29039 * kern/i386/dl.c: Likewise.
29040 * kern/i386/pc/init.c: Likewise.
29041 * kern/i386/pc/startup.S: Likewise.
29042 * kern/ieee1275/ieee1275.c: Likewise.
29043 * kern/ieee1275/init.c: Likewise.
29044 * kern/main.c: Likewise.
29045 * kern/mm.c: Likewise.
29046 * kern/powerpc/dl.c: Likewise.
29047 * kern/sparc64/dl.c: Likewise.
29048 * kern/x86_64/dl.c: Likewise.
29049 * lib/hexdump.c: Likewise.
29050 * loader/efi/appleloader.c: Likewise.
29051 * loader/i386/ieee1275/linux.c: Likewise.
29052 * loader/i386/pc/chainloader.c: Likewise.
29053 * loader/i386/pc/linux.c: Likewise.
29054 * loader/i386/pc/multiboot2.c: Likewise.
29055 * loader/ieee1275/multiboot2.c: Likewise.
29056 * loader/multiboot2.c: Likewise.
29057 * loader/multiboot_loader.c: Likewise.
29058 * loader/powerpc/ieee1275/linux.c: Likewise.
29059 * normal/completion.c: Likewise.
29060 * normal/menu_entry.c: Likewise.
29061 * partmap/apple.c: Likewise.
29062 * util/grub.d/10_hurd.in: Likewise.
29063 * util/hostfs.c: Likewise.
29064 * video/readers/png.c: Likewise.
29066 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
29068 * include/grub/misc.h (GNUC_PREREQ): New macro.
29069 (ATTRIBUTE_ERROR): New macro.
29070 * include/grub/list.h (grub_bad_type_cast_real): Use
29073 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29075 * normal/menu_text.c (print_message): Change messages.
29077 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29079 * normal/menu_entry.c (store_completion): Gettextizze.
29081 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29083 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29085 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29087 * po/POTFILES: Sort correctly.
29089 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29091 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29092 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29093 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29095 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29096 summary. Gettextizze the strings.
29097 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29098 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29099 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29101 (GRUB_MOD_INIT): Remove command name from summary.
29102 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29104 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29105 * term/i386/pc/serial.c (options): Add full stops.
29106 (GRUB_MOD_INIT): Remove command name from the summary.
29108 2010-01-03 Carles Pina i Estany <carles@pina.cat>
29110 * commands/acpi.c: Gettextizze help strings and/or options. Include
29111 `grub/i18n.h' if needed.
29112 * commands/blocklist.c: Likewise.
29113 * commands/boot.c: Likewise.
29114 * commands/cat.c: Likewise.
29115 * commands/cmp.c: Likewise.
29116 * commands/configfile.c: Likewise.
29117 * commands/crc.c: Likewise.
29118 * commands/date.c: Likewise.
29119 * commands/echo.c: Likewise.
29120 * commands/efi/fixvideo.c: Likewise.
29121 * commands/efi/loadbios.c: Likewise.
29122 * commands/gptsync.c: Likewise.
29123 * commands/halt.c: Likewise.
29124 * commands/handler.c: Likewise.
29125 * commands/hdparm.c: Likewise.
29126 * commands/hexdump.c: Likewise.
29127 * commands/i386/cpuid.c: Likewise.
29128 * commands/i386/pc/drivemap.c: Likewise.
29129 * commands/i386/pc/halt.c: Likewise.
29130 * commands/i386/pc/pxecmd.c: Likewise.
29131 * commands/i386/pc/vbeinfo.c: Likewise.
29132 * commands/i386/pc/vbetest.c: Likewise.
29133 * commands/ieee1275/suspend.c: Likewise.
29134 * commands/keystatus.c: Likewise.
29135 * commands/loadenv.c: Likewise.
29136 * commands/ls.c: Likewise.
29137 * commands/lsmmap.c: Likewise.
29138 * commands/lspci.c: Likewise.
29139 * commands/memrw.c: Likewise.
29140 * commands/minicmd.c: Likewise.
29141 * commands/parttool.c: Likewise.
29142 * commands/password.c: Likewise.
29143 * commands/probe.c: Likewise.
29144 * commands/read.c: Likewise.
29145 * commands/reboot.c: Likewise.
29146 * commands/search.c: Likewise.
29147 * commands/sleep.c: Likewise.
29148 * commands/test.c: Likewise.
29149 * commands/true.c: Likewise.
29150 * commands/usbtest.c: Likewise.
29151 * commands/videotest.c: Likewise.
29152 * commands/xnu_uuid.c: Likewise.
29153 * disk/loopback.c: Likewise.
29154 * hello/hello.c: Likewise.
29155 * loader/i386/bsd.c: Likewise.
29156 * term/i386/pc/serial.c: Likewise.
29157 * po/POTFILES: Add new files.
29159 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
29161 * term/i386/pc/at_keyboard.c
29162 (keyboard_controller_wait_untill_ready): Rename to ...
29163 (keyboard_controller_wait_until_ready): ... this. Update all users.
29165 2010-01-01 Carles Pina i Estany <carles@pina.cat>
29167 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29168 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29169 string using string width.
29170 * normal/menu_text.c (grub_print_message_indented): Use
29171 grub_print_spaces and not print_spaces.
29172 (print_timeout): Likewise.
29173 (print_spaces): Move to...
29174 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29176 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29178 Import from Gnulib.
29180 * gnulib/getdelim.c: New file.
29181 * gnulib/getline.c: Likewise.
29183 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29185 * include/grub/list.h (grub_assert_fail): Removed.
29186 (grub_bad_type_cast_real): New function.
29187 (grub_bad_type_cast): New macro.
29188 (GRUB_AS_LIST): Use grub_bad_type_cast.
29189 (GRUB_AS_LIST_P): Likewise.
29190 (GRUB_AS_NAMED_LIST): Likewise.
29191 (GRUB_AS_NAMED_LIST_P): Likewise.
29192 (GRUB_AS_PRIO_LIST): Likewise.
29193 (GRUB_AS_PRIO_LIST_P): Likewise.
29194 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
29196 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29198 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29201 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29203 * configure.ac: Check for TARGET_CFLAGS initialization before we
29204 initialize it ourselves (sigh).
29205 Move a few modifications to TARGET_CFLAGS to be unconditional
29206 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29209 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29210 * term/i386/pc/at_keyboard.c
29211 (keyboard_controller_wait_untill_ready): Likewise.
29212 (keyboard_controller_led): Rename `led_status' paramter to avoid
29215 2009-12-28 Carles Pina i Estany <carles@pina.cat>
29217 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29220 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29222 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29224 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29226 * normal/menu_text.c (grub_print_message_indented): Prevent
29227 past-the-end-of-array dereference.
29229 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29231 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29232 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29234 2009-12-27 Carles Pina i Estany <carles@pina.cat>
29236 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29237 * normal/main.c (grub_normal_read_line): Remove a space from the
29240 2009-12-27 Carles Pina i Estany <carles@pina.cat>
29242 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29243 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29244 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29245 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29246 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29247 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29248 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29250 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29252 * video/readers/jpeg.c (cmd): Declare.
29253 (grub_cmd_jpegtest): Use `grub_command_t' type.
29254 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29256 (GRUB_MOD_FINI): Use `cmd' to unregister.
29257 * video/readers/png.c (cmd): Declare.
29258 (grub_cmd_pngtest): Use `grub_command_t' type.
29259 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29261 (GRUB_MOD_FINI): Use `cmd' to unregister.
29262 * video/readers/tga.c (cmd): Declare.
29263 (grub_cmd_tgatest): Use `grub_command_t' type.
29264 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29266 (GRUB_MOD_FINI): Use `cmd' to unregister.
29268 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29270 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29272 * kern/corecmd.c (grub_register_core_commands): Likewise.
29273 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29274 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29275 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29276 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29277 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29278 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29279 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29280 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29281 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29282 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29283 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29284 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29285 * normal/handler.c (insert_handler): Likewise.
29286 * normal/main.c (GRUB_MOD_INIT): Likewise.
29287 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29289 2009-12-26 Carles Pina i Estany <carles@pina.cat>
29291 * commands/help.c (grub_cmd_help): Print the command name before the
29293 (GRUB_MOD_INIT): Remove command name from the summary.
29294 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
29296 * lib/arg.c (find_long): Print the command name before the summary.
29297 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29299 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29300 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29301 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29302 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29303 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29304 * commands/date.c (GRUB_MOD_INIT): Likewise.
29305 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29306 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29307 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29308 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29309 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29310 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29311 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29312 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29313 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29314 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29315 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29316 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29317 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29318 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29319 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29320 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29321 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29322 * commands/password.c (GRUB_MOD_INIT): Likewise.
29323 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29324 * commands/read.c (GRUB_MOD_INIT): Likewise.
29325 * commands/search.c (GRUB_MOD_INIT): Likewise.
29326 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29327 * commands/test.c (GRUB_MOD_INIT): Likewise.
29328 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29329 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29330 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29331 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29332 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29333 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29334 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29335 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29336 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29337 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29338 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29339 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29340 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29341 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29343 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29345 Use search command for preliminar UUID search.
29347 * commands/search.c: Split into ...
29348 * commands/search_wrap.c: ...this
29349 * commands/search.c: ...and this.
29350 * commands/search_file.c: New file.
29351 * commands/search_label.c: New file.
29352 * commands/search_uuid.c: New file.
29353 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29354 Add commands/search_wrap.c, commands/search_file.c,
29355 commands/search_label.c and commands/search_uuid.c.
29356 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29357 (search_mod_SOURCES): Set to commands/search_wrap.c.
29358 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29360 (search_fs_file_mod_SOURCES): New variable.
29361 (search_fs_file_mod_CFLAGS): Likewise.
29362 (search_fs_file_mod_LDFLAGS): Likewise.
29363 (search_label_mod_SOURCES): Likewise.
29364 (search_label_mod_CFLAGS): Likewise.
29365 (search_label_mod_LDFLAGS): Likewise.
29366 (search_fs_uuid_mod_SOURCES): New variable.
29367 (search_fs_uuid_mod_CFLAGS): Likewise.
29368 (search_fs_uuid_mod_LDFLAGS): Likewise.
29369 (fs_file_mod_SOURCES): Removed.
29370 (fs_file_mod_CFLAGS): Likewise.
29371 (fs_file_mod_LDFLAGS): Likewise.
29372 (fs_uuid_mod_SOURCES): Removed.
29373 (fs_uuid_mod_CFLAGS): Likewise.
29374 (fs_uuid_mod_LDFLAGS): Likewise.
29375 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29376 Set to util/grub-install.in.
29377 * disk/fs_file.c: Removed.
29378 * disk/fs_uuid.c: Likewise.
29379 * include/grub/search.h: New file.
29380 * util/grub-install.in: Handle sparc64.
29381 Create and use load.cfg.
29382 * util/sparc64/ieee1275/grub-install.in: Removed.
29384 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29386 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29387 Ignore return status if CF is cleared.
29388 (grub_biosdisk_get_diskinfo_standard): Likewise.
29390 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29392 * term/i386/pc/at_keyboard.c
29393 (keyboard_controller_wait_untill_ready): New function.
29394 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29395 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29396 for keyboard polling, rather than duplicate the same loop. This
29397 saves a few bytes in code size.
29399 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29401 Support for (pxe[:server[:gateway]]) syntax and
29402 use environment variable for PXE.
29404 * commands/i386/pc/pxecmd.c (options): Removed.
29405 (print_ip): Removed.
29406 (grub_cmd_pxe): Removed
29407 (grub_cmd_pxe_unload): New function.
29408 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29409 (grub_pxe_your_ip): Made static.
29410 (grub_pxe_default_server_ip): Likewise.
29411 (grub_pxe_default_gateway_ip): Likewise.
29412 (grub_pxe_blksize): Likewise.
29413 (parse_ip): New function.
29414 (grub_pxe_open): Support server and gateway specification.
29415 (grub_pxe_close): Free disk->data.
29416 (grub_pxefs_open): Use disk->data.
29417 (grub_pxefs_read): Likewise.
29418 (grub_env_write_readonly): New function.
29419 (set_mac_env): Likewise.
29420 (set_env_limn_ro): Likewise.
29421 (parse_dhcp_vendor): Likewise.
29422 (grub_pxe_detect): Set the environment variables.
29423 (set_ip_env): New function.
29424 (write_ip_env): Likewise.
29425 (grub_env_write_pxe_default_server): Likewise.
29426 (grub_env_write_pxe_default_gateway): Likewise.
29427 (grub_env_write_pxe_blocksize): Likewise.
29428 (GRUB_MOD_INIT(pxe)): Set environment variables.
29429 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29430 (grub_pxe_mac_addr_t): ... this. All users updated.
29431 (grub_pxe_your_ip): Removed.
29432 (grub_pxe_server_ip): Likewise.
29433 (grub_pxe_gateway_ip): Likewise.
29434 (grub_pxe_blksize): Likewise.
29436 2009-12-25 Carles Pina i Estany <carles@pina.cat>
29438 * commands/help.c: Include `<grub/i18n.h>'.
29439 (grub_cmd_help): Gettextizze.
29440 (GRUB_MOD_INIT): Likewise.
29441 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29442 (GRUB_MOD_INIT): Gettextizze.
29443 * commands/search.c: Include `<grub/i18n.h>'.
29444 (options): Gettextizze.
29445 (GRUB_MOD_INIT): Gettextizze.
29446 * lib/arg.c: Include `<grub/i18n.h>'.
29447 (help_options): Gettextizze.
29448 (find_long): Likewise.
29449 (grub_arg_show_help): Likewise.
29450 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29451 (read_command_list): Gettextizze.
29452 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
29453 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
29455 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29457 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29458 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29459 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29460 (led_status): New variable.
29461 (keyboard_controller_led): New function.
29462 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29463 update led status for caps lock, num lock and scroll lock.
29465 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
29467 * util/hostdisk.c (open_device): Fix a comment.
29469 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29471 * util/grub-install.in (host_os): New variable.
29472 * util/i386/efi/grub-install.in (host_os): Likewise.
29474 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29476 * util/mkisofs/write.c (padblock_write): Abort when given an
29477 excedingly large embed image, instead of silently truncating it.
29479 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29481 * include/multiboot.h: Indentation fixes.
29483 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29485 * include/multiboot.h (struct multiboot_aout_symbol_table)
29486 (struct multiboot_elf_section_header_table): New structure
29487 declarations (stolen from GRUB Legacy).
29488 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29491 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29492 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29495 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29497 * include/multiboot.h: Make comments src2texi-friendly.
29499 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29501 For consistency with [multiboot]/docs/boot.S.
29503 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29504 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29505 (MULTIBOOT_MAGIC2): Rename from this ...
29506 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29508 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29510 * include/multiboot.h: Remove `<grub/types.h>'.
29511 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29512 types. Update all users.
29514 2009-12-25 Carles Pina i Estany <carles@pina.cat>
29516 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29517 `couldn't' and `can not' by `cannot'.
29518 * commands/i386/pc/drivemap.c: Likewise.
29519 * disk/ata.c: Likewise.
29520 * disk/ieee1275/nand.c: Likewise.
29521 * fs/affs.c: Likewise.
29522 * fs/fat.c: Likewise.
29523 * fs/hfs.c: Likewise.
29524 * fs/hfsplus.c: Likewise.
29525 * fs/iso9660.c: Likewise.
29526 * fs/jfs.c: Likewise.
29527 * fs/minix.c: Likewise.
29528 * fs/reiserfs.c: Likewise.
29529 * fs/sfs.c: Likewise.
29530 * fs/udf.c: Likewise.
29531 * fs/ufs.c: Likewise.
29532 * fs/xfs.c: Likewise.
29533 * loader/powerpc/ieee1275/linux.c: Likewise.
29534 * loader/sparc64/ieee1275/linux.c: Likewise.
29535 * util/grub-probe.c: Likewise.
29536 * util/misc.c: Likewise.
29538 2009-12-24 Carles Pina i Estany <carles@pina.cat>
29540 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29542 * commands/acpi.c: Likewise.
29543 * commands/blocklist.c: Likewise.
29544 * commands/efi/loadbios.c: Likewise.
29545 * commands/i386/pc/drivemap.c: Likewise.
29546 * commands/loadenv.c: Likewise.
29547 * commands/memrw.c: Likewise.
29548 * commands/password.c: Likewise.
29549 * commands/videotest.c: Likewise.
29550 * disk/ata.c: Likewise.
29551 * disk/ata_pthru.c: Likewise.
29552 * disk/dmraid_nvidia.c: Likewise.
29553 * disk/ieee1275/nand.c: Likewise.
29554 * disk/ieee1275/ofdisk.c: Likewise.
29555 * disk/loopback.c: Likewise.
29556 * disk/lvm.c: Likewise.
29557 * disk/mdraid_linux.c: Likewise.
29558 * disk/raid.c: Likewise.
29559 * disk/raid6_recover.c: Likewise.
29560 * disk/scsi.c: Likewise.
29561 * efiemu/main.c: Likewise.
29562 * efiemu/mm.c: Likewise.
29563 * efiemu/pnvram.c: Likewise.
29564 * efiemu/symbols.c: Likewise.
29565 * font/font.c: Likewise.
29566 * fs/cpio.c: Likewise.
29567 * fs/hfsplus.c: Likewise.
29568 * fs/iso9660.c: Likewise.
29569 * fs/jfs.c: Likewise.
29570 * fs/minix.c: Likewise.
29571 * fs/ntfs.c: Likewise.
29572 * fs/ntfscomp.c: Likewise.
29573 * fs/reiserfs.c: Likewise.
29574 * fs/ufs.c: Likewise.
29575 * fs/xfs.c: Likewise.
29576 * gettext/gettext.c: Likewise.
29577 * include/grub/auth.h: Likewise.
29578 * kern/elf.c: Likewise.
29579 * kern/file.c: Likewise.
29580 * kern/ieee1275/init.c: Likewise.
29581 * kern/ieee1275/mmap.c: Likewise.
29582 * kern/ieee1275/openfw.c: Likewise.
29583 * kern/powerpc/dl.c: Likewise.
29584 * kern/sparc64/dl.c: Likewise.
29585 * lib/arg.c: Likewise.
29586 * loader/i386/bsd.c: Likewise.
29587 * loader/i386/bsdXX.c: Likewise.
29588 * loader/i386/efi/linux.c: Likewise.
29589 * loader/i386/efi/xnu.c: Likewise.
29590 * loader/i386/ieee1275/linux.c: Likewise.
29591 * loader/i386/linux.c: Likewise.
29592 * loader/i386/multiboot.c: Likewise.
29593 * loader/i386/pc/linux.c: Likewise.
29594 * loader/i386/pc/multiboot2.c: Likewise.
29595 * loader/i386/xnu.c: Likewise.
29596 * loader/ieee1275/multiboot2.c: Likewise.
29597 * loader/macho.c: Likewise.
29598 * loader/machoXX.c: Likewise.
29599 * loader/multiboot2.c: Likewise.
29600 * loader/multiboot_loader.c: Likewise.
29601 * loader/powerpc/ieee1275/linux.c: Likewise.
29602 * loader/sparc64/ieee1275/linux.c: Likewise.
29603 * loader/xnu.c: Likewise.
29604 * loader/xnu_resume.c: Likewise.
29605 * mmap/i386/pc/mmap.c: Likewise.
29606 * normal/menu_viewer.c: Likewise.
29607 * partmap/acorn.c: Likewise.
29608 * partmap/amiga.c: Likewise.
29609 * partmap/apple.c: Likewise.
29610 * script/lexer.c: Likewise.
29611 * term/gfxterm.c: Likewise.
29612 * term/i386/pc/serial.c: Likewise.
29613 * term/i386/pc/vga.c: Likewise.
29614 * term/ieee1275/ofconsole.c: Likewise.
29615 * term/terminfo.c: Likewise.
29616 * video/bitmap.c: Likewise.
29617 * video/efi_gop.c: Likewise.
29618 * video/efi_uga.c: Likewise.
29619 * video/fb/video_fb.c: Likewise.
29620 * video/i386/pc/vbe.c: Likewise.
29621 * video/readers/tga.c: Likewise.
29622 * video/video.c: Likewise.
29624 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
29626 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29627 * commands/lspci.c: Likewise.
29628 * commands/probe.c: Likewise.
29629 * commands/xnu_uuid.c: Likewise.
29630 * conf/i386-coreboot.rmk: Likewise.
29631 * conf/i386-efi.rmk: Likewise.
29632 * conf/i386-ieee1275.rmk: Likewise.
29633 * conf/i386-pc.rmk: Likewise.
29634 * conf/powerpc-ieee1275.rmk: Likewise.
29635 * conf/sparc64-ieee1275.rmk: Likewise.
29636 * conf/x86_64-efi.rmk: Likewise.
29637 * fs/i386/pc/pxe.c: Likewise.
29638 * gettext/gettext.c: Likewise.
29639 * include/grub/efi/graphics_output.h: Likewise.
29640 * include/grub/i386/pc/memory.h: Likewise.
29641 * kern/env.c: Likewise.
29642 * kern/i386/qemu/startup.S: Likewise.
29643 * lib/i386/pc/biosnum.c: Likewise.
29644 * lib/i386/relocator.c: Likewise.
29645 * lib/i386/relocator_asm.S: Likewise.
29646 * lib/relocator.c: Likewise.
29647 * loader/i386/bsd.c: Likewise.
29648 * loader/i386/multiboot.c: Likewise.
29649 * loader/i386/pc/chainloader.c: Likewise.
29650 * loader/i386/xnu.c: Likewise.
29651 * loader/xnu.c: Likewise.
29652 * normal/main.c: Likewise.
29653 * normal/menu_text.c: Likewise.
29654 * util/getroot.c: Likewise.
29655 * util/grub-mkconfig_lib.in: Likewise.
29656 * util/grub.d/00_header.in: Likewise.
29657 * util/i386/pc/grub-mkimage.c: Likewise.
29658 * util/mkisofs/eltorito.c: Likewise.
29659 * util/mkisofs/exclude.h: Likewise.
29660 * util/mkisofs/hash.c: Likewise.
29661 * util/mkisofs/iso9660.h: Likewise.
29662 * util/mkisofs/joliet.c: Likewise.
29663 * util/mkisofs/mkisofs.c: Likewise.
29664 * util/mkisofs/mkisofs.h: Likewise.
29665 * util/mkisofs/multi.c: Likewise.
29666 * util/mkisofs/name.c: Likewise.
29667 * util/mkisofs/rock.c: Likewise.
29668 * util/mkisofs/tree.c: Likewise.
29669 * util/mkisofs/write.c: Likewise.
29670 * video/efi_gop.c: Likewise.
29672 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29674 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29677 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
29679 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29680 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29682 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29684 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29685 (GRUB_MOD_INIT(memrw)): Update help line.
29687 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29689 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29690 Use grub_extcmd_t. All users updated.
29691 (options): New variable.
29692 (grub_cmd_read): Restructure for readability. Support "-v" option.
29693 (grub_cmd_write): Restructure for readability.
29695 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
29697 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29699 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
29701 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29702 with the actual contents of the correspondending make variable.
29703 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29704 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29705 specifying `*.lst' and `efiemu??.o'
29707 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
29709 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29710 after function name.
29711 Noticed by Rene Engelhard <rene@debian.org>.
29713 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29715 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29716 (options): New variable.
29717 (iospace): Likewise.
29718 (grub_lspci_iter): List IO spaces if "-i" was given.
29719 (grub_cmd_lspci): Parse options.
29720 (GRUB_MOD_INIT(lspci)): Use extcmd.
29721 (GRUB_MOD_FINI(lspci)): Likewise.
29723 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
29725 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29726 `function' keyword.
29727 Patch by Tony Mancill <tmancill@debian.org>.
29729 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29731 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29732 (grub_uhci_portstatus): Likewise.
29733 (grub_uhci_portstatus): Add necessary delay.
29734 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
29736 2009-12-21 Carles Pina i Estany <carles@pina.cat>
29738 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29739 (GRUB_MOD_INIT): Likewise.
29740 * commands/boot.c (GRUB_MOD_INIT): Likewise.
29741 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29742 * commands/echo.c (options): Fix capitalizations and/or full stops.
29743 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29744 (enable_rom_area): Likewise.
29745 (GRUB_MOD_INIT): Likewise.
29746 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29747 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29748 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29749 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29750 * commands/hexdump.c (options): Likewise.
29751 * commands/i386/cpuid.c (options): Likewise.
29752 (GRUB_MOD_INIT): Likewise.
29753 * commands/i386/pc/drivemap.c (options): Likewise.
29754 (GRUB_MOD_INIT): Likewise.
29755 * commands/i386/pc/halt (options): Likewise.
29756 (GRUB_MOD_INIT): Likewise.
29757 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29758 * commands/i386/pc/pxecmd.c (options): Likewise.
29759 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29760 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29761 * commands/keystatus.c (options): Likewise.
29762 (GRUB_MOD_INIT): Likewise.
29763 * commands/loadenv.c (options): Likewise.
29764 * commands/ls.c (options): Likewise.
29765 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29766 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29767 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29768 * commands/parttool.c (helpmsg): Likewise.
29769 * commands/probe.c (options): Likewise.
29770 * commands/read.c (GRUB_MOD_INIT): Likewise.
29771 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29772 * commands/search.c (options): Likewise.
29773 * commands/sleep.c (options): Likewise.
29774 * commands/test.c (GRUB_MOD_INIT): Likewise.
29775 * commands/true.c (GRUB_MOD_INIT): Likewise.
29776 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29777 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29778 * lib/arg.c (help_options): Likewise.
29779 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29781 * po/POTFILES: Add `commands/loadenv.c'.
29783 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
29785 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
29786 instead of specifying them explicit.
29788 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29790 * NEWS: Add grub-probe support for GNU/Hurd.
29792 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29794 * NEWS: gettext was added after 1.97.
29796 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29798 * util/mkisofs/msdos_partition.h: New file (based on
29799 include/grub/msdos_partition.h).
29800 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29801 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29802 (ld_options, main): Recognize --protective-msdos-label.
29803 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29804 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29805 (padblock_write): If `use_protective_msdos_label' is set, patch a
29806 protective DOS-style label in the output image.
29808 * util/grub-mkrescue.in: Use --protective-msdos-label.
29810 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29812 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29815 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29817 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29819 (ld_options, main): Recognize `--embedded-boot'.
29820 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29822 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29823 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29824 (padblock_write): Likewise. Rewrite to support embedded boot image.
29826 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29827 for BIOS-based disk boot instead of only ElTorito.
29829 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29831 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29832 build (not needed for bootstrap).
29834 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29836 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29837 from i386-pc build (not needed for bootstrap).
29838 Rewrite a pair of strings.
29840 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29842 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29844 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
29846 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29848 2009-12-21 Andreas Born <futur.andy@googlemail.com>
29850 * kern/env.c (grub_env_context_open): Mark exported variable for
29853 2009-12-21 Andreas Born <futur.andy@googlemail.com>
29855 * kern/env.c (grub_env_export): Create nonexistent variables before
29858 2009-12-20 Carles Pina i Estany <carles@pina.cat>
29860 * include/grub/auth.h: Include `<grub/i18n.h>'.
29861 (GRUB_GET_PASSWORD): Gettextizze string.
29862 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29864 (grub_utf8_to_ucs4_alloc): Fix indentation.
29865 (grub_print_ucs4): Likewise.
29866 (grub_getstringwidth): Likewise.
29867 (print_message_indented): New declaration.
29868 * normal/auth.c: Include `<grub/i18n.h>'.
29869 (grub_auth_check_authentication): Gettexttize string.
29870 * normal/cmdline.c: Include `<grub/i18n.h>'.
29871 (grub_cmdline_get): Gettextizze.
29872 * normal/color.c: Include `<grub/i18n.h>'.
29873 (grub_parse_color_name_pair): Gettexttize strings.
29874 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29875 string (use `print_message_indented').
29876 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29877 `include/grub/normal.h'.
29878 (print_message_indented): Renamed to ...
29879 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29880 used in normal/main.c).
29881 (print_message): Use `grub_print_message_indented' instead of
29882 `print_message_indented'.
29883 (print_timeout): Likewise.
29884 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29885 (grub_normal_print_device_info): Gettexttize strings.
29886 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29888 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29890 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29891 of arguments. Return number of tokens and not arguments. All users
29894 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29896 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29897 non-MSDOS paritions.
29899 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29901 * include/grub/types.h (UNUSED): Removed since it conflicts with
29902 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29903 Reported by Grégoire Sutre.
29905 2009-12-19 Carles Pina i Estany <carles@pina.cat>
29907 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29908 (grub_print_ucs4_alloc): Likewise.
29909 (grub_getstringwidth): Likewise.
29910 * normal/main.c (grub_normal_init_page): Gettextize version string.
29911 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29912 (getstringwidth): Renamed to ...
29913 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29914 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29915 (grub_print_ucs4): Remove `static' qualifer (now used in
29917 * po/POTFILES: Add normal/main.c.
29919 2009-12-19 Carles Pina i Estany <carles@pina.cat>
29921 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29922 (print_message_indented): Add `margin_left' and `margin_right'
29924 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29926 (print_timeout): Use `print_message_indented' to print the message.
29927 Deletes `second_stage' parameter.
29928 (run_menu): Update `print_timeout' calls.
29930 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29932 Fix console palette on OpenFirmware.
29934 * term/ieee1275/ofconsole.c (MAX): Removed.
29935 (colors): Redone based on VGA palette.
29936 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29937 colors are supported.
29938 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29940 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29942 Fix potential EfiEmu double prepare.
29944 * efiemu/main.c (prepared): New variable
29945 (grub_efiemu_unload): Set prepare to '0'.
29946 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29948 set_virtual_address_map support.
29950 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29952 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29954 (grub_efiemu_crc32): Likewise.
29955 (grub_efiemu_crc64): Likewise.
29956 (grub_efiemu_set_virtual_address_map): Likewise.
29957 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29959 (grub_autoefi_set_virtual_address_map): Likewise.
29960 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29961 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29962 Restructure flow to accomodate it.
29963 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29964 (grub_efiemu_crc): Recompute CRC32.
29965 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29966 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29967 * efiemu/symbols.c (relocated_handle): New variable.
29968 (grub_efiemu_free_syms): Free relocated_handle.
29969 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29970 (grub_efiemu_write_sym_markers): New function.
29971 (grub_efiemu_set_virtual_address_map): Likewise.
29973 Newer XNU parameters.
29975 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29976 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29977 (grub_xnu_fill_devicetree): New prototype.
29978 (grub_xnu_heap_real_start): New variable.
29979 * loader/xnu.c (get_name_ptr): New function.
29980 (grub_xnu_load_driver): Fill namelen and name.
29982 64-bit xnu support.
29984 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29985 and 'loader/macho64.c'.
29986 * conf/i386-pc.rmk: Likewise.
29987 * conf/x86_64-efi.rmk: Likewise.
29988 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29989 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29990 * include/grub/macho.h (grub_macho_segment64): New structure.
29991 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29992 (grub_macho_size32): ... to this.
29993 (grub_macho32_get_entry_point): Renamed from ...
29994 (grub_macho_get_entry_point32): ... to this.
29995 (grub_macho_contains_macho64): New prototype.
29996 (grub_macho_size64): Likewise.
29997 (grub_macho_get_entry_point64): Likewise.
29998 (grub_macho32_load): Renamed from ...
29999 (grub_macho_load32): ... to this.
30000 (grub_macho32_filesize): Renamed from ...
30001 (grub_macho_filesize32): ... to this.
30002 (grub_macho32_readfile): Renamed from ...
30003 (grub_macho_readfile32): ... to this.
30004 (grub_macho_filesize64): New prototype.
30005 (grub_macho_readfile64): Likewise.
30006 (grub_macho_parse32): Likewise.
30007 (grub_macho_parse64): Likewise.
30008 * loader/macho.c: Split into ...
30009 * loader/machoXX.c: ... and this. Replace 32 with XX.
30010 * loader/macho32.c: New file.
30011 * loader/macho64.c: Likewise.
30012 * loader/xnu.c (grub_xnu_is_64bit): New variable.
30013 (grub_cmd_xnu_kernel): Make 32-bit only.
30014 (grub_cmd_xnu_kernel64): New function.
30015 (grub_xnu_load_driver): Support Mach-O 64.
30016 (grub_cmd_xnu_mkext): Likewise.
30017 * util/grub.d/30_os-prober.in (osx_entry): New function.
30018 Generate entries for 64-bit boot too.
30020 Eliminate ad-hoc tree format in XNU and EfiEmu.
30022 * efiemu/main.c (grub_efiemu_prepare): Update comment.
30023 * efiemu/pnvram.c: Rewritten to use environment variables.
30026 Inline utf16_to_utf8.
30028 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
30029 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
30031 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
30033 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
30034 * commands/usbtest.c (grub_usb_get_string): ... move here.
30035 (usb_print_str): Fix error handling.
30036 * include/grub/usb.h (grub_usb_get_string): Remove.
30038 UTF-8 to UTF-16 transformation.
30040 * conf/common.rmk (pkglib_MODULES): Add charset.mod
30041 (charset_mod_SOURCES): New variable.
30042 (charset_mod_CFLAGS): Likewise.
30043 (charset_mod_LDFLAGS): Likewise.
30044 * include/grub/utf.h: New file.
30045 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
30047 Support for device properties.
30049 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
30050 (grub_xnu_devprop_device_header): Likewise.
30051 (grub_xnu_devprop_device_descriptor): Likewise.
30052 (grub_xnu_devprop_add_device): New prototype.
30053 (grub_xnu_devprop_remove_device): Likewise.
30054 (grub_xnu_devprop_remove_property): Likewise.
30055 (grub_xnu_devprop_add_property_utf8): Likewise.
30056 (grub_xnu_devprop_add_property_utf16): Likewise.
30057 (grub_cpu_xnu_init): Likewise.
30058 (grub_cpu_xnu_fini): Likewise.
30059 (grub_cpu_xnu_unload): Likewise.
30060 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
30061 (property_descriptor): Likewise.
30062 (devices): New variable.
30063 (grub_xnu_devprop_remove_property): New function.
30064 (grub_xnu_devprop_add_device): Likewise.
30065 (grub_xnu_devprop_remove_device): Likewise.
30066 (grub_xnu_devprop_add_property): Likewise.
30067 (grub_xnu_devprop_add_property_utf8): Likewise.
30068 (grub_xnu_devprop_add_property_utf16): Likewise.
30069 (hextoval): Likewise.
30070 (grub_cpu_xnu_fill_devprop): Likewise.
30071 (grub_cmd_devprop_load): Likewise.
30072 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
30073 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30074 (cmd_devprop_load): New variable.
30075 (grub_cpu_xnu_init): New function.
30076 (grub_cpu_xnu_fini): Likewise.
30077 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30078 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30079 (grub_cmd_xnu_devtree): Likewise.
30080 (hextoval): New function.
30081 (unescape): Likewise.
30082 (grub_xnu_fill_devicetree): Likewise.
30084 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30085 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30087 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30089 Workaround for broken ATI VBE.
30091 * video/i386/pc/vbe.c (last_set_mode): New variable.
30092 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30093 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30094 (grub_video_vbe_setup): Don't check for reserved flag.
30096 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
30098 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30099 the `find' command.
30101 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30103 UUID support for HFS.
30105 * fs/hfs.c (grub_hfs_uuid): New function.
30106 (grub_hfs_fs): New value .uuid.
30107 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30109 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
30111 Fix a segfault with parsing unknown long options.
30113 * util/grub-mkrelpath.c (options): Zero terminate it.
30115 2009-12-13 Carles Pina i Estany <carles@pina.cat>
30117 * include/grub/misc.h (grub_puts): New declaration.
30118 (grub_puts_): Likewise.
30119 * kern/misc.c (grub_puts): New definition.
30120 (grub_puts_): Likewise.
30122 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30124 * util/grub-probe.c (probe): Improve error message.
30126 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30128 * loader/i386/multiboot_elfxx.c
30129 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30132 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30134 Relocator framework
30136 * loader/i386/xnu_helper.S: Removed. All users updated.
30137 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30138 (relocator_mod_SOURCES): New variable.
30139 (relocator_mod_CFLAGS): Likewise.
30140 (relocator_mod_LDFLAGS): Likewise.
30141 (relocator_mod_ASFLAGS): Likewise.
30142 * conf/x86_64.rmk: Likewise.
30143 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30144 (grub_multiboot_payload_entry_offset): Likewise.
30145 (grub_multiboot_forward_relocator): Likewise.
30146 (grub_multiboot_forward_relocator_end): Likewise.
30147 (grub_multiboot_backward_relocator): Likewise.
30148 (grub_multiboot_backward_relocator_end): Likewise.
30149 (grub_multiboot_payload_eip): New variable.
30150 (grub_multiboot_payload_orig): Likewise.
30151 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30152 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30153 * include/grub/i386/memory.h
30154 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30155 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30156 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30157 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30158 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30159 * include/grub/i386/relocator.h: New file.
30160 * include/grub/x86_64/relocator.h: Likewise.
30161 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30162 (XNU_RELOCATOR): New macro.
30163 (grub_xnu_launcher_start): Remove.
30164 (grub_xnu_launcher_end): Likewise.
30165 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30166 (grub_xnu_heap_real_start): Remove.
30167 (grub_xnu_heap_start): Change to void *. All users updated.
30168 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30169 * lib/i386/relocator.c: New file.
30170 * lib/i386/relocator_asm.S: Likewise.
30171 * lib/i386/relocator_backward.S: Likewise.
30172 * lib/mips/relocator.c: Likewise.
30173 * lib/mips/relocator_asm.S: Likewise.
30174 * lib/relocator.c: Likewise.
30175 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30177 (playground): Likewise.
30178 (grub_multiboot_payload_orig): New variable.
30179 (grub_multiboot_payload_dest): Likewise.
30180 (grub_multiboot_payload_size): Likewise.
30181 (grub_multiboot_payload_eip): Likewise.
30182 (grub_multiboot_payload_esp): Likewise.
30183 (grub_multiboot_boot): Use grub_relocator32_boot.
30184 (grub_multiboot_unload): Free relocators.
30185 (grub_multiboot): Setup stack. Use relocators.
30186 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30187 (grub_multiboot_load_elfXX): Use relocators.
30188 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30189 (grub_multiboot_payload_size): Likewise.
30190 (grub_multiboot_payload_dest): Likewise.
30191 (grub_multiboot_payload_entry_offset): Likewise.
30192 (grub_multiboot_forward_relocator): Likewise.
30193 (grub_multiboot_backward_relocator): Likewise.
30194 (grub_multiboot_real_boot): Likewise.
30195 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30196 (grub_xnu_entry_point): Likewise.
30197 (grub_xnu_arg1): Likewise.
30198 (grub_xnu_stack): Likewise.
30199 (grub_xnu_launch): Removed.
30200 (grub_xnu_boot_resume): New function.
30201 (grub_xnu_boot): Use relocators.
30202 * loader/i386/xnu_helper.S: Removed.
30203 * loader/xnu.c (grub_xnu_heap_start): New variable.
30204 (grub_xnu_heap_size): Likewise.
30205 (grub_xnu_heap_malloc): Use relocators.
30206 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30208 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30210 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30213 2009-12-13 Carles Pina i Estany <carles@pina.cat>
30215 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30216 GRUB_ERR_NONE before calling grub_env_set.
30218 2009-12-12 Robert Millan <rmh@aybabtu.com>
30220 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30221 * genmk.rb (video): New variable.
30222 (CLEANFILES, VIDEOFILES): Add #{video}.
30223 (#{video}): New target rule.
30224 * genvideolist.sh: New file.
30225 * Makefile.in (pkglib_DATA): Add video.lst.
30226 (video.lst): New target rule.
30227 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30229 * util/grub.d/30_os-prober.in: Replace `vbe' with
30230 ${GRUB_VIDEO_BACKEND}.
30232 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30234 * THANKS: Add David Miller.
30236 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30238 libpciaccess support.
30240 * Makefile.in (LIBPCIACCESS): New variable.
30241 (enable_grub_emu_pci): Likewise.
30242 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30243 util/pci.c and commands/lspci.c.
30244 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30245 * configure.ac (grub-emu-pci): New option.
30246 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30247 (grub_pci_device_unmap_range): Likewise.
30248 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30249 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30250 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30251 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30252 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30253 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30254 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30255 * include/grub/pciutils.h: New file.
30256 * util/pci.c: Likewise.
30258 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
30260 * util/misc.c: Don't include <errno.h> twice.
30262 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
30264 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30265 name in an error message.
30266 (grub_biosdisk_rw): Likewise.
30268 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30270 Eliminate NTFS 4Gib barrier.
30272 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30273 (read_run_data): Likewise.
30274 (grub_ntfs_read_run_list): Likewise.
30275 (grub_ntfs_read_block): Likewise.
30276 (grub_ntfs_iterate_dir): Likewise.
30277 (read_mft): Likewise.
30278 (read_data): Likewise.
30280 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30281 to avoid 64-bit division
30282 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30283 (grub_ntfs_rlst): Use grub_disk_addr_t.
30285 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30287 Eliminate grub-fstest 4Gib barrier.
30289 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30290 (read_file): Fix error reporting.
30292 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30294 Eliminate hexdump 4Gib barrier.
30296 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30297 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30299 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30301 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30304 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30306 Remove miscellaneous files in distclean target.
30308 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30310 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
30312 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30313 if they're already set. This resolves the conflict between my
30314 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30315 fixing the --grub-probe option again.
30316 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30317 change on 2009-10-06, so that we now once again source
30318 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30320 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30322 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30323 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30324 `util/devicemap.c'.
30326 2009-12-08 Carles Pina i Estany <carles@pina.cat>
30328 * include/grub/misc.h (grub_printf_): New declaration.
30329 * kern/misc.c (grub_printf_): New definition.
30330 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30331 instead of `grub_printf' and `_'.
30332 * normal/menu_entry.c (store_completion): Likewise.
30334 (grub_menu_entry_run): Likewise.
30335 * normal/menu_text.c (grub_wait_after_message): Likewise.
30336 (notify_booting): Likewise.
30337 (notify_fallback): Likewise.
30338 (notify_execution_failure): Likewise.
30340 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
30342 * configure.ac: Check for vasprintf.
30343 * util/misc.c (asprintf): Move allocation from here ...
30344 (vasprintf): ... to here. New function.
30345 (xasprintf): New function.
30346 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30348 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30349 * util/grub-mkfont.c (write_font): Likewise.
30350 * util/grub-probe.c (probe): Likewise.
30351 * util/hostdisk.c (make_device_name): Likewise.
30353 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
30355 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30356 anything even prefixed with 'cdrom' as a cdrom.
30358 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
30360 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30363 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30365 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30366 grub_gettext_msg_list.
30367 (grub_gettext_gettranslation_from_position): Return const char *
30369 (grub_gettext_translate): Add the translated strings into a list,
30370 returns from the list if existing there.
30371 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30372 (grub_gettext_delete_list): Delete the list.
30373 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30374 lang environment variable is changed.
30375 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30377 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30379 Rename kernel.mod to kernel.img.
30381 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30382 (kernel_mod_EXPORTS): Rename to ...
30383 (kernel_img_EXPORTS): ... this.
30384 (kernel_mod_SOURCES): Rename to ...
30385 (kernel_img_SOURCES): ... this.
30386 (kernel_mod_HEADERS): Rename to ...
30387 (kernel_img_HEADERS): ... this. All users updated.
30388 (kernel_mod_CFLAGS): Rename to ...
30389 (kernel_img_CFLAGS): ... this.
30390 (kernel_mod_ASFLAGS): Rename to ...
30391 (kernel_img_ASFLAGS): ... this.
30392 (kernel_mod_LDFLAGS): Rename to ...
30393 (kernel_img_LDFLAGS): ... this.
30394 * conf/x86_64-efi.rmk: Likewise.
30395 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30396 (read_kernel_image): ... this. All users updated.
30397 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30399 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30401 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30402 (print_spaces): New function.
30403 (grub_print_ucs4): New function.
30404 (getstringwidth): New function.
30405 (print_message_indented): New function.
30406 (print_message): Gettexttize strings using print_message_indented.
30407 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30409 (get_entry_number): Gettextize and uses dynamic terminal width.
30410 (notify_booting, notify_fallback, notify_execution_failure):
30412 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30415 (grub_menu_entry_run): Likewise.
30416 * PO/POTFILES: Add normal/menu_entry.c.
30418 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30420 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30422 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30424 * util/grub-install.in: Install gettext .mo files.
30425 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30427 2009-12-05 Carles Pina i Estany <carles@pina.cat>
30429 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30432 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30434 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30435 non-firmware-dependant one in realmode.S takes precedence.
30437 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30439 * commands/halt.c: Replace misc arch-specific headers with
30441 * commands/reboot.c: Likewise.
30442 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30444 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30445 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30446 (kernel_img_SOURCES): ... to here.
30448 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30449 * include/grub/i386/pc/init.h: Likewise.
30450 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30451 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30453 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30455 * include/grub/i386/halt.h: Remove.
30456 * include/grub/i386/reboot.h: Likewise.
30458 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30460 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
30462 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30463 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30464 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30466 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30467 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30468 (usage): Add missing comma in printf.
30470 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30472 Use the same reboot approach on i386 coreboot and qemu as we do on
30475 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30476 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30477 * kern/i386/reboot.c: Remove.
30478 * include/grub/i386/reboot.h (grub_reboot): Export function.
30479 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30480 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30481 0xf000:0xfff0 instead of 0xffff:0x0000.
30482 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30483 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30485 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30487 Fix $srcdir != $objdir build.
30489 * Makefile.in (po/%.po): Rewrite as ...
30490 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30492 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30494 Fix GNU/Hurd grub-install crash.
30495 * util/grub-probe.c (probe): Try to access `path' only when it is not
30498 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30500 Correct module naming.
30502 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30503 (GRUB_MOD_INIT(efi_uga)): ... to this
30504 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30505 (GRUB_MOD_FINI(efi_uga)): ... to this
30506 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30507 (GRUB_MOD_INIT(efi_gop)): ... to this
30508 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30509 (GRUB_MOD_FINI(efi_gop)): ... to this
30511 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30513 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30515 (usage): Translate `arg' strings using gettext().
30516 Thanks to Jordi Mallach for the suggestion.
30518 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30520 GOP support. Based on patch from Bean
30521 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30523 * video/efi_gop.c: New file.
30524 * include/grub/efi/graphics_output.h: Likewise.
30525 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30526 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30528 * conf/x86_64-efi.rmk: Likewise.
30530 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30532 Rename efi_fb to efi_uga.
30534 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30536 (efi_fb_mod_SOURCES): Rename this ...
30537 (efi_uga_mod_SOURCES): ... to this.
30538 (efi_fb_mod_CFLAGS): Rename this ...
30539 (efi_uga_mod_CFLAGS): ... to this.
30540 (efi_fb_mod_LDFLAGS): Rename this ...
30541 (efi_uga_mod_LDFLAGS): ... to this.
30542 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30544 (efi_fb_mod_SOURCES): Rename this ...
30545 (efi_uga_mod_SOURCES): ... to this.
30546 (efi_fb_mod_CFLAGS): Rename this ...
30547 (efi_uga_mod_CFLAGS): ... to this.
30548 (efi_fb_mod_LDFLAGS): Rename this ...
30549 (efi_uga_mod_LDFLAGS): ... to this.
30550 * video/efi_fb.c: Move this ...
30551 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30553 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30555 * po/README: New file. Explain our PO file workflow.
30557 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30559 * po/ChangeLog: Remove. Move relevant entries back to ...
30560 * ChangeLog: ... here.
30561 * po/ca.po: Remove (now handled by TLP).
30562 * po/id.po: Likewise.
30563 * po/zh_CN.po: Likewise.
30564 * Makefile.in (LINGUAS): Initialize in a way that supports
30567 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30569 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30570 reliing on po/LINGUAS.
30571 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30572 (po/%.po): ... this.
30574 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30576 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30577 (main): Use `program_name' instead of nonexistent `progname'.
30579 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30581 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30582 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30584 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30586 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30588 * conf/i386-efi.rmk: Likewise.
30589 * conf/i386-ieee1275.rmk: Likewise.
30590 * conf/powerpc-ieee1275.rmk: Likewise.
30591 * conf/sparc64-ieee1275.rmk: Likewise.
30592 * conf/x86_64-efi.rmk: Likewise.
30594 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30596 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30598 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
30600 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30602 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30604 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30605 (grub_mkdevicemap_SOURCES): New variable.
30606 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30607 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30608 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30609 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30610 (grub_mkdevicemap_SOURCES): Remove.
30611 * conf/i386-efi.rmk: Likewise.
30612 * conf/i386-ieee1275.rmk: Likewise.
30613 * conf/i386-pc.rmk: Likewise.
30614 * conf/powerpc-ieee1275.rmk: Likewise.
30615 * conf/sparc64-ieee1275.rmk: Likewise.
30616 * conf/x86_64-efi.rmk: Likewise.
30617 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30618 (usage): Fix strings to use `program_name'.
30619 (main): Initialize gettext.
30620 * util/grub-editenv.c: Likewise.
30621 * util/grub-emu.c: Likewise.
30622 * util/grub-fstest.c: Likewise.
30623 * util/grub-mkdevicemap.c: Likewise.
30624 * util/grub-mkfont.c: Likewise.
30625 * util/grub-mkrelpath.c: Likewise.
30626 * util/grub-pe2elf.c: Likewise.
30627 * util/grub-probe.c: Likewise.
30628 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30629 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30630 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30632 * util/misc.c: Include `"progname.h"'.
30633 (progname): Remove variable.
30634 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30636 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
30638 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30639 printf and print a newline after the menuentry header line.
30640 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30642 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
30644 autoconf >= 2.60 support $(localedir).
30646 * INSTALL: Note that autoconf 2.60 is required.
30647 * configure.ac (AC_PREREQ): Bump to 2.60.
30648 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30649 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30651 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30653 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30656 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30658 * normal/main.c (grub_normal_read_line): Fix off-by-one
30661 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30663 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30664 "parser.grub" in grub_command_execute() call.
30666 2009-11-24 Carles Pina i Estany <carles@pina.cat>
30668 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30669 * conf/i386-efi.rmk: Likewise.
30670 * conf/i386-ieee1275.rmk: Likewise.
30671 * conf/i386-pc.rmk: Likewise.
30672 * conf/powerpc-ieee1275.rmk: Likewise.
30673 * conf/sparc64-ieee1275.rmk: Likewise.
30674 * conf/x86_64-efi.rmk: Likewise.
30675 * gettext/gettex.c: Include <grub/i18n.h>.
30676 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30678 * include/grub/i18n.h: ... to here
30679 * include/grub/i18n.h: ... to here.
30680 * kern/misc.c: Include <grub/i18n.h>
30681 (grub_gettext_dummy): Move above user.
30683 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30685 * util/Makefile.in (install-local): Convert a `for' into a normal
30688 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30690 * autogen.sh: Add automake call.
30691 * config.guess: Remove.
30692 * config.sub: Likewise.
30693 * install-sh: Likewise.
30695 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30697 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30699 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30701 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30702 function to a normal shell `for'.
30704 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30706 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30708 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30710 * util/grub-mkrelpath.c: New file.
30711 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30712 (grub_mkrelpath_SOURCES): New variable.
30713 * include/grub/util/misc.h: New function prototype.
30714 * util/misc.c (make_system_path_relative_to_its_root): New function.
30716 * util/grub-mkconfig_lib.in (bindir): New variable.
30717 (grub_mkrelpath): Likewise.
30718 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30720 * util/probe.c (probe): Make the file path relative to its root.
30721 Change a info message to use the GRUB path. Enable again the
30722 check if we can read the file with GRUB facilities.
30724 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30727 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30729 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30732 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30734 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30737 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
30739 * util/getroot.c (grub_util_is_dmraid): New function.
30740 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30741 devices as normal ones, not as LVM.
30743 2009-11-23 Carles Pina i Estany <carles@pina.cat>
30745 * conf/common.rmk: Add grub-gettext_lib target and updates
30746 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30748 * gettext/gettext.c: New file. (Reads mo files).
30749 * include/grub/file.h (grub_file_pread): New prototype.
30750 * include/grub/i18n.h (_): New prototype.
30751 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30753 * kern/misc.c (grub_gettext_dummy): New function.
30754 * normal/menu_text.c: Include <grub/i18n.h>.
30755 * normal/menu_text.c (print_timeout): Gettexttize string.
30756 * normal/menu_text.c (print_message): Gettexttize string.
30757 * po/POTFILES: Add `normal/menu_text.c'.
30758 * po/ca.po: Add new translations.
30759 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30760 gettext module and defines locale_dir and lang in grub.cfg.
30761 * NEWS: Add gettext support.
30763 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30765 * util/hostdisk.c: Include `<grub/i18n.h>'.
30766 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30767 (make_device_name): Rewrite using asprintf.
30768 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30769 (find_system_device): If a device is not found, generate one just
30770 by reusing the OS path name.
30771 (read_device_map): Make it permissible for device.map not to exist.
30773 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30775 * script/sh/execute.c: Move from here ...
30776 * script/execute.c: ... to here. Update all users.
30777 * script/sh/function.c: Move from here ...
30778 * script/function.c: ... to here. Update all users.
30779 * script/sh/lexer.c: Move from here ...
30780 * script/lexer.c: ... to here. Update all users.
30781 * script/sh/main.c: Move from here ...
30782 * script/main.c: ... to here. Update all users.
30783 * script/sh/parser.y: Move from here ...
30784 * script/parser.y: ... to here. Update all users.
30785 * script/sh/script.c: Move from here ...
30786 * script/script.c: ... to here. Update all users.
30788 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30790 * configure.ac: Detect all `emu' platforms. Define
30791 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30792 --enable-grub-emu logic. Disable include/grub/machine
30793 symlink on `emu' platforms.
30795 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30796 * gensymlist.sh.in: Likewise.
30798 * include/grub/i386/coreboot/machine.h: Remove file.
30799 * include/grub/i386/efi/machine.h: Likewise.
30800 * include/grub/i386/ieee1275/machine.h: Likewise.
30801 * include/grub/i386/pc/machine.h: Likewise.
30802 * include/grub/i386/qemu/machine.h: Likewise.
30803 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30804 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30805 * include/grub/x86_64/efi/machine.h: Likewise.
30807 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30808 * commands/halt.c: Likewise.
30809 * commands/reboot.c: Likewise.
30810 * include/grub/autoefi.h: Likewise.
30811 * include/grub/i386/at_keyboard.h: Likewise.
30812 * include/grub/i386/kernel.h: Likewise.
30813 * include/grub/i386/loader.h: Likewise.
30814 * include/grub/i386/pc/memory.h: Likewise.
30815 * kern/dl.c: Likewise.
30816 * kern/i386/coreboot/init.c: Likewise.
30817 * loader/i386/bsd.c: Likewise.
30818 * loader/i386/linux.c: Likewise.
30819 * loader/multiboot_loader.c: Likewise.
30820 * term/i386/pc/serial.c: Likewise.
30821 * term/usb_keyboard.c: Likewise.
30823 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30824 `<grub/machine/machine.h>'
30825 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30826 * util/misc.c: Remove `<grub/machine/machine.h>' and
30827 `<grub/machine/time.h>'.
30829 * Makefile.in (enable_grub_emu): Remove variable.
30830 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30832 * conf/any-emu.rmk: New file.
30833 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30834 (grub_emu_init.c): Move from here ...
30835 * conf/any-emu.rmk: ... to here.
30837 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30838 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30839 * conf/any-emu.rmk: ... to here.
30841 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30843 * include/grub/parser.h (grub_parser_register): Document need
30844 of `name' parameter.
30845 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30846 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30849 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30851 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30853 * include/grub/i18n.h (N_): New macro.
30854 * util/mkisofs/mkisofs.h: Likewise.
30855 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30857 (usage): Use gettext() to translate help strings when printing them.
30859 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30861 Based on patch from Bean
30862 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30864 * video/efi_fb.c: New file.
30865 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30866 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30868 * conf/x86_64-efi.rmk: Likewise.
30870 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30872 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30873 * util/i386/pc/grub-setup.c: Likewise.
30875 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30877 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30879 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30880 file_get_storage_info to implement grub_guess_root_device.
30882 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
30884 * Makefile.in (target): Use make's builtin $(shell) function
30885 instead of calling directly $(SHELL) to create the locale directories,
30886 inside the $(foreach) function.
30888 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
30890 * util/grub-mkrescue.in: Print an error and usage if output option
30891 has not been given.
30893 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
30895 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30896 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30897 root and /boot are on different devices.
30899 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30901 Fix build for srcdir != objdir.
30903 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30904 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30906 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30907 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30908 reference for input.
30910 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30912 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30913 or hardlinking it). Remove -J option, Joliet is not compatible with
30914 multiple source directories.
30916 2009-11-21 Carles Pina i Estany <carles@pina.cat>
30917 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30919 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30920 (process_input_dir): New function. Process an arbitrary input
30922 Misc adjustments to support both "override mode" and system-wide mode.
30924 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
30926 * configure.ac (UNIFONT_BDF): Rename to ...
30927 (FONT_SOURCE): ... this. Update all users.
30929 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
30931 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30932 to the list of unifont files to look for.
30934 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30936 Patch from Joe Auricchio <jauricchio@gmail.com>
30937 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30938 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30939 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30941 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
30943 * Makefile.in (install-local): Add a missing backslash.
30945 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
30947 * include/grub/x86_64/io.h: New file.
30949 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30951 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30952 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30953 Include `"progname.h"'.
30954 (main): Initialize gettext.
30955 * util/i386/pc/grub-setup.c: Gettexttize.
30956 * util/i386/pc/grub-mkimage.c: Likewise.
30958 * Makefile.in (po/*.po): Redefine as ...
30959 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30961 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30963 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30965 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30966 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30967 (program_name): Remove.
30968 (main): Initialize gettext support.
30969 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30970 Include `<libintl.h>'.
30973 * util/mkisofs/eltorito.c: Gettexttize.
30974 * util/mkisofs/joliet.c: Likewise.
30975 * util/mkisofs/mkisofs.c: Likewise.
30976 * util/mkisofs/multi.c: Likewise.
30977 * util/mkisofs/rock.c: Likewise.
30978 * util/mkisofs/tree.c: Likewise.
30979 * util/mkisofs/write.c: Likewise.
30981 * po/POTFILES: Update with new files.
30983 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30985 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30986 * util/mkisofs/iso9660.h: Likewise.
30987 * util/mkisofs/joliet.c: Likewise.
30988 * util/mkisofs/mkisofs.c: Likewise.
30989 * util/mkisofs/mkisofs.h: Likewise.
30990 * util/mkisofs/rock.c: Likewise.
30991 * util/mkisofs/tree.c: Likewise.
30992 * util/mkisofs/write.c: Likewise.
30994 * util/mkisofs/eltorito.c (rcsid): Remove.
30995 * util/mkisofs/hash.c: Likewise.
30996 * util/mkisofs/joliet.c: Likewise.
30997 * util/mkisofs/name.c: Likewise.
30998 * util/mkisofs/rock.c: Likewise.
30999 * util/mkisofs/tree.c: Likewise.
31000 * util/mkisofs/write.c: Likewise.
31002 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31004 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
31005 instead of static allocation.
31006 * util/mkisofs/match.h: Likewise.
31008 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31010 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
31011 and `util/grub.d/10_linux.in'.
31012 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
31013 translatable Shell files.
31015 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31017 * Makefile.in ($(srcdir)/aclocal.m4): New target.
31019 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31021 * INSTALL: Document Automake is needed for bootstrap.
31022 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
31023 * util/grub.d/10_kfreebsd.in (bindir): New variable.
31024 Add gettext initialization.
31025 (kfreebsd_entry): Make menuentry output translatable.
31027 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31029 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
31030 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
31031 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
31032 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
31033 (LINGUAS): Auto-generate using `po/LINGUAS'.
31034 * po/LINGUAS: New file.
31036 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31038 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
31040 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
31041 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
31042 bindtextdomain() calls for gettext initialization.
31044 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31046 * gnulib/progname.c: New file (imported from Gnulib).
31047 * gnulib/progname.h: Likewise.
31048 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31049 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
31050 (usage): Replace `progname' with `program_name'.
31051 (main): Use set_program_name() for program name initialization.
31053 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31055 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
31057 * Makefile.in (CPPFLAGS): ... to here.
31059 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31061 * aclocal.m4: Move from here ...
31062 * acinclude.m4: ... to here.
31063 * autogen.sh: Add call to `aclocal'.
31064 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
31066 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31068 * Makefile.in (CLEANFILES): Add `po/*.mo'.
31069 (LINGUAS): New variable.
31070 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
31071 (install-local): Install MO files.
31072 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
31073 * include/grub/i18n.h: New file.
31074 * po/POTFILES: New file.
31075 * po/ca.po: New file.
31076 * util/grub.d/10_linux.in (bindir): New variable.
31077 Add gettext initialization.
31078 (linux_entry): Make menuentry output translatable.
31079 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31080 (usage): Make --help output translatable.
31081 (main): Initialize gettext.
31083 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31085 * import_gcry.py: New file (written by Vladimir with minor
31087 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31089 * INSTALL: Document that Python is required for bootstrap.
31091 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31093 Import ciphers from libgcrypt 1.4.4.
31095 * lib/libgcrypt/cipher/ChangeLog
31096 * lib/libgcrypt/cipher/ac.c
31097 * lib/libgcrypt/cipher/arcfour.c
31098 * lib/libgcrypt/cipher/bithelp.h
31099 * lib/libgcrypt/cipher/blowfish.c
31100 * lib/libgcrypt/cipher/camellia-glue.c
31101 * lib/libgcrypt/cipher/camellia.c
31102 * lib/libgcrypt/cipher/camellia.h
31103 * lib/libgcrypt/cipher/cast5.c
31104 * lib/libgcrypt/cipher/cipher.c
31105 * lib/libgcrypt/cipher/crc.c
31106 * lib/libgcrypt/cipher/des.c
31107 * lib/libgcrypt/cipher/dsa.c
31108 * lib/libgcrypt/cipher/ecc.c
31109 * lib/libgcrypt/cipher/elgamal.c
31110 * lib/libgcrypt/cipher/hash-common.c
31111 * lib/libgcrypt/cipher/hash-common.h
31112 * lib/libgcrypt/cipher/hmac-tests.c
31113 * lib/libgcrypt/cipher/md.c
31114 * lib/libgcrypt/cipher/md4.c
31115 * lib/libgcrypt/cipher/md5.c
31116 * lib/libgcrypt/cipher/primegen.c
31117 * lib/libgcrypt/cipher/pubkey.c
31118 * lib/libgcrypt/cipher/rfc2268.c
31119 * lib/libgcrypt/cipher/rijndael-tables.h
31120 * lib/libgcrypt/cipher/rijndael.c
31121 * lib/libgcrypt/cipher/rmd.h
31122 * lib/libgcrypt/cipher/rmd160.c
31123 * lib/libgcrypt/cipher/rsa.c
31124 * lib/libgcrypt/cipher/seed.c
31125 * lib/libgcrypt/cipher/serpent.c
31126 * lib/libgcrypt/cipher/sha1.c
31127 * lib/libgcrypt/cipher/sha256.c
31128 * lib/libgcrypt/cipher/sha512.c
31129 * lib/libgcrypt/cipher/tiger.c
31130 * lib/libgcrypt/cipher/twofish.c
31131 * lib/libgcrypt/cipher/whirlpool.c
31133 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31135 Fix build for systems without error().
31137 * gnulib/error.c: New file (imported from Gnulib).
31138 * gnulib/error.h: Likewise.
31139 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31140 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31141 (this variable is now used by error()).
31143 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
31145 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31146 instead of relying that char is signed.
31148 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31150 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31151 blocksize different from specified.
31152 (grub_pxefs_read): Likewise.
31154 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
31156 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31158 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31159 (grub_ata_readwrite): Likewise. Update 2 format strings.
31160 (grub_atapi_read): Likewise.
31162 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31163 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31164 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31165 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31166 (ata_mod_LDFLAGS): Move from here ...
31167 * conf/i386.rmk: ... to here ...
31168 * conf/x86_64-efi.rmk: ... and here.
31169 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31170 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31172 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31174 Relicense multiboot.h, with RMS' blessing.
31176 * include/multiboot.h: Change to X11 license.
31178 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31180 Support --version in grub-mkisofs.
31182 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31183 (OPTION_VERSION): New macro.
31184 (ld_options): Recognize --version.
31185 (usage): Move `program_name' from here ...
31186 (program_name): ... to here. Add `static' qualifier.
31187 (main): Recognize `OPTION_VERSION'.
31189 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
31191 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31192 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31194 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31196 Fix help2man generation for mkisofs.
31198 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31199 (usage): Send output to stdout (rather than stderr).
31201 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31203 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31204 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31205 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31206 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31207 (bin_SCRIPTS): Add `grub-mkfloppy'.
31208 (grub_mkfloppy_SOURCES): New variable.
31210 * util/grub-mkrescue.in: New file.
31211 * util/i386/pc/grub-mkfloppy.in: New file.
31213 * util/i386/coreboot/grub-mkrescue.in: Remove.
31214 * util/i386/pc/grub-mkrescue.in: Remove.
31216 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31218 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31220 * include/multiboot.h (struct multiboot_header): ... to here. Update
31222 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31224 * include/multiboot.h (struct multiboot_info): ... to here. Update
31226 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31228 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31230 * include/grub/multiboot.h (struct grub_mod_list): Move
31232 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31235 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31237 * include/multiboot2.h (multiboot_word): Rename from this ...
31238 (multiboot2_word): ... to this. Update all users.
31239 (multiboot_header): Rename from this ...
31240 (multiboot2_header): ... to this. Update all users.
31241 (multiboot_tag_header): Rename from this ...
31242 (multiboot2_tag_header): ... to this. Update all users.
31243 (multiboot_tag_start): Rename from this ...
31244 (multiboot2_tag_start): ... to this. Update all users.
31245 (multiboot_tag_name): Rename from this ...
31246 (multiboot2_tag_name): ... to this. Update all users.
31247 (multiboot_tag_module): Rename from this ...
31248 (multiboot2_tag_module): ... to this. Update all users.
31249 (multiboot_tag_memory): Rename from this ...
31250 (multiboot2_tag_memory): ... to this. Update all users.
31251 (multiboot_tag_unused): Rename from this ...
31252 (multiboot2_tag_unused): ... to this. Update all users.
31253 (multiboot_tag_end): Rename from this ...
31254 (multiboot2_tag_end): ... to this. Update all users.
31256 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31258 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31259 this platform we should support Multiboot1 first.
31261 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31262 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31263 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31265 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31267 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31268 of write calls (converting them to fwrite() if they aren't already).
31269 (get_torito_desc): Likewise.
31270 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31272 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31274 * util/i386/pc/grub-install.in: Move from here ...
31275 * util/grub-install.in: ... to here. Update all users.
31277 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
31279 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31281 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31283 Support for El Torito without floppy emulation.
31285 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31286 (init_boot_catalog): Improve error handling.
31287 (get_torito_desc): Don't use floppy emulation unless requested by
31288 user. Patch boot information table when requested via
31289 `-boot-info-table'.
31290 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31291 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31292 (use_boot_info_table): New variables.
31293 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31294 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31295 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31296 `--eltorito-emul-floppy'.
31297 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31298 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31299 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31300 (use_boot_info_table, get_731): New prototypes.
31301 * util/mkisofs/write.c (get_731): New function.
31303 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
31305 Fix the generation of the man page.
31307 * util/pc/i386/grub-install.in: Source
31308 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31310 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31312 Large file support for grub-mkisofs.
31314 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31315 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31316 (session_start): Upgrade type to `uint64_t'. Update all users.
31317 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31318 (struct directory_entry): Upgrade type of `starting_block' and
31319 `size' to `uint64_t'. Update all users.
31320 (struct deferred): Remove unused structure.
31321 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31323 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31324 file is larger than `UINT32_MAX'.
31325 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31326 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31328 (struct deferred_write): Upgrade type of `extent' and `size' to
31329 `uint64_t'. Update all users.
31330 (last_extent_written): Upgrade type to `uint64_t'. Update all
31332 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31333 Update all users. Upgrade type of `remain' to `int64_t' and
31334 `use' to `size_t'. Use error() to handle fread() errors.
31335 (write_files): Rely on write_one_file() rather than calling
31336 xfwrite() directly.
31338 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
31340 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31342 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31344 * util/mkisofs/fnmatch.c: Remove.
31345 * util/mkisofs/getopt1.c: Likewise.
31346 * util/mkisofs/getopt.c: Likewise.
31347 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31348 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31349 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31350 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31351 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31353 * configure.ac: Detect `mingw32msvc' host_os.
31354 Check for lstat(), getuid() and getgid().
31356 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31357 instances of `u_char' with `uint8_t'.
31359 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31360 [!HAVE_GETUID] (getuid): New function (stub).
31361 [!HAVE_GETGID] (getgid): Likewise.
31362 [!HAVE_LSTAT] (lstat): Likewise.
31363 [!S_IROTH] (S_IROTH): New macro (dummy).
31364 [!S_IRGRP] (S_IRGRP): Likewise.
31366 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31368 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31369 conditional expression).
31371 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31373 Import from Gnulib.
31375 * gnulib/fnmatch.c: New file.
31376 * gnulib/fnmatch.h: Likewise.
31377 * gnulib/fnmatch_loop.c: Likewise.
31378 * gnulib/getopt.c: Likewise.
31379 * gnulib/getopt.h: Likewise.
31380 * gnulib/getopt1.c: Likewise.
31381 * gnulib/getopt_int.h: Likewise.
31382 * gnulib/gettext.h: Likewise.
31384 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31386 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31387 * normal/handler.c (read_handler_list): Likewise.
31389 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31393 * kern/command.c (grub_register_command_prio): Use
31394 grub_zalloc() instead of explicitly zeroing data.
31395 * kern/list.c: Include `<grub/mm.h>'.
31396 (grub_named_list_find): Replace `0' with `NULL'.
31397 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31398 (fs_module_list): Change type to `grub_named_list_t'. Update all
31400 * normal/dyncmd.c (read_command_list): Add space between function
31401 call and parenthesis.
31402 * normal/handler.c (read_handler_list): Likewise.
31404 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31406 * normal/auth.c (punishment_delay): Moved from here ...
31407 (grub_auth_strcmp): ... to here (inside function).
31409 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31411 * include/grub/list.h (struct grub_named_list): Remove `const'
31412 qualifier from `name'.
31413 (struct grub_prio_list): Likewise.
31415 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31417 * normal/auth.c: Include `<grub/time.h>'.
31418 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31420 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31422 * normal/auth.c (punishment_delay): New variable.
31423 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31424 (grub_auth_check_authentication): Punish failed login attempts with
31425 an incremental (2^N) delay.
31427 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31429 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31430 path with $(srcdir).
31432 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31434 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31436 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31438 * util/i386/coreboot/grub-mkrescue.in: New file.
31439 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31442 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31443 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31444 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31446 * util/mkisofs/defaults.h: New file.
31447 * util/mkisofs/eltorito.c: Likewise.
31448 * util/mkisofs/exclude.h: Likewise.
31449 * util/mkisofs/fnmatch.c: Likewise.
31450 * util/mkisofs/getopt.c: Likewise.
31451 * util/mkisofs/getopt1.c: Likewise.
31452 * util/mkisofs/hash.c: Likewise.
31453 * util/mkisofs/include/fctldefs.h: Likewise.
31454 * util/mkisofs/include/mconfig.h: Likewise.
31455 * util/mkisofs/include/prototyp.h: Likewise.
31456 * util/mkisofs/include/statdefs.h: Likewise.
31457 * util/mkisofs/iso9660.h: Likewise.
31458 * util/mkisofs/joliet.c: Likewise.
31459 * util/mkisofs/match.c: Likewise.
31460 * util/mkisofs/match.h: Likewise.
31461 * util/mkisofs/mkisofs.c: Likewise.
31462 * util/mkisofs/mkisofs.h: Likewise.
31463 * util/mkisofs/multi.c: Likewise.
31464 * util/mkisofs/name.c: Likewise.
31465 * util/mkisofs/rock.c: Likewise.
31466 * util/mkisofs/tree.c: Likewise.
31467 * util/mkisofs/write.c: Likewise.
31469 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31471 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31474 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31476 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31477 `grub-mkimage' (and use $0 when possible).
31479 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31481 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31482 error message for excessively large memory map.
31484 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31486 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31489 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31491 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31492 message for coreboot users.
31494 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31496 Fix build with GNU gold.
31498 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31499 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31500 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31502 * aclocal.m4: Likewise.
31504 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
31506 * configure.ac (AC_PREREQ): Bump to 2.59d.
31507 * INSTALL: Make it more clear when Autoconf and Ruby are
31508 needed and when to run `./autogen.sh'.
31510 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31512 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31515 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31517 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31519 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31521 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31522 giving it to GNU Mach.
31524 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31526 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31527 GNU partition number to get internal GRUB partition number.
31529 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31531 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31532 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31534 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31536 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31537 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31540 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
31542 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31544 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31548 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31549 `-isystem=$(srcdir)/include'.
31551 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31553 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31554 checked (grub-install doesn't currently rely on it).
31556 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31560 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31561 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31562 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31563 * conf/i386-ieee1275.rmk: Likewise.
31564 * conf/i386-pc.rmk: Likewise.
31565 * conf/powerpc-ieee1275.rmk: Likewise.
31566 * conf/sparc64-ieee1275.rmk: Likewise.
31567 * conf/x86_64-efi.rmk: Likewise.
31569 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31571 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31573 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31575 * include/grub/misc.h: Stop checking for APPLE_CC.
31577 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31579 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31580 doesn't cause an infinite call loop.
31582 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
31584 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31587 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31589 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31591 * Makefile.in: Likewise.
31593 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31595 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31597 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31599 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31601 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31603 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31605 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31607 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31609 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31611 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31613 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31614 in $(MAKEINFO) invocation. This makes it clear in output that
31615 errors are being ignored.
31617 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31619 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31621 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31622 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31623 * conf/i386-ieee1275.rmk: Likewise.
31624 * conf/i386-pc.rmk: Likewise.
31625 * conf/powerpc-ieee1275.rmk: Likewise.
31626 * conf/sparc64-ieee1275.rmk: Likewise.
31627 * conf/x86_64-efi.rmk: Likewise.
31629 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
31631 * util/grub-editenv.c (main): If only a command is given, use
31632 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31633 (usage): FILENAME is now optional and has a default.
31635 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
31637 Improve grub-mkconfig performance when there are several menu
31638 entries on a single filesystem.
31640 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31641 prepare_grub_to_access_device.
31642 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31643 * util/grub.d/30_os-prober.in: Likewise.
31645 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31647 * util/grub.d/10_freebsd.in: Remove.
31648 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31649 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31651 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31653 * docs/grub.cfg: Fix example usage of *BSD loaders.
31655 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31657 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31658 grub_util_error() call.
31660 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31662 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31663 `reserved_first_sector' member.
31664 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31665 `reserved_first_sector' to 1.
31666 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31667 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31668 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31669 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31670 filesystems which begin at first sector.
31671 (options): New option --skip-fs-probe.
31672 (main): Handle --skip-fs-probe and pass it to setup().
31674 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31676 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31677 (memset): Fix function prototype.
31679 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31680 2009-10-25 Vasily Averin <vvs@parallels.com>
31682 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31683 `dirent.direntlen == 0'.
31685 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31687 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31689 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31691 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31693 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31694 `__trampoline_setup' and `__ucmpdi2'.
31695 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31696 that libgcc provides.
31698 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31700 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31701 * include/grub/sparc64/libgcc.h (memset): Likewise.
31702 * include/grub/misc.h (memset, memcmp): New function prototypes.
31704 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31706 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31708 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31710 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31712 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31713 * docs/grub.cfg: Compensate for recent change in multiboot
31714 loader (since 2009-08-14 it won't pass filename to payload).
31715 * util/grub.d/10_hurd.in: Likewise.
31717 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
31719 * config.guess: Update to latest version from config git
31721 * config.sub: Likewise.
31723 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31725 Fix build on sparc64.
31727 * configure.ac: Perform checks for libgcc symbols before
31728 adding `-nostdlib' to LDFLAGS.
31730 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31732 Let user specify OpenBSD root device.
31734 * loader/i386/bsd.c (openbsd_root): New variable.
31735 (openbsd_opts): New option 'root'.
31736 (OPENBSD_ROOT_ARG): New macro.
31737 (grub_openbsd_boot): Use 'openbsd_root'.
31738 (grub_cmd_openbsd): Fill 'openbsd_root'.
31740 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31742 * NEWS: Misc adjustments.
31744 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31746 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31748 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31750 * configure.ac: Bump version to 1.97.
31752 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
31754 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31755 -mno-3dnow on x86 architectures. Some toolchains enable these
31756 features by default, but they rely on registers that aren't enabled
31757 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31759 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31761 Make entry text a bit more readable.
31763 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31765 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31767 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31769 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31771 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31774 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31776 * configure.ac: Add missing dollar.
31778 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31780 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31782 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31783 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31785 * include/grub/sparc64/libgcc.h: Likewise. Use
31786 preprocessor conditionals.
31788 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31790 * conf/common.rmk (grub-dumpbios): Remove rule.
31791 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31792 * util/grub-dumpbios.in: Remove file.
31794 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31796 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31797 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31799 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31800 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31803 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31804 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31805 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31806 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31809 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31811 * term/tparm.c: Switch to GPLv3.
31813 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31815 * include/grub/i386/cpuid.h: Add header protection.
31817 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31819 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31821 * include/grub/i386/cpuid.h: New file.
31822 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31823 (has_longmode): Rename to ...
31824 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31825 `static' attribute.
31826 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31827 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31828 on a CPU that doesn't implement AMD64 instruction set.
31830 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
31832 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31833 that version.texi is rebuilt on version number changes.
31835 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
31837 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31840 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
31842 * util/i386/pc/grub-install.in: Source
31843 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31844 that the --grub-probe option will work.
31845 * util/sparc64/ieee1275/grub-install.in: Likewise.
31847 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31849 * configure.ac: Bump version to 1.97~beta4.
31851 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31853 Resync grub-mkdevicemap in x86_64-efi.
31855 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31856 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31857 `util/devicemap.c'.
31859 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
31861 * util/grub-editenv.c (create_envblk_file): Write new block with a
31862 .new suffix and then rename it into place, to ensure atomic
31865 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31867 Do not automatically install headers.
31869 * Makefile.in (include_DATA): Remove. Update all users.
31871 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31873 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31874 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31876 * util/osdetect.lua: Remove.
31877 * script/lua/lauxlib.c: Likewise.
31878 * script/lua/ldebug.c: Likewise.
31879 * script/lua/grub_main.c: Likewise.
31880 * script/lua/lauxlib.h: Likewise.
31881 * script/lua/ldebug.h: Likewise.
31882 * script/lua/ltablib.c: Likewise.
31883 * script/lua/liolib.c: Likewise.
31884 * script/lua/lstrlib.c: Likewise.
31885 * script/lua/lualib.h: Likewise.
31886 * script/lua/ldo.c: Likewise.
31887 * script/lua/ldump.c: Likewise.
31888 * script/lua/ldo.h: Likewise.
31889 * script/lua/loslib.c: Likewise.
31890 * script/lua/lundump.c: Likewise.
31891 * script/lua/grub_lib.c: Likewise.
31892 * script/lua/ldblib.c: Likewise.
31893 * script/lua/lundump.h: Likewise.
31894 * script/lua/lmem.c: Likewise.
31895 * script/lua/grub_lib.h: Likewise.
31896 * script/lua/lmathlib.c: Likewise.
31897 * script/lua/lstate.c: Likewise.
31898 * script/lua/ltm.c: Likewise.
31899 * script/lua/lvm.c: Likewise.
31900 * script/lua/lmem.h: Likewise.
31901 * script/lua/lstate.h: Likewise.
31902 * script/lua/ltm.h: Likewise.
31903 * script/lua/ltable.c: Likewise.
31904 * script/lua/lvm.h: Likewise.
31905 * script/lua/llex.c: Likewise.
31906 * script/lua/lgc.c: Likewise.
31907 * script/lua/grub_lua.h: Likewise.
31908 * script/lua/loadlib.c: Likewise.
31909 * script/lua/lfunc.c: Likewise.
31910 * script/lua/lopcodes.c: Likewise.
31911 * script/lua/lparser.c: Likewise.
31912 * script/lua/ltable.h: Likewise.
31913 * script/lua/llex.h: Likewise.
31914 * script/lua/lgc.h: Likewise.
31915 * script/lua/lfunc.h: Likewise.
31916 * script/lua/lbaselib.c: Likewise.
31917 * script/lua/lopcodes.h: Likewise.
31918 * script/lua/lparser.h: Likewise.
31919 * script/lua/lzio.c: Likewise.
31920 * script/lua/linit.c: Likewise.
31921 * script/lua/lobject.c: Likewise.
31922 * script/lua/llimits.h: Likewise.
31923 * script/lua/lstring.c: Likewise.
31924 * script/lua/lzio.h: Likewise.
31925 * script/lua/lapi.c: Likewise.
31926 * script/lua/lcode.c: Likewise.
31927 * script/lua/lua.h: Likewise.
31928 * script/lua/lobject.h: Likewise.
31929 * script/lua/lstring.h: Likewise.
31930 * script/lua/lapi.h: Likewise.
31931 * script/lua/lcode.h: Likewise.
31932 * script/lua/luaconf.h: Likewise.
31934 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
31936 * docs/grub.texi (Command-line and menu entry commands): Document
31937 date and echo commands.
31939 2009-09-24 Pavel Roskin <proski@gnu.org>
31941 * include/grub/kernel.h (struct grub_module_header): Remove
31942 `grub_module_header_types'. Make `type' unsigned. Make `size'
31943 32-bit on all platforms.
31944 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31945 8-bit field. Use grub_host_to_target32() for `size'.
31946 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31947 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31948 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31950 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31952 Fix "lost keypress" bug in at_keyboard.
31954 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31955 Checks for readyness of input buffer (without flushing it).
31956 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31957 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31959 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31961 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31962 size check within GRUB_MACHINE_PCBIOS section.
31964 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31966 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31968 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31969 KEYBOARD_ISREADY check.
31970 (grub_at_keyboard_checkkey): Rename to ...
31971 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31972 Remove gratuitous cast.
31974 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
31976 * configure.ac: Call AC_PROG_MKDIR_P.
31977 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31978 version.texi in $(builddir) rather than $(srcdir).
31979 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31980 to makeinfo's @include search path.
31982 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
31984 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31986 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
31988 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31991 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
31993 Build info documentation. Some code borrowed from Automake.
31995 * configure.ac: Check for makeinfo.
31996 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31997 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31999 (MOSTLYCLEANFILES): Add vti.tmp.
32000 (docs/version.texi, docs/stamp-vti): Update automatically.
32001 (docs/grub.info): Build info documentation. Use --force and ignore
32003 (all-local): Add $(INFOS).
32004 (install-local): Install info files.
32005 (uninstall): Uninstall info files.
32006 * docs/version.texi: Remove from revision control. This file is
32007 automatically generated on build now.
32008 * gendistlist.sh: Add `*.info'.
32010 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
32012 * kern/term.c: Fix indentation.
32014 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
32016 * util/hostdisk.c: Fix a comment.
32018 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
32020 Fix regression introduced in r2539.
32022 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
32025 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
32027 * util/grub.d/30_os-prober.in: Don't throw away stderr from
32028 os-prober. Under normal operation, it does not print anything to
32029 stderr; if it does, we need to debug it, and throwing away stderr
32030 makes that excessively difficult.
32032 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
32034 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
32036 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32038 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
32039 AC_LANG_PROGRAM from autoconf.
32040 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32041 prototypes (fixes warning).
32043 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
32044 `--disable-werror' was used.
32046 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32048 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
32049 uninitialized `lastaddr'.
32051 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
32053 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
32055 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
32057 * commands/test.c (get_fileinfo): Return immediately if
32058 grub_fs_probe fails.
32060 2009-09-14 José Martínez <xosemp@gmail.com>
32062 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
32064 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
32066 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
32069 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
32071 * configure.ac: Remove --enable-grub-pe2elf. Only build
32072 grub-pe2elf when needed by the build system itself.
32073 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32075 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32077 * configure.ac: Bump version to 1.97~beta3.
32078 * docs/version.texi: Likewise.
32080 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32082 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32083 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32085 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32086 (grub_linux_setup_video): ... to here (with some adjustments).
32088 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32090 Fix memory corruption issue (spotted by Colin Watson).
32092 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32093 causing returned size to be stored in an incorrect memory location.
32094 Fix use of uninitialized value when storing the returned size.
32096 2009-09-12 Yves Blusseau <blusseau@zetam.org>
32098 Change clean rules to properly remove files
32100 * genmk.rb: add new clean rules
32101 * Makefile.in (clean): add the new targets
32102 (mostlyclean): likewise
32104 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
32106 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32108 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32109 non-resident files.
32111 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
32113 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32114 part of bug #27349.
32116 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
32118 * util/grub-mkconfig.in: Make the created config mode 400 and
32119 print a warning if it fails.
32121 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32123 * util/grub.d/40_custom.in: Ask user to type custom entries below
32124 comment, rather than below 'exec tail' line.
32126 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
32128 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32129 visible in grub.cfg.
32131 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
32133 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32136 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
32138 * docs/grub.cfg: Add an example menu entry for memtest86+.
32140 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
32142 * config.guess: Update to latest version from config git.
32143 * config.sub: Likewise.
32145 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
32147 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32148 unknown-command case. Fixes bug #27320.
32150 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
32152 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32153 `help' if the command exists.
32155 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32157 * INSTALL: Require GCC 4.1.3 or later.
32159 2009-09-06 Yves Blusseau <blusseau@zetam.org>
32161 * Makefile.in (RMKFILES): add i386-qemu.rmk
32162 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32163 $(srcdir)/stamp-h.in
32165 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32167 * util/grub-probe.c (probe): Comment out buggy codepath, which
32168 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32169 should be re-enabled after 1.97.
32171 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
32173 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32176 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32178 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32179 unnecessary calls to grub_error.
32181 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
32183 * NEWS: Mention `keystatus' and Unicode fonts.
32185 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32187 * configure.ac: Bump version to 1.97~beta2.
32188 * docs/version.texi: Likewise.
32190 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
32192 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32193 containing unwind information in some cases where it previously did
32194 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32195 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32198 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32200 Embedding loadenv module into grub-emu
32202 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32204 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32205 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32206 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32207 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32208 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32209 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32211 2009-09-03 Magnus Granberg <zorry@ume.nu>
32213 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32214 include -fPIE in the default specs.
32215 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32218 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
32220 * INSTALL: Note that GNU Bison 2.3 or later is required.
32222 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
32224 * kern/i386/pc/startup.S: Fix typo.
32226 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32228 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32231 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32233 * docs/grub.texi (Naming convention): Describe one-based partition
32235 (Device syntax): Likewise.
32236 (File name syntax): Likewise.
32237 (Block list syntax): Likewise.
32238 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32240 (File name syntax): Likewise.
32241 (Command-line and menu entry commands): Document acpi, blocklist,
32242 crc, export, insmod, keystatus, ls, set, and unset commands.
32244 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32246 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32247 to avoid implying that only one of --shift, --ctrl, or --alt may be
32250 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
32252 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32253 rather than comparing against S_IFREG, which will almost never work.
32255 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32257 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32258 (write_blocklists): Likewise.
32260 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
32262 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32263 argument to grub_printf.
32265 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
32267 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
32270 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32272 * kern/file.c (grub_file_read): Spelling fix
32274 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32276 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32277 loading of headers in some cases.
32279 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32281 * configure.ac: Bump version to 1.97~beta1.
32282 * docs/version.texi: Likewise.
32284 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
32286 * include/grub/i386/xnu.h: Add license header.
32287 include grub/err.h explicitly.
32289 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32291 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32292 to `ufs' in the vfs.root.mountfrom kernel parameter.
32294 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32296 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32298 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32299 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32301 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32302 `ARRAY_SIZE' macro.
32304 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32306 * kern/file.c (grub_file_read): Check offset.
32307 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32308 * fs/jfs.c (grub_jfs_read_file): Likewise.
32309 * fs/ntfs.c (grub_ntfs_read): Likewise.
32310 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32311 * fs/minix.c (grub_minix_read_file): Correct offset check.
32312 * fs/ufs.c (grub_ufs_read_file): Likewise.
32314 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32316 * term/i386/pc/console.c (bios_data_area): Cast
32317 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32319 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32321 1-bit optimised blitters.
32323 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32325 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32326 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32327 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32328 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32329 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32330 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32331 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32333 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32334 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32335 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32336 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32337 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32338 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32339 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32341 * video/video.c (grub_video_get_blit_format): Return
32342 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32344 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32346 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32347 the first argument to grub_printf.
32349 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
32350 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32352 Add `getkeystatus' terminal method. Add a new `keystatus' command
32355 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32356 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32357 modifier key bitmasks.
32358 (struct grub_term_input): Add `getkeystatus' member.
32359 (grub_getkeystatus): Add prototype.
32360 * kern/term.c (grub_getkeystatus): New function.
32362 * include/grub/i386/pc/memory.h
32363 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32364 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32366 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32367 (grub_console_term_input): Set `getkeystatus' member.
32368 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32370 (grub_usb_keyboard_getreport): Likewise.
32371 (grub_usb_keyboard_checkkey): Likewise.
32372 (grub_usb_keyboard_getkeystatus): New function.
32373 (grub_usb_keyboard_term): Set `getkeystatus' member.
32375 * commands/keystatus.c: New file.
32376 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32377 (keystatus_mod_SOURCES): New variable.
32378 (keystatus_mod_CFLAGS): Likewise.
32379 (keystatus_mod_LDFLAGS): Likewise.
32380 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32381 commands/keystatus.c.
32382 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32383 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32384 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32385 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32386 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32387 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32389 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32391 Split befs.mod and afs.mod into *_be.mod and *.mod
32393 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32394 (grub_fstest_SOURCES): Likewise.
32395 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32396 (afs_be_mod_SOURCES): New variable.
32397 (afs_be_mod_CFLAGS): Likewise.
32398 (afs_be_mod_LDFLAGS): Likewise.
32399 (befs_be_mod_SOURCES): Likewise.
32400 (befs_be_mod_CFLAGS): Likewise.
32401 (befs_be_mod_LDFLAGS): Likewise.
32402 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32403 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32404 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32405 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32406 (grub_emu_SOURCES): Likewise.
32407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32410 * fs/afs_be.c: New file.
32411 * fs/befs_be.c: New file.
32412 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32413 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32414 (U16): Replaced with ...
32415 (grub_afs_to_cpu16): ...this. All users updated.
32416 (U32): Replaced with ...
32417 (grub_afs_to_cpu32): ...this. All users updated.
32418 (U64): Replaced with ...
32419 (grub_afs_to_cpu64): ...this. All users updated.
32420 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32421 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
32422 (grub_afs_validate_sblock): Check only one endianness.
32423 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32424 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32425 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32426 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32427 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32428 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32429 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32430 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32432 2009-08-26 Bean <bean123ch@gmail.com>
32434 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32436 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32437 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32438 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32440 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32442 NetBSD memory map support.
32444 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32445 (grub_netbsd_btinfo_mmap_header): New structure.
32446 (grub_netbsd_btinfo_mmap_entry): Likewise.
32447 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32449 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32451 Enable bsd.mod on coreboot.
32453 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32454 (bsd_mod_SOURCES): New variable.
32455 (bsd_mod_CFLAGS): Likewise.
32456 (bsd_mod_LDFLAGS): Likewise.
32457 (bsd_mod_ASFLAGS): Likewise.
32458 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32459 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32461 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32463 Cleanup NetBSD root support.
32465 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32466 grub_bsd_get_device.
32469 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
32471 * util/grub.d/00_header.in: Move check for the video backend of
32472 gfxterm from here ...
32473 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32474 a suitable video backend.
32476 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32478 Fix breakage in grub-setup.
32480 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32481 "msdos_partition_map".
32483 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32485 Fix breakage in normal/auth.c.
32487 * normal/auth.c (grub_iswordseparator): New function.
32489 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32491 Authentication support.
32493 * commands/password.c: New file.
32494 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32495 (password_mod_SOURCES): New variable.
32496 (password_mod_CFLAGS): Likewise.
32497 (password_mod_LDFLAGS): Likewise.
32498 (normal_mod_SOURCES): Add normal/auth.c.
32499 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32501 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32502 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32503 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32505 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32506 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32507 * include/grub/auth.h: New file.
32508 * include/grub/err.h (grub_err_t): New enum value
32509 GRUB_ERR_ACCESS_DENIED.
32510 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32512 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32513 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32515 * normal/auth.c: New file.
32516 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32517 (grub_cmdline_run): Don't allow to go to command line without
32519 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32520 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32521 menuentry without superuser rights.
32522 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32523 user isn't a superuser.
32525 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32527 Save space by inlining misc.c functions.
32529 * kern/misc.c (grub_iswordseparator): Made static.
32530 * kern/misc.c (grub_strcat): Moved from here ...
32531 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32532 * kern/misc.c (grub_strncat): Moved from here ...
32533 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32534 * kern/misc.c (grub_strcasecmp): Moved from here ...
32535 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32536 * kern/misc.c (grub_strncasecmp): Moved from here ...
32537 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32538 * kern/misc.c (grub_isalpha): Moved from here ...
32539 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32540 * kern/misc.c (grub_isdigit): Moved from here ...
32541 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32542 * kern/misc.c (grub_isgraph): Moved from here ...
32543 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32544 * kern/misc.c (grub_tolower): Moved from here ...
32545 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32547 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32549 * script/sh/function.c (grub_script_function_find): Cut error message
32550 not to flood terminal.
32551 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32553 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32555 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
32557 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32558 `report' grub_uint8_t *.
32559 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32560 Use a 50-millisecond timeout rather than just repeating
32561 grub_usb_keyboard_getreport 50 times.
32562 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32564 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32566 Rename *_partition_map to part_*
32568 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32569 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32570 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32571 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32573 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32575 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32576 * util/grub-probe.c (probe_partmap): Don't transform partition name
32577 to get module name.
32579 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32581 Fix OpenBSD and NetBSD support.
32583 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32584 memory address conflict.
32585 (OPENBSD_MMAP_ACPI): New definition.
32586 (OPENBSD_MMAP_NVS): Likewise.
32587 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32588 and OPENBSD_MMAP_NVS.
32589 Add memory map terminator
32590 Explicit cast when calling grub_unix_real_boot.
32591 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
32593 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32595 Let user specify NetBSD root device.
32597 * loader/i386/bsd.c (netbsd_root): New variable.
32598 (netbsd_opts): New option 'root'.
32599 (NETBSD_ROOT_ARG): New macro.
32600 (grub_netbsd_boot): Use 'netbsd_root'.
32601 (grub_bsd_unload): Free 'netbsd_root'.
32602 (grub_cmd_netbsd): Fill 'netbsd_root'.
32604 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32606 Support for 64-bit NetBSD.
32608 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32609 point when booting non-FreeBSD.
32611 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32613 Support --no-smp and --no-acpi for NetBSD.
32615 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32616 (NETBSD_AB_NOACPI): Likewise.
32617 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32618 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32620 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32622 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32624 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32625 errors. Call grub_error when needed.
32627 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32629 * commands/search.c (search_fs): Try searching without autoload first.
32630 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32631 filesystem module explicitly for faster booting.
32633 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
32635 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32637 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
32639 * util/grub.d/30_os-prober.in: Disable os-prober if
32640 `GRUB_DISABLE_OS_PROBER' was set to true.
32642 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32644 * partmap/pc.c: Rename to ...
32645 * partmap/msdos.c: ... this. Update all users.
32646 (grub_pc_partition_map): Rename to ...
32647 (grub_msdos_partition_map): ... this. Update all users.
32649 * parttool/pcpart.c: Rename to ...
32650 * parttool/msdospart.c: ... this. Update all users.
32652 * include/grub/pc_partition.h: Rename to ...
32653 * include/grub/msdos_partition.h: ... this. Update all users.
32654 (grub_pc_partition_bsd_entry): Rename to ...
32655 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32656 (grub_pc_partition_disk_label): Rename to ...
32657 (grub_msdos_partition_disk_label): ... this. Update all users.
32658 (grub_pc_partition_entry): Rename to ...
32659 (grub_msdos_partition_entry): ... this. Update all users.
32660 (grub_pc_partition_mbr): Rename to ...
32661 (grub_msdos_partition_mbr): ... this. Update all users.
32662 (grub_pc_partition): Rename to ...
32663 (grub_msdos_partition): ... this. Update all users.
32664 (grub_pc_partition_is_empty): Rename to ...
32665 (grub_msdos_partition_is_empty): ... this. Update all users.
32666 (grub_pc_partition_is_extended): Rename to ...
32667 (grub_msdos_partition_is_extended): ... this. Update all users.
32668 (grub_pc_partition_is_bsd): Rename to ...
32669 (grub_msdos_partition_is_bsd): ... this. Update all users.
32671 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32672 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32673 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32674 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32675 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32676 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32677 (gpt_mod_LDFLAGS): Rename to ...
32678 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32679 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32680 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32681 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32682 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32683 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32684 (part_gpt_mod_LDFLAGS): ... this.
32685 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32686 `pcpart.mod' to `msdospart.mod'.
32687 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32689 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32690 (msdospart_mod_LDFLAGS): ... this.
32692 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32694 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32695 (openbsd_opts): Likewise.
32696 (netbsd_opts): Likewise.
32697 (freebsd_flags): Added 0 terminator.
32698 (openbsd_flags): Likewise.
32699 (netbsd_flags): Likewise.
32700 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32701 (grub_cmd_freebsd): Transformed into extended command.
32702 (grub_cmd_openbsd): Likewise.
32703 (grub_cmd_netbsd): Likewise.
32704 (cmd_freebsd): Changed type to grub_extcmd_t.
32705 (cmd_openbsd): Likewise.
32706 (cmd_netbsd): Likewise.
32707 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32708 grub_cmd_openbsd as extended commands.
32709 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32710 cmd_netbsd and cmd_openbsd
32712 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32714 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32716 2009-08-21 Pavel Roskin <proski@gnu.org>
32718 * Makefile.in (install-local): When checking if a file is in the
32719 build directory, use "test -e" to detect symlinks.
32721 * Makefile.in (install-local): Remove all files in
32722 $(DESTDIR)$(pkglibdir) before installing new files there.
32724 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
32726 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32729 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
32731 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32732 explicitly specified by the user.
32734 2009-08-18 Pavel Roskin <proski@gnu.org>
32736 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32737 grub_uint8_t pointer for data.
32738 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32740 * video/fb/fbutil.c: Remove unnecessary casts.
32742 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
32746 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32747 (grub_vbe_set_video_mode): Save active mode info
32748 only after setting the mode.
32749 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32752 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
32754 Rename variables for clarity.
32756 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32757 (active_vbe_mode_info): ... this. All users updated.
32758 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32760 (initial_mode): Rename to ...
32761 (initial_vbe_mode): ... this. All users updated.
32762 (mode_in_use): Rename to ..
32763 (vbe_mode_in_use): ... this. All users updated.
32764 (mode_list): Rename to ..
32765 (vbe_mode_list): ... this. All users updated.
32766 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32767 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32768 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32769 'mode_list_size' to 'vbe_mode_list_size'.
32770 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32771 'best_mode_info' to 'best_vbe_mode_info' and
32772 'best_mode' to 'best_vbe_mode'
32774 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
32776 Remove duplicate grub_video_fb_get_video_ptr.
32778 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32779 (grub_video_fb_get_video_ptr): ... this.
32780 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32781 * video/fb/fbutil.c: Add comment about addressing.
32782 (get_data_ptr): Rename to ...
32783 (grub_video_fb_get_video_ptr): ... this. All users updated.
32784 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32786 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32788 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32789 grub_dprintf() that was just added.
32791 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32793 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32794 (DEFAULT_VIDEO_MODE): Remove macros.
32795 (grub_linux_boot): Remove assumption that Linux has FB support,
32796 and use "text" as default video mode.
32798 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32800 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32802 * fs/fat.c (grub_fat_read_data): Likewise.
32804 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32806 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32808 (grub_module): Likewise.
32810 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32812 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32813 mbi->cmdline but free playground.
32815 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32817 Handle group offset on UFS1.
32819 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32820 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32822 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32824 Split ufs.mod into ufs1.mod and ufs2.mod.
32826 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32827 (grub_fstest_SOURCES): Likewise.
32828 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32829 (ufs_mod_SOURCES): Remove.
32830 (ufs_mod_CFLAGS): Likewise.
32831 (ufs_mod_LDFLAGS): Likewise.
32832 (ufs1_mod_SOURCES): New variable.
32833 (ufs1_mod_CFLAGS): Likewise.
32834 (ufs1_mod_LDFLAGS): Likewise.
32835 (ufs2_mod_SOURCES): New variable.
32836 (ufs2_mod_CFLAGS): Likewise.
32837 (ufs2_mod_LDFLAGS): Likewise.
32838 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32839 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32841 (grub_emu_SOURCES): Likewise.
32842 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32843 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32844 (grub_setup_SOURCES): Likewise.
32845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32846 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32847 (grub_setup_SOURCES): Likewise.
32848 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32850 * fs/ufs2.c: New file.
32851 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32853 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32857 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32858 subsystem at the end.
32859 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32860 (video_fb_mod_SOURCES): New variable.
32861 (video_fb_mod_CFLAGS): Likewise.
32862 (video_fb_mod_LDFLAGS): Likewise.
32863 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32864 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32865 * video/i386/pc/vbeblit.c: Moved from here ...
32866 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32867 * video/i386/pc/vbefill.c: Moved from here ...
32868 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32869 * video/i386/pc/vbeutil.c: Moved from here ...
32870 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32871 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32872 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32873 * include/grub/i386/pc/vbefill.h: Moved from here ...
32874 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32875 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32876 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32877 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32878 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32879 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32880 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32881 (grub_video_adapter): Added 'get_info_and_fini'.
32882 (grub_video_get_info_and_fini): New prototype.
32883 (grub_video_set_mode): make modestring const char *.
32884 * loader/i386/linux.c (grub_linux_setup_video): Use
32885 grub_video_get_info_and_fini.
32886 (grub_linux_boot): Move modesetting just before booting.
32887 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32888 grub_video_get_info_and_fini.
32889 * video/i386/pc/vbe.c: Moved framebuffer part ...
32890 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32891 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32892 grub_video_fbstd_colors and grub_video_fb_set_palette.
32893 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32894 grub_video_fb_init.
32895 (grub_video_vbe_fini): Use grub_video_fb_fini.
32896 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32897 render_target and use grub_video_fb_set_active_render_target and
32898 grub_video_fb_set_palette.
32899 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32900 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32901 (grub_video_vbe_adapter): Use framebuffer.
32902 * video/video.c (grub_video_get_info_and_fini): New function.
32903 (grub_video_set_mode): Make modestring const char *.
32904 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32905 values are already initialised.
32907 2009-08-14 Pavel Roskin <proski@gnu.org>
32909 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32911 * boot/i386/pc/diskboot.S: Likewise.
32912 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32913 sectors allow compilation on MacOSX.
32914 * conf/i386-pc.rmk: Enable unconditional compilation of
32917 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
32919 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32920 * util/grub.d/00_header.in: Enter interruptible sleep if
32921 GRUB_HIDDEN_TIMEOUT is set.
32923 2009-08-13 Yves Blusseau <blusseau@zetam.org>
32925 * include/grub/symbol.h: Add the LOCAL macro.
32926 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32927 starting with "L_".
32929 2009-08-13 Pavel Roskin <proski@gnu.org>
32931 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32932 any modern compilers we support.
32934 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32935 Use local labels starting with "L_" so that Apple assembler
32936 knows they are local.
32938 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32940 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32941 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32942 (bsd_kernel_types): ... this enum.
32944 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32945 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32946 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32948 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32949 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32950 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32953 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32955 * util/grub-dumpdevtree: Moved from here ...
32956 * util/i386/efi/grub-dumpdevtree: ... to here.
32957 (hexify): New function. Converts a string to its hex version.
32958 Generate hex versions of "efi" and "device-properties" by calling
32959 hexify() on the ASCII strings rather than by hardcoding numbers.
32961 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32963 * fs/jfs.c: Update copyright year.
32965 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
32967 * util/grub.d/00_header.in: Fix a comment.
32968 * util/grub.d/10_linux.in: Likewise.
32969 * util/grub.d/10_windows.in: Likewise.
32970 * util/grub.d/10_hurd.in: Likewise.
32972 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
32974 * util/grub-mkconfig.in: Allow the user to specify the used font
32977 2009-08-08 Pavel Roskin <proski@gnu.org>
32979 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32980 available, xfs.mod needs it now.
32982 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32983 the "g" modifier in sed when the intention is to strip something
32984 once. This fixes comparison of kernels with multiple dashes.
32986 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32987 on it. Add missing space before closing bracket. Fix
32988 misleading formatting.
32990 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32992 * docs/grub.texi: Major overhaul. Remove all sections that are
32993 specific to GRUB Legacy, or mostly composed of Legacy-specific
32996 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32998 * docs/version.texi: New file. Provides version information for
33001 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33003 * docs/grub.texi: Update CVS information to SVN.
33004 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
33006 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33008 * util/grub-mkconfig.in: Remove a wrong `fi'.
33010 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33012 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
33013 (grub_jfs_uuid): New function.
33014 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33016 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
33018 * util/grub-mkconfig_lib.in (font_path): Move the functionality
33020 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
33021 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
33023 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33025 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
33026 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
33029 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
33030 not just "vmlinu[zx]".
33031 Moved from here ...
33032 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
33035 * util/grub.d/10_linux.in (find_latest): Moved from here ...
33036 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
33039 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33041 * util/grub.d/10_freebsd.in: Use an absolute device path for
33042 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
33044 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
33046 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
33047 handling of multiple abstraction modules.
33049 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
33051 Fix a bug resulting in black screen when loading Linux using a
33054 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
33057 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
33058 (grub_vbe_bios_getset_dac_palette_width): New function.
33059 (grub_vbe_bios_get_dac_palette_width)
33060 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
33061 grub_vbe_bios_getset_dac_palette_width()).
33063 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
33064 check for return status.
33065 (grub_vbe_get_video_mode_info): When getting information for a packed
33066 mode (<= 8 bpp), obtain DAC palette width using
33067 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
33068 {red,green,blue}_mark_size.
33070 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
33072 * commands/search.c (options): Fix help output to match actual code.
33074 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33076 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33079 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33081 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33082 on XFS or ReiserFS.
33084 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33086 Support Apple partition map with sector size different from 512 bytes.
33088 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33089 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33090 and 'apart.partmap_size'.
33092 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33093 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33097 * commands/i386/cpuid.c (options): New variable.
33098 (grub_cmd_cpuid): Return real error.
33099 (GRUB_MOD_INIT(cpuid)): Declare options.
33101 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33103 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33106 2009-07-31 Bean <bean123ch@gmail.com>
33108 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33110 (grub_fshelp_node): Move inode field to the end.
33111 (grub_xfs_data): Remove inode field.
33112 (grub_xfs_inode_block): Calculate inode size using sblock.
33113 (grub_xfs_inode_offset): Likewise.
33114 (grub_xfs_read_inode): Calculate inode size using sblock.
33115 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33116 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33117 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33118 to match inode size.
33119 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33120 not accessible when data is null.
33121 (grub_xfs_open): Likewise.
33123 2009-07-31 Bean <bean123ch@gmail.com>
33125 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33126 Don't change pv->disk if it's already set.
33128 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33129 (grub_raid_register): ... here.
33130 (grub_raid_rescan): Removed.
33132 * include/grub/raid.h (grub_raid_rescan): Removed.
33134 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33135 (fstest): Replace grub_raid_rescan with module fini function followed
33138 * util/grub-probe.c: Add include file <grub/raid.h>.
33139 (probe_raid_level): New function.
33140 (probe): Detect abstraction by walking the disk device, support two
33141 level of abstraction (LVM on RAID) when detecting partition map.
33143 2009-07-31 Pavel Roskin <proski@gnu.org>
33145 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33146 to grub_zalloc(), it was erroneous.
33147 Reported by Bean <bean123ch@gmail.com>
33149 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33151 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
33152 embedding zone, not only the first one.
33154 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
33156 * term/gfxterm.c (clear_char): New function.
33157 (grub_virtual_screen_setup): Use clear_char.
33158 (scroll_up): Likewise.
33159 (grub_virtual_screen_cls): Likewise.
33161 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
33163 * util/deviceiter.c (get_acceleraid_disk_name): New static
33165 (grub_util_iterate_devices): Handle Accelraid devices.
33166 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33168 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33170 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33171 separator for the suggested gfxpayload string (';' collides with the
33172 parser and needs escaping).
33174 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33176 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33177 Clear direction flag before jumping to OS.
33178 (grub_multiboot2_real_boot): Likewise.
33180 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
33182 * util/i386/pc/grub-install: Fix parsing of --disk-module
33185 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
33187 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33190 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
33192 * util/grub-mkconfig.in (package_version): New variable.
33193 Use it do display the version.
33195 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
33197 * kern/file.c (grub_file_open): Revert to previous check with
33200 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33202 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33203 from help line. It's out of sync with code.
33205 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33207 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33208 entries on failed boot.
33210 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
33212 * kern/file.c (grub_file_open): Fix an error check.
33214 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33216 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33217 partition map couldn't be identified.
33219 2009-07-23 Pavel Roskin <proski@gnu.org>
33221 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33222 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33223 case of little endian words becomes just an optimization.
33224 Respect const modifier.
33225 (md5_final): Use code that doesn't depend on endianness.
33227 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33228 to avoid loss of upper bits if align is unsigned and shorter
33231 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33233 UUID support for UFS
33235 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33236 (grub_ufs_uuid): New function.
33237 (grub_ufs_fs): add .uuid
33239 2009-07-21 Pavel Roskin <proski@gnu.org>
33241 * kern/dl.c (grub_dl_check_header): Make static.
33243 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
33245 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33246 add drivemap for Vista. It breaks Windows 7.
33248 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33250 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33253 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33257 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33258 (grub_fstest_SOURCES): Likewise.
33259 (pkglib_MODULES): Add befs.mod.
33260 (befs_mod_SOURCES): New variable.
33261 (befs_mod_CFLAGS): Likewise.
33262 (befs_mod_LDFLAGS): Likewise.
33263 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33264 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33265 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33266 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33267 (grub_setup_SOURCES): Likewise.
33268 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33269 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33270 (grub_setup_SOURCES): Likewise.
33271 * fs/befs.c: New file.
33272 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33273 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33274 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33275 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33276 (B_KEY_INDEX_ALIGN): New declaration.
33277 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33278 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33279 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33280 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33281 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33282 (grub_afs_mount) [MODE_BFS]: Likewise.
33283 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33284 (grub_afs_fs): Use GRUB_AFS_FSNAME
33285 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33286 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33287 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33288 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33290 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33292 * util/getroot.c (find_root_device): Add support for MacOSX.
33293 * util/hostdisk.c: Likewise.
33295 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33297 * font/font.c (find_glyph): Check whether a font is present to avoid
33298 segmentation fault.
33300 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
33302 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33304 2009-07-20 Pavel Roskin <proski@gnu.org>
33306 * configure.ac: Trim excessively wordy excuses.
33308 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33310 Add symlink, mtime and label support to AtheFS.
33312 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33313 (grub_afs_iterate_dir): Handle symlinks.
33314 (grub_afs_open): Use grub_afs_read_symlink.
33315 (grub_afs_dir): Likewise.
33317 (grub_afs_label): New function.
33318 (grub_afs_fs): Add grub_afs_label.
33319 (grub_afs_read_symlink): New function.
33321 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33323 Fix AtheFS support.
33325 * fs/afs.c: Fix comments style.
33326 (grub_afs_blockrun): Declare as packed.
33327 (grub_afs_datastream): Likewise.
33328 (grub_afs_bnode): Likewise.
33329 (grub_afs_btree): Likewise.
33330 (grub_afs_sblock): Likewise.
33331 Declare `name' as char.
33332 (grub_afs_inode): Declare as packed.
33333 Change void *vnode to grub_uint32_t unused.
33334 (grub_afs_iterate_dir): Check that key_size is positive.
33335 (grub_afs_mount): Don't read superblock twice.
33336 (grub_afs_dir): Don't free node in case of error,
33337 grub_fshelp_find_file already handles this.
33338 (grub_afs_open): Likewise.
33340 2009-07-19 Pavel Roskin <proski@gnu.org>
33342 * Makefile.in: Remove LIBLZO and enable_lzo.
33343 * conf/i386-pc.rmk: Remove lzo support.
33344 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33345 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33347 * kern/i386/pc/lzo1x.S: Remove.
33348 * kern/i386/pc/startup.S: Remove lzo support.
33349 * util/i386/pc/grub-mkimage.c: Likewise.
33351 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33353 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33354 * fs/xfs.c (grub_xfs_dir): Likewise.
33355 * fs/afs.c (grub_afs_dir): Likewise.
33356 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33357 (grub_iso9660_open): Likewise.
33358 * fs/jfs.c (grub_jfs_open): Likewise.
33359 * fs/ext2.c (grub_ext2_dir): Likewise.
33360 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33361 * script/sh/lexer.c (grub_script_yylex): Likewise.
33363 2009-07-16 Pavel Roskin <proski@gnu.org>
33365 * configure.ac: Never add "-c" to CFLAGS.
33367 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33369 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33370 grub_cv_cc_efiemu should be used.
33372 * configure.ac: Typo fixes.
33374 * kern/mm.c (grub_zalloc): New function.
33375 (grub_debug_zalloc): Likewise.
33376 * include/grub/mm.h: Declare grub_zalloc() and
33377 grub_debug_zalloc().
33378 * util/misc.c (grub_zalloc): New function.
33379 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33380 instead of grub_malloc(), remove unneeded initializations.
33381 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33382 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33383 * commands/parttool.c (grub_cmd_parttool): Likewise.
33384 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33385 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33386 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33387 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33388 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33389 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33390 (grub_cmd_efiemu_pnvram): Likewise.
33391 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33392 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33393 (grub_iso9660_iterate_dir): Likewise.
33394 * fs/jfs.c (grub_jfs_opendir): Likewise.
33395 * fs/ntfs.c (list_file): Likewise.
33396 (grub_ntfs_mount): Likewise.
33397 * kern/disk.c (grub_disk_open): Likewise.
33398 * kern/dl.c (grub_dl_load_core): Likewise.
33399 * kern/elf.c (grub_elf_file): Likewise.
33400 * kern/env.c (grub_env_context_open): Likewise.
33401 (grub_env_set): Likewise.
33402 (grub_env_set_data_slot): Likewise.
33403 * kern/file.c (grub_file_open): Likewise.
33404 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33405 * loader/i386/multiboot.c (grub_module): Likewise.
33406 * loader/xnu.c (grub_xnu_create_key): Likewise.
33407 (grub_xnu_create_value): Likewise.
33408 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33409 (read_config_file): Likewise.
33410 * normal/menu_entry.c (make_screen): Likewise.
33411 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33412 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33413 * script/sh/script.c (grub_script_parse): Likewise.
33414 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33415 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33416 * video/readers/png.c (grub_png_output_byte): Likewise.
33417 (grub_video_reader_png): Likewise.
33419 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33421 Enable all targets that can be built by default
33423 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
33424 grub-mkfont and grub-fstest if they can be built
33426 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33428 Fix hang and segmentation fault in grub-emu-usb
33430 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33431 * util/usb.c (grub_libusb_devices): likewise
33432 (grub_libusb_init): rename to ...
33433 (GRUB_MOD_INIT (libusb)):...this
33434 (grub_libusb_fini): rename to ..
33435 (GRUB_MOD_FINI (libusb)):...this
33436 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33437 * include/grub/disk.h (grub_raid_init): removed, it's useless
33438 (grub_raid_fini): likewise
33439 (grub_lvm_init): likewise
33440 (grub_lvm_fini): likewise
33441 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33444 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33448 * Makefile.in (LIBUSB): new macro
33449 * genmk.rb (Utility/print_tail): new method
33450 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33451 (top level): call util.print_tail at the end.
33453 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33455 Make FreeBSD accept zpool.cache
33457 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33458 type is /boot/zfs/zpool.cache
33460 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33464 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33465 correct wrong typedef
33466 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33468 2009-07-15 Pavel Roskin <proski@gnu.org>
33470 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33471 * kern/disk.c (struct grub_disk_cache): Likewise.
33473 * commands/probe.c (options): Typo fix.
33475 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33476 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33478 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33480 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33481 the end of "Error" to make the message more readable.
33483 * boot/i386/pc/boot.S (kernel_segment): Remove.
33484 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33487 * boot/i386/pc/boot.S (boot_version): Remove.
33488 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33491 * include/grub/i386/pc/boot.h: Sort all offsets.
33492 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33493 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33494 * boot/i386/pc/boot.S: Assert location of every offset listed in
33495 include/grub/i386/pc/boot.h.
33497 2009-07-13 Pavel Roskin <proski@gnu.org>
33499 * include/grub/i386/coreboot/machine.h: Rename
33500 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33501 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33502 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33504 * kern/dl.c: Force native word size to suppress warnings when
33505 compiling grub-emu.
33507 * kern/device.c (grub_device_iterate): Change struct part_ent to
33508 hold the name, not a pointer to it. Use one grub_malloc() per
33509 partition, not two. Free partition_name if grub_malloc() fails.
33510 Set ents to NULL only before grub_partition_iterate() is called.
33512 2009-07-11 Bean <bean123ch@gmail.com>
33514 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33517 2009-07-10 Bean <bean123ch@gmail.com>
33518 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33520 * kern/ieee1275/openfw.c (grub_children_iterate)
33521 (grub_devalias_iterate): Fix size evaluation for property or path
33522 strings, which was broken since r2132.
33524 2009-07-07 Pavel Roskin <proski@gnu.org>
33526 * commands/search.c (search_file): Merge into ...
33527 (search_fs): ... this. Accept search type as argument.
33528 (grub_cmd_search): Pass search type to search_fs().
33530 * include/grub/util/console.h: New file.
33531 * util/console.c: Use it instead of grub/machine/console.h.
33532 * util/grub-emu.c: Likewise.
33534 * lib/arg.c (find_long_option): Remove.
33535 (find_long): Add `len' argument, make `s' const char *.
33536 (grub_arg_parse): Parse long options in place, not in a
33539 2009-07-06 Pavel Roskin <proski@gnu.org>
33541 * commands/search.c (search_fs): Fix potential NULL pointer
33544 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33547 2009-07-06 Daniel Mierswa <impulze@impulze.org>
33549 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33552 2009-07-05 Pavel Roskin <proski@gnu.org>
33554 * include/grub/i386/linux.h (struct linux_kernel_params):
33555 Restore padding3, it's still needed.
33557 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33559 * util/osdetect.lua: Likewise.
33561 2009-07-05 Bean <bean123ch@gmail.com>
33563 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33565 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33566 (grub_lua_getenv): Likewise.
33567 (grub_lua_setenv): Likewise.
33568 (save_errno): New function.
33569 (push_result): Likewise.
33570 (grub_lua_enum_device): Likewise.
33571 (grub_lua_enum_file): Likewise.
33572 (grub_lua_file_open): Likewise.
33573 (grub_lua_file_close): Likewise.
33574 (grub_lua_file_seek): Likewise.
33575 (grub_lua_file_read): Likewise.
33576 (grub_lua_file_getline): Likewise.
33577 (grub_lua_file_getsize): Likewise.
33578 (grub_lua_file_getpos): Likewise.
33579 (grub_lua_file_eof): Likewise.
33580 (grub_lua_file_exist): Likewise.
33581 (grub_lua_add_menu): Likewise.
33583 * script/lua/grub_lua.h (isupper): New inline function.
33584 (islower): Likewise.
33585 (ispunct): Likewise.
33586 (isxdigit): Likewise.
33587 (strcspn): Change to normal function.
33588 (strpbkr): New function declaration.
33589 (memchr): Likewise.
33591 * script/lua/grub_main.c (scan_str): New function.
33592 (strcspn): Likewise.
33593 (strpbrk): Likewise.
33594 (memchr): Likewise.
33596 * script/lua/linit.c (lualibs): Enable the string library.
33598 * util/osdetect.lua: New file.
33600 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33602 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33603 `capabilities' member.
33605 2009-07-02 Pavel Roskin <proski@gnu.org>
33607 * genparttoollist.sh: Add missing newline at the end.
33609 2009-07-01 Pavel Roskin <proski@gnu.org>
33611 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33613 * util/hostdisk.c (open_device): Remove `const' from
33614 `sysctl_size', as sysctlbyname() can change it (in this case it
33615 doesn't actually happen).
33617 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33618 using signed long int constants.
33620 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33621 constant to avoid a warning on FreeBSD.
33623 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33626 * Makefile.in: Install include/grub/machine symlink.
33628 * Makefile.in: When installing symlinks, use "cp -fR", which
33629 works on FreeBSD and MacOSX.
33630 From Yves Blusseau <cl7m42e02@sneakemail.com>
33632 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33633 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33635 * util/misc.c: Move grub_reboot() and grub_halt() ...
33636 * util/grub-emu.c: ... here. Make main_env static.
33637 * include/grub/util/misc.h: Remove main_env.
33639 * kern/mm.c: Use correct format to print size_t.
33641 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33642 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33643 * kern/powerpc/dl.c: Likewise.
33644 * kern/sparc64/dl.c: Likewise.
33645 * kern/x86_64/dl.c: Likewise.
33647 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33649 Fix grub-emu build on sparc64-ieee1275.
33651 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
33652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33654 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33656 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33657 (grub_reboot, grub_halt): New functions.
33659 * util/i386/pc/misc.c: Delete. Update all users.
33660 * util/sparc64/ieee1275/misc.c: Likewise.
33661 * util/powerpc/ieee1275/misc.c: Likewise.
33663 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33665 * conf/i386.rmk (setjmp_mod_SOURCES)
33666 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33667 * conf/common.rmk (setjmp_mod_SOURCES)
33668 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33669 to use $(target_cpu).
33670 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33671 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33672 * conf/powerpc-ieee1275.rmk: Likewise.
33673 * conf/sparc64-ieee1275.rmk: Likewise.
33675 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33676 $(target_cpu) for kern/$(target_cpu)/dl.c.
33677 * conf/i386-efi.rmk: Likewise.
33678 * conf/i386-ieee1275.rmk: Likewise.
33679 * conf/x86_64-efi.rmk: Likewise.
33680 * conf/i386-coreboot.rmk: Likewise.
33681 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33682 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33683 kern/$(target_cpu)/cache.S.
33684 * conf/sparc64-ieee1275.rmk: Likewise.
33686 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33688 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33689 type to `grub_uint8_t', and adjust `padding9' accordingly.
33691 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33693 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33695 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33696 assembly in final jump, using register constraints.
33698 (grub_linux_boot): For text mode, initialize `have_vga' using
33699 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33701 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33702 right before the final jump.
33704 Set `video_mode' to 0x3.
33706 Document initialization of `video_page', `video_mode' and
33709 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33711 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33712 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
33713 and set GRUB_LINUX_FLAG_QUIET appropriately.
33715 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33717 Fix build on Debian / sparc.
33719 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33721 2009-06-28 Pavel Roskin <proski@gnu.org>
33723 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33726 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33728 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33730 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33733 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33737 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33738 file can't be opened. grub_file_open() is already supposed to set
33739 grub_errno / grub_errmsg appropriately.
33740 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33742 2009-06-27 Pavel Roskin <proski@gnu.org>
33743 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33745 * include/grub/dl.h: Include grub/elf.h.
33746 (struct grub_dl): Add symtab field.
33747 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33748 GRUB_MODULES_MACHINE_READONLY.
33749 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33750 of the header for read-only modules.
33751 (grub_dl_unload): Free mod->symtab for read-only modules.
33752 * kern/i386/dl.c: Use mod->symtab.
33753 * kern/powerpc/dl.c: Likewise.
33754 * kern/sparc64/dl.c: Likewise.
33755 * kern/x86_64/dl.c: Likewise.
33757 * conf/i386-qemu.rmk: New file.
33758 * kern/i386/qemu/startup.S: Likewise.
33759 * kern/i386/qemu/mmap.c: Likewise.
33760 * boot/i386/qemu/boot.S: Likewise.
33761 * include/grub/i386/qemu/time.h: Likewise.
33762 * include/grub/i386/qemu/serial.h: Likewise.
33763 * include/grub/i386/qemu/kernel.h: Likewise.
33764 * include/grub/i386/qemu/console.h: Likewise.
33765 * include/grub/i386/qemu/boot.h: Likewise.
33766 * include/grub/i386/qemu/init.h: Likewise.
33767 * include/grub/i386/qemu/machine.h: Likewise.
33768 * include/grub/i386/qemu/loader.h: Likewise.
33769 * include/grub/i386/qemu/memory.h: Likewise.
33771 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33772 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33773 [qemu] (pkglib_IMAGES): Add `boot.img'.
33774 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33775 [qemu] (boot_img_FORMAT): New variables.
33776 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33777 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33778 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33779 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33780 [qemu] (kernel_img_FORMAT): New variables.
33782 * configure.ac: Recognise `i386-qemu'.
33784 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33785 (for no compression).
33786 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33787 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33788 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33789 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33792 2009-06-27 Pavel Roskin <proski@gnu.org>
33794 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33796 * efiemu/prepare32.c: Likewise.
33797 * efiemu/prepare64.c: Likewise.
33799 2009-06-26 Pavel Roskin <proski@gnu.org>
33801 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33802 * include/grub/elf.h: Define symbols without "32" or "64" based
33803 on GRUB_TARGET_WORDSIZE.
33804 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33805 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33807 * efiemu/loadcore64.c: Likewise.
33808 * loader/i386/bsd32.c: Likewise.
33809 * loader/i386/bsd64.c: Likewise.
33810 * kern/dl.c: Remove own ELF definitions.
33811 * util/i386/efi/grub-mkimage.c: Likewise.
33813 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33815 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33816 segment 0x0 unconditionally, because the reference generated by
33817 GAS is an absolute address.
33819 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33821 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33822 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33824 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33826 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33827 indexes. Check for -f explicitly.
33828 (search_file): Improve error message.
33829 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
33831 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33833 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33834 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33836 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33838 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33839 * conf/i386-ieee1275.rmk: Likewise.
33840 * conf/i386-coreboot.rmk: Likewise.
33842 * kern/i386/pc/startup.S (grub_stop): Remove function.
33843 * kern/i386/ieee1275/startup.S: Likewise.
33844 * kern/i386/coreboot/startup.S: Likewise.
33845 * kern/i386/misc.S (grub_stop): New function.
33847 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33849 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33850 * kern/i386/realmode.S (real_to_prot): ... to here.
33852 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33854 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33856 (kernel_elf_SOURCES): Rename to ...
33857 (kernel_img_SOURCES): ... this.
33858 (kernel_elf_HEADERS): Rename to ...
33859 (kernel_img_HEADERS): ... this. Update all users.
33860 (kernel_elf_ASFLAGS): Rename to ...
33861 (kernel_img_ASFLAGS): ... this.
33862 (kernel_elf_CFLAGS): Rename to ...
33863 (kernel_img_CFLAGS): ... this.
33864 (kernel_elf_LDFLAGS): Rename to ...
33865 (kernel_img_LDFLAGS): ... this.
33866 * conf/i386-coreboot.rmk: Likewise.
33867 * conf/powerpc-ieee1275.rmk: Likewise.
33869 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33872 2009-06-21 Pavel Roskin <proski@gnu.org>
33874 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33875 to match nested functions.
33876 * loader/sparc64/ieee1275/linux.c: Likewise.
33878 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33880 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33882 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33883 all i386 platforms.
33885 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33887 Fix asm file handling on ELF, and remove workarounds.
33889 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
33890 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
33891 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33892 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33894 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33896 Load BSD ELF modules
33898 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33899 and loader/i386/bsd64.c
33900 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33901 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33902 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33903 (grub_freebsd_load_elfmodule32): New declaration
33904 (grub_freebsd_load_elfmoduleobj64): Likewise
33905 (grub_freebsd_load_elf_meta32): Likewise
33906 (grub_freebsd_load_elf_meta64): Likewise
33907 (grub_freebsd_add_meta): Likewise
33908 (grub_freebsd_add_meta_module): Likewise
33909 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33910 (grub_freebsd_add_meta_module): Likewise and move module-specific
33911 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33912 (grub_cmd_freebsd): Add elf-kernel specific parts
33913 based on grub_freebsd_add_meta_module
33914 (grub_cmd_freebsd_module): Add type parsing moved from
33915 grub_freebsd_add_meta_module
33916 (grub_cmd_freebsd_module_elf): New function
33917 (cmd_freebsd_module_elf): New variable
33918 (GRUB_MOD_INIT): Register freebsd_module_elf
33919 * loader/i386/bsd32.c: New file
33920 * loader/i386/bsd64.c: Likewise
33921 * loader/i386/bsdXX.c: Likewise
33922 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33923 (grub_elf64_load): Likewise
33924 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33926 (grub_elf64_load_hook_t): Likewise
33928 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
33930 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33932 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33933 don't write a menu entry for recovery mode.
33935 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33937 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33938 after it's no longer needed.
33940 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33942 * include/grub/i386/loader.h (grub_linux_prot_size)
33943 (grub_linux_tmp_addr, grub_linux_real_addr)
33944 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33945 GRUB_MACHINE_PCBIOS.
33946 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33947 common grub_util_info() call to ...
33948 (generate_image): ... here.
33949 Fix use of uninitialized memory, comparison of signed with
33950 unsigned integers and memory leak.
33951 Remove bogus module address message.
33953 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33955 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33957 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33959 2009-06-19 Pavel Roskin <proski@gnu.org>
33961 * configure.ac: Remove stray AC_MSG_CHECKING.
33963 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33965 * disk/scsi.c (grub_scsi_open): use continue instead of big if
33967 2009-06-18 Pavel Roskin <proski@gnu.org>
33969 * conf/common.rmk: Add fs_file.mod.
33970 * disk/fs_file.c: New file.
33971 * include/grub/disk.h (enum grub_disk_dev_id): Add
33972 GRUB_DISK_DEVICE_FILE_ID.
33974 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33976 Fix build with Apple's toolchain. Part 2
33978 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33981 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33983 Fix build with Apple's toolchain. Part 1
33985 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33987 * configure.ac: remove a leftover AC_MSG_RESULT
33988 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
33991 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33995 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33996 (decomp_block): initialize ch
33997 use grub_memcpy instead of memcpy
33999 2009-06-17 Pavel Roskin <proski@gnu.org>
34001 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
34002 version, use declarations needed to use vga_text as the startup
34005 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
34006 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
34008 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
34009 and grub_at_keyboard_fini(), it's done on module load and
34012 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
34014 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
34015 file can't be found.
34016 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34018 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34020 Fix newline handling
34022 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
34023 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
34024 (grub_script_yylex): don't segfault on unterminated script
34025 newline terminates command and variable
34027 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34029 avoid double grub_adjust_range call. Bug reported by David Simner
34031 * kern/disk.c (grub_disk_write): change to raw disk access before
34034 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
34036 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
34037 spaces, for the benefit of help2man.
34038 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34040 2009-06-16 Pavel Roskin <proski@gnu.org>
34042 * kern/i386/halt.c: Include grub/machine/init.h.
34043 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
34045 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
34047 * util/grub.d/30_os-prober.in: Use ${root} in the generated
34048 drivemap menuentry.
34050 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
34052 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
34055 2009-06-16 Pavel Roskin <proski@gnu.org>
34057 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
34058 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
34059 save %dx, we only need %dl and we never change it.
34060 * boot/i386/pc/cdboot.S: Don't set the root drive.
34061 * boot/i386/pc/pxeboot.S: Likewise.
34062 * include/grub/i386/pc/boot.h: Remove
34063 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
34064 GRUB_BOOT_MACHINE_DRIVE_CHECK.
34065 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
34066 * kern/i386/pc/init.c (make_install_device): Remove references
34067 to grub_root_drive.
34068 * kern/i386/pc/startup.S: Likewise.
34069 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
34071 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34075 * commands/xnu_uuid.c: new file
34076 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34077 (xnu_uuid_mod_SOURCES): new variable
34078 (xnu_uuid_mod_CFLAGS): likewise
34079 (xnu_uuid_mod_LDFLAGS): likewise
34080 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34081 * conf/i386-ieee1275.rmk: likewise
34082 * conf/i386-pc.rmk: likewise
34083 * conf/powerpc-ieee1275.rmk: likewise
34084 * conf/sparc64-ieee1275.rmk: likewise
34085 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34087 2009-06-16 Pavel Roskin <proski@gnu.org>
34089 * configure.ac: Avoid '==' in test command, it's not portable.
34091 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34095 * commands/probe.c: new file
34096 * conf/common.rmk (pkglib_MODULES): add probe.mod
34097 (probe_mod_SOURCES): new variable
34098 (probe_mod_CFLAGS): likewise
34099 (probe_mod_LDFLAGS): likewise
34100 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34101 * conf/i386-ieee1275.rmk: likewise
34102 * conf/i386-pc.rmk: likewise
34103 * conf/powerpc-ieee1275.rmk: likewise
34104 * conf/sparc64-ieee1275.rmk: likewise
34106 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34108 Fix handling of string like \"hello\" and "a
34111 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34112 (grub_script_yylex): fix parsing of quoting, escaping and newline
34114 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34116 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
34119 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
34121 * util/grub-mkconfig.in: Fix parsing of --output option.
34123 2009-06-12 Pavel Roskin <proski@gnu.org>
34125 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34126 genmk.rb don't need to be generated or installed.
34128 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34130 * commands/i386/pc/drivemap_int13h.S: add more comments
34132 2009-06-11 Pavel Roskin <proski@gnu.org>
34134 * Makefile.in (uninstall): Uninstall manuals.
34136 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34137 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34138 and update-grub_lib in two places.
34139 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34141 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34142 a compiler warning.
34144 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34145 `entry_lo' to fix variable shadowing.
34147 2009-06-11 Christian Franke <franke@computer.org>
34149 * kern/misc.c (__enable_execute_stack): Add missing return type
34150 to prevent gcc warning.
34152 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
34154 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34156 2009-06-11 Pavel Roskin <proski@gnu.org>
34158 * Makefile.in: Don't rely on any scripts being executable.
34159 Always use $(SHELL) to run shell scripts.
34161 * configure.ac: Always define ___main if using -nostdlib. This
34162 fixes tests on Cygwin.
34164 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34168 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
34169 is in bytes and not in blocks
34171 2009-06-11 Pavel Roskin <proski@gnu.org>
34173 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34176 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
34178 * util/grub.d/30_os-prober.in: Fix a comment. Source
34179 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34180 to set the root device. Place drivemap command in the generated
34183 2009-06-11 Pavel Roskin <proski@gnu.org>
34185 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34186 have long been resolved.
34188 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
34190 * util/grub.d/10_linux.in: Capitalise "Linux".
34192 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34194 2009-06-11 Pavel Roskin <proski@gnu.org>
34196 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34197 fix a gcc warning and ensure that the function won't ever exit.
34199 * kern/i386/ieee1275/init.c: Add missing prototype for
34200 grub_stop_floppy().
34202 * loader/ieee1275/multiboot2.c [__i386__]: Include
34203 grub/cpu/multiboot.h.
34205 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34206 casts to short - they are not portable and cause warnings. Fix
34207 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34209 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34213 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34215 (grub_get_root_biosnumber_saved): new variable
34216 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34217 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
34218 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
34219 %dx after the call if necessary
34220 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34221 (boot_mod_SOURCES): remove
34222 (boot_mod_CFLAGS): remove
34223 (boot_mod_LDFLAGS): remove
34224 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34225 (boot_mod_SOURCES): new variable
34226 (boot_mod_CFLAGS): likewise
34227 (boot_mod_LDFLAGS): likewise
34228 * conf/i386-efi.rmk: likewise
34229 * conf/i386-ieee1275.rmk: likewise
34230 * conf/i386-pc.rmk: likewise
34231 * conf/powerpc-ieee1275.rmk: likewise
34232 * conf/sparc64-ieee1275.rmk: likewise
34233 * conf/x86_64-efi.rmk: likewise
34234 * include/grub/i386/pc/biosnum.h: new file
34235 * lib/i386/pc/biosnum.c: likewise
34236 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34237 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34238 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
34240 2009-06-10 Pavel Roskin <proski@gnu.org>
34242 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34243 Use separate variables. Read only the file size at the end, but
34244 not the checksum that we don't use.
34246 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34247 Adjust all callers.
34249 * kern/ieee1275/openfw.c: Remove libc includes.
34250 * kern/ieee1275/cmain.c: Likewise.
34251 * include/grub/ieee1275/ieee1275.h: Likewise.
34253 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34256 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
34258 * Makefile.in: Remove all trailing whitespace.
34259 * conf/i386-pc.rmk: Likewise.
34260 * conf/powerpc-ieee1275.rmk: Likewise.
34261 * conf/sparc64-ieee1275.rmk: Likewise.
34262 * docs/grub.texi: Likewise.
34263 * docs/texinfo.tex: Likewise.
34264 * disk/fs_uuid.c: Likewise.
34265 * disk/lvm.c: Likewise.
34266 * disk/scsi.c: Likewise.
34267 * disk/ata.c: Likewise.
34268 * disk/ieee1275/ofdisk.c: Likewise.
34269 * disk/i386/pc/biosdisk.c: Likewise.
34270 * disk/host.c: Likewise.
34271 * disk/raid.c: Likewise.
34272 * disk/efi/efidisk.c: Likewise.
34273 * disk/usbms.c: Likewise.
34274 * disk/memdisk.c: Likewise.
34275 * disk/loopback.c: Likewise.
34276 * kern/powerpc/dl.c: Likewise.
34277 * kern/device.c: Likewise.
34278 * kern/dl.c: Likewise.
34279 * kern/sparc64/dl.c: Likewise.
34280 * kern/ieee1275/ieee1275.c: Likewise.
34281 * kern/term.c: Likewise.
34282 * kern/fs.c: Likewise.
34283 * kern/i386/dl.c: Likewise.
34284 * kern/i386/pc/startup.S: Likewise.
34285 * kern/i386/pc/init.c: Likewise.
34286 * kern/i386/pc/mmap.c: Likewise.
34287 * kern/i386/pc/lzo1x.S: Likewise.
34288 * kern/i386/ieee1275/init.c: Likewise.
34289 * kern/i386/realmode.S: Likewise.
34290 * kern/i386/tsc.c: Likewise.
34291 * kern/partition.c: Likewise.
34292 * kern/corecmd.c: Likewise.
34293 * kern/file.c: Likewise.
34294 * kern/efi/efi.c: Likewise.
34295 * kern/efi/init.c: Likewise.
34296 * kern/efi/mm.c: Likewise.
34297 * kern/main.c: Likewise.
34298 * kern/err.c: Likewise.
34299 * kern/env.c: Likewise.
34300 * kern/disk.c: Likewise.
34301 * kern/generic/millisleep.c: Likewise.
34302 * kern/generic/rtc_get_time_ms.c: Likewise.
34303 * kern/misc.c: Likewise.
34304 * kern/parser.c: Likewise.
34305 * genmk.rb: Likewise.
34306 * configure.ac: Likewise.
34307 * boot/i386/pc/diskboot.S: Likewise.
34308 * boot/i386/pc/pxeboot.S: Likewise.
34309 * boot/i386/pc/boot.S: Likewise.
34310 * boot/i386/pc/lnxboot.S: Likewise.
34311 * boot/i386/pc/cdboot.S: Likewise.
34312 * parttool/pcpart.c: Likewise.
34313 * video/readers/tga.c: Likewise.
34314 * video/video.c: Likewise.
34315 * video/bitmap.c: Likewise.
34316 * lib/envblk.c: Likewise.
34317 * lib/i386/setjmp.S: Likewise.
34318 * fs/xfs.c: Likewise.
34319 * fs/afs.c: Likewise.
34320 * fs/fat.c: Likewise.
34321 * fs/ntfs.c: Likewise.
34322 * fs/udf.c: Likewise.
34323 * fs/affs.c: Likewise.
34324 * fs/iso9660.c: Likewise.
34325 * fs/hfs.c: Likewise.
34326 * fs/fshelp.c: Likewise.
34327 * fs/ext2.c: Likewise.
34328 * fs/jfs.c: Likewise.
34329 * fs/reiserfs.c: Likewise.
34330 * fs/hfsplus.c: Likewise.
34331 * fs/minix.c: Likewise.
34332 * fs/cpio.c: Likewise.
34333 * fs/sfs.c: Likewise.
34334 * fs/ufs.c: Likewise.
34335 * efiemu/prepare.c: Likewise.
34336 * efiemu/loadcore_common.c: Likewise.
34337 * efiemu/runtime/efiemu.sh: Likewise.
34338 * efiemu/runtime/efiemu.S: Likewise.
34339 * efiemu/runtime/efiemu.c: Likewise.
34340 * efiemu/pnvram.c: Likewise.
34341 * efiemu/main.c: Likewise.
34342 * efiemu/i386/pc/cfgtables.c: Likewise.
34343 * efiemu/i386/loadcore64.c: Likewise.
34344 * efiemu/i386/loadcore32.c: Likewise.
34345 * efiemu/loadcore.c: Likewise.
34346 * efiemu/symbols.c: Likewise.
34347 * efiemu/mm.c: Likewise.
34348 * include/grub/autoefi.h: Likewise.
34349 * include/grub/datetime.h: Likewise.
34350 * include/grub/term.h: Likewise.
34351 * include/grub/hfs.h: Likewise.
34352 * include/grub/lvm.h: Likewise.
34353 * include/grub/i386/tsc.h: Likewise.
34354 * include/grub/i386/linux.h: Likewise.
34355 * include/grub/i386/xnu.h: Likewise.
34356 * include/grub/i386/efiemu.h: Likewise.
34357 * include/grub/i386/pc/biosdisk.h: Likewise.
34358 * include/grub/i386/pc/memory.h: Likewise.
34359 * include/grub/i386/pc/vbe.h: Likewise.
34360 * include/grub/parttool.h: Likewise.
34361 * include/grub/video.h: Likewise.
34362 * include/grub/memory.h: Likewise.
34363 * include/grub/fs.h: Likewise.
34364 * include/grub/partition.h: Likewise.
34365 * include/grub/xnu.h: Likewise.
34366 * include/grub/efi/api.h: Likewise.
34367 * include/grub/efi/pe32.h: Likewise.
34368 * include/grub/efi/memory.h: Likewise.
34369 * include/grub/multiboot.h: Likewise.
34370 * include/grub/usbdesc.h: Likewise.
34371 * include/grub/multiboot2.h: Likewise.
34372 * include/grub/acpi.h: Likewise.
34373 * include/grub/efiemu/efiemu.h: Likewise.
34374 * include/grub/disk.h: Likewise.
34375 * include/grub/ieee1275/ieee1275.h: Likewise.
34376 * include/grub/net.h: Likewise.
34377 * include/grub/machoload.h: Likewise.
34378 * include/grub/macho.h: Likewise.
34379 * include/multiboot.h: Likewise.
34380 * genmoddep.awk: Likewise.
34381 * normal/main.c: Likewise.
34382 * normal/menu_entry.c: Likewise.
34383 * normal/menu_viewer.c: Likewise.
34384 * normal/completion.c: Likewise.
34385 * normal/cmdline.c: Likewise.
34386 * normal/misc.c: Likewise.
34387 * normal/datetime.c: Likewise.
34388 * bus/usb/usbtrans.c: Likewise.
34389 * bus/usb/ohci.c: Likewise.
34390 * bus/usb/uhci.c: Likewise.
34391 * bus/usb/usb.c: Likewise.
34392 * mmap/efi/mmap.c: Likewise.
34393 * mmap/i386/pc/mmap_helper.S: Likewise.
34394 * mmap/i386/pc/mmap.c: Likewise.
34395 * mmap/i386/mmap.c: Likewise.
34396 * mmap/i386/uppermem.c: Likewise.
34397 * mmap/mmap.c: Likewise.
34398 * commands/acpi.c: Likewise.
34399 * commands/echo.c: Likewise.
34400 * commands/blocklist.c: Likewise.
34401 * commands/loadenv.c: Likewise.
34402 * commands/usbtest.c: Likewise.
34403 * commands/boot.c: Likewise.
34404 * commands/parttool.c: Likewise.
34405 * commands/search.c: Likewise.
34406 * commands/cat.c: Likewise.
34407 * commands/i386/pc/play.c: Likewise.
34408 * commands/i386/pc/drivemap.c: Likewise.
34409 * commands/i386/pc/vbeinfo.c: Likewise.
34410 * commands/i386/pc/acpi.c: Likewise.
34411 * commands/i386/pc/vbetest.c: Likewise.
34412 * commands/ls.c: Likewise.
34413 * commands/cmp.c: Likewise.
34414 * commands/test.c: Likewise.
34415 * commands/efi/acpi.c: Likewise.
34416 * commands/gptsync.c: Likewise.
34417 * commands/help.c: Likewise.
34418 * partmap/amiga.c: Likewise.
34419 * partmap/apple.c: Likewise.
34420 * partmap/acorn.c: Likewise.
34421 * partmap/pc.c: Likewise.
34422 * partmap/sun.c: Likewise.
34423 * partmap/gpt.c: Likewise.
34424 * script/sh/lexer.c: Likewise.
34425 * script/sh/function.c: Likewise.
34426 * font/font.c: Likewise.
34427 * font/font_cmd.c: Likewise.
34428 * loader/powerpc/ieee1275/linux.c: Likewise.
34429 * loader/efi/chainloader.c: Likewise.
34430 * loader/multiboot_loader.c: Likewise.
34431 * loader/macho.c: Likewise.
34432 * loader/i386/multiboot.c: Likewise.
34433 * loader/i386/linux.c: Likewise.
34434 * loader/i386/pc/linux.c: Likewise.
34435 * loader/i386/pc/multiboot2.c: Likewise.
34436 * loader/i386/pc/chainloader.c: Likewise.
34437 * loader/i386/pc/xnu.c: Likewise.
34438 * loader/i386/bsd_trampoline.S: Likewise.
34439 * loader/i386/efi/linux.c: Likewise.
34440 * loader/i386/multiboot_elfxx.c: Likewise.
34441 * loader/i386/bsd_helper.S: Likewise.
34442 * loader/i386/bsd.c: Likewise.
34443 * loader/i386/linux_trampoline.S: Likewise.
34444 * loader/i386/xnu_helper.S: Likewise.
34445 * loader/i386/xnu.c: Likewise.
34446 * loader/i386/bsd_pagetable.c: Likewise.
34447 * loader/i386/multiboot_helper.S: Likewise.
34448 * loader/xnu.c: Likewise.
34449 * loader/xnu_resume.c: Likewise.
34450 * io/gzio.c: Likewise.
34451 * term/efi/console.c: Likewise.
34452 * term/terminfo.c: Likewise.
34453 * term/ieee1275/ofconsole.c: Likewise.
34454 * term/i386/pc/serial.c: Likewise.
34455 * term/i386/pc/vesafb.c: Likewise.
34456 * term/i386/pc/vga.c: Likewise.
34457 * term/usb_keyboard.c: Likewise.
34458 * term/gfxterm.c: Likewise.
34459 * aclocal.m4: Likewise.
34460 * util/lvm.c: Likewise.
34461 * util/grub.d/30_os-prober.in: Likewise.
34462 * util/grub.d/10_hurd.in: Likewise.
34463 * util/console.c: Likewise.
34464 * util/grub-macho2img.c: Likewise.
34465 * util/grub-probe.c: Likewise.
34466 * util/hostfs.c: Likewise.
34467 * util/i386/pc/grub-mkimage.c: Likewise.
34468 * util/i386/pc/grub-setup.c: Likewise.
34469 * util/i386/efi/grub-mkimage.c: Likewise.
34470 * util/grub-mkconfig.in: Likewise.
34471 * util/raid.c: Likewise.
34472 * util/resolve.c: Likewise.
34473 * util/grub-mkdevicemap.c: Likewise.
34474 * util/grub-emu.c: Likewise.
34475 * util/getroot.c: Likewise.
34476 * util/hostdisk.c: Likewise.
34477 * util/usb.c: Likewise.
34478 * util/grub-editenv.c: Likewise.
34479 * util/misc.c: Likewise.
34481 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
34483 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34484 `genparttoollist.sh'.
34485 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34486 Add `*.sh' to the list find searches for and change `mdate.sh'
34489 2009-06-10 Pavel Roskin <proski@gnu.org>
34491 * include/grub/multiboot2.h: Provide compatibility defines for
34493 * include/multiboot2.h: Include stdint.h only if needed, using
34495 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34497 * loader/ieee1275/multiboot2.c: Likewise.
34498 * loader/multiboot2.c: Likewise.
34499 * loader/multiboot_loader.c: Likewise.
34501 * configure.ac: Use -nostdlib when probing for the target. It
34502 should not be required to have libc for the target.
34504 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34505 they fail without libc headers for the target.
34506 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34508 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34509 preprocessor conditionals.
34511 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34512 build system doesn't need to be aware of the tar.c internals.
34514 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
34516 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
34518 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34520 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34521 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34523 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
34525 * util/i386/pc/grub-install.in: Change the error message if UUIDs
34526 aren't available if ata.mod gets used.
34528 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
34530 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
34531 initialising controller.
34532 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34534 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34536 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34537 to choose between ata and biosdisk module on i386-pc.
34539 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
34541 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34542 Subclass and Programming Interface fields in terms of the 3 byte
34543 Class Code register.
34544 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34546 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34547 interface is OHCI. Add grub_dprintf for symmetry with
34549 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34550 interface is UHCI. Add interf variable for programming
34551 interface. Print interface with class/subclass.
34553 * bus/usb/ohci.c: Set interf with correct field.
34555 * bus/usb/uhci.c: Remove unneeded doubled lines.
34556 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34557 Remove whitespace inside comment.
34559 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34561 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34562 as fallback an equivalent option without depth.
34564 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34566 Not fail if unable to retrieve C/H/S on LBA disks
34568 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
34569 if unable to retrieve C/H/S on LBA disks
34571 2009-06-08 Pavel Roskin <proski@gnu.org>
34573 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34576 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34578 * Makefile.in (uninstall): Remove all $lib_DATA files.
34580 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34582 Bugfix: install on partitionless device
34584 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34587 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34589 * Makefile.in (uninstall): Remove all $include_DATA files.
34591 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
34593 * commands/true.c: New file. Implement the true and false commands.
34594 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34595 (true_mod_SOURCES): New variable.
34596 (true_mod_CFLAGS): Likewise.
34597 (true_mod_LDFLAGS): Likewise.
34599 2009-06-05 Colin D Bennett <colin@gibibit.com>
34601 Optimized font character lookup using binary search instead of linear
34602 search. Fonts now are required to have the character index ordered by
34605 * font/font.c (load_font_index): Verify that fonts have ordered
34607 (find_glyph): Use binary search instead of linear search to find a
34608 character in a font.
34610 2009-06-05 Michael Scherer <misc@mandriva.org>
34612 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34613 uses case sensitive btree.
34614 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34615 only for case insensitive filesystems.
34617 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34619 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34620 * conf/common.rmk (search_mod_CFLAGS): likewise
34622 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34624 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
34625 compensate a compiler bug
34627 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34629 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
34632 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34634 Definitions for creating asm symbols with Apple's CC
34636 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34637 [APPLE_CC] (VARIABLE): likewise
34639 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34641 Disable lnxboot.img when compiled
34644 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34645 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34646 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34647 [! APPLE_CC] (CODE_LENG): skip
34648 [! APPLE_CC] (setup_sects): likewise
34649 [! APPLE_CC]: skip filling
34651 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34653 Address in trampolines based on 32-bit registers when compiled
34656 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
34658 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34660 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34662 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34664 * kern/misc.c [APPLE_CC] (memcpy): new function
34665 [APPLE_CC] (memmove): likewise
34666 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
34667 (memcpy): define alias conditionally on !APPLE_CC
34670 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34671 APPLE_CC are defined
34672 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34673 (grub_assert_fail): make prototype conditional
34675 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34677 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34679 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34681 (CLEANFILES): add grub-macho2img
34682 (grub_macho2img_SOURCES): new variable
34683 * kern/i386/pc/startup.S (bss_start): new variable
34684 (bss_end): likewise
34685 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34686 * util/grub-macho2img.c: new file
34688 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34690 Use objconv when compiling with Apple's CC
34692 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34693 (efiemu64.o): likewise
34694 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34695 when compiling with Apple's CC
34696 (efiemu64_s.o): likewise
34697 * configure.ac: check for objconv when compiling with Apple's CC
34698 * genmk.rb: use objconv for modules when compiled with Apple's CC
34700 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34702 Define segment as well as section when compiling with
34705 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34706 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34707 (efiemu_convert_pointer): likewise
34708 (efiemu_set_virtual_address_map): likewise
34709 (efiemu_convert_pointer): likewise
34710 (efiemu_getcrc32): likewise
34711 (init_crc32_table): likewise
34712 (reflect): likewise
34713 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34714 (GRUB_MOD_DEP): likewise
34716 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34718 Allow a compilation without -mcmodel=large
34720 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34721 when compiled without -mcmodel=large
34722 (filter_memory_map): remove memory post 4 GiB when compiled
34723 without -mcmodel=large
34724 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
34725 TARGET_CFLAGS when -mcmodel=large isn't supported
34727 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34729 Remove nested functions in efiemu core
34731 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
34733 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34735 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34737 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34739 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34741 (grub_cpu_is_tsc_supported): likewise
34742 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
34744 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34746 Absolute addressing through constant with Apple's cc
34748 * kern/i386/pc/startup.S: Define necessary constants
34749 and address through it when using ABS with Apple's CC
34750 * boot/i386/pc/diskboot.S: likewise
34751 * boot/i386/pc/boot.S: likewise
34752 * boot/i386/pc/lnxboot.S: likewise
34753 * boot/i386/pc/cdboot.S: likewise
34754 * mmap/i386/pc/mmap_helper.S: likewise
34755 * commands/i386/pc/drivemap_int13h.S: likewise
34757 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34759 Check if compiler is apple cc
34761 * Makefile.in (ASFLAGS): new variable
34762 (TARGET_ASFLAGS): likewise
34763 (TARGET_MODULE_FORMAT): likewise
34764 (TARGET_APPLE_CC): likewise
34765 (OBJCONV): likewise
34766 (TARGET_IMG_CFLAGS): likewise
34767 (TARGET_CPPFLAGS): add includedir
34768 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34769 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34770 Check for linker script only if compiler isn't Apple's CC
34771 (TARGET_MODULE_FORMAT): set
34772 (TARGET_APPLE_CC): likewise
34773 (TARGET_ASFLAGS): likewise
34774 (ASFLAGS): likewise
34775 Check for objcopy only if compiler isn't Apple's CC
34776 Check for BSS symbol only if compiler isn't Apple's CC
34777 * genmk.rb: adapt nm options if we use Apple's utils
34778 * aclocal.m4 (grub_apple_cc): new test
34779 (grub_apple_target_cc): likewise
34781 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34783 Simplify sed expressions and improve awk
34785 * Makefile.in (install-local): simplify sed expression
34786 * gencmdlist.sh: likewise
34787 * genmoddep.awk: avoid adding module as a dependency of itself
34789 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34791 Add missing start symbols
34793 * boot/i386/pc/boot.S: add start
34794 * boot/i386/pc/pxeboot.S: likewise
34796 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34798 Fix wrong assumptions with grub-mkimage on EFI
34800 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
34801 (relocate_addresses): consider both r_addend and value at offset
34802 (make_mods_section): zerofill modinfo and header
34803 (convert_elf): write prefix here
34805 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34807 Use .asciz instead of .string
34809 * i386/pc/diskboot.S: use .asciz instead of .string
34810 * i386/pc/boot.S: likewise
34811 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34812 (GRUB_MOD_NAME): likewise
34814 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34818 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34819 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34820 (grub_video_setup): remove
34821 (grub_video_set_mode): new prototype
34822 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34824 (linux_vesafb_res): compile only on PCBIOS
34825 (grub_linux_boot): support gfxpayload
34826 * loader/i386/pc/xnu.c (video_hook): new function
34827 (grub_xnu_set_video): support gfxpayload
34828 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34829 (DEFAULT_VIDEO_HEIGHT): likewise
34830 (DEFAULT_VIDEO_FLAGS): likewise
34831 (DEFAULT_VIDEO_MODE): new definition
34832 (video_hook): new function
34833 (grub_gfxterm_init): use grub_video_set_mode
34834 * util/grub.d/30_os-prober.in: remove explicit modesetting before
34836 * video/video.c (grub_video_setup): removed
34837 (grub_video_set_mode): new function based on grub_gfxterm_init and
34840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34842 Avoid calling biosdisk in drivemap
34844 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34845 (revparse_biosdisk): likewise
34846 (list_mappings): derive name from id directly
34847 (grub_cmd_drivemap): use tryparse_diskstring
34849 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34853 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34854 (grub_lexer_param): add tokenonhold
34855 (grub_script_create_cmdline): remove cmdline. All callers updated
34856 (grub_script_function_create): make functionname
34857 grub_script_arg. All callers updated
34858 (grub_script_execute_argument_to_string): new prototype
34859 * kern/parser.c (state_transitions): reorder
34860 (grub_parser_cmdline_state): fix a bug and make more compact
34861 * script/sh/execute.c (grub_script_execute_argument_to_string):
34863 (grub_script_execute_cmdline): use new format
34864 * script/sh/function.c (grub_script_function_create): make functionname
34865 grub_script_arg. All callers updated
34866 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
34867 (grub_script_yylex): remove
34868 (grub_script_yylex2): renamed to ...
34869 (grub_script_yylex): ...renamed
34870 parse the expressions like a${b}c
34871 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34872 (GRUB_PARSER_TOKEN_VAR): remove
34873 (GRUB_PARSER_TOKEN_NAME): likewise
34874 ("if"): declare as typeless
34875 ("while"): likewise
34876 ("function"): likewise
34881 (argument): likewise
34882 (script): accept empty scripts and make exit on error
34883 (arguments): use GRUB_PARSER_TOKEN_ARG
34884 (function): likewise
34885 (command): move error handling to script
34886 (menuentry): move grub_script_lexer_ref before
34887 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
34888 argument. All callers updated
34890 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34892 Prevent GRUB from probing floppies during boot.
34894 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34895 * commands/search.c (options): Add --no-floppy.
34896 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34897 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34898 --no-floppy when searching for UUIDs.
34900 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34902 Simplify the code duplication in commands/search.c.
34904 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34905 (search_fs): ... this. Update all users.
34907 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
34909 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34911 2009-05-28 Pavel Roskin <proski@gnu.org>
34913 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34914 Remove the original symlink explicitly.
34916 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34917 just one slash. That's how grub_fshelp_find_file() does it.
34919 2009-05-26 Pavel Roskin <proski@gnu.org>
34921 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34924 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34927 2009-05-25 Christian Franke <franke@computer.org>
34929 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34931 (grub_atapi_identify): Add wait after drive select.
34932 (grub_ata_identify): Do more strict status register check before
34933 calling grub_atapi_identify (). Suppress error message if status
34934 register is 0x00 after command failure. Add status register
34935 check after PIO read to avoid bogus identify due to stuck DRQ.
34936 Thanks to Pavel Roskin for testing.
34937 (grub_device_initialize): Remove unsafe status register check.
34938 Thanks to 'phcoder' for problem report and patch.
34939 Prevent sign extension in debug message.
34941 2009-05-23 Colin D Bennett <colin@gibibit.com>
34943 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34944 definition file, and functions defined in `normal/menu.c' have had
34945 their prototypes moved to `include/grub/menu.h' for consistency.
34947 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34949 (grub_menu_get_entry): Likewise.
34950 (grub_menu_get_timeout): Likewise.
34951 (grub_menu_set_timeout): Likewise.
34952 (grub_menu_execute_entry): Likewise.
34953 (grub_menu_execute_with_fallback): Likewise.
34954 (grub_menu_entry_run): Likewise.
34956 * include/grub/normal.h: Re-ordered and grouped function
34957 prototypes by file that the function is defined in.
34958 (grub_menu_execute_callback): Removed; moved to menu.h.
34959 (grub_menu_get_entry): Likewise.
34960 (grub_menu_get_timeout): Likewise.
34961 (grub_menu_set_timeout): Likewise.
34962 (grub_menu_execute_entry): Likewise.
34963 (grub_menu_execute_with_fallback): Likewise.
34964 (grub_menu_entry_run): Likewise.
34965 (grub_menu_addentry): Renamed from this ...
34966 (grub_normal_add_menu_entry): ... to this.
34968 * normal/main.c (grub_menu_addentry): Renamed from this ...
34969 (grub_normal_add_menu_entry): ... to this.
34971 * script/sh/execute.c (grub_script_execute_menuentry): Update
34972 reference to renamed grub_menu_addentry function.
34974 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
34976 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34978 2009-05-22 Pavel Roskin <proski@gnu.org>
34980 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34981 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34982 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34983 compiling for the i386 targets, but not for the utilities.
34985 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34987 (grub_root_drive): Likewise.
34988 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34990 (grub_root_drive): Change size to byte.
34991 (grub_start_addr): Remove.
34992 (grub_end_addr): Likewise.
34993 (grub_apm_bios_info): Likewise.
34995 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
34997 * normal/i386: Remove.
34998 * normal/powerpc: Likewise.
34999 * normal/sparc64: Likewise.
35000 * normal/x86_64: Likewise.
35002 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
35004 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
35005 * loader/i386/linux_trampoline.S: Fix indentation
35006 * loader/i386/xnu_helper.S: Likewise
35008 2009-05-18 Colin D Bennett <colin@gibibit.com>
35010 Display error messages when parsing a Lua statement fails.
35011 Previously, executing a syntactically invalid statement like
35012 ")foo" or "bar;" would silently fail.
35014 * script/lua/grub_main.c (handle_lua_error): New function.
35015 (grub_lua_parse_line): Improved reporting of Lua parser and
35018 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35020 Remove -Werror which causes build to fail on some systems
35022 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
35023 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
35024 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
35026 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35028 trampoline for linux on 64-bit platform
35030 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
35031 loader/i386/efi/linux_trampoline.S
35032 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
35034 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
35036 * loader/i386/linux_trampoline.S: moved here
35037 * loader/i386/efi/linux.c (allocate_pages): reserve space for
35039 (jumpvector): removed
35040 (grub_linux_trampoline_start): new declaration
35041 (grub_linux_trampoline_end): likewise
35042 (grub_linux_boot): use trampoline when on 64-bit platform
35043 * loader/i386/linux.c: likewise
35045 2009-05-16 Pavel Roskin <proski@gnu.org>
35047 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
35048 const to avoid a warning.
35049 (grub_lua_setenv): Likewise.
35050 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
35051 lmsg to fix a warning.
35053 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
35055 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
35056 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35057 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
35058 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35059 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35060 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35061 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35062 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35064 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
35066 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
35068 2009-05-16 Bean <bean123ch@gmail.com>
35070 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
35071 (lua_mod_SOURCES): New variable.
35072 (lua_mod_CFLAGS): Likewise.
35073 (lua_mod_LDFLAGS): Likewise.
35075 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35076 (setjmp_mod_SOURCES): New variable.
35077 (setjmp_mod_CFLAGS): Likewise.
35078 (setjmp_LDFLAGS): Likewise.
35080 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35081 (setjmp_mod_SOURCES): New variable.
35082 (setjmp_mod_CFLAGS): Likewise.
35083 (setjmp_LDFLAGS): Likewise.
35085 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35086 (setjmp_mod_SOURCES): New variable.
35087 (setjmp_mod_CFLAGS): Likewise.
35088 (setjmp_LDFLAGS): Likewise.
35090 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35091 (setjmp_mod_SOURCES): New variable.
35092 (setjmp_mod_CFLAGS): Likewise.
35093 (setjmp_LDFLAGS): Likewise.
35095 * normal/i386/setjmp.S: Moved from here ...
35096 * lib/i386/setjmp.S: ... Moved here
35097 * normal/x86_64/setjmp.S: Moved from here ...
35098 * lib/x86_64/setjmp.S: ... Moved here
35099 * normal/powerpc/setjmp.S: Moved from here ...
35100 * lib/powerpc/setjmp.S: ... Moved here
35101 * normal/sparc64/setjmp.S: Moved from here ...
35102 * lib/sparc64/setjmp.S: ... Moved here
35104 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35105 returns_twice in mingw.
35107 * script/lua/grub_lib.c: New file.
35108 * script/lua/grub_lib.h: Likewise.
35109 * script/lua/grub_lua.h: Likewise.
35110 * script/lua/grub_main.c: Likewise.
35111 * script/lua/lapi.c: Likewise.
35112 * script/lua/lapi.h: Likewise.
35113 * script/lua/lauxlib.c: Likewise.
35114 * script/lua/lauxlib.h: Likewise.
35115 * script/lua/lbaselib.c: Likewise.
35116 * script/lua/lcode.c: Likewise.
35117 * script/lua/lcode.h: Likewise.
35118 * script/lua/ldblib.c: Likewise.
35119 * script/lua/ldebug.c: Likewise.
35120 * script/lua/ldebug.h: Likewise.
35121 * script/lua/ldo.c: Likewise.
35122 * script/lua/ldo.h: Likewise.
35123 * script/lua/ldump.c: Likewise.
35124 * script/lua/lfunc.c: Likewise.
35125 * script/lua/lfunc.h: Likewise.
35126 * script/lua/lgc.c: Likewise.
35127 * script/lua/lgc.h: Likewise.
35128 * script/lua/linit.c: Likewise.
35129 * script/lua/liolib.c: Likewise.
35130 * script/lua/llex.c: Likewise.
35131 * script/lua/llex.h: Likewise.
35132 * script/lua/llimits.h: Likewise.
35133 * script/lua/lmathlib.c: Likewise.
35134 * script/lua/lmem.c: Likewise.
35135 * script/lua/lmem.h: Likewise.
35136 * script/lua/loadlib.c: Likewise.
35137 * script/lua/lobject.c: Likewise.
35138 * script/lua/lobject.h: Likewise.
35139 * script/lua/lopcodes.c: Likewise.
35140 * script/lua/lopcodes.h: Likewise.
35141 * script/lua/loslib.c: Likewise.
35142 * script/lua/lparser.c: Likewise.
35143 * script/lua/lparser.h: Likewise.
35144 * script/lua/lstate.c: Likewise.
35145 * script/lua/lstate.h: Likewise.
35146 * script/lua/lstring.c: Likewise.
35147 * script/lua/lstring.h: Likewise.
35148 * script/lua/lstrlib.c: Likewise.
35149 * script/lua/ltable.c: Likewise.
35150 * script/lua/ltable.h: Likewise.
35151 * script/lua/ltablib.c: Likewise.
35152 * script/lua/ltm.c: Likewise.
35153 * script/lua/ltm.h: Likewise.
35154 * script/lua/lua.h: Likewise.
35155 * script/lua/luaconf.h: Likewise.
35156 * script/lua/lualib.h: Likewise.
35157 * script/lua/lundump.c: Likewise.
35158 * script/lua/lundump.h: Likewise.
35159 * script/lua/lvm.c: Likewise.
35160 * script/lua/lvm.h: Likewise.
35161 * script/lua/lzio.c: Likewise.
35162 * script/lua/lzio.h: Likewise.
35164 2009-05-16 Bean <bean123ch@gmail.com>
35166 * include/grub/kernel.h (grub_module_header_types): Add type
35169 * kern/main.c (grub_load_config): New function.
35170 (grub_main): Call grub_load_config to read boot config.
35172 * grub-mkimage (generate_image): New parameter config_path.
35173 (options): New option --config.
35174 (main): Parse --config option, and pass it to generate_image.
35176 2009-05-14 Christian Franke <franke@computer.org>
35178 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35179 This fixes build on Cygwin.
35181 2009-05-14 Pavel Roskin <proski@gnu.org>
35183 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35184 jump. This saves two bytes, so the typical case of 2 swapped
35185 drives would fit 32 bytes.
35187 2009-05-13 Pavel Roskin <proski@gnu.org>
35189 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35190 grub_uint32_t to avoid a warning.
35192 * loader/i386/linux.c (allocate_pages): When assigning
35193 real_mode_mem, cast through grub_size_t to fix a warning. The
35194 code already makes sure that the value would fit a pointer.
35195 (grub_linux_setup_video): Cast render_target->data to
35196 grub_size_t to fix a warning.
35198 2009-05-13 Javier Martín <lordhabbit@gmail.com>
35200 * commands/i386/pc/drivemap.c: New file - implement drivemap
35202 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35203 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35205 2009-05-13 Pavel Roskin <proski@gnu.org>
35207 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35208 embedding_area_exists.
35210 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35212 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35213 it easier to understand / work with.
35214 Improve warning messages for cases where there's no embedding area,
35215 or when it is too small (or core.img too large).
35217 2009-05-13 Pavel Roskin <proski@gnu.org>
35219 * loader/i386/pc/multiboot2.c: Add necessary includes for
35220 grub_multiboot2_real_boot().
35222 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35223 PX record is always little-endian. We only need the lower 2
35226 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35227 facilitate code reuse.
35228 (grub_cpio_mount): Use "struct head", not a char buffer. This
35229 fixes a warning reported by gcc 4.4.
35231 * kernel/disk.c (grub_disk_read): Use void pointer for the
35233 (grub_disk_write): Use const void pointer for the buffer.
35234 Adjust all callers. Remove unnecessary casts.
35236 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35238 * util/i386/pc/grub-install.in: Update copyright year.
35240 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35244 * commands/gptsync.c: new file
35245 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35246 (gptsync_mod_SOURCES): new variable
35247 (gptsync_mod_CFLAGS): likewise
35248 (gptsync_mod_LDFLAGS): likewise
35249 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
35251 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35252 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35253 * conf/i386-ieee1275.rmk: likewise
35254 * conf/i386-pc.rmk: likewise
35255 * conf/powerpc-ieee1275.rmk: likewise
35257 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35261 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35262 (grub_dl_ref): likewise
35264 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35266 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35267 split in two functions (one for msdos and one for gpt).
35269 2009-05-08 Pavel Roskin <proski@gnu.org>
35271 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35274 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35275 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35276 Initialize them with -1. Add sanity check for bad1. Eliminate
35279 2009-05-08 David S. Miller <davem@davemloft.net>
35281 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35283 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35285 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
35288 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
35290 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
35291 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
35293 2009-05-05 David S. Miller <davem@davemloft.net>
35295 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35297 2009-05-05 Pavel Roskin <proski@gnu.org>
35299 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35300 of grub_dl_ref() and grub_dl_unref().
35301 * commands/parttool.c: Remove preprocessor conditionals around
35302 grub_dl_ref() and grub_dl_unref().
35303 * fs/affs.c: Likewise.
35304 * fs/afs.c: Likewise.
35305 * fs/cpio.c: Likewise.
35306 * fs/ext2.c: Likewise.
35307 * fs/fat.c: Likewise.
35308 * fs/hfs.c: Likewise.
35309 * fs/hfsplus.c: Likewise.
35310 * fs/iso9660.c: Likewise.
35311 * fs/jfs.c: Likewise.
35312 * fs/minix.c: Likewise.
35313 * fs/ntfs.c: Likewise.
35314 * fs/reiserfs.c: Likewise.
35315 * fs/sfs.c: Likewise.
35316 * fs/udf.c: Likewise.
35317 * fs/ufs.c: Likewise.
35318 * fs/xfs.c: Likewise.
35319 * include/grub/dl.h: Likewise.
35320 * loader/xnu.c: Likewise.
35322 2009-05-04 Pavel Roskin <proski@gnu.org>
35324 * commands/acpi.c: Remove unused variable my_mod.
35325 * partmap/amiga.c: Likewise.
35326 * partmap/apple.c: Likewise.
35327 * partmap/gpt.c: Likewise.
35328 * partmap/pc.c: Likewise.
35329 * partmap/sun.c: Likewise.
35330 * term/gfxterm.c: Likewise.
35331 * term/i386/pc/vesafb.c: Likewise.
35332 * term/i386/pc/vga.c: Likewise.
35334 2009-05-04 David S. Miller <davem@davemloft.net>
35336 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35337 pointer args to grub_ieee1275_get_property().
35339 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35341 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35342 devices, and do not traverse down under controller nodes.
35344 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35345 (grub_ofdisk_open): Use it to un-escape "," characters.
35346 * kern/disk.c (find_part_sep): New.
35347 (grub_disk_open): Use it to find the first non-escaped ','
35348 character in the disk name.
35349 * util/ieee1275/devicemap.c (escape_of_path): New.
35350 (grub_util_emit_devicemap_entry): Use it.
35351 * util/sparc64/ieee1275/grub-install.in: Update script to
35352 strip partition specifiers properly by not triggering on
35353 '\' escaped ',' characters.
35355 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35357 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35359 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35361 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35362 on documentation from Wikipedia).
35364 2009-05-04 Pavel Roskin <proski@gnu.org>
35366 * disk/ata.c: Spelling fixes.
35367 * disk/raid.c: Likewise.
35368 * disk/usbms.c: Likewise.
35369 * disk/dmraid_nvidia.c: Likewise.
35370 * kern/ieee1275/openfw.c: Likewise.
35371 * kern/ieee1275/init.c: Likewise.
35372 * kern/ieee1275/cmain.c: Likewise.
35373 * boot/i386/pc/cdboot.S: Likewise.
35374 * video/readers/png.c: Likewise.
35375 * video/i386/pc/vbe.c: Likewise.
35376 * fs/udf.c: Likewise.
35377 * fs/hfs.c: Likewise.
35378 * fs/reiserfs.c: Likewise.
35379 * efiemu/runtime/efiemu.c: Likewise.
35380 * efiemu/main.c: Likewise.
35381 * efiemu/mm.c: Likewise.
35382 * include/grub/elf.h: Likewise.
35383 * include/grub/xnu.h: Likewise.
35384 * include/grub/usbdesc.h: Likewise.
35385 * include/grub/usb.h: Likewise.
35386 * include/grub/script_sh.h: Likewise.
35387 * include/grub/lib/LzmaEnc.h: Likewise.
35388 * include/grub/efiemu/efiemu.h: Likewise.
35389 * include/grub/command.h: Likewise.
35390 * normal/menu.c: Likewise.
35391 * normal/main.c: Likewise.
35392 * normal/datetime.c: Likewise.
35393 * bus/usb/uhci.c: Likewise.
35394 * mmap/i386/uppermem.c: Likewise.
35395 * mmap/mmap.c: Likewise.
35396 * commands/acpi.c: Likewise.
35397 * commands/test.c: Likewise.
35398 * partmap/apple.c: Likewise.
35399 * font/font.c: Likewise.
35400 * loader/sparc64/ieee1275/linux.c: Likewise.
35401 * loader/macho.c: Likewise.
35402 * loader/i386/bsd_trampoline.S: Likewise.
35403 * loader/i386/bsd.c: Likewise.
35404 * loader/xnu.c: Likewise.
35405 * term/i386/pc/vesafb.c: Likewise.
35406 * term/usb_keyboard.c: Likewise.
35407 * util/resolve.c: Likewise.
35408 * util/getroot.c: Likewise.
35410 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
35412 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35414 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35416 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35419 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35421 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35422 parameter only available on BIOS.
35424 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35426 Removed wrong semicolon in declaration
35428 * grub/misc.h (grub_dprintf): remove semicolon
35430 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35432 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35433 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35434 is done by grub_cmd_linux() now).
35435 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35436 restore video to text mode.
35437 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35438 indicates lack of "vga=" parameter. "vga=0" is mapped to
35439 `GRUB_LINUX_VID_MODE_NORMAL'.
35441 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
35443 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35444 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35445 and `normal/script.c'. Add `kern/rescue_reader.c',
35446 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
35447 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35448 `grub_script.tab.c'.
35450 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35451 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35454 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35456 * Makefile.in: Remove duplicated 2008 in Copyright line.
35458 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35460 * util/misc.c (grub_util_warn): New function. Emits a warning
35462 * include/grub/util/misc.h (grub_util_warn): New declaration.
35464 * util/i386/pc/grub-install.in: Understand --force and pass it down
35467 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35469 (setup): Improve error messages and add warnings when requested to
35470 install in odd layouts. Refuse to install using blocklists unless
35473 2009-05-04 martin f. krafft <madduck@madduck.net>
35475 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35477 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35479 Updated copyright year
35481 * fs/hfsplus.c: updated copyright year
35483 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35487 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
35488 in the space previously used by unused3
35489 (grub_hfsplus_uuid): new function
35490 (grub_hfsplus_fs): added uuid field
35492 2009-05-03 Pavel Roskin <proski@gnu.org>
35494 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35495 suppress warnings. It's no longer needed.
35496 * disk/host.c: Likewise.
35497 * disk/ata_pthru.c: Likewise.
35498 * disk/loopback.c: Likewise.
35499 * hook/datehook.c: Likewise.
35500 * parttool/pcpart.c: Likewise.
35501 * fs/i386/pc/pxe.c: Likewise.
35502 * fs/ntfscomp.c: Likewise.
35503 * efiemu/main.c: Likewise.
35504 * mmap/mmap.c: Likewise.
35505 * commands/crc.c: Likewise.
35506 * commands/hexdump.c: Likewise.
35507 * commands/hdparm.c: Likewise.
35508 * commands/acpi.c: Likewise.
35509 * commands/echo.c: Likewise.
35510 * commands/minicmd.c: Likewise.
35511 * commands/blocklist.c: Likewise.
35512 * commands/memrw.c: Likewise.
35513 * commands/loadenv.c: Likewise.
35514 * commands/usbtest.c: Likewise.
35515 * commands/lsmmap.c: Likewise.
35516 * commands/boot.c: Likewise.
35517 * commands/parttool.c: Likewise.
35518 * commands/configfile.c: Likewise.
35519 * commands/search.c: Likewise.
35520 * commands/ieee1275/suspend.c: Likewise.
35521 * commands/cat.c: Likewise.
35522 * commands/i386/pc/pxecmd.c: Likewise.
35523 * commands/i386/pc/play.c: Likewise.
35524 * commands/i386/pc/halt.c: Likewise.
35525 * commands/i386/pc/vbeinfo.c: Likewise.
35526 * commands/i386/pc/vbetest.c: Likewise.
35527 * commands/lspci.c: Likewise.
35528 * commands/date.c: Likewise.
35529 * commands/handler.c: Likewise.
35530 * commands/ls.c: Likewise.
35531 * commands/test.c: Likewise.
35532 * commands/cmp.c: Likewise.
35533 * commands/efi/loadbios.c: Likewise.
35534 * commands/efi/fixvideo.c: Likewise.
35535 * commands/halt.c: Likewise.
35536 * commands/help.c: Likewise.
35537 * commands/reboot.c: Likewise.
35538 * hello/hello.c: Likewise.
35539 * script/sh/main.c: Likewise.
35540 * loader/xnu.c: Likewise.
35541 * term/terminfo.c: Likewise.
35542 * term/i386/pc/serial.c: Likewise.
35543 * term/usb_keyboard.c: Likewise.
35545 2009-05-03 David S. Miller <davem@davemloft.net>
35547 * normal/menu.c: Include grub/parser.h
35549 2009-05-03 Pavel Roskin <proski@gnu.org>
35551 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35553 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35554 Suggested by Javier Martín <lordhabbit@gmail.com>
35556 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35557 efiemu??.o doesn't exist.
35558 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35561 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
35563 FreeBSD 64-bit support
35565 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
35566 and loader/i386/bsd_trampoline.S
35567 (bsd_mod_ASFLAGS): new variable
35568 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35569 (FREEBSD_MODTYPE_KERNEL64): likewise
35570 (grub_bsd64_trampoline_start): likewise
35571 (grub_bsd64_trampoline_end): likewise
35572 (grub_bsd64_trampoline_selfjump): likewise
35573 (grub_bsd64_trampoline_gdt): likewise
35574 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35575 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35576 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35577 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
35578 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
35580 * loader/i386/bsd_pagetable.c: new file
35581 * loader/i386/bsd_trampoline.S: likewise
35582 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35583 (ALIGN_VAR): likewise
35584 (entry_hi): new variable
35585 (kern_end_mdofs): likewise
35586 (is_64bit): likewise
35587 (grub_freebsd_add_meta): use ALIGN_VAR
35588 (grub_e820_mmap): new declaration
35589 (grub_freebsd_add_mmap): new function
35590 (grub_freebsd_add_meta_module): support 64 bit kernels
35591 (grub_freebsd_list_modules): use ALIGN_VAR
35592 (gdt_descriptor): new declaration
35593 (grub_freebsd_boot): support 64 bit kernels
35594 (grub_bsd_elf64_hook): new function
35595 (grub_bsd_load_elf): support elf64
35597 2009-05-03 Bean <bean123ch@gmail.com>
35599 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35600 after we get the result of if statement.
35602 2009-05-03 Bean <bean123ch@gmail.com>
35604 * Makefile.in (enable_efiemu): New variable.
35606 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35608 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35610 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35611 path, add -mno-red-zone option.
35612 (efiemu64_s.o): Likewise.
35613 (efiemu64.o): Use macro $^ for source file.
35615 * configure.ac (--enable-efiemu): New option.
35617 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35621 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35622 (pkglib_MODULES): add xnu.mod
35623 (xnu_mod_SOURCES): new variable
35624 (xnu_mod_CFLAGS): likewise
35625 (xnu_mod_LDFLAGS): likewise
35626 (xnu_mod_ASFLAGS): likewise
35627 * conf/i386-pc.rmk: likewise
35628 * conf/x86_64-efi.rmk: likewise
35629 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
35631 * include/grub/i386/macho.h: new file
35632 * include/grub/i386/xnu.h: likewise
35633 * include/grub/macho.h: likewise
35634 * include/grub/machoload.h: likewise
35635 * include/grub/x86_64/macho.h: likewise
35636 * include/grub/x86_64/xnu.h: likewise
35637 * include/grub/xnu.h: likewise
35638 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35639 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35640 * loader/i386/efi/xnu.c: new file
35641 * loader/i386/pc/xnu.c: likewise
35642 * loader/i386/xnu.c: likewise
35643 * loader/i386/xnu_helper.S: likewise
35644 * loader/macho.c: likewise
35645 * loader/xnu.c: likewise
35646 * loader/xnu_resume.c: likewise
35647 * util/grub-dumpdevtree: likewise
35648 * include/grub/i386/pit.h: include grub/err.h
35649 (grub_pit_wait): export
35650 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
35652 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35656 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
35657 _linux_efi, linux_efi.
35658 new files in grub-emu
35659 new targets efiemu32.o and efiemu64.o
35660 * loader/linux_normal_efiemu.c: likewise
35661 * loader/i386/efi/linux.c: added preliminary efiemu support
35662 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
35664 * include/grub/autoefi.h: new file
35665 * include/grub/i386/efiemu.h: likewise
35666 * include/grub/i386/pc/efiemu.h: likewise
35667 * include/grub/efi/api.h: add LL suffix when necessary
35668 new definitions relating to tables
35669 * include/grub/efiemu/efiemu.h: new file
35670 * include/grub/efiemu/runtime.h: likewise
35671 * efiemu/prepare.c: likewise
35672 * efiemu/loadcore_common.c: likewise
35673 * efiemu/loadcore64.c: likewise
35674 * efiemu/runtime/efiemu.sh: likewise
35675 * efiemu/runtime/efiemu.S: likewise
35676 * efiemu/runtime/efiemu.c: likewise
35677 * efiemu/runtime/config.h: likewise
35678 * efiemu/prepare32.c: likewise
35679 * efiemu/main.c: likewise
35680 * efiemu/modules/pnvram.c: likewise
35681 * efiemu/modules/i386: likewise
35682 * efiemu/modules/i386/pc: likewise
35683 * efiemu/modules/acpi.c: likewise
35684 * efiemu/i386/pc/cfgtables.c: likewise
35685 * efiemu/i386/loadcore64.c: likewise
35686 * efiemu/i386/loadcore32.c: likewise
35687 * efiemu/prepare64.c: likewise
35688 * efiemu/loadcore.c: likewise
35689 * efiemu/symbols.c: likewise
35690 * efiemu/mm.c: likewise
35691 * efiemu/loadcore32.c: likewise
35693 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35697 * commands/acpi.c: new file
35698 * commands/i386/pc/acpi.c: likewise
35699 * commands/efi/acpi.c: likewise
35700 * include/grub/acpi.h: likewise
35701 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35702 (acpi_mod_SOURCES): new variable
35703 (acpi_mod_CFLAGS): likewise
35704 (acpi_mod_LDFLAGS): likewise
35705 * conf/i386-efi.rmk: likewise
35706 * conf/x86_64-efi.rmk: likewise
35708 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35710 Missing part from mmap patch
35712 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35713 (grub_mmap_unregister)
35714 (grub_mmap_free_and_unregister): use grub_mmap_register
35716 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35720 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35721 * loader/i386/linux.c (find_mmap_size): likewise
35722 (allocate_pages): likewise
35723 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35724 (grub_fill_multiboot_mmap): likewise
35725 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35726 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35727 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35728 (OPENBSD_MMAP_RESERVED): likewise
35729 * include/grub/i386/pc/memory.h: include grub/memory.h
35730 (grub_lower_mem): removed
35731 (grub_upper_mem): likewise
35732 (GRUB_MACHINE_MEMORY_ACPI): new definition
35733 (GRUB_MACHINE_MEMORY_NVS): likewise
35734 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35735 (GRUB_MACHINE_MEMORY_HOLE): likewise
35736 (grub_machine_mmap_register): likewise
35737 (grub_machine_mmap_unregister): likewise
35738 (grub_machine_get_upper): likewise
35739 (grub_machine_get_lower): likewise
35740 (grub_machine_get_post64): likewise
35741 * include/grub/i386/efi/memory.h: new file
35742 * include/grub/x86_64/efi/memory.h: likewise
35743 * include/grub/efi/memory.h: likewise
35744 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35745 (mmap_mod_SOURCES): new variable
35746 (mmap_mod_LDFLAGS): likewise
35747 (mmap_mod_ASFLAGS): likewise
35748 * conf/i386-coreboot.rmk: likewise
35749 * conf/i386-ieee1275.rmk: likewise
35750 * conf/i386-efi.rmk: likewise
35751 * conf/x86_64-efi.rmk: likewise
35752 * include/grub/types.h (UINT_TO_PTR): new macro
35753 (PTR_TO_UINT32): likewise
35754 (PTR_TO_UINT64): likewise
35755 * include/grub/memory.h: new file
35756 * mmap/i386/pc/mmap.c: likewise
35757 * mmap/i386/pc/mmap_helper.S: likewise
35758 * mmap/i386/uppermem.c: likewise
35759 * mmap/mmap.c: likewise
35760 * mmap/efi/mmap.c: likewise
35761 * kern/i386/coreboot/init.c (grub_machine_init): don't use
35763 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35764 (grub_upper_mem): likewise
35765 (grub_machine_init): don't use grub_upper_mem,
35766 make grub_lower_mem local
35767 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35768 grub_mmap_iterate and grub_mmap_get_upper
35769 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35771 2009-05-02 Bean <bean123ch@gmail.com>
35773 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35774 script/sh/parser.y.
35775 (pkglib_MODULES): Add normal.mod and sh.mod.
35776 (normal_SOURCES): New variable.
35777 (normal_mod_CFLAGS): Likewise.
35778 (normal_mod_LDFLAGS): Likewise.
35779 (sh_mod_SOURCES): Likewise.
35780 (sh_mod_CFLAGS): Likewise.
35781 (sh_mod_LDFLAGS): Likewise.
35783 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35784 script/sh/lexer.c_DEPENDENCIES.
35785 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35786 kern/rescue_reader.c and kern/rescue_parser.c.
35787 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35788 (grub_emu_SOURCES): Change source files.
35789 (pkglib_MODULES): Remove normal.mod.
35790 (normal_SOURCES): Removed.
35791 (normal_mod_CFLAGS): Likewise.
35792 (normal_mod_LDFLAGS): Likewise.
35793 * conf/i386-coreboot.rmk: Likewise.
35794 * conf/i386-efi.rmk: Likewise.
35795 * conf/i386-ieee1276.rmk: Likewise.
35796 * conf/powerpc-ieee1275.rmk: Likewise.
35797 * conf/sparc64-ieee1275.rmk: Likewise.
35798 * conf/x86_64-efi.rmk: Likewise.
35800 * include/grub/command.h (grub_command_execute): New inline function.
35802 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35804 * include/grub/normal.h: Remove <grub/setjmp.h>.
35805 (grub_fs_module_list): Moved to normal/autofs.c.
35806 (grub_exit_env): Removed.
35807 (grub_command_execute): Likewise.
35808 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35810 (read_command_list): New function declaration.
35811 (read_fs_list): Likewise.
35813 * include/parser.h: Include <grub/reader.h>.
35814 (grub_parser_split_cmdline): Change type of getline parameter.
35815 (grub_parser): New structure.
35816 (grub_parser_class): New variable.
35817 (grub_parser_execute): New function declaration.
35818 (grub_register_rescue_parser): Likewise.
35819 (grub_parser_register): New inline function.
35820 (grub_parser_unregister): Likewise.
35821 (grub_parser_get_current): Likewise.
35822 (grub_parser_set_current): Likewise.
35824 * include/grub/reader.h: New file.
35825 * kern/reader.c: Likewise.
35826 * kern/rescue_parser.c: Likewise.
35827 * kern/rescue_reader.c: Likewise.
35828 * normal/autofs.c: Likewise.
35829 * normal/dyncmd.c: Likewise.
35831 * include/grub/rescue.h: Removed.
35832 * normal/command.h: Likewise.
35834 * include/grub/script.h: Moved to ...
35835 * include/grub/script_sh.h: ... Moved here.
35836 * normal/execute.c: Moved to ...
35837 * script/sh/execute.c: ... Moved here.
35838 * normal/function.c: Moved to ...
35839 * script/sh/function.c: ... Moved here.
35840 * normal/lexer.c: Moved to ...
35841 * script/sh/lexer.c: ... Moved here.
35842 * normal/parser.y: Moved to ...
35843 * script/sh/parser.y: ... Moved here.
35844 * normal/script.c: Moved to ...
35845 * script/sh/script.c: ... Moved here.
35847 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35849 (grub_exit_env): Removed.
35850 (fs_module_list): Moved to normal/autofs.c.
35851 (grub_file_getline): Don't handle comment here.
35852 (free_menu): Skip removed field entry->commands.
35853 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35855 (read_config_file): Removed nested parameter, change getline function.
35856 (grub_enter_normal_mode): Removed.
35857 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35858 (read_command_list): Likewise.
35859 (autoload_fs_module): Moved to normal/autofs.c.
35860 (read_fs_list): Likewise.
35861 (reader_nested): New variable.
35862 (grub_normal_execute): Run parser.sh to switch to sh parser.
35863 (grub_cmd_rescue): Removed.
35864 (cmd_normal): Removed.
35865 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35867 (grub_cmdline_run): New function.
35868 (grub_normal_reader_init): Likewise.
35869 (grub_normal_read_line): Likewise.
35870 (grub_env_write_pager): Likewise.
35871 (cmdline): New variable.
35872 (grub_normal_reader): Likewise.
35873 (GRUB_MOD_INIT): Register normal reader and set as current, register
35874 pager hook, register normal command with grub_register_command_prio,
35875 so that it won't show up in command.lst.
35876 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35877 grub_fs_autoload_hook.
35879 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35880 (grub_menu_execute_entry): Replace grub_script_execute with
35881 grub_parser_execute, change parameter to grub_command_execute.
35883 * normal/menu_text.c: Remove <grub/script.h>.
35885 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35886 and <grub/parser.h>.
35887 (run): Change editor_getline to use new parser interface. Change
35888 parameter to grub_command_execute.
35890 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35891 <grub/reader.h> and <grub/parser.h>.
35892 (grub_load_normal_mode): Execute normal command.
35893 (grub_main): Call grub_register_core_commands,
35894 grub_register_rescue_parser and grub_register_rescue_reader, use
35895 grub_reader_loop to enter input loop.
35897 * kern/parser.c (grub_parser_split_cmdline): Change type of
35899 (grub_parser_class): New variable.
35900 (grub_parser_execute): New function.
35902 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35903 * loader/multiboot2.c: Likewise.
35904 * loader/sparc64/ieee1275/linux.c: Likewise.
35906 * util/grub-emu.c (read_command_list): New dummy function.
35908 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35910 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35911 count to 16 for CCISS and IDA.
35913 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35915 * normal/menu_text.c (grub_wait_after_message): Print a newline
35916 after waiting for user input.
35918 * loader/i386/linux.c: Include `<grub/normal.h>'.
35919 (grub_cmd_linux): Improve the error message about `ask' mode, by
35920 waiting for user input so it's not missed (we can do this, since
35921 user requested interaction).
35923 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35925 Added missing lst to grub-mkrescue
35927 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35928 and ${input_dir}/parttool.lst
35930 2009-04-30 David S. Miller <davem@davemloft.net>
35932 * util/hostdisk.c (device_is_wholedisk): New function.
35933 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35934 zero only if device_is_wholedisk() returns true.
35936 * util/hostdisk.c (convert_system_partition_to_system_disk):
35937 Handle virtual disk devices named /dev/vdiskX as found on sparc
35940 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35941 lettered partition specifier is found, convert to numbered.
35943 2009-04-29 David S. Miller <davem@davemloft.net>
35945 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35946 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35948 * normal/command.c: Add missing newline at end of file.
35950 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35952 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35953 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35954 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35955 ihandles have a 32-bit type but need to be stored in a "void *".
35957 2009-04-28 Pavel Roskin <proski@gnu.org>
35959 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35960 not disk. Adjust all dependencies.
35961 (grub_fs_uuid_close): Use grub_device_close(), not
35964 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35965 parent's partition, don't copy it by reference, as it gets freed
35968 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35970 Preboot hooks support
35972 * commands/boot.c (struct grub_preboot_t): new declaration
35973 (preboots_head): new variable
35974 (preboots_tail): likewise
35975 (grub_loader_register_preboot_hook): new function
35976 (grub_loader_unregister_preboot_hook): likewise
35977 (grub_loader_set): launch preboot hooks
35978 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35979 (grub_loader_register_preboot_hook): new declaration
35980 (grub_loader_unregister_preboot_hook): likewise
35982 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35986 * disk/scsi.c (grub_scsi_open): added missing cast when
35987 calling grub_dprintf
35989 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35991 Bug and warning fixes
35993 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
35995 * commands/test.c (test_parse): fixed bug with file tests and corrected
35996 declaration of find_file
35998 2009-04-26 Pavel Roskin <proski@gnu.org>
36000 * Makefile.in: Don't install empty manual pages if help2man is
36001 missing. Use help2man option for output, not shell redirection.
36003 2009-04-26 David S. Miller <davem@davemloft.net>
36005 * util/grub-mkdevicemap.c (make_device_map): Add missing
36006 NESTED_FUNC_ATTR to process_device().
36008 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36012 * commands/test.c: rewritten to use bash-like test
36014 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36016 Parttool autoloading and improvements
36018 * Makefile.in (pkglib_DATA): add parttool.lst
36019 (parttool.lst): new target
36020 * genmk.rb: generate parttool-*
36021 (CLEANFILES): add #{parttool}
36022 (PARTTOOLFILES): new variable
36023 * genparttoollist.sh: new file
36024 * parttool/pcpart.c (grub_pcpart_boot): more feedback
36025 (grub_pcpart_type): likewise
36026 * commands/parttool.c (helpmsg): new variable
36027 (grub_cmd_parttool): output help if not enough arguments are supplied
36029 (GRUB_MOD_INIT(parttool)): use helpmsg
36031 2009-04-24 David S. Miller <davem@davemloft.net>
36033 Avoiding opening same device multiple times in device iterator.
36035 * kern/device.c: (grub_device_iterate): Define struct part_ent,
36036 and use it to build a list of partitions in iterate_disk() and
36037 iterate_partition().
36039 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
36042 * disk/ieee1275/nand.c (grub_nand_iterate): Return
36043 grub_devalias_iterate() result instead of unconditional 0.
36044 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
36045 Also, capture hook return value, either directly or via
36046 grub_children_iterate(), and propagate to caller.
36047 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
36048 grub_children_iterate): Return value is now 'int' instead of
36050 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
36051 like a proper iterator, stopping when hooks return non-zero.
36052 (grub_devalias_iterate): Likewise.
36054 2009-04-23 David S. Miller <davem@davemloft.net>
36056 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
36058 2009-04-22 David S. Miller <davem@davemloft.net>
36060 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
36061 is larger than address_cells, use that value for address_cells too.
36063 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
36064 IEEE1275_MAX_PATH_LEN): Define.
36065 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
36066 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
36067 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
36068 'devtype'. Explicitly NULL terminate devalias expansion.
36070 * util/sparc64/ieee1275/misc.c: New file.
36071 * util/sparc64/ieee1275/grub-setup.c: New file.
36072 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
36073 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36074 * util/sparc64/ieee1275/grub-install.in: New file.
36075 * util/ieee1275/ofpath.c: New file.
36076 * util/ieee1275/devicemap.c: New file.
36077 * util/devicemap.c: New file.
36078 * util/deviceiter.c: New file.
36079 * kern/sparc64/ieee1275/init.c: New file.
36080 * include/grub/util/ofpath.h: New file.
36081 * include/grub/util/deviceiter.h: New file.
36082 * util/grub-mkdevicemap.c: Include deviceiter.h.
36083 Implement using grub_util_emit_devicemap_entry and
36084 grub_util_iterate_devices.
36085 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36086 util/devicemap.c into grub-mkdevicemap
36087 * conf/i386-efi.rmk: Likewise.
36088 * conf/i386-ieee1275.rmk: Likewise.
36089 * conf/i386-pc.rmk: Likewise.
36090 * conf/powerpc-ieee1275.rmk: Likewise.
36091 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36092 images and installation utilities. Build kernel as image
36093 instead of as elf binary. Use common rules as much as possible.
36095 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
36097 Correct GPT definition
36099 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
36102 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
36104 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36106 2009-04-19 David S. Miller <davem@davemloft.net>
36108 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36109 (grub_rescue_cmd_linux): Rename to...
36110 (grub_cmd_linux): and fix prototype.
36111 (grub_rescue_cmd_initrd): Rename to...
36112 (grub_cmd_initrd): and fix prototype.
36113 (cmd_linux, cmd_initrd): New.
36114 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36115 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36117 2009-04-17 Pavel Roskin <proski@gnu.org>
36119 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36121 (grub_ohci_transfer): Likewise.
36123 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36125 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36126 return without a value. Fix inconsistent indentation.
36128 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36129 match struct grub_fs.
36131 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36132 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36133 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36134 * commands/lspci.c (grub_lspci_iter): Likewise.
36136 2009-04-16 Bean <bean123ch@gmail.com>
36138 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36141 2009-04-15 Pavel Roskin <proski@gnu.org>
36143 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36144 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36145 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36148 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
36150 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
36151 that no multiple data or metadata areas are supported and `Unknown
36154 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36156 Move loader out of the kernel
36158 * kern/loader.c: moved to ...
36159 * commands/boot.c: ... moved here
36160 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36161 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36162 * include/grub/kernel.h (grub_machine_fini): export
36163 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36164 (grub_loader_set): likewise
36165 (grub_loader_unset): likewise
36166 (grub_loader_boot): likewise
36167 * conf/common.rmk: new module boot.mod
36168 (pkglib_MODULES): add boot.mod
36169 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36170 (grub_emu_SOURCES): likewise
36171 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36172 (grub_emu_SOURCES): likewise
36173 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36174 (grub_emu_SOURCES): likewise
36175 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36176 (grub_emu_SOURCES): likewise
36177 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36178 (grub_emu_SOURCES): likewise
36179 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36180 (grub_emu_SOURCES): likewise
36181 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
36182 (grub_emu_SOURCES): likewise
36184 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36186 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
36188 * kern/misc.c (grub_itoa): Removed function
36189 (grub_ltoa): likewise
36190 (grub_vsprintf): use grub_lltoa
36192 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
36196 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36197 * conf/i386-coreboot.rmk: likewise
36198 * conf/i386-ieee1275.rmk: likewise
36199 * conf/powerpc-ieee1275.rmk: likewise
36201 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
36203 * INSTALL: Add that `./autogen.sh' needs to be run before
36206 2009-04-14 Bean <bean123ch@gmail.com>
36208 * Makefile.in (pkglib_DATA): Add handler.lst.
36209 (handler.lst): New rule.
36211 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36212 * conf/i386-coreboot.rmk: Likewise.
36213 * conf/i386-ieee1275.rmk: Likewise.
36214 * conf/i386-efi.rmk: Likewise.
36215 * conf/x86_64-efi.rmk: Likewise.
36216 * conf/powerpc-ieee1275.rmk: Likewise.
36217 * conf/sparc64-ieee1275.rmk: Likewise.
36219 * genhandlerlist.sh: New file.
36221 * genmk.rb: Add rules to generate handler.lst.
36223 * include/grub/normal.h (grub_file_getline): New function definition.
36224 (read_handler_list): Likewise.
36225 (free_handler_list): Likewise.
36227 * include/grub/term.h (grub_term_register_input): Add name parameter
36228 for auto generation of handler.lst.
36229 (grub_term_register_output): Likewise.
36231 * normal/handler.c: New file.
36233 * normal/main.c (get_line): Renamed to grub_file_getline.
36234 (read_config_file): Use the newly renamed grub_file_getline.
36235 (read_command_list): Likewise.
36236 (read_fs_list): Likewise.
36237 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36238 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36240 * term/efi/console.c (grub_console_init): Add name parameter for auto
36241 generation of handler.lst.
36242 * term/gfxterm.c: Likewise.
36243 * term/i386/pc/at_keyboard.c: Likewise.
36244 * term/i386/pc/console.c: Likewise.
36245 * term/i386/pc/serial.c: Likewise.
36246 * term/i386/pc/vesafb.c: Likewise.
36247 * term/i386/pc/vga.c: Likewise.
36248 * term/i386/pc/vga_text.c: Likewise.
36249 * term/ieee1275/ofconsole.c: Likewise.
36250 * term/usb_keyboard.c: Likewise.
36252 2009-04-14 Bean <bean123ch@gmail.com>
36254 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36255 properly with null character.
36257 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
36259 * configure: Remove.
36260 * config.h.in: Likewise.
36261 * stamp-h.in: Likewise.
36262 * DISTLIST: Likewise.
36263 * conf/common.mk: Likewise.
36264 * conf/i386-coreboot.mk: Likewise.
36265 * conf/i386-efi.mk: Likewise.
36266 * conf/i386-ieee1275.mk: Likewise.
36267 * conf/i386.mk: Likewise.
36268 * conf/i386-pc.mk: Likewise.
36269 * conf/powerpc-ieee1275.mk: Likewise.
36270 * conf/sparc64-ieee1275.mk: Likewise.
36271 * conf/x86_64-efi.mk: Likewise.
36273 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36276 2009-04-14 John Stanley <jpsinthemix@verizon.net>
36277 David S. Miller <davem@davemloft.net>
36279 * util/hostdisk.c (make_device_name): Fix buffer length
36282 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
36284 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36285 <sys/param.h> and <sys/sysctl.h>.
36286 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36287 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36288 opening the device and reset them afterwards.
36290 2009-04-13 Pavel Roskin <proski@gnu.org>
36292 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36293 Reported by John Stanley <jpsinthemix@verizon.net>
36295 2009-04-13 Robert Millan <rmh@aybabtu.com>
36297 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
36298 that name for menuentries when appropriate.
36300 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36302 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36304 2009-04-13 Robert Millan <rmh@aybabtu.com>
36306 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36307 to Linux, simply abort telling the user it's no longer supported.
36309 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36311 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
36312 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
36313 `freebsd_loadenv' only when devices.hints exist.
36315 2009-04-13 Pavel Roskin <proski@gnu.org>
36317 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36319 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
36321 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36323 (grub_drive): Likewise.
36325 2009-04-13 David S. Miller <davem@davemloft.net>
36327 * kern/sparc64/ieee1275/ieee1275.c: New file.
36328 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36329 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36330 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36331 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36332 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36333 grub_ieee1275_alloc_physmem): Declare new exported functions.
36335 * include/grub/sparc64/ieee1275/loader.h: New file.
36336 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36337 * include/grub/sparc64/kernel.h: Likewise.
36338 * loader/sparc64/ieee1275/linux.c: Likewise.
36340 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36341 (grub_fstest_SOURCES): Likewise.
36343 * util/hostdisk.c (make_device_name): Do not make any assumptions
36344 about the length of drive names.
36346 * kern/dl.c (grub_dl_load_file): Close file immediately when
36347 we are done using it.
36349 2009-04-12 David S. Miller <davem@davemloft.net>
36351 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36352 values. Noticed by Pavel Roskin.
36354 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36357 * genmk.rb: Add more flexible image type specification, also
36358 pass --strip-unneeded to objcopy.
36359 * conf/i386-pc.rmk: Use *_FORMAT.
36360 * conf/i386-pc.mk: Rebuilt.
36362 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36363 (OFDISK_HASH_SZ): Define.
36364 (ofdisk_hash): New hash table.
36365 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36366 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36367 instead of device phandle which is not unique.
36369 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36370 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36371 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36372 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36373 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36374 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36375 GRUB_KERNEL_MACHINE_DATA_END): Define.
36376 (grub_kernel_image_size, grub_total_module_size): Declare.
36378 2009-04-12 Pavel Roskin <proski@gnu.org>
36380 * configure.ac: Change the logic when we check for target tools.
36381 Do it when the target is specified and it's different from the
36382 specified value of the host.
36384 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
36386 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36387 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36388 GNU/kFreeBSD. Check if a device is a character device. Use
36389 DIOCGMEDIASIZE to get the size.
36390 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36391 support for GNU/kFreeBSD.
36392 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36393 is a character device instead of a block device. Add support for
36394 FreeBSD device names.
36396 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36397 is a character device instead of a block device.
36399 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36400 is a character device instead of a block device.
36402 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36404 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36405 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36406 FreeBSD. Check if a device is a character device. Use
36407 DIOCGMEDIASIZE to get the size.
36408 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36409 support for FreeBSD.
36410 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36411 is a character device instead of a block device. Add support for
36412 FreeBSD device names.
36414 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36415 a character device instead of a block device.
36416 (grub_util_check_char_device): New function.
36418 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36419 a character device instead of a block device.
36421 * include/grub/util/getroot.h (grub_util_check_char_device): New
36424 2009-04-11 David S. Miller <davem@davemloft.net>
36426 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36428 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36429 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36430 function, if present.
36431 (__bswapdi2): Likewise.
36433 * include/grub/sparc64/ieee1275/boot.h: New file.
36434 * boot/sparc64/ieee1275/boot.S: Likewise.
36435 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36437 * kern/misc.c (grub_ltoa): New function.
36438 (grub_vsprintf): Use it to format 'long' integers.
36440 2009-04-10 David S. Miller <davem@davemloft.net>
36442 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36443 slots are of type grub_ieee1275_cell_t.
36444 (grub_nand_read): Likewise.
36445 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36446 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36447 macros are used to compare values in arg/ret block of the call.
36448 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36449 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36450 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36451 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36452 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36453 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36454 grub_ieee1275_close, grub_ieee1275_set_property,
36455 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36456 grub_ieee1275_cell_t.
36457 * kern/ieee1275/openfw.c (grub_map): Likewise.
36458 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36459 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36461 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36462 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36463 (grub_devalias_iterate): Likewise.
36465 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
36469 * fs/ufs.c (INODE_NBLOCKS): new definition
36470 (struct grub_ufs_dirent): added fields for non-BSD dirents
36471 (grub_ufs_get_file_block): fixed double indirect handling
36472 (grub_ufs_lookup_symlink): use more robust way to determine whether
36474 (grub_ufs_find_file): support for non-BSD dirents
36475 (grub_ufs_dir): support for non-BSD dirents
36477 2009-04-10 Bean <bean123ch@gnail.com>
36479 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36480 attribute, otherwise the size would be wrong for i386 platform.
36482 * include/grub/pci.h (grub_pci_read_word): New inline function.
36483 (grub_pci_read_byte): Likewise.
36484 (grub_pci_write): Likewise.
36485 (grub_pci_write_word): Likewise.
36486 (grub_pci_write_byte): Likewise.
36488 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36490 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36491 (find_framebuf): Scan pci to locate the frame buffer address.
36493 * commands/efi/fixvideo.c: New file.
36495 * commands/efi/loadbios.c: Likewise.
36497 * commands/memrw.c: Likewise.
36499 * util/grub-dumpbios.in: Likewise.
36501 * conf/common.rmk (grub-dumpbios): New utility.
36502 (pkglib_MODULES): New module memrw.mod.
36503 (memrw_mod_SOURCE): New macro.
36504 (memrw_mod_CFLAGS): Likewise.
36505 (memrw_mod_LDFLAGS): Likewise.
36507 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
36509 (loadbios_mod_SOURCE): New macro.
36510 (loadbios_mod_CFLAGS): Likewise.
36511 (loadbios_mod_LDFLAGS): Likewise.
36512 (fixvideo_mod_SOURCE): Likewise.
36513 (fixvideo_mod_CFLAGS): Likewise.
36514 (fixvideo_mod_LDFLAGS): Likewise.
36516 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
36518 (loadbios_mod_SOURCE): New macro.
36519 (loadbios_mod_CFLAGS): Likewise.
36520 (loadbios_mod_LDFLAGS): Likewise.
36521 (fixvideo_mod_SOURCE): Likewise.
36522 (fixvideo_mod_CFLAGS): Likewise.
36523 (fixvideo_mod_LDFLAGS): Likewise.
36525 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
36527 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36529 2009-04-07 David S. Miller <davem@davemloft.net>
36531 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36532 support for R_SPARC_OLO10 relocations. Fix compile warning for
36533 R_SPARC_WDISP30 case.
36534 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
36536 2009-04-06 Pavel Roskin <proski@gnu.org>
36538 * include/grub/misc.h (ARRAY_SIZE): New macro.
36539 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36541 * loader/i386/linux.c (allocate_pages): Use free_pages().
36542 (grub_linux_unload): Don't use free_pages().
36543 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36544 wrong index. Treat all other modes as text modes.
36545 (grub_cmd_linux): Initialize vid_mode unconditionally to
36546 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36548 * commands/help.c (print_command_help): Use cmd->prio, not
36549 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36551 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
36555 * parttool/pcpart.c: new file
36556 * commands/parttool.c: likewise
36557 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36558 (parttool_mod_SOURCES): new variable
36559 (parttool_mod_CFLAGS): likewise
36560 (parttool_mod_LDFLAGS): likewise
36561 (pcpart_mod_SOURCES): likewise
36562 (pcpart_mod_CFLAGS): likewise
36563 (pcpart_mod_LDFLAGS): likewise
36564 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
36565 and parttool/pcpart.c
36566 * conf/i386-efi.rmk: likewise
36567 * conf/i386-ieee1275.rmk: likewise
36568 * conf/i386-pc.rmk: likewise
36569 * conf/powerpc-ieee1275.rmk: likewise
36570 * conf/sparc64-ieee1275.rmk: likewise
36571 * conf/x86_64-ieee1275.rmk: likewise
36573 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36575 Support for mtime and further expandability of dir command
36577 * include/grub/lib/datetime.h: moved to ...
36578 * include/grub/datetime.h: ... moved here and added
36579 declaration of grub_unixtime2datetime. All users updated
36580 * include/grub/fs.h: new syntax for dir and mtime functions in
36582 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36583 and GRUB_FSHELP_FLAGS_MASK
36584 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36585 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36586 (grub_ext2_mtime): new function
36587 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36588 (grub_hfsplus_mtime): new function
36589 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36590 (GRUB_UFS_ATTR_FILE): likewise
36591 (GRUB_UFS_ATTR_LNK): likewise
36592 (struct grub_ufs_sblock): new fields mtime
36593 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36595 (grub_ufs_dir): mtime support
36596 (grub_ufs_mtime): new function
36597 * fs/affs.c (grub_affs_dir): use new dir syntax
36598 * fs/afs.c (grub_afs_dir): likewise
36599 * fs/cpio.c (grub_cpio_dir): likewise
36600 * fs/fat.c (grub_fat_find_dir): likewise
36601 * fs/hfs.c (grub_hfs_dir): likewise
36602 * fs/iso9660.c (grub_iso9660_dir): likewise
36603 * fs/jfs.c (grub_jfs_dir): likewise
36604 * fs/minix.c (grub_minix_dir): likewise
36605 * fs/ntfs.c (grub_ntfs_dir): likewise
36606 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36607 * fs/sfs.c (grub_sfs_dir): likewise
36608 * fs/xfs.c (grub_xfs_dir): likewise
36609 * util/hostfs.c (grub_hostfs_dir): likewise
36610 * lib/datetime.c: moved to ...
36611 * normal/datetime.c: ... moved here
36612 (grub_unixtime2datetime): new function
36613 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
36614 * normal/completion.c (iterate_dir): use new dir syntax
36615 * normal/misc.c (grub_normal_print_device_info): tell the
36616 last modification time of a volume
36617 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
36618 * conf/common.rmk: added lib/datetime.c to ls.mod
36619 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
36620 (normal_mod_SOURCES): likewise
36621 (datetime_mod_SOURCES): Removed lib/datetime.c
36622 * conf/i386-efi.rmk: likewise
36623 * conf/i386-ieee1275.rmk: likewise
36624 * conf/i386-pc.rmk: likewise
36625 * conf/powerpc-ieee1275.rmk: likewise
36626 * conf/sparc64-ieee1275.rmk: likewise
36627 * conf/x86_64-efi.rmk: likewise
36629 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36631 Trim trailing spaces in FAT label and support mtools-like labels
36633 * fs/fat.c (grub_fat_iterate_dir): New function based
36634 on grub_fat_find_dir
36635 (grub_fat_find_dir): use grub_fat_iterate_dir
36636 (grub_fat_label): likewise
36638 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36640 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
36642 remove extraneous kernel_elf_HEADERS
36644 2009-04-04 Bean <bean123ch@gnail.com>
36646 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36648 * util/misc.c: Likewise.
36650 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36652 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36653 instead of grub_printf.
36655 2009-04-03 Robert Millan <rmh@aybabtu.com>
36657 * loader/i386/linux.c (grub_linux_setup_video): Fill
36658 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36659 values from `mode info' structure instead of hardcoded
36662 2009-04-01 Pavel Roskin <proski@gnu.org>
36664 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36666 * genmk.rb: Likewise.
36667 * configure.ac: Likewise.
36669 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36671 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36672 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36674 2009-04-01 David S. Miller <davem@davemloft.net>
36676 * normal/sparc64/setjmp.S: Fix setjmp implementation.
36677 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
36678 (grub_setjmp): Mark with 'returns_twice' attribute.
36679 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36680 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36681 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36683 2009-04-01 Robert Millan <rmh@aybabtu.com>
36685 Reapply fix from 2008-07-28 which was accidentally reverted; also
36686 perform the same fix to a similar check in same function.
36688 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36689 with the same number are found, just use issue a warning with
36690 grub_dprintf(), as this error has been reported to be non-fatal.
36692 2009-03-31 Pavel Roskin <proski@gnu.org>
36694 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36695 for cross-compilation.
36697 2009-03-30 Robert Millan <rmh@aybabtu.com>
36699 Fix i386-ieee1275 build.
36701 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36702 Remove declaration.
36704 2009-03-30 Pavel Roskin <proski@gnu.org>
36706 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36707 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36708 zero-terminated, rely only on the strlen value. Fix comparison
36709 of strings differing in length.
36711 2009-03-30 Robert Millan <rmh@aybabtu.com>
36713 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36714 checking for abi version. Improve error messages on BIOS to notify
36715 user about `linux16' command.
36717 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36721 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36722 in case of collision
36723 * disk/scsi.c (grub_scsi_open): free scsi in case of error
36725 2009-03-29 Robert Millan <rmh@aybabtu.com>
36727 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36728 set `vid_mode' accordingly.
36729 (grub_linux_boot): Process `vid_mode' and set video mode.
36731 2009-03-29 Robert Millan <rmh@aybabtu.com>
36733 * util/grub.d/10_linux.in (linux_entry): New function.
36734 Factorize generation of Linux boot entries.
36736 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36738 Make the format of Environment Block plain text. The boot loader
36739 part is not tested well yet.
36741 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36743 (envblk): Likewise.
36744 (usage): Remove "info" and "clear". Add "unset". Update the
36745 description of "set", as this does not delete variables any
36747 (create_envblk_file): Complete rewrite.
36748 (open_envblk_file): Likewise.
36749 (cmd_info): Removed.
36750 (cmd_list): Likewise.
36751 (cmd_set): Likewise.
36752 (cmd_clear): Likewise.
36753 (list_variables): New function.
36754 (write_envblk): Likewise.
36755 (set_variables): Likewise.
36756 (unset_variables): Likewise.
36757 (main): Complete rewrite.
36759 * commands/loadenv.c (buffer): Removed.
36760 (envblk): Likewise.
36761 (open_envblk_file): New function.
36762 (read_envblk_file): Complete rewrite.
36763 (grub_cmd_load_env): Likewise.
36764 (grub_cmd_list_env): Likewise.
36765 (struct blocklist): New struct.
36766 (free_blocklists): New function.
36767 (check_blocklists): Likewise.
36768 (write_blocklists): Likewise.
36769 (grub_cmd_save_env): Complete rewrite.
36771 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36772 a plain text signature.
36773 (GRUB_ENVBLK_MAXLEN): Removed.
36774 (struct grub_envblk): Complete rewrite.
36775 (grub_envblk_find): Removed.
36776 (grub_envblk_insert): Likewise.
36777 (grub_envblk_open): New prototype.
36778 (grub_envblk_set): Likewise.
36779 (grub_envblk_delete): Put const to VALUE.
36780 (grub_envblk_iterate): Put const to NAME and VALUE.
36781 (grub_envblk_close): New prototype.
36782 (grub_envblk_buffer): New inline function.
36783 (grub_envblk_size): Likewise.
36785 * lib/envblk.c: Include grub/mm.h.
36786 (grub_env_find): Removed.
36787 (grub_envblk_open): New function.
36788 (grub_envblk_close): Likewise.
36789 (escaped_value_len): Likewise.
36790 (find_next_line): Likewise.
36791 (grub_envblk_insert): Removed.
36792 (grub_envblk_set): New function.
36793 (grub_envblk_delete): Complete rewrite.
36794 (grub_envblk_iterate): Likewise.
36796 2009-03-28 Robert Millan <rmh@aybabtu.com>
36798 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36799 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36800 variables. Use 16-bit loader.
36801 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36803 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36804 (grub_linux16_boot): ... this. Update all users.
36805 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36806 (grub_linux_boot): ... this. Update all users.
36808 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36809 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36810 commands to `linux16' and `initrd16'.
36811 (GRUB_MOD_FINI(linux)): Rename to ...
36812 (GRUB_MOD_FINI(linux16)): ... this.
36814 2009-03-24 Pavel Roskin <proski@gnu.org>
36816 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36817 not just for compilation.
36819 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36821 Move multiboot helper out of kernel
36823 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36824 `loader/i386/multiboot_helper.S'.
36825 * conf/i386-coreboot.rmk: Likewise
36826 * conf/i386-ieee1275.rmk: Likewise
36828 * kern/i386/loader.S: Move multiboot helpers from here...
36829 * loader/i386/multiboot_helper.S: ...moved here
36830 * include/grub/i386/loader.h: Move declarations of multiboot
36831 helpers from here...
36832 * include/grub/i386/multiboot.h: ...moved here
36833 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36835 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36837 * kern/env.c (grub_env_context_open): Added an argument to specify
36838 whether a new context inherits exported variables from current
36839 one. This is useful when making a sandbox to interpret a config
36841 All callers updated.
36843 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36845 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36847 * kern/env.c (grub_env_context_close): Fix memory leaks.
36849 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36851 * normal/main.c (grub_normal_execute): Added an argument
36852 BATCH to specify if an interactive interface should be provided
36853 after reading a config file.
36854 All callers updated.
36855 (read_command_list): Prevent being executed twice.
36856 (read_fs_list): Likewise.
36858 * include/grub/normal.h (grub_normal_execute): Updated the
36861 2009-03-22 Pavel Roskin <proski@gno.org>
36863 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36865 * kern/i386/pc/startup.S: Likewise.
36866 * kern/i386/efi/startup.S: Likewise.
36867 * kern/i386/ieee1275/startup.S: Likewise.
36868 * kern/i386/coreboot/startup.S: Likewise.
36869 * kern/x86_64/efi/startup.S: Likewise.
36871 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36872 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36873 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36875 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36877 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36879 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36881 Use vaddr of correct segment for entry_point.
36883 2009-03-21 Bean <bean123ch@gmail.com>
36885 * commands/blocklist.c: Add include file <grub/command.h>, remove
36886 <grub/normal.h> and <grub/arg.h>.
36887 (grub_cmd_blocklist): Use the new command interface.
36888 (GRUB_MOD_INIT): Likewise.
36889 (GRUB_MOD_FINI): Likewise.
36890 * commands/boot.c: Likewise.
36891 * commands/cat.c: Likewise.
36892 * commands/cmp.c: Likewise.
36893 * commands/configfile.c: Likewise.
36894 * commands/crc.c: Likewise.
36895 * commands/echo.c: Likewise.
36896 * commands/halt.c: Likewise.
36897 * commands/handler.c: Likewise.
36898 * commands/hdparm.c: Likewise.
36899 * commands/help.c: Likewise.
36900 * commands/hexdump.c: Likewise.
36901 * commands/loadenv.c: Likewise.
36902 * commands/ls.c: Likewise.
36903 * commands/lsmmap.c: Likewise.
36904 * commands/lspci.c: Likewise.
36905 * commands/loadenv.c: Likewise.
36906 * commands/read.c: Likewise.
36907 * commands/reboot.c: Likewise.
36908 * commands/search.c: Likewise.
36909 * commands/sleep.c: Likewise.
36910 * commands/test.c: Likewise.
36911 * commands/usbtest.c: Likewise.
36912 * commands/videotest.c: Likewise.
36913 * commands/i386/cpuid.c: Likewise.
36914 * commands/i386/pc/halt.c: Likewise.
36915 * commands/i386/pc/play.c: Likewise.
36916 * commands/i386/pc/pxecmd.c: Likewise.
36917 * commands/i386/pc/vbeinfo.c: Likewise.
36918 * commands/i386/pc/vbetest.c: Likewise.
36919 * commands/ieee1275/suspend.c: Likewise.
36920 * disk/loopback.c: Likewise.
36921 * font/font_cmd.c: Likewise.
36922 * hello/hello.c: Likewise.
36923 * loader/efi/appleloader.c: Likewise.
36924 * loader/efi/chainloader.c: Likewise.
36925 * loader/i386/bsd.c: Likewise.
36926 * loader/i386/efi/linux.c: Likewise.
36927 * loader/i386/ieee1275/linux.c: Likewise.
36928 * loader/i386/linux.c: Likewise.
36929 * loader/i386/pc/chainloader.c: Likewise.
36930 * loader/i386/pc/linux.c: Likewise.
36931 * loader/powerpc/ieee1275/linux.c: Likewise.
36932 * loader/multiboot_loader.c: Likewise.
36933 * term/gfxterm.c: Likewise.
36934 * term/i386/pc/serial.c: Likewise.
36935 * term/terminfo.c: Likewise.
36937 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36938 * term/i386/pc/vga.c: Likewise.
36939 * video/readers/jpeg.c: Likewise.
36940 * video/readers/png.c: Likewise.
36941 * video/readers/tga.c: Likewise.
36943 * util/grub-fstest (cmd_loopback): Removed.
36944 (cmd_blocklist): Likewise.
36945 (cmd_ls): Likewise.
36946 (grub_register_command): Likewise.
36947 (grub_unregister_command): Likewise.
36948 (execute_command): Use grub_command_find to locate command and execute
36951 * include/grub/efi/chainloader.h: Removed.
36952 * loader/efi/chainloader_normal.c: Likewise.
36953 * loader/i386/bsd_normal.c: Likewise.
36954 * loader/i386/pc/chainloader_normal.c: Likewise.
36955 * loader/i386/pc/multiboot_normal.c: Likewise.
36956 * loader/linux_normal.c: Likewise.
36957 * loader/multiboot_loader_normal.c: Likewise.
36958 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36960 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36961 and grub_register_command_p1.
36963 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36964 kern/command.c, lib/arg.c and commands/extcmd.c.
36965 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36966 (minicmd_mod_SOURCES): New variable.
36967 (minicmd_mod_CFLAGS): Likewise.
36968 (minicmd_mod_LDFLAGS): Likewise.
36969 (extcmd_mod_SOURCES): Likewise.
36970 (extcmd_mod_CFLAGS): Likewise.
36971 (extcmd_mod_LDFLAGS): Likewise.
36972 (boot_mod_SOURCES): Removed.
36973 (boot_mod_CFLAGS): Likewise.
36974 (boot_mod_LDFLAGS): Likewise.
36976 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36978 (kernel_img_HEADERS): Add command.h.
36979 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36980 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36982 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36983 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36984 remove the corresponding normal mode command.
36985 (normal_mod_SOURCES): Remove normal/arg.c.
36986 * conf/i386-coreboot.rmk: Likewise.
36987 * conf/i386-efi.rmk: Likewise.
36988 * conf/i386-ieee1275.rmk: Likewise.
36989 * conf/powerpc-ieee1275.rmk: Likewise.
36990 * conf/x86_64-efi.rmk: Likewise.
36992 * include/grub/arg.h: Move from here ...
36993 * include/grub/lib/arg.h: ... to here.
36995 * normal/arg.c: Move from here ...
36996 * lib/arg.c: ... to here.
36998 * commands/extcmd.c: New file.
36999 * commands/minicmd.c: Likewise.
37000 * include/grub/command.h: Likewise.
37001 * include/grub/extcmd.h: Likewise.
37002 * kern/command.c: Likewise.
37003 * kern/corecmd.c: Likewise.
37005 * kern/list.c (grub_list_iterate): Return int instead of void.
37006 (grub_list_insert): New function.
37007 (grub_prio_list_insert): Likewise.
37009 * kern/rescue.c (grub_rescue_command): Removed.
37010 (grub_rescue_command_list): Likewise.
37011 (grub_rescue_register_command): Likewise.
37012 (grub_rescue_unregister_command): Likewise.
37013 (grub_rescue_cmd_boot): Move to minicmd.c
37014 (grub_rescue_cmd_help): Likewise.
37015 (grub_rescue_cmd_info): Likewise.
37016 (grub_rescue_cmd_boot): Likewise.
37017 (grub_rescue_cmd_testload): Likewise.
37018 (grub_rescue_cmd_dump): Likewise.
37019 (grub_rescue_cmd_rmmod): Likewise.
37020 (grub_rescue_cmd_lsmod): Likewise.
37021 (grub_rescue_cmd_exit): Likewise.
37022 (grub_rescue_print_devices): Moved to corecmd.c.
37023 (grub_rescue_print_files): Likewise.
37024 (grub_rescue_cmd_ls): Likewise.
37025 (grub_rescue_cmd_insmod): Likewise.
37026 (grub_rescue_cmd_set): Likewise.
37027 (grub_rescue_cmd_unset): Likewise.
37028 (attempt_normal_mode): Use grub_command_find to get normal module.
37029 (grub_enter_rescue_mode): Use grub_register_core_commands to register
37030 commands, remove grub_rescue_register_command calls.
37032 * normal/command.c (grub_register_command): Removed.
37033 (grub_unregister_command): Likewise.
37034 (grub_command_find): Likewise.
37035 (grub_iterate_commands): Likewise.
37036 (rescue_command): Likewise.
37037 (export_command): Moved to corecmd.c.
37038 (set_command): Removed.
37039 (unset_command): Likewise.
37040 (insmod_command): Likewise.
37041 (rmmod_command): Likewise.
37042 (lsmod_command): Likewise.
37043 (grub_command_init): Likewise.
37045 * normal/completion.c (iterate_command): Use cmd->prio to check for
37047 (complete_arguments): Use grub_extcmd_t structure to find options.
37048 (grub_normal_do_completion): Change function grub_iterate_commands to
37049 grub_command_iterate.
37051 * normal/execute.c (grub_script_execute_cmd): No need to parse
37054 * normal/main.c (grub_dyncmd_dispatcher): New function.
37055 (read_command_list): Register unload commands as dyncmd.
37056 (grub_cmd_normal): Use new command interface, register rescue,
37057 unregister normal at entry, register normal, unregister rescue at exit.
37059 * include/grub/list.h (grub_list_test_t): New type.
37060 (grub_list_iterate): Return int instead of void.
37061 (grub_list_insert): New function.
37062 (GRUB_AS_NAMED_LIST_P): New macro.
37063 (GRUB_AS_PRIO_LIST): Likewise.
37064 (GRUB_AS_PRIO_LIST_P): Likewise.
37065 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
37066 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
37067 (grub_prio_list): New structure.
37068 (grub_prio_list_insert): New function.
37069 (grub_prio_list_remove): New inline function.
37071 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
37072 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
37073 (GRUB_COMMAND_FLAG_MENU): Likewise.
37074 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37075 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37076 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37077 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37078 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37079 (grub_command): Likewise.
37080 (grub_register_command): Likewise.
37081 (grub_command_find): Likewise.
37082 (grub_iterate_commands): Likewise.
37083 (grub_command_init): Likewise.
37084 (grub_arg_parse): Likewise.
37085 (grub_arg_show_help): Likewise.
37087 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37088 (grub_rescue_unregister_command): Likewise.
37090 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37091 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37092 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37094 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37095 grub_rescue_cmd_initrd.
37096 * include/grub/i386/loader.h: Likewise.
37097 * include/grub/x86_64/loader.h: Likewise.
37099 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37101 2009-03-21 Bean <bean123ch@gmail.com>
37103 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37104 instead of stat in mingw environment.
37106 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37108 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37110 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37113 2009-03-21 Bean <bean123ch@gmail.com>
37115 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37116 out of range error.
37118 2009-03-18 Michel Dänzer <michel@daenzer.net>
37120 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37121 checking inode flags for EXT4_EXTENTS_FLAG.
37123 2009-03-18 Robert Millan <rmh@aybabtu.com>
37125 * loader/i386/linux.c: Include `<grub/video.h>' and
37126 `<grub/i386/pc/vbe.h>'..
37127 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37128 (grub_linux32_boot): Attempt to configure video settings with
37129 grub_linux_setup_video().
37130 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37131 to avoid grub_console_fini() which would step out of graphical mode
37134 2009-03-14 Robert Millan <rmh@aybabtu.com>
37136 Fix build on powerpc.
37137 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37139 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37141 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37142 background image command.
37144 2009-03-12 Colin D Bennett <colin@gibibit.com>
37146 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37147 (grub_gfxterm_putchar): Extract pairs of identical calls to
37148 draw_cursor out of conditional blocks.
37150 2009-03-11 Pavel Roskin <proski@gnu.org>
37152 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37153 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37155 2009-03-11 Robert Millan <rmh@aybabtu.com>
37157 * loader/i386/multiboot_elfxx.c
37158 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37160 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
37162 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37165 2009-03-11 Robert Millan <rmh@aybabtu.com>
37167 * loader/i386/multiboot.c (code_size): New variable.
37168 (grub_multiboot): Define offsets by adding to `code_size' rather
37169 than subtracting from `grub_multiboot_payload_size'. Provide
37170 4-byte alignment to MBI and others by increasing
37171 `boot_loader_name_length' appropriately.
37173 * loader/i386/multiboot_elfxx.c
37174 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37176 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
37178 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37181 2009-03-08 Robert Millan <rmh@aybabtu.com>
37183 Make loader/i386/linux.c usable on i386-pc again.
37185 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37187 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37190 2009-03-07 Bean <bean123ch@gmail.com>
37192 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37195 2009-03-06 Robert Millan <rmh@aybabtu.com>
37197 Fix display issue on terminals with screen size other than 80x25
37198 (e.g. gfxterm with resolution higher than 640x480).
37200 * normal/main.c (grub_normal_init_page): Display title text in a
37201 position relative to the center of the terminal instead of relying
37202 on a hardcoded offset.
37204 2009-03-04 Robert Millan <rmh@aybabtu.com>
37206 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37209 * Makefile.in (host_kernel): New variable.
37210 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37211 scripts instead of just the windows one.
37212 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37214 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37216 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37218 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37219 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37220 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37221 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37222 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37223 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37225 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37227 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37228 or if there's no space for the disk label and print the partition number on a
37231 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
37233 * util/misc.c: Include <time.h>.
37234 (grub_millisleep): New function.
37236 2009-03-04 Bean <bean123ch@gmail.com>
37238 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37239 another option -mno-red-zone.
37241 * commands/handler.c: Change module description.
37243 * kern/handler.c: Add missing space at the end of description line.
37245 * kern/list.c: Likewise.
37247 2009-03-03 Robert Millan <rmh@aybabtu.com>
37249 Move more components to the relocation area, and fix mbi pointer
37250 handling to use the destination rather than the origin (thanks to
37251 Vladimir Serbinenko for spotting).
37253 * loader/i386/multiboot.c (mbi_dest): New variable.
37254 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37255 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37258 2009-03-01 Bean <bean123ch@gmail.com>
37260 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
37261 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37262 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37263 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37265 * loader/i386/efi/linux.c (acpi_guid): New variable.
37266 (acpi_guid): Likewise.
37267 (EBDA_SEG_ADDR): New constant.
37268 (LOW_MEM_ADDR): Likewise.
37269 (FAKE_EBDA_SEG): Likewise.
37270 (fake_bios_data): New function.
37271 (grub_linux_boot): Call fake_bios_data.
37273 2009-03-01 Bean <bean123ch@gmail.com>
37275 * commands/terminal.c: Removed.
37277 * commands/handler.c: New file.
37279 * include/grub/list.h: Likewise.
37281 * include/grub/handler.h: Likewise.
37283 * kern/list.c: Likewise.
37285 * kern/handler.c: Likewise.
37287 * kern/term.h: Include header file <grub/handler.h>.
37288 (grub_term_input): Move next field to the beginning.
37289 (grub_term_output): Likewise.
37290 (grub_term_input_class): New variable.
37291 (grub_term_output_class): Likewise.
37292 (grub_term_register_input): Changed to inline function.
37293 (grub_term_register_output): Likewise.
37294 (grub_term_unregister_input): Likewise.
37295 (grub_term_unregister_output): Likewise.
37296 (grub_term_set_current_input): Likewise.
37297 (grub_term_set_current_output): Likewise.
37298 (grub_term_get_current_input): Likewise.
37299 (grub_term_get_current_output): Likewise.
37300 (grub_term_iterate_input): Removed.
37301 (grub_term_iterate_output): Likewise.
37303 * kern/term.c (grub_term_list_input): Removed.
37304 (grub_term_list_output): Likewise.
37305 (grub_term_input_class): New variable.
37306 (grub_term_output_class): Likewise.
37307 (grub_cur_term_input): Change variable as macro.
37308 (grub_cur_term_output): Likewise.
37309 (grub_term_register_input): Removed.
37310 (grub_term_register_output): Likewise.
37311 (grub_term_unregister_input): Likewise.
37312 (grub_term_unregister_output): Likewise.
37313 (grub_term_set_current_input): Likewise.
37314 (grub_term_set_current_output): Likewise.
37315 (grub_term_iterate_input): Likewise.
37316 (grub_term_iterate_output): Likewise.
37317 (grub_term_get_current_input): Likewise.
37318 (grub_term_get_current_output): Likewise.
37320 * util/grub-editenv.c: Include header file <grub/handler.h>.
37321 (grub_term_get_current_input): Removed.
37322 (grub_term_get_current_output): Likewise.
37323 (grub_term_input_class): New variable.
37324 (grub_term_output_class): Likewise.
37326 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37327 (grub_term_get_current_output): Likewise.
37328 (grub_term_input_class): New variable.
37329 (grub_term_output_class): Likewise.
37331 * util/grub-probe.c (grub_term_get_current_input): Removed.
37332 (grub_term_get_current_output): Likewise.
37333 (grub_term_input_class): New variable.
37334 (grub_term_output_class): Likewise.
37336 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37337 (grub_term_get_current_output): Likewise.
37338 (grub_term_input_class): New variable.
37339 (grub_term_output_class): Likewise.
37341 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37342 (terminal_mod_SOURCES): Likewise.
37343 (terminal_mod_CFLAGS): Likewise.
37344 (terminal_mod_LDFLAGS): Likewise.
37346 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37348 (kernel_img_SOURCES): Add list.c and handler.c.
37349 (kernel_img_HEADERS): Add list.h and handler.h.
37351 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37353 (kernel_mod_SOURCES): Add list.c and handler.c.
37354 (kernel_mod_HEADERS): Add list.h and handler.h.
37356 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37358 (kernel_elf_SOURCES): Add list.c and handler.c.
37359 (kernel_elf_HEADERS): Add list.h and handler.h.
37361 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37363 (kernel_elf_SOURCES): Add list.c and handler.c.
37364 (kernel_elf_HEADERS): Add list.h and handler.h.
37366 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37368 (kernel_mod_SOURCES): Add list.c and handler.c.
37369 (kernel_mod_HEADERS): Add list.h and handler.h.
37371 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37373 (kernel_elf_SOURCES): Add list.c and handler.c.
37374 (kernel_elf_HEADERS): Add list.h and handler.h.
37376 2009-02-27 Robert Millan <rmh@aybabtu.com>
37378 Factorize elf32 / elf64 code in Multiboot loader. This will
37379 prevent it from getting out of sync again.
37381 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37382 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37383 grub_multiboot_load_elf64): Move from here ...
37384 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37385 grub_multiboot_load_elf): ... to here (new file).
37387 2009-02-27 Robert Millan <rmh@aybabtu.com>
37389 * util/grub.d/10_linux.in: Rename "single-user mode" to
37392 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37394 Don't leak in SCSI code.
37395 * disk/scsi.c (grub_scsi_close): free `scsi'.
37397 2009-02-27 Robert Millan <rmh@aybabtu.com>
37399 * loader/i386/pc/multiboot.c: Move from here ...
37400 * loader/i386/multiboot.c: ... to here. Update all users.
37402 2009-02-27 Robert Millan <rmh@aybabtu.com>
37404 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37405 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37407 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
37409 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37412 2009-02-27 Robert Millan <rmh@aybabtu.com>
37414 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37415 `0x' qualifier as 0 when base is specified as parameter).
37417 2009-02-24 Bean <bean123ch@gmail.com>
37419 * configure.ac: Check for -mcmodel=large in x86_64 target.
37421 * include/grub/efi/api.h (efi_call_10): New macro.
37422 (efi_wrap_10): New function.
37424 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37425 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37426 (GRUB_PE32_REL_BASED_LOW): Likewise.
37427 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37428 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37429 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37430 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37431 (GRUB_PE32_REL_BASED_REL): Likewise.
37432 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37433 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37434 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37436 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37439 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37440 (efi_wrap_10): New function.
37442 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37444 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37445 MB/MBP model (NV chipset).
37446 (devdata_devs): Add devpath_5 to the list.
37448 * load/i386/efi/linux.c (video_base): Remove variable.
37449 (RGB_MASK): New macro.
37450 (RGB_MAGIC): Likewise.
37451 (LINE_MIN): Likewise.
37452 (LINE_MAX): Likewise.
37453 (FBTEST_STEP): Likewise.
37454 (FBTEST_COUNT): Likewise.
37455 (fb_list): New variable.
37456 (grub_find_video_card): Remove function.
37457 (find_framebuf): New function.
37458 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37461 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37462 problem for x86_64.
37464 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37466 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37468 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37471 2009-02-22 Robert Millan <rmh@aybabtu.com>
37473 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37474 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37475 in our relocation, instead of using it directly from heap. Also
37476 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37478 2009-02-21 Robert Millan <rmh@aybabtu.com>
37480 Implement USB keyboard support (based on patch by Marco Gerards)
37482 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37483 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37484 (usb_keyboard_mod_LDFLAGS): New variables.
37486 * term/usb_keyboard.c: New file.
37488 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37490 Corrected wrong declaration
37492 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37494 2009-02-14 Christian Franke <franke@computer.org>
37496 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37497 (grub_lspci_iter): Print class code and programming interface byte.
37499 2009-02-14 Christian Franke <franke@computer.org>
37501 * gendistlist.sh: Ignore `.svn' directories.
37503 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
37505 * fs/fat.c: Add 2009 to Copyright line.
37507 2009-02-14 Christian Franke <franke@computer.org>
37509 * commands/hdparm.c: New file. Provides `hdparm' command
37510 which sends ATA commands via grub_disk_ata_pass_through ().
37512 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37514 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37515 and <grub/cpu/io.h> to include/grub/ata.h.
37516 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37517 (GRUB_CDROM_SECTOR_SIZE): Remove.
37518 (GRUB_ATA_*): Move to include/grub/ata.h.
37519 (GRUB_ATAPI_*): Likewise.
37520 (enum grub_ata_commands): Likewise.
37521 (enum grub_ata_timeout_milliseconds): Likewise.
37522 (struct grub_ata_device): Likewise.
37523 (grub_ata_regset): Likewise.
37524 (grub_ata_regget): Likewise.
37525 (grub_ata_regset2): Likewise.
37526 (grub_ata_regget2): Likewise.
37527 (grub_ata_check_ready): Likewise.
37528 (grub_ata_wait_not_busy): Remove static, exported in
37529 include/grub/ata.h.
37530 (grub_ata_wait_drq): Likewise.
37531 (grub_ata_pio_read): Likewise.
37533 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37534 function for hdparm.mod.
37536 * include/grub/ata.h: New file, contains declarations from
37538 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37540 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37541 (grub_disk_ata_pass_through): New exported variable.
37543 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37545 2009-02-13 Colin D Bennett <colin@gibibit.com>
37547 Support multiple fallback entries, and provide an API to support
37548 executing default+fallback menu entries. Renamed the `terminal' menu
37551 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37552 variable declaration.
37553 (grub_menu_execute_callback): New structure declaration.
37554 (grub_menu_execute_callback_t): New typedef.
37555 (grub_menu_execute_with_fallback): New function declaration.
37556 (grub_menu_get_entry): Likewise.
37557 (grub_menu_get_timeout): Likewise.
37558 (grub_menu_set_timeout): Likewise.
37560 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37562 * normal/menu.c (grub_wait_after_message): Moved to
37563 `normal/menu_text.c'.
37564 (draw_border): Likewise.
37565 (print_message): Likewise.
37566 (print_entry): Likewise.
37567 (print_entries): Likewise.
37568 (grub_menu_init_page): Likewise.
37569 (get_entry_number): Likewise.
37570 (print_timeout): Likewise.
37571 (run_menu): Likewise.
37572 (grub_menu_execute_entry): Likewise.
37573 (show_text_menu): Likewise.
37574 (get_and_remove_first_entry_number): New function.
37575 (grub_menu_execute_with_fallback): Likewise.
37576 (get_entry): Renamed to ...
37577 (grub_menu_get_entry): .. this and made it global.
37578 (get_timeout): Renamed to ...
37579 (grub_menu_get_timeout): ... this and made it global.
37580 (set_timeout): Renamed to ...
37581 (grub_menu_set_timeout): ... this and made it global.
37582 (grub_normal_terminal_menu_viewer): Renamed to ...
37583 (grub_normal_text_menu_viewer): ... this.
37585 * normal/menu_text.c: New file. Extracted text-menu-specific code
37586 from normal/menu.c.
37588 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37589 (normal_mod_SOURCES): Likewise.
37591 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37592 (normal_mod_SOURCES): Likewise.
37594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37595 (normal_mod_SOURCES): Likewise.
37597 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37598 (normal_mod_SOURCES): Likewise.
37600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37601 (normal_mod_SOURCES): Likewise.
37603 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37604 (normal_mod_SOURCES): Likewise.
37606 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37607 (normal_mod_SOURCES): Likewise.
37609 2009-02-11 Robert Millan <rmh@aybabtu.com>
37611 * util/grub.d/00_header.in: Update old reference to `font' command.
37613 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
37615 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37617 Based on patch from Javier Martín.
37619 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
37621 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
37622 to avoid false positives with FAT.
37623 (grub_fstest_SOURCES): Likewise.
37624 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37625 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37627 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37628 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37631 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
37633 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
37634 bpb.version_specific.fat12_or_fat16.fstype and
37635 bpb.version_specific.fat32.fstype.
37637 2009-02-08 Robert Millan <rmh@aybabtu.com>
37639 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
37641 2009-02-08 Robert Millan <rmh@aybabtu.com>
37643 * Makefile.in (host_os, host_cpu): New variables.
37644 (target_os): Remove. Update all users.
37646 2009-02-08 Marco Gerards <marco@gnu.org>
37648 * Makefile.in (enable_grub_emu_usb): New variable.
37649 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37650 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37651 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37652 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37653 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37654 `usbtest.mod' and `usbms.mod'.
37655 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37656 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37657 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37658 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37659 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37662 * disk/usbms.c: New file.
37664 * include/grub/usb.h: Likewise.
37666 * include/grub/usbtrans.h: Likewise.
37668 * include/grub/usbdesc.h: Likewise.
37670 * bus/usb/usbtrans.c: Likewise.
37672 * bus/usb/ohci.c: Likewise.
37674 * bus/usb/uhci.c: Likewise.
37676 * bus/usb/usbhub.c: Likewise.
37678 * bus/usb/usb.c: Likewise.
37680 * commands/usbtest.c: Likewise.
37682 * util/usb.c: Likewise.
37684 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37686 * configure.ac: Test for libusb presence.
37688 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37690 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37692 * kern/mm.c: Add more comments.
37694 2009-02-08 Robert Millan <rmh@aybabtu.com>
37696 Patch from Javier Martín.
37697 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37698 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37700 2009-02-08 Robert Millan <rmh@aybabtu.com>
37702 * fs/cpio.c: Split tar functionality to ...
37703 * fs/tar.c: ... here (new file). Update all users.
37705 2009-02-07 Robert Millan <rmh@aybabtu.com>
37707 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37708 backward-incompatible features.
37710 Based on patch from Javier Martín, with some adjustments.
37712 2009-02-07 Michael Scherer <misc@mandriva.org>
37714 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37716 2009-02-07 Robert Millan <rmh@aybabtu.com>
37718 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37719 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37720 after the RAID stuff.
37722 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37724 Fixes problem when running vbetest command as reported by
37725 Vladimir Serbinenko <phcoder@gmail.com>.
37727 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37729 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
37731 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37732 /dev/md/NpN style mdraid devices.
37734 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
37736 * util/unifont2pff.rb: Remove.
37738 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
37740 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37743 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
37745 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37746 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37747 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37748 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37749 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37750 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37751 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37753 2009-02-02 Christian Franke <franke@computer.org>
37755 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37757 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
37759 * INSTALL: Note that we now require at least autoconf 2.59 and
37760 that LZO is optional.
37762 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37764 Base on patch on bug #24154 created by Tomas Tintera
37765 <trosos@seznam.cz>.
37767 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37769 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37771 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
37772 <bero@arklinux.org>.
37774 * normal/parser.y (script_init): Add missing semicolon.
37776 2009-01-31 Colin D Bennett <colin@gibibit.com>
37778 * normal/main.c: Add include to grub/menu_viewer.h.
37779 (free_menu_entry_classes): Added.
37780 (grub_normal_menu_addentry): Added class property handling.
37781 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37782 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37784 * normal/menu_viewer.c: New file.
37786 * normal/menu.c (run_menu_entry): Renamed to ...
37787 (grub_menu_execute_entry): ... this and made it as global.
37788 (grub_menu_run): Renamed to ...
37789 (show_text_menu): ... this and made it local.
37790 (show_text_menu): Adapt to new function names.
37791 (grub_normal_terminal_menu_viewer): New global variable.
37793 * include/grub/menu.h: New file.
37795 * include/grub/menu_viewer.h: New file.
37797 * include/grub/normal.h: Added include to grub/menu.h.
37798 (grub_menu_entry): Moved to include/grub/menu.h.
37799 (grub_menu_entry_t): Likewise.
37800 (grub_menu): Likewise.
37801 (grub_menu_t): Likewise.
37802 (grub_normal_terminal_menu_viewer): Added.
37803 (grub_menu_execute_entry): Likewise.
37804 (grub_menu_run): Removed.
37806 * DISTLIST: Added include/grub/menu.h.
37807 Added include/grub/menu_viewer.h.
37808 Added normal/menu_viewer.c.
37810 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37812 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37813 arglist for menutitle arguments.
37815 * normal/main.c (grub_normal_menu_addentry): Likewise.
37817 * normal/parser.y (menuentry): Likewise.
37819 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37821 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37822 (grub_script_create_cmdmenu): Likewise.
37824 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37826 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37829 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37831 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37833 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37835 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37837 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37839 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37841 2009-01-30 Christian Franke <franke@computer.org>
37843 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37844 in option help text.
37846 2009-01-27 Pavel Roskin <proski@gnu.org>
37848 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37850 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37852 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37854 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37856 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37857 unregister function.
37859 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37861 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37863 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37865 * util/grub-mkfont.c (usage): Fix typo.
37867 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37869 2009-01-26 Daniel Mierswa <impulze@impulze.org>
37871 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37873 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37875 * kern/misc.c (grub_strcasecmp): New function.
37876 (grub_strcasecmp): Use grub_size_t instead of int for length.
37878 * include/grub/misc.h: Update function prototypes.
37880 2009-01-26 Robert Millan <rmh@aybabtu.com>
37882 * configure.ac: Fix cross-compilation check.
37884 2009-01-22 Christian Franke <franke@computer.org>
37886 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37887 (precision) digit string. Allow `.format2' without `format1' (width).
37888 Limit input chars for `%s' output to `format2' if specified. This is
37889 compatible with standard printf ().
37891 2009-01-22 Christian Franke <franke@computer.org>
37893 * disk/ata.c (grub_ata_wait_status): Replace by ...
37894 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37895 other status bits may be invalid while BSY is asserted.
37896 (grub_ata_check_ready): New function.
37897 (grub_ata_cmd): Removed.
37898 (grub_ata_wait_drq): New function.
37899 (grub_ata_strncpy): Remove inline.
37900 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37901 and error check now done by grub_ata_wait_drq ().
37902 (grub_ata_pio_write): Likewise.
37903 (grub_atapi_identify): Set DEV before check for !BSY. Use
37904 grub_ata_wait_drq () to wait for data.
37905 (grub_ata_device_initialize): Add status register check to
37906 detect missing SATA slave devices. Add debug messages.
37907 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37908 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37909 transfer loop by grub_ata_pio_write ().
37910 (grub_ata_identify): Set DEV before check for !BSY. Use
37911 grub_ata_wait_drq () to wait for data.
37912 (grub_ata_setaddress): Set DEV before check for !BSY.
37913 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37914 read/write in one loop. Fix invalid command on write. Fix incomplete
37915 command on (size % batch) == 0. Add missing error check after write of
37916 last block. Add debug messages.
37917 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37919 2009-01-19 Christian Franke <franke@computer.org>
37921 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37922 (GRUB_ATAPI_IREASON_*): Likewise.
37923 (grub_ata_pio_write): Fix timeout error return.
37924 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37925 (grub_atapi_wait_drq): New function.
37926 (grub_atapi_packet): New parameter `size'.
37927 Use grub_atapi_wait_drq () and direct write instead of
37928 grub_ata_pio_write ().
37929 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37930 reads the number of bytes requested by the device for each DRQ
37932 (grub_atapi_write): Remove old implementation, return not
37933 implemented instead.
37935 2009-01-19 Christian Franke <franke@computer.org>
37937 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37938 of 512 to calculate data size.
37939 (grub_scsi_read12): Likewise.
37940 (grub_scsi_write10): Likewise.
37941 (grub_scsi_write12): Likewise.
37942 (grub_scsi_read): Adjust size according to blocksize.
37943 Add checks for invalid blocksize and unaligned transfer.
37945 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37947 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37949 * term/gfxterm.c (write_char): Fix background rendering for wide
37952 2009-01-19 Robert Millan <rmh@aybabtu.com>
37954 * config.guess: Update to latest version from config git.
37955 * config.sub: Likewise.
37957 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
37959 * Makefile.in: Change font compilation to use new grub-mkfont instead
37962 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37963 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37964 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37965 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37966 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37967 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37968 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37969 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37970 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37972 2009-01-16 Christian Franke <franke@computer.org>
37974 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37975 (enum grub_ata_timeout_milliseconds): New enum.
37976 (grub_ata_wait_status): Add parameter milliseconds.
37977 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37978 recovery from timed-out commands.
37979 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37980 return grub_errno instead of REG_ERROR.
37981 (grub_ata_pio_write): Add parameter milliseconds.
37982 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37983 Pass milliseconds to grub_ata_wait_status () and
37984 grub_ata_pio_read ().
37985 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37986 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37987 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37988 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37989 It is not suitable for device detection, because DEV bit is ignored,
37990 the command may run too long, and not all devices set the signature
37992 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37993 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37994 Fix device selection, DEV bit must be set first to address the registers
37995 of the correct device.
37996 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37997 grub_ata_pio_read/write ().
37998 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37999 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
38001 2009-01-13 Carles Pina i Estany <carles@pina.cat>
38003 * util/grub-editenv.c (main): Use fseeko(), not fseek().
38005 2009-01-13 Bean <bean123ch@gmail.com>
38007 * util/grub-mkfont.c (write_font): forget to remove some debug code.
38009 2009-01-13 Bean <bean123ch@gmail.com>
38011 * Makefile.in: (enable_grub_mkfont): New variable.
38012 (freetype_cflags): Likewise.
38013 (freetype_libs): Likewise.
38015 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
38016 (grub_mkfont_SOURCES): New variable.
38017 (grub_mkfont_CFLAGS): Likewise.
38018 (grub_mkfont_LDFLAGS): Likewise.
38020 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
38021 library if `--enable-grub-mkfont' is requested.
38022 (enable_grub_mkfont): New variable.
38023 (freetype_cflags): Likewise.
38024 (freetype_libs): Likewise.
38026 * util/grub-mkfont.c: New file.
38028 2009-01-12 Christian Franke <franke@computer.org>
38030 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
38031 mode check. Fix setting of compat_use[].
38033 2009-01-10 Robert Millan <rmh@aybabtu.com>
38035 Update a few copyright years which we forgot to do in 2008 (only for
38036 files whose changes made in 2008 were copyright-significant)
38038 * Makefile.in: Add 2008 to Copyright line.
38039 * disk/ieee1275/ofdisk.c: Likewise.
38040 * disk/efi/efidisk.c: Likewise.
38041 * kern/dl.c: Likewise.
38042 * kern/sparc64/ieee1275/init.c: Likewise.
38043 * kern/mm.c: Likewise.
38044 * kern/efi/mm.c: Likewise.
38045 * boot/i386/pc/boot.S: Likewise.
38046 * genfslist.sh: Likewise.
38047 * fs/iso9660.c: Likewise.
38048 * fs/hfs.c: Likewise.
38049 * fs/jfs.c: Likewise.
38050 * fs/minix.c: Likewise.
38051 * fs/ufs.c: Likewise.
38052 * gensymlist.sh.in: Likewise.
38053 * genkernsyms.sh.in: Likewise.
38054 * include/grub/misc.h: Likewise.
38055 * include/grub/types.h: Likewise.
38056 * include/grub/symbol.h: Likewise.
38057 * include/grub/elf.h: Likewise.
38058 * include/grub/kernel.h: Likewise.
38059 * include/grub/disk.h: Likewise.
38060 * include/grub/dl.h: Likewise.
38061 * include/grub/i386/linux.h: Likewise.
38062 * include/grub/i386/pc/biosdisk.h: Likewise.
38063 * include/grub/efi/api.h: Likewise.
38064 * include/grub/efi/pe32.h: Likewise.
38065 * include/grub/util/misc.h: Likewise.
38066 * normal/execute.c: Likewise.
38067 * normal/arg.c: Likewise.
38068 * normal/completion.c: Likewise.
38069 * normal/lexer.c: Likewise.
38070 * normal/parser.y: Likewise.
38071 * normal/misc.c: Likewise.
38072 * commands/i386/pc/vbeinfo.c: Likewise.
38073 * commands/hexdump.c: Likewise.
38074 * commands/terminal.c: Likewise.
38075 * commands/ls.c: Likewise.
38076 * commands/help.c: Likewise.
38077 * partmap/pc.c: Likewise.
38078 * loader/efi/chainloader.c: Likewise.
38079 * loader/multiboot_loader.c: Likewise.
38080 * loader/i386/pc/multiboot2.c: Likewise.
38081 * term/efi/console.c: Likewise.
38082 * term/i386/pc/serial.c: Likewise.
38083 * util/lvm.c: Likewise.
38084 * util/console.c: Likewise.
38085 * util/i386/efi/grub-mkimage.c: Likewise.
38086 * util/raid.c: Likewise.
38088 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38090 * commands/videotest.c: Removed include to grub/machine/memory.h.
38092 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38093 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38094 (video_mod_SOURCES): Removed.
38095 (video_mod_CFLAGS): Likewise.
38096 (video_mod_LDFLAGS): Likewise.
38097 (gfxterm_mod_SOURCES): Likewise.
38098 (gfxterm_mod_CFLAGS): Likewise.
38099 (gfxterm_mod_LDFLAGS): Likewise.
38100 (videotest_mod_SOURCES): Likewise.
38101 (videotest_mod_CFLAGS): Likewise.
38102 (videotest_mod_LDFLAGS): Likewise.
38103 (bitmap_mod_SOURCES): Likewise.
38104 (bitmap_mod_CFLAGS): Likewise.
38105 (bitmap_mod_LDFLAGS): Likewise.
38106 (tga_mod_SOURCES): Likewise.
38107 (tga_mod_CFLAGS): Likewise.
38108 (tga_mod_LDFLAGS): Likewise.
38109 (jpeg_mod_SOURCES): Likewise.
38110 (jpeg_mod_CFLAGS): Likewise.
38111 (jpeg_mod_LDFLAGS): Likewise.
38112 (png_mod_SOURCES): Likewise.
38113 (png_mod_CFLAGS): Likewise.
38114 (png_mod_LDFLAGS): Likewise.
38116 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38117 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38118 (video_mod_SOURCES): Added.
38119 (video_mod_CFLAGS): Likewise.
38120 (video_mod_LDFLAGS): Likewise.
38121 (videotest_mod_SOURCES): Likewise.
38122 (videotest_mod_CFLAGS): Likewise.
38123 (videotest_mod_LDFLAGS): Likewise.
38124 (bitmap_mod_SOURCES): Likewise.
38125 (bitmap_mod_CFLAGS): Likewise.
38126 (bitmap_mod_LDFLAGS): Likewise.
38127 (tga_mod_SOURCES): Likewise.
38128 (tga_mod_CFLAGS): Likewise.
38129 (tga_mod_LDFLAGS): Likewise.
38130 (jpeg_mod_SOURCES): Likewise.
38131 (jpeg_mod_CFLAGS): Likewise.
38132 (jpeg_mod_LDFLAGS): Likewise.
38133 (png_mod_SOURCES): Likewise.
38134 (png_mod_CFLAGS): Likewise.
38135 (png_mod_LDFLAGS): Likewise.
38136 (gfxterm_mod_SOURCES): Likewise.
38137 (gfxterm_mod_CFLAGS): Likewise.
38138 (gfxterm_mod_LDFLAGS): Likewise.
38140 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38141 grub/machine/console.h.
38143 2009-01-04 Jerone Young <jerone@gmail.com>
38145 Make on screen instructions clearer
38147 Based on patch created by Jidanni <jidanni@jidanni.org>
38149 * normal/menu.c: print clearer instructions on the screen
38151 2009-01-02 Colin D Bennett <colin@gibibit.com>
38155 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38156 build system and fixed gfxterm.c to work with different sized fonts.
38158 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
38160 * configure: Re-generated.
38162 * DISTLIST: Removed font/manager.c.
38164 Added font/font_cmd.c.
38166 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38169 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
38171 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
38173 * kern/term.c: Changed users of grub_utf8_to_ucs4.
38175 * normal/menu.c: Likewise.
38177 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38178 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
38180 * include/grub/font.h: Replaced with new file.
38182 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38183 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38184 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38185 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38186 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
38187 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
38188 fg_red, fg_green, fg_blue, fg_alpha.
38189 (grub_video_adapter): Removed blit_glyph.
38190 (grub_video_blit_glyph): Removed.
38192 * font/manager.c: Removed file.
38194 * font/font.c: New file.
38196 * font/font_cmd.c: Likewise.
38198 * video/video.c (grub_video_blit_glyph): Removed.
38200 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38201 (grub_video_vbe_map_rgba): Likewise.
38202 (grub_video_vbe_unmap_color_int): Likewise.
38203 (grub_video_vbe_blit_glyph): Removed.
38204 (grub_video_vbe_adapter): Removed blit_glyph.
38206 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38207 (get_pixel): Likewise.
38208 (set_pixel): Likewise.
38210 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
38212 * term/gfxterm.c: Adapted to new font engine.
38214 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
38216 * term/i386/pc/vga.c: Likewise.
38218 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
38220 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38222 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38224 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38226 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38228 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38230 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38232 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38234 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38236 * util/grub.d/00_header.in: Changed to use new loadfont command.
38238 * util/grub-mkconfig_lib.in: Changed font extension.
38240 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
38242 * util/getroot.c (grub_util_get_grub_dev): Add support for
38243 /dev/md/dNNpNN style partitionable mdraid devices.
38245 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
38247 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38248 at a time limit of the PXE TFTP API correctly.
38249 (grub_pxefs_close): Likewise.
38251 2008-11-29 Robert Millan <rmh@aybabtu.com>
38253 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
38254 grub_ata_device_initialize() calls.
38256 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
38258 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38260 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38262 2008-11-28 Robert Millan <rmh@aybabtu.com>
38264 Fix build on powerpc-ieee1275. Based on patch created by
38265 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38266 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38267 `kern/ieee1275/mmap.c'.
38268 * include/grub/powerpc/ieee1275/memory.h: New file.
38270 Provide grub-install on coreboot.
38271 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38272 (grub_install_SOURCES): New variable.
38273 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38274 usable on coreboot.
38276 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
38278 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38279 to `grub_term_input_t'.
38280 (grub_term_get_current_output): Change return type to
38281 `grub_term_output_t'.
38283 2008-11-22 Robert Millan <rmh@aybabtu.com>
38285 Fix breakage on coreboot due to declaration mismatch.
38286 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38287 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38288 grub_vga_text_cls().
38290 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
38291 comments. Avoid copying one more byte than necessary (just in case).
38293 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38294 to 0x200000 (avoids trouble with some OFW implementations, and matches
38295 with the one in Yaboot).
38296 Reported by Manoel Abranches
38298 2008-11-20 Robert Millan <rmh@aybabtu.com>
38300 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38301 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38303 * util/grub-mkconfig_lib.in (grub_warn): New function.
38304 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38305 warnings, to obtain consistent formatting.
38306 * util/grub.d/00_header.in: Likewise.
38307 * util/update-grub_lib.in: Likewise.
38309 * loader/i386/linux.c (allocate_pages): Fix a warning.
38310 Move comment text to `#error' stanza.
38312 Harmonize ieee1275's grub_available_iterate() with the generic
38313 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38314 build problem on i386-ieee1275):
38315 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38316 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38317 parameter `type'. Update all users of this function.
38318 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38319 `kern/ieee1275/mmap.c'.
38320 * kern/ieee1275/init.c
38321 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38323 (grub_machine_mmap_iterate): ... this.
38324 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38325 return type to `grub_err_t'. Update all implementations of this
38326 function prototype.
38327 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38330 Add `lsmmap' command (lists firmware-provided memory map):
38331 * commands/lsmmap.c: New file.
38332 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38333 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38335 * conf/powerpc-ieee1275.rmk: Likewise.
38336 * conf/i386-coreboot.rmk: Likewise.
38337 * conf/i386-ieee1275.rmk: Likewise.
38339 2008-11-19 Robert Millan <rmh@aybabtu.com>
38341 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
38342 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38343 constraints to initrd allocation (based on code from
38344 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38345 for Linux to find it.
38347 2008-11-14 Robert Millan <rmh@aybabtu.com>
38349 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38350 order to cope with duplicate slashes.
38352 2008-11-14 Robert Millan <rmh@aybabtu.com>
38354 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38355 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38356 don't want to mess with lower memory, because it is used in the Linux
38359 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
38360 an appropriate place in lower memory, between 0x10000 and 0x90000,
38361 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38362 is in our heap (probably as a result of it being corrupted during
38363 decompression). Add #error instance with comment to explain why this
38364 loader isn't currently usable on PC/BIOS.
38366 2008-11-14 Robert Millan <rmh@aybabtu.com>
38368 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
38369 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
38371 2008-11-12 Robert Millan <rmh@aybabtu.com>
38373 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38375 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38376 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38378 * include/grub/i386/pc/memory.h: ... to here.
38380 2008-11-12 Robert Millan <rmh@aybabtu.com>
38382 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38385 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38386 (grub_console_cur_color, grub_console_real_putchar)
38387 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38388 (grub_console_setcolorstate, grub_console_setcolor)
38389 (grub_console_getcolor): Move from here ...
38390 * include/grub/i386/vga_common.h: ... to here (new file).
38392 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38393 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38394 `<grub/i386/io.h>'.
38395 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38396 `<grub/i386/vga_common.h>'.
38398 2008-11-12 Robert Millan <rmh@aybabtu.com>
38400 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38401 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38402 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38404 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38405 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38407 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38408 grub_console_init() with call to grub_vga_text_init().
38409 (grub_machine_fini): Replace call to
38410 grub_console_fini() with call to grub_vga_text_fini() and
38411 grub_at_keyboard_fini().
38413 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38414 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38415 (grub_console_setcolorstate, grub_console_setcolor)
38416 (grub_console_getcolor): New function prototypes.
38418 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38419 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38420 (grub_vga_text_setcursor): Static-ize.
38421 (grub_vga_text_term): New structure.
38422 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38424 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38425 (grub_console_cur_color, grub_console_standard_color)
38426 (grub_console_normal_color, grub_console_highlight_color)
38427 (map_char, grub_console_putchar, grub_console_getcharwidth)
38428 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38429 (grub_console_getcolor): Move from here ...
38430 * term/i386/vga_common.c: ... to here (same function names).
38432 2008-11-12 Robert Millan <rmh@aybabtu.com>
38434 Use newly-added Multiboot support in coreboot.
38436 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38437 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38439 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38440 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38441 (codestart): Store the MBI in `startup_multiboot_info' when we're
38442 being loaded using Multiboot.
38444 * kern/i386/coreboot/init.c (grub_machine_init): Move
38445 grub_at_keyboard_init() call to beginning of function (useful for
38446 debugging). Call grub_machine_mmap_init() before attempting to use
38447 grub_machine_mmap_iterate().
38448 (grub_lower_mem, grub_upper_mem): Move from here ...
38449 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38452 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38453 function prototype.
38455 2008-11-12 Robert Millan <rmh@aybabtu.com>
38457 Fix a regression introduced by the at_keyboard.mod split. Because
38458 some terminals are default on some platforms and non-default on
38459 others, the first terminal being registered determines which is
38460 going to be default.
38462 * kern/term.c (grub_term_register_input): If this is the first
38463 terminal being registered, set it as the current one.
38464 (grub_term_register_output): Likewise.
38466 * term/efi/console.c (grub_console_init): Do not call
38467 grub_term_set_current_output() or grub_term_set_current_input().
38468 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38469 * term/i386/pc/console.c (grub_console_init): Likewise.
38470 (grub_console_fini): Do not call grub_term_set_current_input()
38471 (but leave grub_term_set_current_output() to restore text mode).
38473 2008-11-10 Robert Millan <rmh@aybabtu.com>
38475 * util/grub.d/00_header.in: Add backward compatibility check for
38476 versions of terminal.mod that don't understand `terminal_input' or
38479 2008-11-09 Robert Millan <rmh@aybabtu.com>
38481 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38482 `terminal_input' / `terminal_output', not `terminal'.
38484 2008-11-08 Robert Millan <rmh@aybabtu.com>
38486 * Makefile.in (include_DATA): Fix srcdir=. assumption.
38487 (DISTCLEANFILES): Add `build_env.mk'.
38489 2008-11-08 Robert Millan <rmh@aybabtu.com>
38491 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
38492 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38493 members. Update all users.
38494 * util/console.c (grub_ncurses_term): Split in ...
38495 (grub_ncurses_term_input): ... this, and ...
38496 (grub_ncurses_term_output): ... this. Update all users.
38497 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
38499 2008-11-08 Robert Millan <rmh@aybabtu.com>
38501 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38502 (PKGDATA): Add $(pkgdata_SRCDIR).
38503 (pkglib_BUILDDIR): New variable.
38504 (pkgdata_SRCDIR): New variable.
38505 (build_env.mk): New target.
38506 (include_DATA): New variable.
38507 (install-local): Install $(include_DATA) files in $(includedir).
38509 2008-11-07 Pavel Roskin <proski@gnu.org>
38511 * gendistlist.sh: Use C locale for sorting to ensure consistent
38512 output on all systems.
38514 * util/grub.d/00_header.in: Remove incorrect space before
38517 2008-11-07 Robert Millan <rmh@aybabtu.com>
38519 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38521 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38522 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38523 (based on find_multi_boot1_header).
38524 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38525 using find_multi_boot2_header(), and abort if neither Multiboot or
38526 Multiboot headers were found.
38528 2008-11-07 Robert Millan <rmh@aybabtu.com>
38530 Modularize at_keyboard.mod:
38532 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38533 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38534 (at_keyboard_mod_LDFLAGS): New variables.
38536 Actual terminal split:
38538 * include/grub/term.h (struct grub_term): Split in ...
38539 (struct grub_term_input): ... this, and ...
38540 (struct grub_term_output): ... this. Update all users.
38541 (grub_term_set_current): Split in ...
38542 (grub_term_set_current_input): ... this, and ...
38543 (grub_term_set_current_output): ... this.
38544 (grub_term_get_current): Split in ...
38545 (grub_term_get_current_input): ... this, and ...
38546 (grub_term_get_current_output): ... this.
38547 (grub_term_register): Split in ...
38548 (grub_term_register_input): ... this, and ...
38549 (grub_term_register_output): ... this.
38550 (grub_term_unregister): Split in ...
38551 (grub_term_unregister_input): ... this, and ...
38552 (grub_term_unregister_output): ... this.
38553 (grub_term_iterate): Split in ...
38554 (grub_term_iterate_input): ... this, and ...
38555 (grub_term_iterate_output): ... this.
38557 * kern/term.c (grub_term_list): Split in ...
38558 (grub_term_list_input): ... this, and ...
38559 (grub_term_list_output): ... this. Update all users.
38560 (grub_cur_term): Split in ...
38561 (grub_cur_term_input): ... this, and ...
38562 (grub_cur_term_output): ... this. Update all users.
38563 (grub_term_set_current): Split in ...
38564 (grub_term_set_current_input): ... this, and ...
38565 (grub_term_set_current_output): ... this.
38566 (grub_term_get_current): Split in ...
38567 (grub_term_get_current_input): ... this, and ...
38568 (grub_term_get_current_output): ... this.
38569 (grub_term_register): Split in ...
38570 (grub_term_register_input): ... this, and ...
38571 (grub_term_register_output): ... this.
38572 (grub_term_unregister): Split in ...
38573 (grub_term_unregister_input): ... this, and ...
38574 (grub_term_unregister_output): ... this.
38575 (grub_term_iterate): Split in ...
38576 (grub_term_iterate_input): ... this, and ...
38577 (grub_term_iterate_output): ... this.
38579 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38580 a check for input and one for output (and only attempt to get keys
38581 from user when input works).
38583 * util/grub-probe.c (grub_term_get_current): Split in ...
38584 (grub_term_get_current_input): ... this, and ...
38585 (grub_term_get_current_output): ... this.
38586 * util/grub-fstest.c: Likewise.
38587 * util/i386/pc/grub-setup.c: Likewise.
38588 * util/grub-editenv.c: Likewise.
38590 Portability adjustments:
38592 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38593 `term/i386/pc/at_keyboard.c'.
38594 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38595 grub_keyboard_controller_init() (now handled by terminal .init).
38596 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38597 grub_at_keyboard_init().
38598 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38599 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38600 at_keyboard.mod via input terminal interface).
38601 * include/grub/i386/coreboot/console.h: Convert into a stub for
38602 `<grub/i386/pc/console.h>'.
38604 Migrate full terminals to new API:
38606 * term/efi/console.c (grub_console_term): Split into ...
38607 (grub_console_term_input): ... this, and ...
38608 (grub_console_term_output): ... this. Update all users.
38609 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38610 (grub_ofconsole_init): Split into ...
38611 (grub_ofconsole_init_input): ... this, and ...
38612 (grub_ofconsole_init_output): ... this.
38613 (grub_ofconsole_term): Split into ...
38614 (grub_ofconsole_term_input): ... this, and ...
38615 (grub_ofconsole_term_output): ... this. Update all users.
38616 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38617 (grub_serial_term_input): ... this, and ...
38618 (grub_serial_term_output): ... this. Update all users.
38619 * term/i386/pc/console.c (grub_console_term): Split into ...
38620 (grub_console_term_input): ... this, and ...
38621 (grub_console_term_output): ... this. Update all users.
38622 (grub_console_term_input): Only enable it on PC/BIOS platform.
38623 (grub_console_init): Remove grub_keyboard_controller_init() call.
38625 Migrate input terminals to new API:
38627 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38628 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38629 i386-specific anyway).
38630 (grub_console_checkkey): Rename to ...
38631 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38633 (grub_keyboard_controller_orig): New variable.
38634 (grub_console_getkey): Rename to ...
38635 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38637 (grub_keyboard_controller_init): Static-ize. Save original
38638 controller value so that it can be restored ...
38639 (grub_keyboard_controller_fini): ... here (new function).
38640 (grub_at_keyboard_term): New structure.
38641 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38644 Migrate output terminals to new API:
38646 * term/i386/pc/vga.c (grub_vga_term): Change type to
38647 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38648 members. Update all users.
38649 * term/gfxterm.c (grub_video_term): Change type to
38650 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38651 members. Update all users.
38652 * include/grub/i386/pc/console.h (grub_console_checkkey)
38653 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38656 Migrate `terminal' command and userland tools to new API:
38658 * commands/terminal.c (grub_cmd_terminal): Split into ...
38659 (grub_cmd_terminal_input): ... this, and ...
38660 (grub_cmd_terminal_output): ... this.
38661 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38662 `terminal_input' and `terminal_output'.
38663 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38664 `terminal_input' / `terminal_output' API.
38665 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38666 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38667 provided ${GRUB_TERMINAL}, convert it).
38669 2008-11-04 Robert Millan <rmh@aybabtu.com>
38671 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38673 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38675 2008-11-03 Bean <bean123ch@gmail.com>
38677 * kern/elf.c (grub_elf32_load): Revert to previous code.
38678 (grub_elf64_load): Likewise.
38680 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38682 2008-11-01 Robert Millan <rmh@aybabtu.com>
38684 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38685 (TARGET_CPPFLAGS): Likewise.
38686 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38688 2008-11-01 Carles Pina i Estany <carles@pina.cat>
38690 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38692 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
38694 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38695 addition of objects until the code is not going to be able to fail.
38697 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
38699 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38700 (add a missing NULL check, and correct them by moving the pointer
38701 operations after the actual check).
38703 2008-10-29 Robert Millan <rmh@aybabtu.com>
38705 * util/i386/pc/grub-install.in: Handle empty string as output from
38706 make_system_path_relative_to_its_root().
38708 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38710 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38711 circular metadata worst case scenario. If the metadata is circular
38712 then copy the wrap in place.
38713 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38714 project lib/format_text/layout.h
38715 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38717 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
38719 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
38721 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
38723 * util/update-grub_lib.in: Mention filename in warning message.
38725 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
38727 * NEWS: Update for rename of update-grub to grub-mkconfig.
38729 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
38731 * util/update-grub_lib.in: Copy to ...
38732 * util/grub-mkconfig_lib.in: ... this. Update all users.
38733 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
38734 * util/update-grub.in: Rename to ...
38735 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38736 option. Add `--output' option to allow users to specify the generated
38737 configuration file. Default to stdout.
38738 (update_grub_dir): Rename to ...
38739 (grub_mkconfig_dir): ... this.
38740 (grub_cfg): Default to an empty string.
38741 * conf/common.rmk (update-grub): Rename to ...
38742 (grub-mkconfig): ... this.
38743 (update-grub_lib): Copy to ...
38744 (grub-mkconfig_lib): ... this.
38745 (update-grub_SCRIPTS): Copy to ...
38746 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38747 (update-grub_DATA): Rename to ...
38748 (grub-mkconfig_DATA): ... this.
38750 2008-09-28 Robert Millan <rmh@aybabtu.com>
38752 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38753 to `modified'. Add the real `created' field.
38754 (grub_iso9660_uuid): Use `modified' rather than `created' for
38755 constructing the UUID.
38757 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
38759 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38760 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38762 2008-09-28 Bean <bean123ch@gmail.com>
38764 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38765 Thanks to Christian Franke for finding this bug.
38767 2008-09-25 Robert Millan <rmh@aybabtu.com>
38769 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38770 instances of grub_util_get_disk_name() (see previous commit).
38772 2008-09-25 Robert Millan <rmh@aybabtu.com>
38774 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38775 `util/i386/get_disk_name.c'.
38776 * conf/i386-efi.rmk: Likewise.
38777 * conf/x86_64-efi.rmk: Likewise.
38778 * conf/i386-coreboot.rmk: Likewise.
38779 * conf/i386-ieee1275.rmk: Likewise.
38780 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38781 `util/ieee1275/get_disk_name.c'.
38782 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38783 * util/ieee1275/get_disk_name.c: Remove file.
38784 * util/i386/get_disk_name.c: Remove file.
38785 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38786 "hd%d" for device.map entries, rather than using
38787 grub_util_get_disk_name().
38789 2008-09-24 Carles Pina i Estany <carles@pina.cat>
38791 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38793 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38795 2008-09-24 Carles Pina i Estany <carles@pina.cat>
38797 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38799 (GRUB_TERM_PPAGE): Changed to 0x4900.
38801 2008-09-24 Robert Millan <rmh@aybabtu.com>
38803 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38804 macros (they were i386-pc specific).
38805 * include/grub/sparc64/ieee1275/console.h: Likewise.
38806 * include/grub/efi/console.h: Likewise.
38808 2008-09-22 Bean <bean123ch@gmail.com>
38810 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38811 resident and in attribute list.
38813 * include/grub/ntfs.h (BMP_LEN): Removed.
38815 2008-09-22 Bean <bean123ch@gmail.com>
38817 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
38818 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38820 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38821 error occurs, as grub_disk_open will call grub_disk_close, which will
38822 call p->close (scsi).
38824 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
38826 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38827 (AC_PREREQ): Bumped to 2.59.
38828 (AC_TRY_COMPILE): Replace obsolete macro with ...
38829 (AC_COMPILE_IFELSE): ... this.
38830 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38831 (AC_LINK_IFELSE): ... this.
38833 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
38835 * autogen.sh: Add a call to `gendistlist.sh'.
38837 2008-09-19 Christian Franke <franke@computer.org>
38839 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38840 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38841 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38842 Export __enable_execute_stack() to modules.
38843 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38846 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
38848 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38851 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
38853 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
38854 #include <grub/util/hostdisk.h>.
38856 2008-09-08 Robert Millan <rmh@aybabtu.com>
38858 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38859 segments when their filesz is zero (grub_file_read() interprets
38860 zero-size as "read until EOF", which results in memory corruption).
38861 Use `lowest_segment' rather than 0 for calculating the current
38862 segment load address.
38864 2008-09-08 Robert Millan <rmh@aybabtu.com>
38866 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38867 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38868 clobbered useful information.
38870 2008-09-08 Robert Millan <rmh@aybabtu.com>
38872 * include/grub/util/biosdisk.h: Move to ...
38873 * include/grub/util/hostdisk.h: ... here. Update all users.
38874 * util/biosdisk.c: Move to ...
38875 * util/hostdisk.c: ... here. Update all users.
38877 2008-09-07 Robert Millan <rmh@aybabtu.com>
38879 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38881 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38882 and length can be stored directly in the `mbi->mmap_addr' and
38883 `mbi->mmap_length' struct fields.
38885 2008-09-07 Robert Millan <rmh@aybabtu.com>
38887 * conf/i386.rmk: New file. Provides declaration for building
38889 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38890 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38892 Include `conf/i386.mk'.
38893 * conf/i386-efi.rmk: Likewise.
38894 * conf/x86_64-efi.rmk: Likewise.
38895 * conf/i386-coreboot.rmk: Likewise.
38896 * conf/i386-ieee1275.rmk: Likewise.
38898 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38900 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38901 Adds optimization support for BGR based modes.
38903 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38904 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38905 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38907 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38908 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38909 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38910 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38911 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38912 (grub_video_i386_vbeblit_index_index): Likewise.
38913 (grub_video_i386_vbeblit_replace_directN): Added.
38914 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38915 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38916 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38917 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38918 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38919 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38920 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38921 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38922 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38923 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38924 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38925 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38926 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38928 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38929 (grub_video_i386_vbefill_R8G8B8): Likewise.
38930 (grub_video_i386_vbefill_index): Likewise.
38931 (grub_video_i386_vbefill_direct32): Added.
38932 (grub_video_i386_vbefill_direct24): Likewise.
38933 (grub_video_i386_vbefill_direct16): Likewise.
38934 (grub_video_i386_vbefill_direct8): Likewise.
38936 * include/grub/video.h (grub_video_blit_format): Removed
38937 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38938 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38939 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38940 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38941 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
38943 * video/video.c (grub_video_get_blit_format): Updated to use new
38944 blit formats. Added handling for 16 bit color modes.
38946 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
38948 (common_blitter): Updated to use new blitters.
38950 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38952 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38953 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38954 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38955 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38956 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38957 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38958 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38959 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38960 (grub_video_i386_vbeblit_index_index): Likewise.
38961 (grub_video_i386_vbeblit_replace_directN): Added.
38962 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38963 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38964 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38965 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38966 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38967 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38968 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38969 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38970 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38971 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38972 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38973 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38974 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38976 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38977 (grub_video_i386_vbefill_R8G8B8): Likewise.
38978 (grub_video_i386_vbefill_index): Likewise.
38979 (grub_video_i386_vbefill_direct32): Added.
38980 (grub_video_i386_vbefill_direct24): Likewise.
38981 (grub_video_i386_vbefill_direct16): Likewise.
38982 (grub_video_i386_vbefill_direct8): Likewise.
38984 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38987 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38990 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38993 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38996 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
38998 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
39001 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
39003 * fs/iso9660.c (grub_iso9660_date): New structure.
39004 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
39005 (grub_iso9660_uuid): New function.
39007 2008-09-05 Bean <bean123ch@gmail.com>
39009 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
39011 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
39012 insensitive bit for names in Win32 and Win32 & DOS namespace.
39014 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
39016 * include/grub/types.h (LONG_MAX): Likewise.
39018 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
39020 * util/getroot.c: Include <config.h>.
39021 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
39022 add support for /dev/md/N devices and handle LVM double dash escaping.
39024 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
39026 * config.guess: Update to latest version from config git.
39027 * config.sub: Likewise.
39029 2008-09-03 Robert Millan <rmh@aybabtu.com>
39031 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
39032 `disk->total_sectors'.
39034 2008-09-01 Colin D Bennett <colin@gibibit.com>
39036 * include/grub/normal.h: Fixed incorrect comment for
39037 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
39039 2008-09-01 Colin D Bennett <colin@gibibit.com>
39041 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
39042 values with defines.
39044 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
39045 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
39046 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
39047 (GRUB_VBE_MODEATTR_COLOR): Likewise.
39048 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
39049 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
39050 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
39051 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
39052 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
39053 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
39054 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
39055 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
39056 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
39057 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
39058 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
39059 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
39060 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
39061 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
39062 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
39064 2008-08-31 Robert Millan <rmh@aybabtu.com>
39066 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
39068 (grub_multiboot): Fix a few warnings.
39070 2008-08-31 Robert Millan <rmh@aybabtu.com>
39072 * loader/i386/pc/multiboot.c: Update comment not to say that
39073 boot_device support is unimplemented.
39075 2008-08-31 Robert Millan <rmh@aybabtu.com>
39077 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39078 or memory map support are unimplemented.
39080 2008-08-31 Colin D Bennett <colin@gibibit.com>
39082 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39084 2008-08-31 Colin D Bennett <colin@gibibit.com>
39086 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39087 total video memory in 'vbeinfo' output; show color format details for
39090 2008-08-30 Pavel Roskin <proski@gnu.org>
39092 * util/genmoddep.c: Remove for real this time.
39093 * DISTLIST: Remove util/genmoddep.c.
39095 2008-08-30 Robert Millan <rmh@aybabtu.com>
39097 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39098 as required by Multiboot spec (it was already 4-byte aligned, but
39101 2008-08-29 Pavel Roskin <proski@gnu.org>
39103 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39104 * kern/powerpc/ieee1275/startup.S: ... this.
39105 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39106 * DISTLIST: Likewise.
39108 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39109 grub/cpu/kernel.h. Add start label for consistency with other
39110 platforms. Add grub_prefix immediately after start. Add jump
39111 to the code after grub_prefix.
39112 * include/grub/powerpc/kernel.h: Provide valid values for
39113 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39115 2008-08-29 Bean <bean123ch@gmail.com>
39117 * configure.ac: Change host_os to cygwin for mingw.
39118 (asprintf): New check for function.
39120 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39121 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39123 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
39124 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
39125 sync, sleep and grub_util_get_disk_size for mingw.
39127 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39128 to get size in mingw.
39129 (open_device): Use flag O_BINARY if it's defined.
39130 (find_root_device): Add dummy code for mingw.
39132 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39133 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39134 (get_scsi_disk_name): Return 0 for mingw.
39136 * util/hostfs.c: #include <grub/util/misc.h>.
39137 (grub_hostfs_open): Use "rb" flag to open file, use
39138 grub_util_get_disk_size to get disk size for mingw.
39140 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39141 (asprintf): New function if HAVE_ASPRINTF is not set.
39142 (sync): New function for mingw.
39144 (grub_util_get_disk_size): Likewise.
39146 2008-08-28 Pavel Roskin <proski@gnu.org>
39148 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39151 2008-08-28 Robert Millan <rmh@aybabtu.com>
39153 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39155 2008-08-28 Robert Millan <rmh@aybabtu.com>
39157 Change find_grub_drive() syntax so it doesn't prevent it from
39158 detecting NULL names as errors.
39160 * util/biosdisk.c (find_grub_drive): Move free slot search code
39162 (find_free_slot): ... to here.
39163 (read_device_map): Use find_free_slot() to search for free slots.
39165 2008-08-27 Marco Gerards <marco@gnu.org>
39167 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39168 (scsi_mod_SOURCES): New variable.
39169 (scsi_mod_CFLAGS): Likewise
39170 (scsi_mod_LDFLAGS): Likewise.
39172 * disk/scsi.c: New file.
39174 * include/grub/scsi.h: Likewise.
39176 * include/grub/scsicmd.h: Likewise.
39178 * disk/ata.c: Include <grub/scsi.h>.
39179 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39181 (grub_ata_iterate): Skip ATAPI devices.
39182 (grub_ata_open): Only handle ATAPI devices.
39183 (struct grub_atapi_read): Removed.
39184 (grub_atapi_readsector): Likewise.
39185 (grub_ata_read): No longer handle ATAPI devices.
39186 (grub_ata_write): Likewise.
39187 (grub_atapi_iterate): New function.
39188 (grub_atapi_read): Likewise.
39189 (grub_atapi_write): Likewise.
39190 (grub_atapi_open): Likewise.
39191 (grub_atapi_close): Likewise.
39192 (grub_atapi_dev): New variable.
39193 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39194 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39196 * include/grub/disk.h (enum grub_disk_dev_id): Add
39197 `GRUB_DISK_DEVICE_SCSI_ID'.
39199 2008-08-26 Robert Millan <rmh@aybabtu.com>
39201 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39202 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39205 2008-08-23 Bean <bean123ch@gmail.com>
39207 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39208 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39209 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39210 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39212 (raid5rec_mod_SOURCES): New macro.
39213 (raid5rec_mod_CFLAGS): Likewise.
39214 (raid5rec_mod_LDFLAGS): Likewise.
39215 (raid6rec_mod_SOURCES): Likewise.
39216 (raid6rec_mod_CFLAGS): Likewise.
39217 (raid6rec_mod_LDFLAGS): Likewise.
39218 (mdraid_mod_SOURCES): Likewise.
39219 (mdraid_mod_CFLAGS): Likewise.
39220 (mdraid_mod_LDFLAGS): Likewise.
39221 (dm_nv_mod_SOURCES): Likewise.
39222 (dm_nv_mod_CFLAGS): Likewise.
39223 (dm_nv_mod_LDFLAGS): Likewise.
39225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39226 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39227 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39229 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39230 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39232 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39234 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39236 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39240 * disk/raid5_recover.c: New file.
39242 * disk/raid6_recover.c: Likewise.
39244 * disk/mdraid_linux.c: Likewise.
39246 * disk/dmraid_nvidia.c: Likewise.
39248 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39251 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39252 calculate the size of raid device.
39253 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39254 different layout of raid5.
39255 (grub_raid_scan_device): Remove code specific to mdraid.
39256 (grub_raid_list): New variable.
39257 (free_array): New function.
39258 (grub_raid_register): Likewise.
39259 (grub_raid_unregister): Likewise.
39260 (grub_raid_rescan): Likewise.
39261 (GRUB_MOD_INIT): Don't iterate device here.
39262 (GRUB_MOD_FINI): Use free_array to release resource.
39264 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39265 (grub_raid5_recover_func_t): New function variable type.
39266 (grub_raid6_recover_func_t): Likewise.
39267 (grub_raid5_recover_func): New variable.
39268 (grub_raid6_recover_func): Likewise.
39269 (grub_raid_register): New function.
39270 (grub_raid_unregister): Likewise.
39271 (grub_raid_rescan): Likewise.
39272 (grub_raid_block_xor): Likewise.
39274 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39275 (CMD_CRC): New macro.
39277 (read_file): Handle device as well as file.
39278 (cmd_crc): New function.
39279 (fstest): Handle multiple disks.
39280 (options): Remove part, raw and long, add root and diskcount.
39281 (usage): Add crc, remove -p, -r, -l, add -r and -c.
39282 (main): Find the first non option entry and ignore subsequent options,
39283 add handling for the new options, support multiple disks.
39285 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39287 2008-08-23 Bean <bean123ch@gmail.com>
39289 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39291 * genfslist.sh: Ignore kernel.mod.
39293 * genpartmaplist.sh: Likewise.
39295 2008-08-23 Robert Millan <rmh@aybabtu.com>
39297 * util/getroot.c (find_root_device): Skip anything that starts with
39298 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39300 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
39302 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39303 * util/grub.d/00_header.in: Allow the administrator to change default
39304 gfxmode via ${GRUB_GFXMODE}.
39306 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
39308 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39310 2008-08-21 Robert Millan <rmh@aybabtu.com>
39312 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39314 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39315 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39317 2008-08-20 Carles Pina i Estany <carles@pina.cat>
39319 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39320 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39322 2008-08-19 Robert Millan <rmh@aybabtu.com>
39324 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39325 (struct grub_virtual_screen): Remove `cursor_color'.
39326 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39328 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39330 2008-08-18 Robert Millan <rmh@aybabtu.com>
39332 Unify (identical) linux_normal.c files.
39333 * loader/i386/efi/linux_normal.c: Move from here ...
39334 * loader/linux_normal.c: ... to here. Update all users.
39335 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39336 * loader/i386/ieee1275/linux_normal.c: Likewise.
39338 2008-08-18 Robert Millan <rmh@aybabtu.com>
39340 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39341 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39342 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39343 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39344 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39346 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39347 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39348 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39349 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39350 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39351 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39352 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39353 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39354 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39355 portably using grub_getxy().
39356 Replace `-EFI' with `-bzImage' in boot message.
39358 2008-08-17 Robert Millan <rmh@aybabtu.com>
39360 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39362 2008-08-17 Robert Millan <rmh@aybabtu.com>
39364 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39366 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39367 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39368 (grub_machine_mmap_iterate): New function declaration.
39369 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39371 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39374 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39375 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39376 Move e820 parsing from here ...
39377 * kern/i386/pc/mmap.c: New file.
39378 (grub_machine_mmap_iterate): ... to here.
39380 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39381 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39382 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39383 (grub_available_iterate): Redeclare to return `void', and redeclare
39384 its hook to use grub_uint64_t as addr and size parameters, and rename
39386 (grub_machine_mmap_iterate): ... this. Update all users.
39388 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39389 to make it more readable. Rename to ...
39390 (grub_machine_mmap_iterate): ... this.
39392 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39393 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39394 (grub_multiboot): Allocate an extra region after the payload, and fill
39395 it with a Multiboot memory map. Adjust a.out loader to calculate size
39396 with the extra space.
39397 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39398 with the extra space.
39400 2008-08-17 Carles Pina i Estany <carles@pina.cat>
39402 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
39404 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
39406 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39407 mdate-sh to the list `find' searches for.
39408 * DISTLIST: Regenerated.
39410 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
39412 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39413 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
39414 genmoddep.awk, gensymlist.sh.in.
39415 (DISTDIRS): Add bus, docs, hook, lib.
39416 * DISTLIST: Regenerated.
39417 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
39419 2008-08-16 Robert Millan <rmh@aybabtu.com>
39421 * disk/raid.c (grub_raid_init): Handle/report errors set by
39422 grub_device_iterate().
39423 * disk/lvm.c (grub_lvm_init): Likewise.
39425 2008-08-15 Bean <bean123ch@gmail.com>
39427 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39429 (datetime_mod_SOURCES): New macro.
39430 (datetime_mod_CFLAGS): Likewise.
39431 (datetime_mod_LDFLAGS): Likewise.
39432 (date_mod_SOURCES): Likewise.
39433 (date_mod_CFLAGS): Likewise.
39434 (date_mod_LDFLAGS): Likewise.
39435 (datehook_mod_SOURCES): Likewise.
39436 (datehook_mod_CFLAGS): Likewise.
39437 (datehook_mod_LDFLAGS): Likewise.
39439 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39441 (datetime_mod_SOURCES): New macro.
39442 (datetime_mod_CFLAGS): Likewise.
39443 (datetime_mod_LDFLAGS): Likewise.
39444 (date_mod_SOURCES): Likewise.
39445 (date_mod_CFLAGS): Likewise.
39446 (date_mod_LDFLAGS): Likewise.
39447 (datehook_mod_SOURCES): Likewise.
39448 (datehook_mod_CFLAGS): Likewise.
39449 (datehook_mod_LDFLAGS): Likewise.
39451 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39453 (datetime_mod_SOURCES): New macro.
39454 (datetime_mod_CFLAGS): Likewise.
39455 (datetime_mod_LDFLAGS): Likewise.
39456 (date_mod_SOURCES): Likewise.
39457 (date_mod_CFLAGS): Likewise.
39458 (date_mod_LDFLAGS): Likewise.
39459 (datehook_mod_SOURCES): Likewise.
39460 (datehook_mod_CFLAGS): Likewise.
39461 (datehook_mod_LDFLAGS): Likewise.
39463 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39465 (datetime_mod_SOURCES): New macro.
39466 (datetime_mod_CFLAGS): Likewise.
39467 (datetime_mod_LDFLAGS): Likewise.
39468 (date_mod_SOURCES): Likewise.
39469 (date_mod_CFLAGS): Likewise.
39470 (date_mod_LDFLAGS): Likewise.
39471 (datehook_mod_SOURCES): Likewise.
39472 (datehook_mod_CFLAGS): Likewise.
39473 (datehook_mod_LDFLAGS): Likewise.
39475 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39477 (datetime_mod_SOURCES): New macro.
39478 (datetime_mod_CFLAGS): Likewise.
39479 (datetime_mod_LDFLAGS): Likewise.
39480 (date_mod_SOURCES): Likewise.
39481 (date_mod_CFLAGS): Likewise.
39482 (date_mod_LDFLAGS): Likewise.
39483 (datehook_mod_SOURCES): Likewise.
39484 (datehook_mod_CFLAGS): Likewise.
39485 (datehook_mod_LDFLAGS): Likewise.
39487 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39489 * commands/date.c: New file.
39491 * hook/datehook.c: Likewise.
39493 * include/grub/lib/datetime.h: Likewise.
39495 * include/grub/i386/cmos.h: Likewise.
39497 * lib/datetime.c: Likewise.
39499 * lib/i386/datetime.c: Likewise.
39501 * lib/efi/datetime.c: Likewise.
39503 2008-08-14 Robert Millan <rmh@aybabtu.com>
39505 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39506 (grub_mkelfimage_SOURCES): New variable.
39507 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39509 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39510 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39511 * conf/powerpc-ieee1275.rmk: Likewise.
39512 * conf/i386-ieee1275.rmk: Likewise.
39514 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39515 * kern/i386/coreboot/init.c: Likewise.
39517 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39518 with `<grub/cpu/kernel.h>'.
39519 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39521 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39522 * kern/i386/coreboot/startup.S: Likewise.
39524 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39525 (GRUB_MOD_GAP): Remove.
39526 * include/grub/powerpc/kernel.h: New file.
39527 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39528 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39529 * include/grub/i386/kernel.h: New file.
39530 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39531 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39532 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39534 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39536 Use --directory when invoking grub_mkimage.
39538 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39539 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39540 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39541 and GRUB_KERNEL_CPU_PREFIX.
39543 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
39545 * include/grub/err.h (grub_err_printf): New function prototype.
39546 * util/misc.c (grub_err_printf): New function.
39547 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39549 * kern/err.c (grub_print_error): Use grub_err_printf.
39551 2008-08-13 Robert Millan <rmh@aybabtu.com>
39553 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39555 2008-08-13 Robert Millan <rmh@aybabtu.com>
39557 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39560 2008-08-12 Robert Millan <rmh@aybabtu.com>
39562 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39563 of the relocation code from here ...
39564 (grub_multiboot): ... to here.
39565 (forward_relocator, backward_relocator): Move from here ...
39566 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39567 (grub_multiboot_backward_relocator): ... to here.
39568 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39569 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39570 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39571 (grub_multiboot_forward_relocator_end)
39572 (grub_multiboot_backward_relocator)
39573 (grub_multiboot_backward_relocator_end): New variables.
39575 2008-08-12 Bean <bean123ch@gmail.com>
39577 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39579 2008-08-11 Robert Millan <rmh@aybabtu.com>
39581 * kern/i386/linuxbios/startup.S: Move from here ...
39582 * kern/i386/coreboot/startup.S: ... to here.
39584 * kern/i386/linuxbios/init.c: Move from here ...
39585 * kern/i386/coreboot/init.c: ... to here.
39587 * kern/i386/linuxbios/table.c: Move from here ...
39588 * kern/i386/coreboot/mmap.c: ... to here.
39590 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39592 2008-08-11 Robert Millan <rmh@aybabtu.com>
39594 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39595 errors. Leave it to the upper layer to handle them.
39597 2008-08-09 Christian Franke <franke@computer.org>
39599 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39600 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39601 Install `grub.d/10_windows' only on Cygwin.
39602 * configure.ac: Add subst of `target_os'.
39603 Check `target_os' also before setting TARGET_OBJ2ELF.
39604 Add `--enable-grub-pe2elf'.
39606 2008-08-08 Robert Millan <rmh@aybabtu.com>
39608 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39609 (grub_last_time): Change type to grub_uint64_t.
39610 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39611 (grub_disk_close): Likewise.
39613 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39614 (run_menu): Migrate code from to using grub_get_time_ms().
39616 * util/misc.c (grub_get_time_ms): New function.
39618 2008-08-08 Marco Gerards <marco@gnu.org>
39620 * disk/ata.c (grub_ata_regget): Change return type to
39622 (grub_ata_regget2): Likewise.
39623 (grub_ata_wait_status): New function.
39624 (grub_ata_wait_busy): Removed function, updated all users to use
39625 `grub_ata_wait_status'.
39626 (grub_ata_wait_drq): Likewise.
39627 (grub_ata_cmd): New function.
39628 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39630 (grub_ata_pio_write): Add error handling.
39631 (grub_atapi_identify): Likewise.
39632 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39634 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39635 handling. Actually use the detected registers. Reorder the
39636 detection logic such that it is easier to read.
39637 (grub_ata_pciinit): Do not assign the same ID to each controller.
39638 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39640 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39642 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39644 2008-08-08 Marco Gerards <marco@gnu.org>
39648 2008-08-07 Bean <bean123ch@gmail.com>
39650 * include/grub/x86_64/pci.h: New file.
39652 2008-08-07 Christian Franke <franke@computer.org>
39654 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39655 (TIMER2_GATE): Likewise.
39656 (grub_pit_wait): Add enable/disable of the timer2 gate
39657 bit of port 0x61. This fixes a possible infinite loop.
39659 2008-08-07 Bean <bean123ch@gmail.com>
39661 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39662 kern/i386/tsc.c and kern/i386/pit.c.
39664 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39667 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39670 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39672 2008-08-07 Bean <bean123ch@gmail.com>
39674 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39676 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39678 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39679 multiple inclusion. Add #include <grub/types.h>.
39681 2008-08-06 Christian Franke <franke@computer.org>
39683 * conf/common.rmk: Build and install `10_windows'.
39684 * util/grub.d/10_windows.in: New script.
39686 2008-08-06 Pavel Roskin <proski@gnu.org>
39688 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39690 2008-08-06 Robert Millan <rmh@aybabtu.com>
39692 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39693 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39695 2008-08-06 Bean <bean123ch@gmail.com>
39697 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39698 (grub_pxefs_fs_int): Remove dummy definition.
39699 (grub_pxefs_open): Use data->block_size to store the current block
39701 (grub_pxefs_read): Use block size stored in data->block_size. As the
39702 value of grub_pxe_blksize can be changed after the file is opened.
39704 2008-08-06 Bean <bean123ch@gmail.com>
39706 * fs/i386/pc/pxe.c (curr_file): new variable.
39707 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39708 require the dummy internal file system anymore.
39709 (grub_pxefs_read): Removed.
39710 (grub_pxefs_close): Likewise.
39711 (grub_pxefs_fs_int): Likewise.
39712 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39713 connection when we switch file.
39714 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39716 2008-08-06 Robert Millan <rmh@aybabtu.com>
39718 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39720 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39721 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39723 * kern/i386/halt.c: New file.
39724 * kern/i386/reboot.c: Likewise.
39725 * include/grub/i386/reboot.h: Likewise.
39726 * include/grub/i386/halt.h: Likewise.
39728 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39729 Include `<grub/cpu/halt.h>'.
39730 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39731 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39733 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39734 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39735 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39736 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39737 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39738 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39740 * include/grub/i386/at_keyboard.h: ... to here.
39742 2008-08-05 Robert Millan <rmh@aybabtu.com>
39744 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39745 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39746 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39747 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39748 `kern/generic/millisleep.c'.
39750 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39751 instead of grub_get_rtc().
39752 (grub_tsc_init): Initialize `tsc_boot_time'.
39754 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39755 (grub_machine_init): Use grub_tsc_init() rather than
39756 installing an RTC-based handler via grub_install_get_time_ms().
39758 * kern/i386/pit.c: New file.
39759 * include/grub/i386/pit.h: Likewise.
39761 2008-08-05 Bean <bean123ch@gmail.com>
39763 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39765 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39766 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39767 (pxe_mod_SOURCES): New macro.
39768 (pxe_mod_CFLAGS): Likewise.
39769 (pxe_mod_LDFLAGS): Likewise.
39770 (pxecmd_mod_SOURCES): Likewise.
39771 (pxecmd_mod_CFLAGS): Likewise.
39772 (pxecmd_mod_LDFLAGS): Likewise.
39774 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39775 (grub_pxe_call): Likewise.
39777 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39779 * commands/i386/pc/pxecmd.c: New file.
39781 * fs/i386/pc/pxe.c: Likewise.
39783 * include/grub/i386/pc/pxe.h: Likewise.
39785 2008-08-05 Bean <bean123ch@gmail.com>
39787 * util/console.c (grub_console_cur_color): New variable.
39788 (grub_console_standard_color): Likewise.
39789 (grub_console_normal_color): Likewise.
39790 (grub_console_highlight_color): Likewise.
39791 (color_map): Likewise.
39792 (use_color): Likewise.
39793 (NUM_COLORS): New macro.
39794 (grub_ncurses_setcolorstate): Handle color properly.
39795 (grub_ncurses_setcolor): Don't change color here, just remember the
39796 settings, color will be set in grub_ncurses_setcolorstate.
39797 (grub_ncurses_getcolor): New function.
39798 (grub_ncurses_init): Initialize color pairs.
39799 (grub_ncurses_term): New member grub_ncurses_getcolor.
39801 2008-08-05 Colin D Bennett <colin@gibibit.com>
39803 High resolution timer support. Implemented for x86 CPUs using TSC.
39804 Extracted generic grub_millisleep() so it's linked in only as needed.
39805 This requires a Pentium compatible CPU; if the RDTSC instruction is
39806 not supported, then it falls back on the generic grub_get_time_ms()
39807 implementation that uses the machine's RTC.
39809 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39810 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39811 `kern/generic/millisleep.c'.
39813 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39814 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39816 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39817 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39819 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39821 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39822 `kern/generic/millisleep.c'.
39824 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39826 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39828 * kern/generic/rtc_get_time_ms.c: New file.
39830 * kern/generic/millisleep.c: New file.
39832 * kern/misc.c: Don't include
39833 <kern/time.h> anymore.
39834 (grub_millisleep_generic): Removed.
39836 * commands/sleep.c (grub_interruptible_millisleep): Uses
39837 grub_get_time_ms() instead of grub_get_rtc().
39839 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39841 (grub_cpu_is_cpuid_supported): New inline function.
39842 (grub_cpu_is_tsc_supported): New inline function.
39843 (grub_tsc_init): New function prototype.
39844 (grub_tsc_get_time_ms): New function prototype.
39846 * kern/i386/tsc.c (grub_get_time_ms): New file.
39848 * include/grub/time.h: Include <grub/types.h.
39849 (grub_millisleep_generic): Removed.
39850 (grub_get_time_ms): New prototype.
39851 (grub_install_get_time_ms): New prototype.
39852 (grub_rtc_get_time_ms): New prototype.
39854 * kern/time.c (grub_get_time_ms): New function.
39855 (grub_install_get_time_ms): New function.
39857 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39858 <grub/time.h> anymore.
39859 (grub_millisleep): Removed.
39860 (grub_machine_init): Call grub_tsc_init.
39862 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39863 get_time_ms() implementation.
39865 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39866 (ieee1275_get_time_ms): New function.
39867 (grub_machine_init): Install get_time_ms() implementation.
39869 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39870 (grub_machine_init): Call grub_tsc_init().
39871 (grub_millisleep): Removed.
39873 * kern/ieee1275/init.c (grub_millisleep): Removed.
39874 (grub_machine_init): Install ieee1275_get_time_ms()
39876 (ieee1275_get_time_ms): New function.
39877 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39880 2008-08-05 Marco Gerards <marco@gnu.org>
39882 * disk/ata.c: Include <grub/pci.h>.
39883 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39884 (grub_ata_initialize): Rewritten.
39885 (grub_ata_device_initialize): New function.
39887 2008-08-04 Pavel Roskin <proski@gnu.org>
39889 * kern/main.c: Include grub/mm.h.
39891 2008-08-04 Robert Millan <rmh@aybabtu.com>
39893 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39894 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39895 corruption problem).
39897 2008-08-04 Robert Millan <rmh@aybabtu.com>
39899 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39900 warnings introduced in my last commit.
39902 2008-08-03 Robert Millan <rmh@aybabtu.com>
39904 Make PCI available on all i386 architectures.
39906 * include/grub/i386/pc/pci.h: Move from here ...
39907 * include/grub/i386/pci.h: ... to here.
39909 * include/grub/i386/pc/pci.h: Remove.
39910 * include/grub/i386/efi/pci.h: Remove.
39911 * include/grub/x86_64/efi/pci.h: Remove.
39913 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39914 `<grub/cpu/pci.h>'.
39916 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39917 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39918 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39920 * conf/i386-ieee1275.rmk: Likewise.
39922 2008-08-03 Robert Millan <rmh@aybabtu.com>
39924 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39925 (grub_console_setcursor): Make it possible to set cursor off.
39927 2008-08-03 Robert Millan <rmh@aybabtu.com>
39929 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39930 of modules instead of assuming which platform provides what.
39931 * util/update-grub.in: Likewise.
39933 2008-08-03 Robert Millan <rmh@aybabtu.com>
39935 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39936 instead of `grub_install_dos_part' to determine whether a drive needs
39937 to be prepended to prefix (`grub_install_dos_part' is not reliable,
39938 because it can be overridden when loading GRUB via Multiboot).
39940 2008-08-02 Robert Millan <rmh@aybabtu.com>
39942 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39944 2008-08-02 Robert Millan <rmh@aybabtu.com>
39946 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39947 of informational grub_dprintf() calls.
39949 2008-08-02 Robert Millan <rmh@aybabtu.com>
39951 * disk/memdisk.c (memdisk_size): Don't initialize.
39952 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39954 * include/grub/i386/pc/kernel.h
39955 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39956 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39957 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39958 (grub_arch_memdisk_size): Remove.
39960 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39961 field (was only used to transfer a constant). Add `type' field to
39962 support multiple module types.
39963 (grub_module_iterate): New function.
39965 * kern/device.c (grub_device_open): Do not hide error messages
39966 when grub_disk_open() fails. Use grub_print_error() instead.
39968 * kern/i386/pc/init.c (grub_arch_modules_addr)
39969 (grub_arch_memdisk_size): Remove functions.
39970 (grub_arch_modules_addr): Return the module address in high memory
39971 (now that it isn't copied anymore).
39973 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39974 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39975 decompression routine (grub_total_module_size already includes that
39976 now). Don't copy modules back to low memory.
39978 * kern/main.c: Include `<grub/mm.h>'.
39979 (grub_load_modules): Split out (and use) ...
39980 (grub_module_iterate): ... this function, which iterates through
39981 module objects and runs a hook.
39982 Comment out grub_mm_init_region() call, as it would cause non-ELF
39983 modules to be overwritten.
39985 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39986 the memdisk image in its own region, make it part of the module list.
39987 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39988 (main): Parse --memdisk|-m option, and pass user-provided path as
39989 parameter to generate_image().
39990 (add_segments): Pass `memdisk_path' down to load_modules().
39991 (load_modules): Embed memdisk image in module section when requested.
39992 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39993 `header.type' instead of `header.offset'.
39995 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39996 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39997 (memdisk_mod_LDFLAGS): New variables.
39998 * conf/i386-coreboot.rmk: Likewise.
39999 * conf/i386-ieee1275.rmk: Likewise.
40001 2008-08-02 Robert Millan <rmh@aybabtu.com>
40003 * loader/i386/pc/multiboot.c (playground, forward_relocator)
40004 (backward_relocator): New variables. Used to allocate and relocate
40005 the payload, respectively.
40006 (grub_multiboot_load_elf32): Load into heap instead of requested
40007 address, install the appropriate relocator code in each bound of
40008 the payload, and set the entry point such that
40009 grub_multiboot_real_boot() will jump to one of them.
40011 * kern/i386/loader.S (grub_multiboot_payload_size)
40012 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40013 (grub_multiboot_payload_entry_offset): New variables.
40014 (grub_multiboot_real_boot): Set cpu context to what the relocator
40015 expects, and jump to the relocator instead of the payload.
40017 * include/grub/i386/loader.h (grub_multiboot_payload_size)
40018 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40019 (grub_multiboot_payload_entry_offset): Export.
40021 2008-08-01 Bean <bean123ch@gmail.com>
40023 * normal/menu_entry.c (editor_getline): Don't return the original
40024 string as result, as it will be released by lexer once it has done
40027 2008-08-01 Robert Millan <rmh@aybabtu.com>
40029 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
40030 within menuentries, not before them.
40031 util/grub.d/10_hurd.in: Likewise.
40033 2008-08-01 Bean <bean123ch@gmail.com>
40035 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
40036 (bufio_mod_SOURCES): New macro.
40037 (bufio_mod_CFLAGS): Likewise.
40038 (bufio_mod_LDFLAGS): Likewise.
40040 * include/grub/bufio.h: New file.
40042 * io/bufio.c: Likewise.
40044 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
40045 (grub_video_reader_png): Use grub_buffile_open to open file.
40047 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
40048 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
40050 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
40051 (grub_video_reader_tga): Use grub_buffile_open to open file.
40053 * font/manager.c: Include <grub/bufio.h>.
40054 (add_font): Use grub_buffile_open to open file.
40056 2008-07-31 Robert Millan <rmh@aybabtu.com>
40058 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
40059 ELF segments, use a macro for arbitrarily accessing any of them instead
40060 of preparing a pointer that allows access to one at a time.
40061 (grub_multiboot_load_elf64): Likewise.
40063 2008-07-31 Bean <bean123ch@gmail.com>
40065 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
40066 GRUB_KERNEL_MACHINE_DATA_END.
40068 2008-07-30 Robert Millan <rmh@aybabtu.com>
40070 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
40071 Increase from 0x50 to 0x60.
40072 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
40073 use UUIDs to identify the root drive for them. If that's not
40075 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40076 check, for cross-disk installs.
40078 2008-07-30 Robert Millan <rmh@aybabtu.com>
40080 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40081 is non-empty, use it to set the `prefix' environment variable instead
40082 of the usual approach.
40083 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40084 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40085 environment variable instead of dummy make_install_device().
40087 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40088 (start): Insert a data section, with `grub_prefix' variable.
40089 * kern/i386/linuxbios/startup.S: Likewise.
40091 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40092 New variable reference.
40093 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40094 New macro. Defines offset of `grub_prefix' within startup.S (relative
40096 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40097 section within startup.S (relative to `start').
40098 * include/grub/i386/coreboot/kernel.h: Likewise.
40100 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40101 Overwrite grub_prefix with its contents, at the beginning of the
40103 (main): Understand -p|--prefix.
40105 2008-07-30 Robert Millan <rmh@aybabtu.com>
40107 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40109 2008-07-30 Robert Millan <rmh@aybabtu.com>
40111 * term/i386/pc/vga_text.c (grub_console_cls): Use
40112 grub_console_gotoxy() to go back to beginning of the screen.
40113 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40115 2008-07-29 Christian Franke <franke@computer.org>
40117 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40118 Add conversion of emulated mount points on Cygwin.
40120 2008-07-29 Christian Franke <franke@computer.org>
40122 * util/update-grub.in: Add a check for admin
40124 Remove old `grub.cfg.new' before creation.
40125 Add `-f' to `mv' to handle the different filesystem
40126 semantics of Windows.
40128 2008-07-29 Bean <bean123ch@gmail.com>
40130 * normal/main.c (get_line): Fix buffer overflow bug.
40132 2008-07-28 Robert Millan <rmh@aybabtu.com>
40134 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40135 (struct grub_apple_header): New struct. Describes the layout of
40136 the partmap header.
40137 (apple_partition_map_iterate): Check the header magic as well as the
40138 partition magic (which was already being checked).
40140 2008-07-28 Pavel Roskin <proski@gnu.org>
40142 * genmk.rb: Add a warning to the beginning of the output that
40143 it's a generated file and should not be edited.
40145 2008-07-28 Robert Millan <rmh@aybabtu.com>
40147 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40148 with the same number are found, just use issue a warning with
40149 grub_dprintf(), as this error has been reported to be non-fatal.
40151 2008-07-27 Robert Millan <rmh@aybabtu.com>
40153 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40156 2008-07-27 Bean <bean123ch@gmail.com>
40158 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40159 (grub_fat_find_dir): Ignore case when comparing filename.
40161 2008-07-27 Bean <bean123ch@gmail.com>
40163 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40164 smallino, as it's more descriptive, and i8count can be confused with
40165 the other field count.
40166 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40169 2008-07-27 Bean <bean123ch@gmail.com>
40171 * commands/crc.c: New file.
40173 * lib/crc.c: Likewise.
40175 * include/grub/lib/crc.h: Likewise.
40177 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40179 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40180 (hexdump): Move this function to ...
40182 * lib/hexdump.c: ... here.
40184 * include/grub/hexdump.h: Renamed to ...
40186 * include/grub/lib/hexdump.h: ... this.
40188 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40190 * util/grub-editenv.c: Likewise.
40192 * include/envblk.h: Renamed to ...
40194 * include/lib/envblk.h: ... this.
40196 * util/envblk.c: Renamed to ...
40198 * lib/envblk.c: ... this.
40200 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40202 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40203 (pkglib_MODULES): Add crc.mod.
40204 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40205 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40206 (crc_mod_SOURCES): New macro.
40207 (crc_mod_CFLAGS): Likewise.
40208 (crc_mod_LDFLAGS): Likewise.
40210 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40212 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40214 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40218 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40220 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
40222 * commands/help.c: Include <grub/term.h>.
40223 (TERM_WIDTH): Removed. Updated all users.
40225 2008-07-27 Pavel Roskin <proski@gnu.org>
40227 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40228 spurious warnings about a comment within a comment.
40230 2008-07-25 Robert Millan <rmh@aybabtu.com>
40232 * util/getroot.c (find_root_device): Skip devices that match
40233 /dev/dm-[0-9]. This lets the real device be found for any type of
40234 abstraction (LVM, EVMS, RAID..).
40235 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40236 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40237 device is found first, find_root_device() will now skip it.
40239 2008-07-24 Pavel Roskin <proski@gnu.org>
40241 * include/grub/types.h: Use __builtin_bswap32() and
40242 __builtin_bswap64() with gcc 4.3 and newer.
40244 2008-07-24 Christian Franke <franke@computer.org>
40246 * util/i386/pc/grub-install.in: If `--debug' is specified,
40247 pass `--verbose' to grub-setup.
40248 Abort script if make_system_path_relative_to_its_root() fails.
40250 2008-07-24 Bean <bean123ch@gmail.com>
40252 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40253 variable `target_platform' should be `platform'.
40255 2008-07-24 Bean <bean123ch@gmail.com>
40257 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
40258 (grub_png_init_fixed_block): New function.
40259 (grub_png_decode_image_data): Handle fixed huffman code compression.
40261 2008-07-24 Bean <bean123ch@gmail.com>
40263 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40264 (grub_pe2elf_SOURCES): New macro.
40265 (CLEANFILES): Add grub-pe2elf.
40267 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40268 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40269 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40270 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40271 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40272 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40273 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40274 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40275 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40276 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40277 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40278 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40279 (GRUB_PE32_DT_FUNCTION): Likewise.
40280 (GRUB_PE32_REL_I386_DIR32): Likewise.
40281 (GRUB_PE32_REL_I386_REL32): Likewise.
40282 (grub_pe32_symbol): New structure.
40283 (grub_pe32_reloc): Likewise.
40285 * util/grub-pe2elf.c: New file.
40287 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40288 start symbol in non pc platform.
40290 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40292 The following patches are from Christian Franke.
40294 * include/grub/dl.h: Remove .previous, gas supports this only
40297 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40298 Remove .type, gas supports this only for ELF format.
40300 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40301 nullbytes in symbol table. This fixes an infinite loop if table is
40304 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40305 TARGET_IMG_LDFLAGS and EXEEXT.
40307 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40308 TARGET_IMG_LDFLAGS_AC.
40309 (grub_CHECK_STACK_ARG_PROBE): New function.
40311 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40313 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40315 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40316 to set TARGET_IMG_LD* accordingly.
40317 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40318 Add call to grub_CHECK_STACK_ARG_PROBE.
40319 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40321 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40323 * genmk.rb: Add EXEEXT to CLEANFILES.
40325 2008-07-23 Robert Millan <rmh@aybabtu.com>
40327 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40328 define the codes for arrows and lines used for the menu).
40329 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40332 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40333 fonts, because the latter are too slow.
40335 2008-07-21 Bean <bean123ch@gmail.com>
40337 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40338 a20. Run keyboard test last, as it will cause macbook to halt.
40340 2008-07-18 Pavel Roskin <proski@gnu.org>
40342 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40343 load foreign architecture modules correctly anyway. Keep
40344 support for loading host architecture modules, whether we
40345 compile them or not.
40347 2008-07-17 Pavel Roskin <proski@gnu.org>
40349 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40350 change target_cpu. The compiler default can mismatch target_cpu
40353 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40354 * kern/efi/efi.c: Likewise.
40356 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40357 target compiler is functional.
40358 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40361 * configure.ac: Default to efi platform for x86_64-apple. Allow
40362 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40363 adjustments from the rest, only do them if target is not
40364 explicitly given. Merge other adjustments with the final sanity
40365 check. Remove an extraneous check for supported CPU. Be
40366 specific which CPU and which platform is not supported.
40368 * configure.ac: Default to pc platform for x86_64.
40370 2008-07-17 Robert Millan <rmh@aybabtu.com>
40372 Partial LinuxBIOS -> Coreboot rename.
40374 * conf/i386-linuxbios.rmk: Renamed to ...
40375 * conf/i386-coreboot.rmk: ... this.
40376 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40377 * configure.ac: Accept "coreboot" as input platform (but maintain
40378 compatibility with "linuxbios").
40379 * include/grub/i386/linuxbios: Renamed to ...
40380 * include/grub/i386/coreboot: ... this.
40382 2008-07-17 Bean <bean123ch@gmail.com>
40384 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
40385 (appleldr_mod_SOURCE): New variable.
40386 (appleldr_mod_CFLAGS): Likewise.
40387 (appleldr_mod_LDFLAGS): Likewise.
40388 (pci_mod_SOURCES): Likewise.
40389 (pci_mod_CFLAGS): Likewise.
40390 (pci_mod_LDFLAGS): Likewise.
40391 (lspci_mod_SOURCES): Likewise.
40392 (lspci_mod_CFLAGS): Likewise.
40393 (lspci_mod_LDFLAGS): Likewise.
40395 * conf/x86_64-efi.rmk: New file.
40397 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40399 (grub_efidisk_write): Likewise.
40401 * include/efi/api.h (efi_call_0): New macro.
40402 (efi_call_1): Likewise.
40403 (efi_call_2): Likewise.
40404 (efi_call_3): Likewise.
40405 (efi_call_4): Likewise.
40406 (efi_call_5): Likewise.
40407 (efi_call_6): Likewise.
40409 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40410 grub_rescue_cmd_chainloader.
40412 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40413 (grub_pe32_optional_header): Change some fields based on i386 or
40415 (GRUB_PE32_PE32_MAGIC): Likewise.
40417 * include/grub/efi/uga_draw.h: New file.
40419 * include/grub/elf.h (STN_ABS): New constant.
40420 (R_X86_64_NONE): Relocation constant for x86_64.
40421 (R_X86_64_64): Likewise.
40422 (R_X86_64_PC32): Likewise.
40423 (R_X86_64_GOT32): Likewise.
40424 (R_X86_64_PLT32): Likewise.
40425 (R_X86_64_COPY): Likewise.
40426 (R_X86_64_GLOB_DAT): Likewise.
40427 (R_X86_64_JUMP_SLOT): Likewise.
40428 (R_X86_64_RELATIVE): Likewise.
40429 (R_X86_64_GOTPCREL): Likewise.
40430 (R_X86_64_32): Likewise.
40431 (R_X86_64_32S): Likewise.
40432 (R_X86_64_16): Likewise.
40433 (R_X86_64_PC16): Likewise.
40434 (R_X86_64_8): Likewise.
40435 (R_X86_64_PC8): Likewise.
40437 * include/grub/i386/efi/pci.h: New file.
40439 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40440 Change it value based on platform.
40441 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40442 (GRUB_E820_RAM): Likewise.
40443 (GRUB_E820_RESERVED): Likewise.
40444 (GRUB_E820_ACPI): Likewise.
40445 (GRUB_E820_NVS): Likewise.
40446 (GRUB_E820_EXEC_CODE): Likewise.
40447 (GRUB_E820_MAX_ENTRY): Likewise.
40448 (grub_e820_mmap): New structure.
40449 (linux_kernel_header): Change the efi field according to different
40450 kernel version, also field from linux_kernel_header.
40452 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40454 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40455 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40456 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40457 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40458 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40459 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40460 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40461 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40462 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40463 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40465 * include/grub/x86_64/efi/kernel.h: New file.
40467 * include/grub/x86_64/efi/loader.h: Likewise.
40469 * include/grub/x86_64/efi/machine.h: Likewise.
40471 * include/grub/x86_64/efi/pci.h: Likewise.
40473 * include/grub/x86_64/efi/time.h: Likewise.
40475 * include/grub/x86_64/linux.h: Likewise.
40477 * include/grub/x86_64/setjmp.h: Likewise.
40479 * include/grub/x86_64/time.h: Likewise.
40481 * include/grub/x86_64/types.h: Likewise.
40483 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40484 GRUB_TARGET_SIZEOF_VOID_P.
40486 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40487 (grub_efi_locate_handle): Likewise.
40488 (grub_efi_open_protocol): Likewise.
40489 (grub_efi_set_text_mode): Likewise.
40490 (grub_efi_stall): Likewise.
40491 (grub_exit): Likewise.
40492 (grub_reboot): Likewise.
40493 (grub_halt): Likewise.
40494 (grub_efi_exit_boot_services): Likewise.
40495 (grub_get_rtc): Likewise.
40497 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40498 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40499 (grub_efi_allocate_pages): Wrap efi calls.
40500 (grub_efi_free_pages): Wrap efi calls.
40501 (grub_efi_get_memory_map): Wrap efi calls.
40503 * kern/x86_64/dl.c: New file.
40505 * kern/x86_64/efi/callwrap.S: Likewise.
40507 * kern/x86_64/efi/startup.S: Likewise.
40509 * loader/efi/appleloader.c: Likewise.
40511 * loader/efi/chainloader.c (cmdline): New variable.
40512 (grub_chainloader_unload): Wrap efi calls.
40513 (grub_chainloader_boot): Likewise.
40514 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40517 * loader/efi/chainloader_normal.c (chainloader_command):
40518 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40521 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40523 (grub_e820_add_region): New function.
40524 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40526 (grub_find_video_card): New function.
40527 (grub_linux_setup_video): New function.
40528 (grub_rescue_cmd_linux): Probe for video information.
40530 * normal/x86_64/setjmp.S: New file.
40532 * term/efi/console.c (map_char): New function.
40533 (grub_console_putchar): Map unicode char.
40534 (grub_console_checkkey): Wrap efi calls.
40535 (grub_console_getkey): Likewise.
40536 (grub_console_getwh): Likewise.
40537 (grub_console_gotoxy): Likewise.
40538 (grub_console_cls): Likewise.
40539 (grub_console_setcolorstate): Likewise.
40540 (grub_console_setcursor): Likewise.
40542 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40544 2008-07-16 Pavel Roskin <proski@gnu.org>
40546 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40549 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40550 pointer, not an integer. This fixes a warning and prevents
40551 precision loss on 64-bit systems.
40552 (relocate_addresses): Remove unneeded cast.
40554 2008-07-15 Pavel Roskin <proski@gnu.org>
40556 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40558 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40560 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40561 Fix comparison between signed and unsigned.
40563 * include/grub/i386/ieee1275/console.h: Declare
40564 grub_console_init() and grub_console_fini().
40566 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40567 It's empty and unused.
40569 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40570 beginning to avoid warnings with some compilers.
40572 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40573 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40575 2008-07-14 Pavel Roskin <proski@gnu.org>
40577 * kern/env.c (grub_register_variable_hook): Don't copy empty
40578 string, it leaks memory. Pass "" to grub_env_set(), it should
40579 handle constant strings.
40581 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40582 * commands/cmp.c (grub_cmd_cmp): Likewise.
40583 * kern/dl.c (grub_dl_flush_cache): Likewise.
40584 (grub_dl_load_core): Likewise.
40585 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40586 (grub_elf64_load_phdrs): Likewise.
40588 2008-07-13 Pavel Roskin <proski@gnu.org>
40590 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40591 between signed and unsigned.
40592 (LzmaEnc_Finish): Fix warning about an unused parameter.
40594 2008-07-13 Bean <bean123ch@gmail.com>
40596 * Makefile.in (enable_lzo): New rule.
40598 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40600 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40602 * boot/i386/pc/lnxboot.S: #include <config.h>.
40604 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
40605 its value according to the compression algorithm used, lzo or lzma.
40607 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40608 compression algorithm according to configure macro.
40610 * kern/i386/pc/startup.S (codestart): Likewise.
40612 * kern/i386/pc/lzma_decode.S: New file.
40614 * include/grub/lib/LzFind.h: Likewise.
40616 * include/grub/lib/LzHash.h: Likewise.
40618 * include/grub/lib/LzmaDec.h: Likewise.
40620 * include/grub/lib/LzmaEnc.h: Likewise.
40622 * include/grub/lib/LzmaTypes.h: Likewise.
40624 * lib/LzFind.c: Likewise.
40626 * lib/LzmaDec.c: Likewise.
40628 * lib/LzmaEnc.c: Likewise.
40630 2008-07-13 Bean <bean123ch@gmail.com>
40632 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40633 (grub_ext4_extent_header): New structure.
40634 (grub_ext4_extent): Likewise.
40635 (grub_ext4_extent_idx): Likewise.
40636 (grub_ext4_find_leaf): New function.
40637 (grub_ext2_read_block): Handle extents.
40639 2008-07-12 Robert Millan <rmh@aybabtu.com>
40641 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40643 2008-07-11 Robert Millan <rmh@aybabtu.com>
40645 * util/grub.d/40_custom.in: New file. Example on how to add custom
40646 entries to /etc/grub.d.
40647 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40648 40_custom (implicitly, by merging all the grub.d rules).
40650 2008-07-11 Pavel Roskin <proski@gnu.org>
40652 * commands/read.c (grub_getline): Fix invalid memory access.
40653 Don't add newline to the variable value.
40655 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40656 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40657 (serial_hw_get_port): Check validity of the port number.
40658 (grub_cmd_serial): Check return value of serial_hw_get_port().
40660 2008-07-07 Pavel Roskin <proski@gnu.org>
40662 * boot/i386/pc/diskboot.S (notification_string): Replace
40663 "Loading kernel" with just "loading". This is shorter, less
40664 confusing and saves a few bytes for possible future changes.
40666 2008-07-05 Pavel Roskin <proski@gnu.org>
40668 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40669 size for ATAPI devices, they are undefined. Output sector
40670 number in decimal form.
40672 * disk/ata.c: Use named constants for status bits.
40674 2008-07-04 Pavel Roskin <proski@gnu.org>
40676 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40677 grub_addr_t before casting it to the void pointer to fix a
40678 warning. Non-addressable regions are discarded earlier.
40679 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40680 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40681 (check_signature): Don't shadow table_header.
40682 (grub_linuxbios_table_iterate): Cast numeric constants to
40683 grub_linuxbios_table_header_t.
40684 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40687 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40690 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40691 pointer, which can cause warnings. Support 64-bit addresses.
40693 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40694 of sizeof(long). This fixes PowerPC image generation on x86_64.
40696 2008-07-04 Robert Millan <rmh@aybabtu.com>
40698 This fixes a performance issue when pc & gpt partmap iterators
40699 didn't abort iteration even after our hook found what it was
40700 looking for (often causing expensive probes of non-existent drives).
40702 Some callers relied on previous buggy behaviour, since they would
40703 raise an error when their own hooks caused early abortion of its
40706 * kern/device.c (grub_device_open): Improve error message.
40707 * disk/lvm.c (grub_lvm_open): Likewise.
40708 * disk/raid.c (grub_raid_open): Likewise.
40710 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40711 when hook requests it, independently of grub_errno.
40712 (pc_partition_map_probe): Do not fail when find_func() caused
40713 early abortion of pc_partition_map_iterate().
40715 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40716 when hook requests it, independently of grub_errno.
40717 (gpt_partition_map_probe): Do not fail when find_func() caused
40718 early abortion of gpt_partition_map_iterate().
40720 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40721 when hook requests it, independently of grub_errno. Do not fail when
40722 part_map_iterate_hook() caused early abortion of p->iterate().
40724 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40725 when grub_partition_iterate() returned with non-zero.
40727 2008-07-03 Pavel Roskin <proski@gnu.org>
40729 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40730 like we do in grub_ata_pio_read().
40731 (grub_ata_readwrite): Always write individual sectors. Fix the
40732 sector count for the remainder.
40733 (grub_ata_write): Enable writing to ATA devices. Correctly
40734 report error for ATAPI devices.
40736 2008-07-02 Pavel Roskin <proski@gnu.org>
40738 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40741 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40742 for every read sector, we already increment it for the whole
40743 batch. This fixes reading more than 256 sectors at once.
40745 * util/grub-editenv.c (cmd_info): Cast argument to long
40746 explicitly. ptrdiff_t reduces to int on i386.
40748 * util/grub-editenv.c (main): Be specific which parameter is
40751 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40752 (memdisk): Make memdisk_orig_addr a pointer.
40754 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40755 for file offsets, use grub_off_t instead. Fix printf format
40758 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40759 there. Real unexpected warnings should not drown in the noise
40760 about known problems.
40762 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40763 grub_disk_addr_t for memory addresses.
40765 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40766 explicitly to fix a warning.
40768 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40770 * Makefile.in (MODULE_LDFLAGS): New variable.
40771 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40772 the linker accepts --build-id=none.
40773 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40775 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40777 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40778 those in Linux XFS code. Provide a way to access 64-bit parent
40780 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40781 the end of struct grub_xfs_dir_header.
40783 2008-07-02 Bean <bean123ch@gmail.com>
40785 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40786 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40787 and GRUB_IEEE1275_FLAG_NO_ANSI.
40789 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40790 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40791 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40793 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40794 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40796 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40797 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40799 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40800 esc sequence on non ANSI terminal.
40801 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40803 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40806 2008-07-02 Bean <bean123ch@gmail.com>
40808 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40809 (grub_editenv_SOURCES): New variable.
40810 (pkglib_MODULES): Add loadenv.mod.
40811 (loadenv_mod_SOURCES): New variable.
40812 (loadenv_mod_CFLAGS): Likewise.
40813 (loadenv_mod_LDFLAGS): Likewise.
40815 * include/grub/envblk.h: New file.
40817 * util/envblk.c: New file.
40819 * util/grub-editenv.c: New file.
40821 * commands/loadenv.c: New file.
40823 2008-07-01 Pavel Roskin <proski@gnu.org>
40825 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40826 not unsigned char. This fixes warnings and is consistent with
40829 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40831 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40833 * term/tparm.c (analyze): Always set *popcount.
40835 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40836 cast to fix a warning.
40838 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40839 cast to suppress a warning.
40841 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40842 grub_fshelp_read_file() expects.
40844 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40845 write uuid as a 32-bit value in CPU byte order, so declare and
40848 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40849 long if the format specifier expects it.
40850 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40851 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40852 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40853 long to fix a warning.
40854 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40855 grub_dprintf() arguments to fix warnings.
40857 2008-06-30 Pavel Roskin <proski@gnu.org>
40859 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40860 install_bsd_part immediately before core.img is embedded or
40861 modified on disk. This fixes core.img verification if core.img
40862 cannot be embedded.
40864 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40865 core_path to calculate the blocklist.
40866 Patch from Javier Martín <lordhabbit@gmail.com>
40868 2008-06-29 Robert Millan <rmh@aybabtu.com>
40870 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40871 block to disk block.
40872 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40873 Patch from Niels Böhm <bitbucket@arcor.de>
40875 2008-06-29 Robert Millan <rmh@aybabtu.com>
40877 * util/update-grub_lib.in (font_path): Search for fonts in
40878 /boot/grub first, which is more likely to be readable (we aren't
40879 deciding where fonts live, just looking for them).
40881 2008-06-26 Pavel Roskin <proski@gnu.org>
40883 * util/biosdisk.c (read_device_map): Don't leave dead map
40884 entries for devices failing stat() check.
40886 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40887 core_path_dev for the core.img path on the target device.
40889 2008-06-26 Robert Millan <rmh@aybabtu.com>
40891 * disk/fs_uuid.c: New file.
40892 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40893 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40894 (fs_uuid_mod_LDFLAGS): New variables.
40895 * include/grub/disk.h (grub_disk_dev_id): Add
40896 `GRUB_DISK_DEVICE_UUID_ID'.
40897 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40898 implement iterate().
40900 2008-06-26 Robert Millan <rmh@aybabtu.com>
40902 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40903 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40904 Linux image includes no initrd.
40906 2008-06-21 Javier Martín <lordhabbit@gmail.com>
40908 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40909 call to resolve the core image location that effectively appended the
40912 2008-06-21 Robert Millan <rmh@aybabtu.com>
40914 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40917 * util/grub.d/10_hurd.in: ... to here ...
40918 * util/grub.d/10_linux.in: ... and here.
40920 2008-06-19 Robert Millan <rmh@aybabtu.com>
40922 * kern/main.c (grub_main): Export `prefix' variable immediately
40923 after it has been set by grub_machine_set_prefix().
40925 2008-06-19 Robert Millan <rmh@aybabtu.com>
40927 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40928 search result when not saving to variable, not the other way around.
40929 When saving to variable, abort iteration as soon as a match is found.
40931 2008-06-19 Robert Millan <rmh@aybabtu.com>
40933 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40934 check for partition that provides /boot/grub. Its logic is flawed,
40935 as it prevents prepare_grub_to_access_device() from being called
40938 2008-06-19 Robert Millan <rmh@aybabtu.com>
40940 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40941 "insmod" command directly when abstraction modules are needed,
40942 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
40943 since it had already been processed).
40945 2008-06-19 Pavel Roskin <proski@gnu.org>
40947 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40948 changed. This is needed in case GRUB_LIBDIR changes.
40949 * conf/i386-ieee1275.rmk: Likewise.
40950 * conf/i386-linuxbios.rmk: Likewise.
40951 * conf/i386-pc.rmk: Likewise.
40952 * conf/powerpc-ieee1275.rmk: Likewise.
40954 2008-06-18 Pavel Roskin <proski@gnu.org>
40956 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40957 kernel_elf_symlist.c to symlist.c for consistency with other
40958 architectures. Update all users.
40959 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40961 2008-06-18 Robert Millan <rmh@aybabtu.com>
40963 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40966 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40967 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40968 a RAID device, run setup() for all members independently on whether
40969 LVM abstraction is being used.
40970 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40971 If grub-mkimage has set `*install_dos_part == -2', don't override this
40973 Perform *install_dos_part adjustments independently on whether
40974 we're embedding or not.
40975 Clarify error message when image is too big for embedding.
40976 Remove duplicate *install_dos_part stanza.
40978 2008-06-17 Robert Millan <rmh@aybabtu.com>
40980 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40981 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40983 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40984 values in grub_ofconsole_normal_color and
40985 grub_ofconsole_highlight_color (they're not directly related to
40986 background and foreground).
40987 (grub_ofconsole_setcolorstate): Extract background and foreground
40988 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40990 2008-06-17 Robert Millan <rmh@aybabtu.com>
40992 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40993 /boot/grub for the check in last commit, not /boot (they could be
40994 different partitions).
40996 2008-06-16 Robert Millan <rmh@aybabtu.com>
40998 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40999 asked to setup access for the same partition that provides /boot,
41000 don't bother using UUIDs since our root already has the value we
41003 2008-06-16 Robert Millan <rmh@aybabtu.com>
41005 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
41007 Patch from Sven Mueller <sven@debian.org>.
41009 2008-06-16 Robert Millan <rmh@aybabtu.com>
41011 * util/update-grub.in: Check for $EUID instead of $UID.
41012 Reported by Vincent Zweije.
41014 2008-06-16 Bean <bean123ch@gmail.com>
41016 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
41017 (grub_ext2_read_block): Likewise.
41018 (grub_ext2_read_inode): Likewise.
41019 (grub_ext2_mount): Likewise.
41020 (grub_ext2_close): Likewise.
41021 (grub_ext3_get_journal): Removed.
41023 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
41024 (grub_reiserfs_read_symlink): Likewise.
41025 (grub_reiserfs_mount): Likewise.
41026 (grub_reiserfs_open): Likewise.
41027 (grub_reiserfs_read): Likewise.
41028 (grub_reiserfs_close): Likewise.
41029 (grub_reiserfs_get_journal): Removed.
41031 * fs/fshelp.c (grub_fshelp_read): Removed.
41032 (grub_fshelp_map_block): Likewise.
41034 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
41035 (grub_fshelp_journal): Likewise.
41036 (grub_fshelp_read): Likewise.
41037 (grub_fshelp_map_block): Likewise.
41039 2008-06-16 Pavel Roskin <proski@gnu.org>
41041 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
41042 floating point anymore.
41043 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
41045 2008-06-15 Pavel Roskin <proski@gnu.org>
41047 * commands/ls.c (grub_ls_list_files): Use integer calculations
41048 for human readable format, avoid floating point use.
41049 * kern/misc.c (grub_ftoa): Remove.
41050 (grub_vsprintf): Remove floating point support.
41052 2008-06-15 Robert Millan <rmh@aybabtu.com>
41054 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
41056 Reported by Max Vozeler.
41058 2008-06-15 Robert Millan <rmh@aybabtu.com>
41060 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
41061 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
41063 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
41064 the beginning of the prefix.
41066 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
41067 It is assumed that if we have a memdisk, grub-mkimage has set
41068 grub_prefix to include the "(memdisk)" drive in it.
41070 2008-06-15 Robert Millan <rmh@aybabtu.com>
41072 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
41073 Initialize keyboard controller after registering the terminal, so that
41074 grub_printf() can be called from grub_keyboard_controller_init().
41076 2008-06-15 Robert Millan <rmh@aybabtu.com>
41078 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41079 extent-btree which is written as big endian on disk.
41080 Reported by Alain Greppin <al@chilibi.org>.
41082 2008-06-14 Robert Millan <rmh@aybabtu.com>
41084 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41085 * util/i386/pc/grub-install.in (modules): Likewise.
41087 2008-06-13 Pavel Roskin <proski@gnu.org>
41089 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41091 2008-06-13 Bean <bean123ch@gmail.com>
41093 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41095 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41097 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41098 to indicate sparse block.
41100 2008-06-12 Pavel Roskin <proski@gnu.org>
41102 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41103 number, grub_fshelp_read() does it for us.
41105 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41106 linear disk read with journal translation.
41107 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41108 * include/grub/fshelp.h: Declare grub_fshelp_read().
41110 2008-06-09 Pavel Roskin <proski@gnu.org>
41112 * fs/minix.c (grub_minix_mount): Handle error reading
41115 2008-06-08 Robert Millan <rmh@aybabtu.com>
41117 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41118 don't append the RAID prefix afterwards.
41119 Reported by Clint Adams.
41121 2008-06-08 Robert Millan <rmh@aybabtu.com>
41123 Based on description from Pavel:
41124 * kern/disk.c (grub_disk_check_range): Rename to ...
41125 (grub_disk_adjust_range): ... this. Add a comment explaining the
41126 tasks performed by this function.
41128 2008-06-08 Robert Millan <rmh@aybabtu.com>
41130 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41131 `num_serial' (for consistency with other variables).
41132 (struct grub_ntfs_data): Add `uuid' member.
41133 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41134 (grub_ntfs_uuid): New function.
41135 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41137 2008-06-07 Pavel Roskin <proski@gnu.org>
41139 * util/biosdisk.c (open_device): Revert last change to the
41140 function, it broke installation. The sector needs to be
41141 different dependent on which device is opened.
41143 2008-06-06 Robert Millan <rmh@aybabtu.com>
41145 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41146 rest of GRUB, and breakage doesn't happen if its value were modified.
41148 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41149 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41150 a constant (same value).
41151 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41152 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41154 2008-06-06 Robert Millan <rmh@aybabtu.com>
41156 * util/biosdisk.c (open_device): Do not modify sector offset when
41157 accessing a partition. kern/disk.c already handles this for us.
41159 2008-06-06 Robert Millan <rmh@aybabtu.com>
41161 * util/grub-emu.c (grub_machine_init): Move code in this function from
41163 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41164 segfault in case grub_printf() is called).
41166 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41167 grub_probe. Update all users not to explicitly add it again.
41168 (grub_device): New variable; contains corresponding device for grubdir.
41169 (fs_module, partmap_module, devabstraction_module): Pass
41170 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41173 2008-06-05 Robert Millan <rmh@aybabtu.com>
41175 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41176 is found, print it (same layout as with labels).
41178 2008-06-04 Robert Millan <rmh@aybabtu.com>
41180 * util/biosdisk.c (get_drive): Rename to ...
41181 (find_grub_drive): ... this. Update all users.
41183 (get_os_disk): Rename to ...
41184 (convert_system_partition_to_system_disk): ... this. Update all users.
41186 (find_drive): Rename to ...
41187 (find_system_device): ... this. Update all users.
41189 2008-06-04 Robert Millan <rmh@aybabtu.com>
41191 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41192 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41193 (make_device_map): Likewise.
41195 2008-06-01 Robert Millan <rmh@aybabtu.com>
41197 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41198 before dereferencing it.
41200 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41201 union with fat12/fat16-specific ones. Add some new fields, including
41202 `num_serial' for both versions.
41203 (struct grub_fat_data): Add `uuid' member.
41204 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41205 names. Initialize `data->uuid' using `num_serial'.
41206 (grub_fat_uuid): New function.
41207 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41209 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41210 (grub_reiserfs_uuid): New function.
41211 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41214 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41215 (grub_xfs_uuid): New function.
41216 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41218 2008-06-01 Robert Millan <rmh@aybabtu.com>
41220 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41221 code that is backward compatible with pre-uuid search command.
41223 2008-05-31 Robert Millan <rmh@aybabtu.com>
41225 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41226 floppies after everything else, to ensure floppy drive isn't accessed
41227 unnecessarily (patch from Bean).
41229 2008-05-31 Robert Millan <rmh@aybabtu.com>
41231 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41232 not print device names when we were asked to set a variable.
41234 2008-05-31 Robert Millan <rmh@aybabtu.com>
41236 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41237 using "cursor-on" and "cursor-off" commands (understood at least by
41238 the Open Firmware flavour on OLPC).
41240 2008-05-31 Michael Gorven <michael@gorven.za.net>
41242 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41243 on and off sequences.
41245 2008-05-31 Robert Millan <rmh@aybabtu.com>
41247 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41248 * util/update-grub.in: Likewise.
41250 2008-05-30 Pavel Roskin <proski@gnu.org>
41252 * util/biosdisk.c (linux_find_partition): Simplify logic and
41253 make the code more universal. Keep special processing for
41254 devfs, but use a simple rule for all other devices. If the
41255 device ends with a number, append 'p' and the partition number.
41256 Otherwise, append only the partition number.
41258 2008-05-30 Robert Millan <rmh@aybabtu.com>
41260 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41261 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41262 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41263 the `root' parameter to Linux.
41265 2008-05-30 Robert Millan <rmh@aybabtu.com>
41267 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41268 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41269 --fs_uuid with --fs-uuid.
41270 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41271 all filesystems support them).
41273 2008-05-30 Robert Millan <rmh@aybabtu.com>
41275 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
41276 grub_printf() flags, since we're printing in units of 2 bytes.
41278 2008-05-30 Robert Millan <rmh@aybabtu.com>
41280 * util/grub.d/00_header.in: Remove obsolete comment referencing
41281 convert_system_path_to_grub_path().
41282 * util/update-grub.in: Likewise.
41283 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41284 (convert_system_path_to_grub_path): Add a warning message explaining
41285 that this function is deprecated. Rely on is_path_readable_by_grub()
41286 for the readability checks.
41287 (font_path): Use is_path_readable_by_grub() for the readability
41288 check rather than convert_system_path_to_grub_path().
41290 2008-05-30 Robert Millan <rmh@aybabtu.com>
41292 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41293 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41294 converting it first.
41295 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41296 grub.cfg for access to font file, and afterwards call it again to set
41299 2008-05-30 Robert Millan <rmh@aybabtu.com>
41301 * commands/search.c (options): Add --fs_uuid option.
41302 (search_fs_uuid): New function.
41303 (grub_cmd_search): Fix --set argument passing.
41304 Use search_fs_uuid() when requested via --fs_uuid.
41305 (grub_search_init): Update help message.
41306 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41307 and redeclare it as an array of 16-bit words.
41308 (grub_ext2_uuid): New function.
41309 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41310 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41311 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41312 (GRUB_DEVICE_BOOT_UUID): New variables.
41313 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41314 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41316 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41317 just assume `root' variable has the right value.
41318 * util/grub.d/10_linux.in: Likewise.
41319 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41321 (main): Recognise `-t fs_uuid' argument.
41323 2008-05-30 Robert Millan <rmh@aybabtu.com>
41325 * util/biosdisk.c (map): Redefine structure to hold information
41326 about GRUB drive name.
41327 (get_drive): Reimplement without assuming (and verifying) BIOS-like
41329 (call_hook): Remove.
41330 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41331 member. Assume drive has partitions.
41332 (grub_util_biosdisk_open): Access device names via `.device' struct
41334 (open_device): Likewise.
41335 (find_drive): Likewise.
41336 (read_device_map): Adjust map[] usage to match the new struct
41337 definition. Don't check for duplicates (still possible, but not cheap
41339 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41340 (make_device_name): Remove assumption of BIOS-like drive names.
41342 2008-05-30 Pavel Roskin <proski@gnu.org>
41344 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41345 compiling execute.c doesn't need grub_script.tab.h anymore.
41346 (normal/command.c_DEPENDENCIES): Likewise.
41347 (normal/function.c_DEPENDENCIES): Likewise.
41348 * conf/i386-ieee1275.rmk: Likewise.
41349 * conf/i386-linuxbios.rmk: Likewise.
41350 * conf/i386-pc.rmk: Likewise.
41351 * conf/powerpc-ieee1275.rmk: Likewise.
41352 * conf/sparc64-ieee1275.rmk: Likewise.
41354 2008-05-29 Pavel Roskin <proski@gnu.org>
41356 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41357 when scanning metadata for volume group name.
41359 * include/grub/script.h: Don't include grub_script.tab.h. It's
41360 a generated file, which may only be included from the files with
41361 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41362 use union YYSTYPE, as the later allows forward declaration.
41363 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41365 2008-05-29 Robert Millan <rmh@aybabtu.com>
41367 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41368 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41369 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41370 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41373 2008-05-29 Robert Millan <rmh@aybabtu.com>
41375 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41376 control key combinations.
41378 2008-05-29 Robert Millan <rmh@aybabtu.com>
41380 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41381 * util/ieee1275/grub-install.in: ... to here.
41382 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41383 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41384 (grub_install_SOURCES): Likewise.
41386 2008-05-29 Robert Millan <rmh@aybabtu.com>
41388 * fs/affs.c: Update copyright year.
41389 * fs/ext2.c: Likewise.
41390 * fs/fshelp.c: Likewise.
41391 * fs/hfsplus.c: Likewise.
41392 * fs/ntfs.c: Likewise.
41393 * fs/xfs.c: Likewise.
41394 * include/grub/fshelp.h: Likewise.
41395 * util/grub-mkdevicemap.c: Likewise.
41397 2008-05-28 Robert Millan <rmh@aybabtu.com>
41399 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41400 might need to be fatfs to support some firmware implementations
41403 2008-05-28 Robert Millan <rmh@aybabtu.com>
41405 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41407 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41408 (make_device_map): Likewise.
41410 2008-05-20 Bean <bean123ch@gmail.com>
41412 * fs/fshelp.c (grub_fshelp_map_block): New function.
41413 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41414 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41416 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41417 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41418 (grub_fshelp_journal): New structure.
41419 (grub_fshelp_map_block): New function prototype.
41420 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41421 (grub_fshelp_map_block): Likewise.
41423 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41424 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41425 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41426 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41427 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41428 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41429 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41430 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41431 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41432 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41433 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41434 (grub_ext2_sblock): New members for journal support.
41435 (grub_ext3_journal_header): New structure.
41436 (grub_ext3_journal_revoke_header): Likewise.
41437 (grub_ext3_journal_block_tag): Likewise.
41438 (grub_ext3_journal_sblock): Likewise.
41439 (grub_fshelp_node): New members logfile and journal.
41440 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41441 grub_fshelp_map_block to get real block number.
41442 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41444 (grub_ext2_read_inode): Likewise.
41445 (grub_ext3_get_journal): New function.
41446 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41447 (grub_ext2_close): Release memory used by journal.
41449 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41450 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41451 (grub_reiserfs_transaction_header): Renamed to
41452 grub_reiserfs_description_block, replace field data with real_blocks.
41453 (grub_reiserfs_commit_block): New structure.
41454 (grub_reiserfs_data): New member journal.
41455 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41457 (grub_reiserfs_read_symlink): Likewise.
41458 (grub_reiserfs_iterate_dir): Likewise.
41459 (grub_reiserfs_open): Likewise.
41460 (grub_reiserfs_read): Likewise.
41461 (grub_reiserfs_get_journal): New function.
41462 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41463 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41464 using grub_reiserfs_get_journal.
41465 (grub_reiserfs_close): Release memory used by journal.
41467 * fs/affs.c (grub_affs_read_block): Change block type to
41468 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41470 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41472 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41474 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41476 * fs/udf.c (grub_udf_read_block): Change block type to
41477 grub_disk_addr_t. Use type cast to avoid warning.
41479 * fs/xfs.c (grub_xfs_read_block): Likewise.
41481 2008-05-16 Christian Franke <franke@computer.org>
41483 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41484 to ensure that break with ESC will always work.
41485 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41486 Remove ESC from keyboard queue.
41488 2008-05-16 Christian Franke <franke@computer.org>
41490 * util/biosdisk.c: [__CYGWIN__] Add includes.
41491 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41492 (get_os_disk): Move variable declarations to OS specific
41493 parts to avoid warning.
41494 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41495 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41496 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41498 * util/getroot.c: [__CYGWIN__] Add includes.
41499 (strip_extra_slashes): Fix "/" case.
41500 [__CYGWIN__] (get_win32_path): New function.
41501 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41502 [__CYGWIN__] (find_root_device): Disable.
41503 [__CYGWIN__] (get_bootsec_serial): New function.
41504 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41505 [__linux__] (grub_guess_root_device): Add early returns to simplify
41507 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41508 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41509 check for Linux only.
41511 2008-05-15 Bean <bean123ch@gmail.com>
41513 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41514 keyboard hang problem in apple's intel mac.
41516 2008-05-09 Robert Millan <rmh@aybabtu.com>
41518 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41520 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41521 (make_device_map): Likewise.
41522 Reported by Aurelien Jarno <aurel32@debian.org>
41524 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
41526 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41527 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41528 (make_device_map): Output entries for xvd type disks.
41530 2008-05-07 Robert Millan <rmh@aybabtu.com>
41532 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41534 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41535 (make_device_map): Likewise.
41536 Reported by Roland Dreier <rdreier@cisco.com>
41538 2008-05-07 Robert Millan <rmh@aybabtu.com>
41540 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41541 grub_strstr() call. Correct a few mistakes in failure path handling.
41543 2008-05-06 Robert Millan <rmh@aybabtu.com>
41545 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41546 Do not print a trailing slash (therefore, the root directory is an
41548 (convert_system_path_to_grub_path): Do not remove trailing slash
41549 from make_system_path_relative_to_its_root() output.
41551 * util/i386/pc/grub-install.in: Add trailing slash to output from
41552 make_system_path_relative_to_its_root().
41554 2008-05-06 Robert Millan <rmh@aybabtu.com>
41556 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41557 ensures that output lines aren't intermangled with those sent to
41558 stderr (via grub_util_info()).
41559 * util/grub-probe.c (grub_refresh): Likewise.
41560 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41562 2008-05-05 Christian Franke <franke@computer.org>
41564 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41565 Add Cygwin device names.
41566 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41567 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41568 (check_device): Return error instead of success on empty name.
41569 (make_device_map): Move label inside linux specific code to
41570 prevent compiler warning.
41572 2008-04-30 Robert Millan <rmh@aybabtu.com>
41574 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41575 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41577 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41579 2008-04-29 Robert Millan <rmh@aybabtu.com>
41581 * docs/grub.cfg: New file (example GRUB configuration).
41583 2008-04-26 Robert Millan <rmh@aybabtu.com>
41585 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41586 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41587 and `disk/ieee1275/nand.c'.
41589 2008-04-25 Bean <bean123ch@gmail.com>
41591 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41594 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41595 change the buffer size to 4096 for cdrom device.
41597 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41599 (_linux_mod_SOURCES): New variable.
41600 (_linux_mod_CFLAGS): Likewise.
41601 (_linux_mod_LDFLAGS): Likewise.
41602 (linux_mod_SOURCES): Likewise.
41603 (linux_mod_CFLAGS): Likewise.
41604 (linux_mod_LDFLAGS): Likewise.
41605 (nand_mod_SOURCES): Likewise.
41606 (nand_mod_CFLAGS): Likewise.
41607 (nand_mod_LDFLAGS): Likewise.
41609 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41610 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41611 type property. (nand device in olpc don't have this property)
41613 * include/grub/disk.h (grub_disk_dev_id): New macro
41614 GRUB_DISK_DEVICE_NAND_ID.
41616 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41617 function prototype.
41618 (grub_rescue_cmd_initrd): Likewise.
41620 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41621 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41622 ofw_cif_handler and ofw_idt, adjust padding number.
41624 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41625 GRUB_MACHINE_IEEE1275 is defined.
41627 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41628 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41630 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41631 on nested function heap_init.
41632 (grub_upper_mem): New variable for i386-ieee1275.
41633 (grub_get_extended_memory): New function for i386-ieee1275.
41634 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41636 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41637 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41640 * loader/i386/ieee1275/linux.c: New file.
41642 * loader/i386/ieee1275/linux_normal.c: New file.
41644 * disk/ieee1275/nand.c: New file.
41646 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41648 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41650 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41652 2008-04-18 Robert Millan <rmh@aybabtu.com>
41654 Restructures early code path on ieee1275 to unify grub_main() as
41655 the first C function that is executed in every platform.
41657 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41658 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41660 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41661 * kern/ieee1275/cmain.c (cmain): Rename to ...
41662 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41663 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41666 2008-04-18 Robert Millan <rmh@aybabtu.com>
41668 * util/update-grub.in: Fix syntax error when setting
41669 `GRUB_PRELOAD_MODULES'.
41670 Reported by Stephane Chazelas <stephane@artesyncp.com>
41672 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41674 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41675 section into account, newer toolchains generate unique build ids
41676 * configure.ac: remove the test for --build-id=none acceptance,
41677 we want build ids to be preserved
41678 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41679 far from other sections don't cause the raw binary images grow
41682 2008-04-15 Robert Millan <rmh@aybabtu.com>
41684 * disk/lvm.c: Update copyright year.
41685 * kern/misc.c: Likewise.
41687 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41689 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
41690 there is no memory left for physical volume name.
41692 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41694 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41695 volume name mapping to support bigger than 9 character names properly.
41697 2008-04-13 Robert Millan <rmh@aybabtu.com>
41699 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41700 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41702 2008-04-13 Christian Franke <franke@computer.org>
41704 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41705 to create a floppy emulation boot CD when non emulation mode
41707 Enable Joliet CD filesystem extension.
41709 2008-04-13 Robert Millan <rmh@aybabtu.com>
41711 * kern/misc.c (grub_strncat): Fix off-by-one error.
41712 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41714 * kern/env.c (grub_env_context_close): Clear current context, not
41716 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41718 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41720 2008-04-13 Robert Millan <rmh@aybabtu.com>
41722 Improve robustness when handling LVM.
41724 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
41725 (and leave `*p' unmodified).
41726 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41728 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41729 iterating through it.
41730 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41732 (grub_lvm_scan_device): Check the return value (and fail gracefully
41733 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41734 Don't assume `vg->pvs != NULL' when iterating through it.
41736 2008-04-13 Robert Millan <rmh@aybabtu.com>
41738 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41739 * genmk.rb (partmap): New variable.
41740 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41741 (#{partmap}): New target rule.
41742 * genpartmaplist.sh: New file.
41743 * Makefile.in (pkglib_DATA): Add partmap.lst.
41744 (partmap.lst): New target rule.
41745 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41746 modules (including all partition maps), instead of preloading them.
41748 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41750 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41751 `linux-boot-prober' (if installed) to detect other operating
41752 systems which are installed on the computer and add them to
41754 * conf/common.rmk: Build and install 30_os-prober.
41756 2008-04-12 Robert Millan <rmh@aybabtu.com>
41758 * kern/powerpc/ieee1275/init.c: Move from here ...
41759 * kern/ieee1275/init.c: ... to here. Update all users.
41761 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41762 * kern/ieee1275/cmain.c: ... to here. Update all users.
41764 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41765 * kern/ieee1275/openfw.c: ... to here. Update all users.
41767 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41768 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41770 2008-04-10 Pavel Roskin <proski@gnu.org>
41772 * configure.ac: Always use "_cv_" in cache variables for
41773 compatibility with Autoconf 2.62.
41775 2008-04-07 Robert Millan <rmh@aybabtu.com>
41777 Revert grub/machine/init.h addition by Pavel (since it breaks on
41778 i386-ieee1275 and others):
41779 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41780 * util/powerpc/ieee1275/misc.c: Likewise.
41782 2008-04-07 Robert Millan <rmh@aybabtu.com>
41784 * util/grub-probe.c (probe): Improve error message.
41786 2008-04-07 Robert Millan <rmh@aybabtu.com>
41788 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41789 (this prevents the presence of a bogus entry from ruining the whole
41792 2008-04-06 Pavel Roskin <proski@gnu.org>
41794 * util/biosdisk.c: Include grub/util/biosdisk.h.
41795 * util/grub-fstest.c (execute_command): Make static.
41796 * util/grub-mkdevicemap.c (check_device): Likewise.
41797 * util/i386/pc/misc.c: Include grub/machine/init.h.
41798 * util/powerpc/ieee1275/misc.c: Likewise.
41799 * util/lvm.c: Include grub/util/lvm.h.
41800 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41802 * util/raid.c: Include grub/util/raid.h.
41803 (grub_util_getdiskname): Make static.
41805 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41806 grub_hostfs_fini(), as they are called from grub_init_all() and
41807 grub_fini_all() respectively. This fixes an infinite loop in
41808 grub-fstest due to double registration of hostfs.
41809 Reported by Christian Franke <Christian.Franke@t-online.de>
41811 2008-04-05 Pavel Roskin <proski@gnu.org>
41813 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41814 all 8 functions. Otherwise, probe function 0 only.
41816 2008-04-04 Pavel Roskin <proski@gnu.org>
41818 * commands/lspci.c (grub_lspci_iter): Print the bus number
41821 * commands/lspci.c (grub_pci_classes): Fix typos.
41822 (grub_lspci_iter): Don't print func twice. Print vendor ID
41823 before device ID, as it's normally done.
41825 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41826 Fix signedness warnings.
41827 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41829 * util/ieee1275/get_disk_name.c: Include config.h so that
41830 _GNU_SOURCE is defined and getline() is declared. Mark an
41831 unused argument as such. Fix a signedness warning.
41833 2008-04-02 Pavel Roskin <proski@gnu.org>
41835 * genkernsyms.sh.in: Use more robust assignments for CC and
41836 srcdir. Quote srcdir.
41837 * gensymlist.sh.in: Likewise. Assert at the compile time that
41838 the symbol table is not empty.
41840 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41841 * fs/cpio.c (grub_cpio_read): Likewise.
41843 2008-04-01 Pavel Roskin <proski@gnu.org>
41845 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41846 * disk/host.c (grub_host_open): Likewise.
41847 * disk/loopback.c (grub_loopback_open): Likewise.
41848 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41849 disk->id as in disk/host.c, not a multi-character constant.
41851 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41852 later is obsolete, potentially dangerous and sets a bad example.
41853 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41854 * util/misc.c (grub_util_get_image_size): Likewise.
41856 * disk/loopback.c (options): Improve help for "--partitions".
41858 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41859 options to align them with the short options, e.g. "echo -e".
41861 2008-03-31 Bean <bean123ch@gmail.com>
41863 * video/reader/png.c (grub_png_data): New member is_16bit and
41865 (grub_png_decode_image_header): Detect 16 bit png image.
41866 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41867 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41868 (grub_video_reader_png): Release memory occupied by image_data.
41870 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41872 (grub_nfs_mount): Skip the test for sector per cluster.
41874 * include/grub/ntfs.h (MAX_SPC): Removed.
41876 2008-03-31 Bean <bean123ch@gmail.com>
41878 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41879 (grub_probe_SOURCES): Add fs/afs.c.
41880 (grub_fstest_SOURCES): Likewise.
41881 (afs_mod_SOURCES): New variable.
41882 (afs_mod_CFLAGS): Likewise.
41883 (afs_mod_LDFLAGS): Likewise.
41885 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41886 (grub_emu_SOURCES): Likewise.
41888 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41890 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41892 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41896 * fs/afs.c: New file.
41898 2008-03-30 Pavel Roskin <proski@gnu.org>
41900 * disk/host.c: Include grub/misc.h to fix a warning.
41901 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41902 warnings about implicit declarations.
41904 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41906 * include/grub/i386/loader.h: Change declaration of
41907 grub_linux_boot() to match what grub_loader_set() expects.
41908 * util/getroot.c (grub_guess_root_device): Return const char* to
41910 * util/grub-probe.c (probe): Fix a warning about uninitialized
41911 abstraction_name variable.
41912 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41913 second argument as unused to fix a warning.
41915 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41916 missing grub_error() call.
41918 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41919 2.60 and newer uses it to define datadir.
41921 * commands/sleep.c: Fix warning about implicit declaration.
41922 * disk/memdisk.c: Likewise.
41923 * loader/aout.c: Likewise.
41924 * loader/i386/bsd_normal.c: Likewise.
41925 * util/grub-probe.c: Likewise.
41927 * commands/i386/cpuid.c (has_longmode): Make static.
41928 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41929 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41931 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41932 GDT. This is more robust, as %ds can change.
41933 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41934 calling real_to_prot().
41935 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41937 2008-03-28 Pavel Roskin <proski@gnu.org>
41939 * kern/i386/pc/startup.S: Assert that uncompressed functions
41940 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41941 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41942 code, as they push parts of the code (error handlers) beyond
41943 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41944 code as correctness and size.
41946 2008-03-28 Pavel Roskin <proski@gnu.org>
41948 * kern/i386/pc/startup.S
41949 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41950 data block address to the real mode, keep offset minimal. This
41951 works around a bug in AWARD BIOS on old Athlon systems, which
41952 makes CD detection hang.
41954 2008-03-26 Pavel Roskin <proski@gnu.org>
41956 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41958 * include/grub/normal.h: Add grub_parse_color_name_pair()
41961 2008-03-24 Bean <bean123ch@gmail.com>
41963 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41964 (cd_count): Removed.
41965 (cd_drive): New variable.
41966 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41967 (grub_biosdisk_call_hook): Likewise.
41968 (grub_biosdisk_iterate): Change cdrom detection method.
41969 (grub_biosdisk_open): Replace cd_start with cd_drive.
41970 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41971 detect cdrom device.
41973 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41975 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41976 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41977 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41978 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41979 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41980 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41981 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41982 (grub_biosdisk_cdrp): New structure.
41983 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41985 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41987 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41990 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41993 2008-03-20 Robert Millan <rmh@aybabtu.com>
41995 Remove 2 TiB limit in ata.mod.
41996 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41997 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41998 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41999 grub_uint64_t instead of grub_uint32_t.
42001 2008-03-05 Bean <bean123ch@gmail.com>
42003 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
42004 (grub_multiboot): Set boot device.
42006 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
42008 2008-03-02 Bean <bean123ch@gmail.com>
42010 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
42013 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
42015 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
42018 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
42021 * docs/fdl.texi: New file.
42023 * docs/mdate-sh: New file. Copied from gnulib.
42024 * docs/texinfo.tex: Likewise.
42026 * config.guess: Updated from gnulib.
42027 * install-sh: Likewise.
42029 2008-02-28 Robert Millan <rmh@aybabtu.com>
42031 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
42032 (aout_mod_SOURCES): New variable.
42033 (aout_mod_CFLAGS): Likewise.
42034 (aout_mod_LDFLAGS): Likewise.
42036 * conf/i386-ieee1275.rmk: Likewise.
42038 2008-02-28 Robert Millan <rmh@aybabtu.com>
42040 * util/update-grub.in: Reorganise terminal validity check. Accept
42041 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
42042 Based on suggestion by Franklin PIAT.
42044 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
42046 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
42048 * util/getroot.c (grub_util_check_block_device): New function that
42049 returns the given argument if it is a block device and returns NULL else.
42050 * util/grub-probe.c (argument_is_device): New variable.
42051 (probe): Promote device_name from a variable to an argument. Receive
42052 device_name from grub_util_check_block_device() if path is NULL and from
42053 grub_guess_root_device() else. Do not free() device_name anymore.
42054 (options): Introduce new parameter '-d, --device'.
42055 (main): Add description of the new parameter to the help screen.
42056 Rename path variable to argument. Set argument_is_device if the '-d'
42057 option is given. Pass argument to probe() depending on
42058 argument_is_device.
42060 2008-02-24 Bean <bean123ch@gmail.com>
42062 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
42063 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
42064 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
42065 (GRUB_ISO9660_VOLDESC_PART): Likewise.
42066 (GRUB_ISO9660_VOLDESC_END): Likewise.
42067 (grub_iso9660_primary_voldesc): New member escape.
42068 (grub_iso9660_data): New member joliet.
42069 (grub_iso9660_convert_string): New function.
42070 (grub_iso9660_mount): Detect joliet extension.
42071 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
42072 (grub_iso9660_iso9660_label): Likewise.
42074 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42075 (grub_setup_SOURCES): Add fs/udf.c.
42076 (grub_fstest_SOURCES): Likewise.
42077 (udf_mod_SOURCES): New variable.
42078 (udf_mod_CFLAGS): Likewise.
42079 (udf_mod_LDFLAGS): Likewise.
42081 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42082 (grub_emu_SOURCES): Likewise.
42084 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42086 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42088 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42092 * fs/udf.c: New file.
42094 2008-02-24 Robert Millan <rmh@aybabtu.com>
42096 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42097 (normal/lexer.c_DEPENDENCIES): New variables.
42098 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42099 (normal/lexer.c_DEPENDENCIES): Likewise.
42100 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42101 (normal/lexer.c_DEPENDENCIES): Likewise.
42102 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42103 (normal/lexer.c_DEPENDENCIES): Likewise.
42104 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42105 (normal/lexer.c_DEPENDENCIES): Likewise.
42106 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42107 (normal/lexer.c_DEPENDENCIES): Likewise.
42109 2008-02-23 Robert Millan <rmh@aybabtu.com>
42111 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42112 since they were intended to be in hex. This didn't break previously
42113 because of a bug in gpt_partition_map_iterate() (see below).
42115 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42116 when checking the validity of GPT header.
42117 Remove `partno', since it always provides the same information as `i'.
42119 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42121 * include/grub/efi/time.h: Fix a wrong comment.
42123 2008-02-19 Pavel Roskin <proski@gnu.org>
42125 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42128 2008-02-19 Bean <bean123ch@gmail.com>
42130 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42131 (aout_mod_SOURCES): New variable.
42132 (aout_mod_CFLAGS): Likewise.
42133 (aout_mod_LDFLAGS): Likewise.
42134 (_bsd_mod_SOURCES): New variable.
42135 (_bsd_mod_CFLAGS): Likewise.
42136 (_bsd_mod_LDFLAGS): Likewise.
42137 (bsd_mod_SOURCES): New variable.
42138 (bsd_mod_CFLAGS): Likewise.
42139 (bsd_mod_LDFLAGS): Likewise.
42141 * include/grub/aout.h: New file.
42143 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42145 * include/grub/i386/bsd.h: New file.
42147 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42150 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42151 function is called, so that it's possible to change it inside the hook.
42152 (grub_elf64_load): Likewise.
42153 (grub_elf_file): Don't close the file if elf header is not found.
42154 (grub_elf_close): Close the file if grub_elf_file fails (The new
42155 grub_elf_file won't close it).
42156 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42157 (grub_elf64_size): Likewise.
42159 * kern/i386/loader.S (grub_unix_real_boot): New function.
42161 * loader/aout.c: New file.
42163 * loader/i386/bsd.c: New file.
42165 * loader/i386/bsd_normal.c: New file.
42167 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42169 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
42170 can test other formats.
42172 2008-02-19 Robert Millan <rmh@aybabtu.com>
42174 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42175 (grub_gpt_partition_type_empty): Redefine with macro from
42176 `<grub/gpt_partition.h>'.
42177 (gpt_partition_map_iterate): Adjust partition type comparison.
42179 Export `entry' as partmap-specific `part.data' struct.
42180 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42182 * include/grub/gpt_partition.h (grub_gpt_header)
42183 (grub_gpt_partentry): ... to here (new file).
42185 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42187 (grub_gpt_partition_type_bios_boot): New const variable, defined
42188 with macro from `<grub/gpt_partition.h>'.
42190 (setup): Replace `first_start' with `embed_region', which keeps
42191 track of the embed region (and is partmap-agnostic).
42193 Replace find_first_partition_start() with find_usable_region(),
42194 which finds a usable region for embedding using partmap-specific
42195 knowledge (supports PC/MSDOS and GPT).
42197 Fix all assumptions that the embed region start at sector 1, using
42198 `embed_region.start' from now on. Similarly, use `embed_region.end'
42199 rather than `first_start' to calculate available size.
42201 In grub_util_info() message, replace "into after the MBR" with an
42202 indication of the specific sector our embed region starts at.
42204 2008-02-19 Robert Millan <rmh@aybabtu.com>
42206 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42207 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42208 `commands/reboot.c'.
42209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42210 (halt_mod_SOURCES): Likewise.
42211 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42212 (halt_mod_SOURCES): Likewise.
42214 2008-02-17 Christian Franke <franke@computer.org>
42216 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42218 2008-02-17 Robert Millan <rmh@aybabtu.com>
42220 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42221 set `first_start' to 0 for non-PC/MSDOS partition maps.
42223 2008-02-16 Robert Millan <rmh@aybabtu.com>
42225 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42226 do not assume partition map is PC/MSDOS before performing checks that
42227 are specific to that layout.
42229 2008-02-13 Robert Millan <rmh@aybabtu.com>
42231 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42232 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42233 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42235 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42237 * configure.ac: Only a cosmetic change on the handling of
42238 -fno-stack-protector.
42240 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
42242 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42243 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42245 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42246 (halt_mod_SOURCES): New variable.
42247 (halt_mod_CFLAGS): Likewise.
42248 (halt_mod_LDFLAGS): Likewise.
42249 (reboot_mod_SOURCES): Likewise.
42250 (reboot_mod_CFLAGS): Likewise.
42251 (reboot_mod_LDFLAGS): Likewise.
42253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42254 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42256 (halt_mod_SOURCES): Likewise.
42257 (reboot_mod_SOURCES): Likewise.
42259 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42260 commands/i386/pc/reboot.c by commands/reboot.c.
42261 (reboot_mod_SOURCES): Likewise.
42263 * commands/i386/pc/reboot.c: merge this file ...
42265 * commands/ieee1275/reboot.c: ... and this file ...
42267 * commands/reboot.c: ... to this file.
42268 Add some precompiler directive to include the correct header for
42271 * commands/ieee1275/halt.c: move this file ...
42273 * commands/halt.c: ... to here.
42274 Add some precompiler directive to include the correct header for
42277 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42278 (grub_halt): Likewise.
42280 * kern/efi/efi.c (grub_reboot): New function.
42281 (grub_halt): Likewise.
42283 2008-02-12 Robert Millan <rmh@aybabtu.com>
42285 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42286 /dev (like it is done for /dev/mapper). This doesn't provide support
42287 for EVMS, but at least it is now easy to identify the problem when it
42290 2008-02-11 Robert Millan <rmh@aybabtu.com>
42292 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42293 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42294 comparing it with -1, not 0.
42296 2008-02-10 Robert Millan <rmh@aybabtu.com>
42298 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42300 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42301 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42303 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42304 `disk/lvm.c' to the end of the list.
42305 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42306 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42308 2008-02-10 Robert Millan <rmh@aybabtu.com>
42310 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42311 grub_print_error() instead. This will let user know why we're entering
42313 Based on suggestions from Sam Morris.
42315 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
42317 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42318 on remaining N args, instead of "--" arg N times.
42320 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42322 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42323 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42324 pattern for unknown glyphs.
42326 2008-02-09 Robert Millan <rmh@aybabtu.com>
42328 * configure.ac: Probe for `help2man'.
42329 * Makefile.in (builddir): New variable.
42330 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42331 or otherwise add a few flags/options to it.
42332 (install-local): For every executable utility or script that is
42333 installed, invoke $(HELP2MAN) to install a manpage based on --help
42336 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42337 that it doesn't prevent --help from working in build tree.
42339 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42340 with `bug-grub@gnu.org'.
42341 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42342 * util/update-grub.in (usage): New function.
42343 Implement proper argument check, with support for --help and --version
42344 (as well as existing -y).
42346 2008-02-09 Christian Franke <franke@computer.org>
42348 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42349 avoid overwriting previous output.
42350 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42352 2008-02-09 Robert Millan <rmh@aybabtu.com>
42354 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42357 2008-02-09 Robert Millan <rmh@aybabtu.com>
42359 * commands/sleep.c: New file.
42360 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42361 (sleep_mod_SOURCES): New variable.
42362 (sleep_mod_CFLAGS): Likewise.
42363 (sleep_mod_LDFLAGS): Likewise.
42365 2008-02-09 Robert Millan <rmh@aybabtu.com>
42367 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42368 situations in which we can deduce the RAID size and the superblock
42371 2008-02-09 Robert Millan <rmh@aybabtu.com>
42373 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42374 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42375 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42377 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42378 and return a grub_diskmemberlist_t composed of physical array members.
42379 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42381 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42383 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42384 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42385 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42387 * util/grub-probe.c (probe): Move partmap probing code from here ...
42388 (probe_partmap): ... to here.
42389 (probe): Use probe_partmap() once for the disk we're probing, and
42390 additionally, when such disk contains a memberlist() struct member,
42391 once for each disk that is contained in the structure returned by
42394 2008-02-09 Robert Millan <rmh@aybabtu.com>
42396 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42397 environment variable to 'all' in order to obtain debug output from
42399 * util/i386/pc/grub-setup.c (main): Likewise.
42401 2008-02-08 Robert Millan <rmh@aybabtu.com>
42403 * disk/raid.c (grub_raid_scan_device): Check for
42404 `array->device[sb.this_disk.number]' rather than for
42405 `array->device[sb.this_disk.number]->name', since the latter is not
42406 guaranteed to be accessible.
42408 2008-02-08 Robert Millan <rmh@aybabtu.com>
42410 * disk/raid.c: Update copyright.
42411 * fs/cpio.c: Likewise.
42412 * include/grub/raid.h: Likewise.
42413 * loader/i386/pc/multiboot.c: Likewise.
42414 * util/hostfs.c: Likewise.
42416 2008-02-08 Robert Millan <rmh@aybabtu.com>
42418 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42419 to a grub_disk_t array.
42420 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42422 (grub_raid_scan_device): Replace `device[x].name' accesses with
42423 `device[x]->name'. Simplify initialization of `array->device[x]'.
42425 2008-02-08 Robert Millan <rmh@aybabtu.com>
42427 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42428 grub_dprintf() calls.
42429 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42432 2008-02-07 Christian Franke <franke@computer.org>
42434 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42435 instead of fseek and ftell to support large files.
42436 (grub_hostfs_read): Likewise.
42438 2008-02-07 Robert Millan <rmh@aybabtu.com>
42440 Patch from Jeroen Dekkers.
42441 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
42442 failure, since successfully reading all array members might not be
42445 2008-02-06 Robert Millan <rmh@aybabtu.com>
42447 * util/grub-probe.c (probe): Simplify partmap probing (with the
42448 assumption that the first word up to the underscore equals to
42451 2008-02-06 Christian Franke <franke@computer.org>
42453 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42454 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42455 last block of a cpio or tar stream.
42456 Check for "TRAILER!!!" instead of any empty data
42457 block to detect last block of a cpio stream.
42458 (grub_cpio_dir): Fix constness of variable np.
42459 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42460 cpio or tar trailer is detected. This fixes a crash
42461 on open of a non existing file.
42463 2008-02-05 Bean <bean123ch@gmail.com>
42465 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42467 (grub_multiboot_load_elf64): Likewise.
42468 (grub_multiboot): Initialize mbi structure.
42470 * util/grub-fstest.c: Don't include unused header file script.h.
42472 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
42474 (grub_fstest_SOURCES): Likewise.
42476 2008-02-05 Robert Millan <rmh@aybabtu.com>
42478 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42479 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42480 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42481 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42483 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42484 (translation_table): Replace hardcoded values with macros
42485 provided by `<grub/term.h>'.
42487 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42488 (keyboard_map): Correct/add a few values, with macros provided
42489 by `<grub/term.h>'.
42490 (keyboard_map_shift): Zero values that don't differ from their
42491 `keyboard_map' equivalents.
42492 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42493 Discard the second scan code that is always sent by Caps lock.
42494 Only use `keyboard_map_shift' when it provides a non-zero value,
42495 otherwise fallback to `keyboard_map'.
42497 2008-02-04 Bean <bean123ch@gmail.com>
42499 * Makefile.in (enable_grub_fstest): New variable.
42501 * conf/common.rmk (grub_fstest_init.lst): New rule.
42502 (grub_fstest_init.h): Likewise.
42503 (grub_fstest_init.c): Likewise.
42504 (util/grub-fstest.c_DEPENDENCIES): New variable.
42505 (grub_fstest_SOURCES): Likewise.
42507 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42509 * util/grub-fstest.c: New file.
42511 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42513 Make grub-setup handle a separate root device.
42515 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42516 so that the root device can be compared with the destination
42518 When embedding the core image, if the root and destination devices
42519 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42521 When not embedding, set ROOT_DRIVE to 0xFF.
42523 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42525 Add support for having a grub directory in a different drive. This
42526 is still only the data handling part.
42528 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42529 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42530 (grub_root_drive): New variable.
42532 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42533 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42534 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42537 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42539 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42541 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42543 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42544 is bogus, because PXE booting does not specify any drive
42547 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42548 am not sure if this is really correct.
42550 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42551 is always identical to the boot drive when booting from a CD.
42553 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42555 (root_drive): New variable.
42556 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42557 (setup_sectors): Push %dx right after popping it, because %dh will
42559 (copy_buffer): Restore %dx.
42561 2008-02-03 Robert Millan <rmh@aybabtu.com>
42563 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42564 use `cdboot.img' for cdrom images.
42566 2008-02-03 Robert Millan <rmh@aybabtu.com>
42568 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42569 only setup gfxterm when `font' command has succeeded.
42571 2008-02-03 Robert Millan <rmh@aybabtu.com>
42573 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42574 (grub_rescue_cmd_multiboot_loader)
42575 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42577 2008-02-03 Pavel Roskin <proski@gnu.org>
42579 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
42580 %edx and %esi from stack only after grub_gate_a20() is called.
42581 grub_gate_a20() clobbers %edx.
42583 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42585 * configure.ac (AC_INIT): Bumped to 1.96.
42587 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42588 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42589 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42590 video/readers/png.c.
42592 2008-02-03 Bean <bean123ch@gmail.com>
42594 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42595 (cdboot_img_SOURCES): New variable.
42596 (cdboot_img_ASFLAGS): New variable.
42597 (cdboot_img_LDFLAGS): New variable.
42599 * boot/i386/pc/cdboot.S: New file.
42601 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42602 (cd_count): Likewise.
42603 (grub_biosdisk_get_drive): Add support for cd device.
42604 (grub_biosdisk_call_hook): Likewise.
42605 (grub_biosdisk_iterate): Likewise.
42606 (grub_biosdisk_open): Likewise.
42607 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42608 (grub_biosdisk_rw): Support reading from cd device.
42609 (GRUB_MOD_INIT): Iterate cd devices.
42611 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42612 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42613 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42615 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42617 2008-02-02 Robert Millan <rmh@aybabtu.com>
42619 * commands/read.c: New file.
42620 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42621 (read_mod_SOURCES): New variable.
42622 (read_mod_CFLAGS): Likewise.
42623 (read_mod_LDFLAGS): Likewise.
42625 2008-02-02 Robert Millan <rmh@aybabtu.com>
42627 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42628 determining whether menu has to be displayed.
42630 2008-02-02 Marco Gerards <marco@gnu.org>
42632 * bus/pci.c: New file.
42634 * include/grub/pci.h: Likewise.
42636 * include/grub/i386/pc/pci.h: Likewise.
42638 * commands/lspci.c: Likewise.
42640 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42642 (pci_mod_SOURCES): New variable.
42643 (pci_mod_CFLAGS): Likewise.
42644 (pci_mod_LDFLAGS): Likewise.
42645 (lspci_mod_SOURCES): Likewise.
42646 (lspci_mod_CFLAGS): Likewise.
42647 (lspci_mod_LDFLAGS): Likewise.
42649 2008-02-02 Bean <bean123ch@gmail.com>
42651 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42652 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42654 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42655 (grub_xfs_btree_node): New structure.
42656 (grub_xfs_btree_root): New structure.
42657 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42658 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42659 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42660 (GRUB_XFS_EXTENT_SIZE): Likewise.
42661 (grub_xfs_read_block): Support btree format type.
42662 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42663 Use directory block as basic unit.
42665 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42667 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42668 __attribute__ ((__regparm__ (1))).
42670 2008-02-01 Robert Millan <rmh@aybabtu.com>
42672 Correct a mistake in previous commit.
42674 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42676 (normal/command.c_DEPENDENCIES): New variable.
42678 2008-02-01 Robert Millan <rmh@aybabtu.com>
42680 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42682 (normal/command.c_DEPENDENCIES): New variable.
42683 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42684 * conf/i386-ieee1275.rmk: Likewise.
42685 * conf/i386-linuxbios.rmk: Likewise.
42686 * conf/i386-pc.rmk: Likewise.
42687 * conf/sparc64-ieee1275.rmk: Likewise.
42688 * conf/powerpc-ieee1275.rmk: Likewise.
42689 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42691 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42693 2008-02-01 Robert Millan <rmh@aybabtu.com>
42695 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42696 call at beginning of function.
42698 2008-01-31 Pavel Roskin <proski@gnu.org>
42700 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
42701 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42702 (grub_mkrescue_SOURCES): Likewise.
42703 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42705 2008-01-30 Robert Millan <rmh@aybabtu.com>
42707 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42708 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42709 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42710 (grub_probe_SOURCES): ... to here.
42712 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42713 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42714 * conf/i386-ieee1275.rmk: Likewise.
42715 * conf/i386-linuxbios.rmk: Likewise.
42716 * conf/powerpc-ieee1275.rmk: Likewise.
42718 2008-01-30 Tristan Gingold <gingold@free.fr>
42720 * kern/rescue.c: Silently accept empty lines.
42722 2008-01-29 Bean <bean123ch@gmail.com>
42724 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42725 (real_code_2): Code cleanup and change comment style.
42726 (move_memory): Avoid using 32-bit address mode.
42728 2008-01-29 Bean <bean123ch@gmail.com>
42730 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42731 (png_mod_SOURCES): New variable.
42732 (png_mod_CFLAGS): Likewise.
42733 (png_mod_LDFLAGS): Likewise.
42735 * video/readers/png.c: New file.
42737 2008-01-28 Robert Millan <rmh@aybabtu.com>
42739 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42740 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42741 `ifndef GRUB_MOD_GAP' hack.
42742 * util/elf/grub-mkimage.c (add_segments): Likewise.
42744 2008-01-27 Robert Millan <rmh@aybabtu.com>
42746 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42747 `GRUB_MOD_GAP' for platforms in which it's not defined.
42748 * util/elf/grub-mkimage.c (add_segments): Likewise.
42750 2008-01-27 Robert Millan <rmh@aybabtu.com>
42752 Get grub-emu to build again (including parallel builds).
42754 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42756 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42757 (normal/execute.c_DEPENDENCIES): ... this, ...
42758 (grub-emu_DEPENDENCIES): ... and this.
42760 * conf/i386-efi.rmk: Likewise.
42761 * conf/i386-linuxbios.rmk: Likewise.
42762 * conf/i386-ieee1275.rmk: Likewise.
42763 * conf/powerpc-ieee1275.rmk: Likewise.
42764 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42766 2008-01-27 Robert Millan <rmh@aybabtu.com>
42768 * NEWS: Add a few items.
42770 2008-01-27 Robert Millan <rmh@aybabtu.com>
42772 Fix parallel builds with grub-emu. Based on earlier commit for
42773 grub-probe and grub-setup.
42775 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42776 (util/grub-emu.c_DEPENDENCIES): ... this.
42777 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42778 (util/grub-emu.c_DEPENDENCIES): ... this.
42779 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42780 (util/grub-emu.c_DEPENDENCIES): ... this.
42781 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42782 (util/grub-emu.c_DEPENDENCIES): ... this.
42783 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42784 (util/grub-emu.c_DEPENDENCIES): ... this.
42786 2008-01-27 Pavel Roskin <proski@gnu.org>
42788 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42789 to create a gap between _end and the modules added to the image
42790 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42791 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42792 * util/elf/grub-mkimage.c (add_segments): Likewise.
42794 2008-01-26 Pavel Roskin <proski@gnu.org>
42796 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42797 just return an error.
42799 2008-01-26 Bean <bean123ch@gmail.com>
42801 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42802 (grub_reiserfs_get_item): Save offset of the next item.
42803 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42805 2008-01-25 Robert Millan <rmh@aybabtu.com>
42807 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42808 make all filesystem sources appear together (possibly fixing omissions
42810 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42811 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42812 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42815 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42817 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42818 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42819 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42820 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42822 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42823 (probe): Add a sanity check to make sure of our ability to read
42824 requested files when probing for filesystem type.
42826 * genmk.rb: Update copyright year (2007).
42828 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42829 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42830 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42831 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42832 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42833 : Remove function prototypes.
42835 2008-01-25 Robert Millan <rmh@aybabtu.com>
42837 Revert my previous commits (based on wrong assumption of how grub_errno
42840 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
42841 * kern/file.c (grub_file_open): Likewise.
42843 2008-01-24 Pavel Roskin <proski@gnu.org>
42845 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42846 that hang if GRUB tries to setup colors.
42847 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42848 colors for firmwares that don't support it.
42849 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42850 Recognize Open Hack'Ware, set flags to work around its
42853 2008-01-24 Robert Millan <rmh@aybabtu.com>
42855 * kern/file.c (grub_file_open): Do not account previous failures of
42856 unrelated functions when grub_errno is checked for.
42857 Reported by Oleg Strikov.
42859 2008-01-24 Bean <bean123ch@gmail.com>
42861 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42862 (grub_ufs_sblock): New member volume name.
42863 (grub_ufs_find_file): Fix string copy bug.
42864 (grub_ufs_label): Implement this function properly.
42866 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42867 (grub_hfs_iterate_records): Use the correct file number for extents
42868 and catalog file. Fix problem in next index calculation.
42869 (grub_hfs_find_node): Replace recursive function call with loop.
42870 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42872 2008-01-23 Robert Millan <rmh@aybabtu.com>
42874 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42875 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42876 (grub_multiboot2_real_boot): New function prototype.
42878 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42879 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42881 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42882 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42884 2008-01-23 Robert Millan <rmh@aybabtu.com>
42886 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42887 #ifdef'ed out grub_printf().
42889 2008-01-23 Robert Millan <rmh@aybabtu.com>
42891 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42892 grub_dprintf calls, since they make "debug=all" mode unusable.
42893 (grub_console_checkkey): Likewise.
42895 2008-01-23 Robert Millan <rmh@aybabtu.com>
42897 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42898 `term/i386/pc/at_keyboard.c'.
42899 (pkglib_MODULES): Add `serial.mod'.
42900 (serial_mod_SOURCES): New variable.
42901 (serial_mod_CFLAGS): Likewise.
42902 (serial_mod_LDFLAGS): Likewise.
42904 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42905 `<grub/powerpc/ieee1275/console.h>'.
42906 (grub_keyboard_controller_init): New function prototype.
42907 (grub_console_checkkey): Likewise.
42908 (grub_console_getkey): Likewise.
42910 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42913 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42914 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42916 2008-01-23 Robert Millan <rmh@aybabtu.com>
42918 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42919 present, "(memdisk)/boot/grub" becomes the default prefix.
42921 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42922 a memdisk tarball with all the modules. Add --overlay=DIR option that
42923 allows users to overlay additional files into the image.
42925 2008-01-23 Robert Millan <rmh@aybabtu.com>
42927 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42928 and `machine/memory.h'.
42929 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42930 (_multiboot_mod_SOURCES): New variable.
42931 (_multiboot_mod_CFLAGS): Likewise.
42932 (_multiboot_mod_LDFLAGS): Likewise.
42933 (multiboot_mod_SOURCES): Likewise.
42934 (multiboot_mod_CFLAGS): Likewise.
42935 (multiboot_mod_LDFLAGS): Likewise.
42937 * include/grub/i386/ieee1275/loader.h: New file.
42939 * include/grub/i386/ieee1275/machine.h: Likewise.
42941 * include/grub/i386/ieee1275/memory.h: Likewise.
42943 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42944 variable declaration.
42945 (grub_os_area_size): Likewise.
42947 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42948 (grub_lower_mem, grub_upper_mem): New variables.
42949 (grub_stop_floppy): New function (just to make
42950 grub_multiboot2_real_boot() happy).
42952 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42953 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42954 (grub_stop): New function.
42955 Include `"../realmode.S"' and `"../loader.S"'.
42957 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42958 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42960 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42961 rely on grub_multiboot2_real_boot() for final boot.
42963 2008-01-22 Robert Millan <rmh@aybabtu.com>
42965 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42966 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42967 device that doesn't look like an SD card.
42968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42969 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42970 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42971 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42974 2008-01-22 Robert Millan <rmh@aybabtu.com>
42976 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42977 avoid claiming over our own code.
42979 2008-01-22 Bean <bean123ch@gmail.com>
42981 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42982 (jpeg_mod_SOURCES): New variable.
42983 (jpeg_mod_CFLAGS): Likewise.
42984 (jpeg_mod_LDFLAGS): Likewise.
42986 * video/readers/jpeg.c : New file.
42988 2008-01-22 Bean <bean123ch@gmail.com>
42990 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42991 there are no more items.
42993 2008-01-21 Robert Millan <rmh@aybabtu.com>
42995 * kern/mm.c (grub_mm_init_region): Improve debug message.
42997 2008-01-21 Robert Millan <rmh@aybabtu.com>
42999 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
43000 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
43002 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
43004 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
43005 Indicates start of upper memory.
43006 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
43007 (generate_image): Abort when image size is big enough to corrupt
43010 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
43011 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
43012 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43013 instead of hardcoding 0xA0000.
43014 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
43015 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43016 instead of hardcoding 0xA0000.
43018 2008-01-21 Robert Millan <rmh@aybabtu.com>
43020 * disk/memdisk.c (memdisk_size): New variable.
43021 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
43023 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
43024 image to dynamic memory.
43025 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
43026 `memdisk_size'. Free memdisk block.
43028 2008-01-21 Robert Millan <rmh@aybabtu.com>
43030 Fix detection of very small filesystems (like tar).
43032 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
43033 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
43034 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
43035 a problem with this disk).
43037 2008-01-21 Robert Millan <rmh@aybabtu.com>
43039 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
43040 on grub_biosdisk_rw_standard() error.
43042 2008-01-21 Robert Millan <rmh@aybabtu.com>
43044 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
43046 * kern/elf.c: Likewise.
43047 * kern/ieee1275/ieee1275.c: Likewise.
43048 * kern/powerpc/ieee1275/openfw.c: Likewise.
43049 * term/ieee1275/ofconsole.c: Likewise.
43051 2008-01-21 Robert Millan <rmh@aybabtu.com>
43053 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
43055 * include/grub/kernel.h (grub_arch_memdisk_addr)
43056 (grub_arch_memdisk_size): Moved from here ...
43058 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
43059 (grub_arch_memdisk_size): ... to here.
43061 2008-01-21 Robert Millan <rmh@aybabtu.com>
43063 Mostly based on bugfix from Bean.
43065 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
43066 attribute with hook() parameter.
43067 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
43069 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
43070 attribute with hook() parameter.
43071 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
43074 2008-01-21 Robert Millan <rmh@aybabtu.com>
43076 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43077 (pkglib_MODULES): Add `memdisk.mod'.
43078 (memdisk_mod_SOURCES): New variable.
43079 (memdisk_mod_CFLAGS): Likewise.
43080 (memdisk_mod_LDFLAGS): Likewise.
43082 * disk/memdisk.c: New file.
43084 * include/grub/disk.h (grub_disk_dev_id): Add
43085 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43087 * include/grub/i386/pc/kernel.h
43088 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43089 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43090 (grub_kernel_image_size): New variable declaration.
43091 (grub_total_module_size): Likewise.
43092 (grub_memdisk_image_size): Likewise.
43094 * include/grub/i386/pc/memory.h
43095 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43097 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43098 (grub_arch_memdisk_addr): New variable declaration.
43099 (grub_arch_memdisk_size): Likewise.
43101 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43102 (grub_arch_memdisk_size): Likewise.
43104 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43105 (codestart): Replace hardcoded `0x100000' with
43106 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43108 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43109 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43110 not NULL, append the contents of the file it refers to, at the end of
43111 the compressed kernel image. Initialize `grub_memdisk_image_size'
43112 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43113 (options): Add "memdisk"|'m' option.
43114 (main): Parse --memdisk|-m option, and pass user-provided path as
43115 parameter to generate_image().
43117 2008-01-20 Robert Millan <rmh@aybabtu.com>
43119 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43120 grub_dprintf() calls from here ...
43121 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43123 2008-01-20 Robert Millan <rmh@aybabtu.com>
43125 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43127 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43129 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43130 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43131 `GRUB_IEEE1275_FLAG_REAL_MODE'.
43132 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
43134 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43135 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43137 2008-01-19 Robert Millan <rmh@aybabtu.com>
43139 Get rid of confusing function (superseded by
43140 `grub_ieee1275_get_integer_property')
43141 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43143 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43145 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43146 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
43147 in native endianness from grub_ieee1275_get_integer_property().
43149 2008-01-19 Robert Millan <rmh@aybabtu.com>
43151 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43152 command after "shut-down", since implementations differ on which
43153 the command for halt is.
43155 2008-01-19 Robert Millan <rmh@aybabtu.com>
43157 * include/grub/i386/linuxbios/console.h: Add header protection.
43158 (grub_keyboard_controller_init): New function prototype.
43159 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43160 (KEYBOARD_COMMAND_READ): Likewise.
43161 (KEYBOARD_COMMAND_WRITE): Likewise.
43162 (KEYBOARD_SCANCODE_SET1): Likewise.
43163 (grub_keyboard_controller_write): New function.
43164 (grub_keyboard_controller_read): Likewise.
43165 (grub_keyboard_controller_init): Likewise.
43167 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43168 (grub_console_init): On coreboot/LinuxBIOS, call
43169 grub_keyboard_controller_init().
43171 2008-01-19 Robert Millan <rmh@aybabtu.com>
43173 PowerPC changes provided by Pavel Roskin.
43175 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43176 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43177 don't rely on cmain() doing it.
43178 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43179 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43181 2008-01-16 Robert Millan <rmh@aybabtu.com>
43183 * include/grub/i386/linuxbios/memory.h
43184 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43185 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43186 receive `table_header' as argument. Instead, probe for it in the
43187 known memory ranges where it can be present.
43188 (grub_available_iterate): Do not pass a fixed `table_header' address
43189 to grub_linuxbios_table_iterate().
43191 2008-01-15 Robert Millan <rmh@aybabtu.com>
43193 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43194 * conf/i386-ieee1275.rmk: New file.
43195 * include/grub/i386/ieee1275/console.h: Likewise.
43196 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43197 * include/grub/i386/ieee1275/kernel.h: Likewise.
43198 * include/grub/i386/ieee1275/time.h: Likewise.
43199 * kern/i386/ieee1275/init.c: Likewise.
43200 * kern/i386/ieee1275/startup.S: Likewise.
43202 2008-01-15 Robert Millan <rmh@aybabtu.com>
43204 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43205 when pointers are 32-bit (but still do set it to one when they are
43208 2008-01-15 Robert Millan <rmh@aybabtu.com>
43210 * include/grub/ieee1275/ieee1275.h
43211 (grub_ieee1275_get_integer_property): New function prototype.
43213 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43214 (grub_ieee1275_get_integer_property): New function. Wraps around
43215 grub_ieee1275_get_property() to handle endianness.
43217 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43218 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
43220 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43221 (grub_map): Likewise.
43222 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43224 2008-01-15 Bean <bean123ch@gmail.com>
43226 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43227 (grub_script_execute_cmdline): Reset grub_errno.
43229 * normal/main.c (read_config_file): Reset grub_errno.
43231 * normal/parse.y (script_init): New.
43232 (script): Move function and menuentry here.
43234 (command): Add delimiter at the end of command.
43235 (commands): Adjust to match the new command.
43236 (commandblock): Remove grub_script_lexer_record_start.
43237 (menuentry): Add grub_script_lexer_record_start, use the new commands.
43238 (if): Use the new commands.
43240 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43242 2008-01-15 Robert Millan <rmh@aybabtu.com>
43244 * normal/menu.c (run_menu): Move timeout message from here ...
43245 (print_timeout): ... to here.
43246 (run_menu): Use print_timeout() once during initial draw to print
43247 the whole message, and again in every clock tick to update only
43248 the number of seconds.
43250 2008-01-15 Robert Millan <rmh@aybabtu.com>
43252 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43253 actual size of `available' from grub_ieee1275_get_property(), and
43254 restrict parsing to that bound.
43256 2008-01-15 Christian Franke <franke@computer.org>
43258 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43259 (argp_program_version): Remove variable.
43260 (argp_program_bug_address): Likewise.
43261 (options): Convert from struct argp_option to struct option.
43262 (struct arguments): Remove.
43263 (parse_opt): Remove.
43264 (usage): New function.
43265 (main): Replace struct args members by simple variables.
43266 Replace argp_parse() by getopt_long().
43267 Add switch to evaluate options.
43268 Add missing "(...)" around root_dev in prefix string.
43270 2008-01-14 Robert Millan <rmh@aybabtu.com>
43272 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43273 for grub_ieee1275_exit(), in order to improve portability.
43275 2008-01-14 Robert Millan <rmh@aybabtu.com>
43277 * util/grub.d/10_linux.in (prefix): Define.
43278 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43280 2008-01-13 Pavel Roskin <proski@gnu.org>
43282 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43283 grub_errno if no errors have been detected.
43285 2008-01-12 Robert Millan <rmh@aybabtu.com>
43287 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43288 (grub_util_get_dev_abstraction): New function prototype.
43290 * util/getroot.c: Include `<grub/util/getroot.h>'
43291 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43292 (grub_util_get_dev_abstraction): ... here (new function).
43294 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43295 `PRINT_ABSTRACTION'.
43296 (probe): Probe for abstraction type when requested.
43297 (main): Understand `--target=abstraction'.
43299 * util/i386/efi/grub-install.in: Add abstraction module to core
43300 image when it is found to be necessary.
43301 * util/i386/pc/grub-install.in: Likewise.
43302 * util/powerpc/ieee1275/grub-install.in: Likewise.
43304 * util/update-grub_lib.in (font_path): Return system path without
43305 converting to GRUB path.
43306 * util/update-grub.in: Convert system path returned by font_path()
43307 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43308 abstraction module is needed for loading fonts (if any). Export
43309 that as `GRUB_PRELOAD_MODULES'.
43310 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43313 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43315 Remove some unused code from reiserfs.
43317 * fs/reiserfs.c (struct grub_reiserfs_key)
43318 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43319 (struct grub_reiserfs_node_body): Removed.
43320 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43322 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43324 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43326 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43328 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43330 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43332 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43333 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43334 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43336 2008-01-10 Robert Millan <rmh@aybabtu.com>
43338 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43339 Determines if a file is garbage left by packaging systems, etc.
43340 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43341 for processing /etc/grub.d scripts.
43342 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43343 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43344 as a condition for processing Linux images.
43346 2008-01-10 Pavel Roskin <proski@gnu.org>
43348 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43349 to compile reiserfs.c on PowerPC.
43351 2008-01-10 Robert Millan <rmh@aybabtu.com>
43353 * kern/device.c (grub_device_iterate): Do not abort device iteration
43354 when one of the devices cannot be opened.
43355 * kern/disk.c (grub_disk_open): Do not account previous failures of
43356 unrelated functions when grub_errno is checked for.
43358 2008-01-08 Robert Millan <rmh@aybabtu.com>
43360 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43361 `! grub_linux_is_bzimage', change order of address comparison to make
43362 it more intuitive, and improve "too big zImage" error message.
43364 2008-01-08 Robert Millan <rmh@aybabtu.com>
43366 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43367 `$(update-grub_DATA)'.
43368 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43371 2008-01-07 Robert Millan <rmh@aybabtu.com>
43373 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43374 which instruction is modified by grub-setup during installation
43375 (since it wasn't obvious by only looking at this file).
43377 2008-01-07 Robert Millan <rmh@aybabtu.com>
43379 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43380 listing actual TODO items.
43382 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43384 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43386 (grub_reiserfs_get_key_offset): Likewise.
43387 (grub_reiserfs_set_key_offset): Likewise.
43388 (grub_reiserfs_set_key_type): Likewise.
43389 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
43391 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43392 better to remove the bitfield version completely.
43394 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43396 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43397 allocated from the heap, due to the fshelp implementation.
43398 (grub_reiserfs_dir): Free NODE, due to the same reason.
43400 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43402 Mostly from Vincent Pelletier:
43404 * fs/reiserfs.c: New file.
43406 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43407 (reiserfs_mod_SOURCES): New variable.
43408 (reiserfs_mod_CFLAGS): Likewise.
43409 (reiserfs_mod_LDFLAGS): Likewise.
43411 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43412 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43413 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43416 2008-01-06 Robert Millan <rmh@aybabtu.com>
43418 * normal/color.c: Remove `<grub/env.h>'.
43420 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43422 * include/grub/normal.h: Include <grub/env.h>.
43424 2008-01-05 Robert Millan <rmh@aybabtu.com>
43426 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43427 usage example with `(hd0,1)'.
43428 Reported by Samuel Thibault.
43430 2008-01-05 Robert Millan <rmh@aybabtu.com>
43432 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43433 (grub_linux_boot_zimage): Rename to ...
43434 (grub_linux_boot): ... this.
43435 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43436 (grub_linux_boot_zimage): Conditionalize zImage copy.
43438 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43439 (grub_linux_boot_bzimage): Remove prototype.
43440 (grub_linux_boot_zimage): Rename to ...
43441 (grub_linux_boot): ... this.
43443 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43444 (grub_linux_boot): Remove function.
43446 2008-01-05 Robert Millan <rmh@aybabtu.com>
43448 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43449 (grub_env_write_color_highlight): Likewise.
43450 (grub_wait_after_message): Likewise.
43452 * normal/color.c: New file.
43454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43455 (normal_mod_DEPENDENCIES): Likewise.
43457 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43458 (normal_mod_DEPENDENCIES): Likewise.
43460 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43461 (normal_mod_DEPENDENCIES): Likewise.
43463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43464 (normal_mod_DEPENDENCIES): Likewise.
43466 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43467 for waiting after a message is printed.
43468 * normal/main.c (read_config_file): Likewise.
43469 (grub_normal_init): Register grub_env_write_color_normal() and
43470 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43471 `color_highlight' variables as global.
43473 * normal/menu.c (grub_wait_after_message): New function.
43474 (grub_color_menu_normal): New variable. Replaces ...
43475 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43476 (grub_color_menu_highlight): New variable. Replaces ...
43477 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43478 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43479 `GRUB_TERM_COLOR_STANDARD'.
43480 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43481 `normal_code' and `highlight_code' to `old_color_normal' and
43482 `old_color_highlight', respectively.
43483 (grub_menu_init_page): Update colors when drawing the menu, based on
43484 `menu_color_normal' and `menu_color_highlight' variables.
43485 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43486 a message is printed.
43488 2008-01-05 Robert Millan <rmh@aybabtu.com>
43490 * kern/env.c (grub_env_context_open): Propagate hooks for global
43491 variables to new context.
43493 * kern/main.c (grub_set_root_dev): Export `root' variable.
43495 2008-01-05 Robert Millan <rmh@aybabtu.com>
43497 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
43498 discs unconditionally, since udev and others have options to provide
43501 2008-01-05 Robert Millan <rmh@aybabtu.com>
43503 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43505 2008-01-04 Christian Franke <franke@computer.org>
43507 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43510 2008-01-03 Pavel Roskin <proski@gnu.org>
43512 * kern/i386/linuxbios/init.c: Put "void" to all function
43513 declarations with no arguments.
43514 * kern/powerpc/ieee1275/init.c: Likewise.
43515 * term/i386/pc/at_keyboard.c: Likewise.
43516 * term/i386/pc/vga_text.c: Likewise.
43517 * util/grub-mkdevicemap.c: Likewise.
43519 2008-01-02 Robert Millan <rmh@aybabtu.com>
43521 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43522 message when loaded image is out of bounds.
43523 (grub_multiboot_load_elf64): Likewise.
43525 2008-01-02 Pavel Roskin <proski@gnu.org>
43527 * util/grub.d/10_linux.in: Try version without ".old" when
43528 looking for initrd. It's better to use initrd from the newer
43529 kernel of the same version than no initrd at all.
43531 2008-01-01 Robert Millan <rmh@aybabtu.com>
43533 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43535 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43537 * include/grub/video.h: Added grub_video_unmap_color and
43538 grub_video_get_active_render_target.
43539 (grub_video_adapter): Added unmap_color and get_active_render_target.
43541 * video/video.c: Added grub_video_unmap_color and
43542 grub_video_get_active_render_target.
43543 (grub_video_get_info): Changed method to accept NULL pointer as an
43544 argument to allow detection of active video adapter.
43546 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43547 grub_video_vbe_unmap_color_int.
43548 Added grub_video_vbe_unmap_color and
43549 grub_video_vbe_get_active_render_target.
43550 (grub_video_vbe_adapter): Added unmap_color and
43551 get_active_render_target.
43553 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
43554 with grub_video_vbe_unmap_color_int.
43556 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43557 (DEFAULT_NORMAL_COLOR): Likewise.
43558 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43559 (DEFAULT_FG_COLOR): Removed.
43560 (DEFAULT_BG_COLOR): Likewise.
43561 (DEFAULT_CURSOR_COLOR): Changed value.
43562 (grub_virtual_screen): Added standard_color_setting,
43563 normal_color_setting, highlight_color_setting and term_color.
43564 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43565 (bitmap_width): Added.
43566 (bitmap_height): Likewise.
43567 (bitmap): Likewise.
43568 (set_term_color): Likewise.
43569 (grub_virtual_screen_setup): Changed to use new terminal coloring
43571 (grub_gfxterm_init): Added init for bitmap.
43572 (grub_gfxterm_fini): Added destroy for bitmap.
43573 (redraw_screen_rect): Updated to use background bitmap and new
43575 (scroll_up): Added optimization for case when there is no bitmap.
43576 (grub_gfxterm_cls): Fixed to use correct background color.
43577 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43579 (grub_virtual_screen_setcolor): Likewise.
43580 (grub_virtual_screen_getcolor): Added.
43581 (grub_gfxterm_background_image_cmd): Likewise.
43582 (grub_video_term): Added setcolor and getcolor.
43583 (MOD_INIT): Added registration of background_image command.
43584 (MOD_TERM): Added unregistration for background_image command.
43586 2007-12-30 Pavel Roskin <proski@gnu.org>
43588 * loader/multiboot_loader.c: Fix multiboot command
43589 unregistration. Fix all typos in the word "multiboot".
43591 2007-12-29 Pavel Roskin <proski@gnu.org>
43593 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43594 support for initrd names used in Fedora.
43596 2007-12-26 Bean <bean123ch@gmail.com>
43598 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43599 (cpio_mod_SOURCES): New variable.
43600 (cpio_mod_CFLAGS): Likewise.
43601 (cpio_mod_LDFLAGS): Likewise.
43603 * fs/cpio.c: New file.
43605 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43607 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43609 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43613 2007-12-25 Robert Millan <rmh@aybabtu.com>
43615 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43616 (grub_getcolor): New function.
43618 * kern/term.c (grub_getcolor): New function.
43619 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43620 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43621 (print_entry): Set normal and highlight colors to
43622 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43623 respectively, before printing and restore them to old
43625 (grub_menu_init_page): Likewise. Fill an additional colored space
43626 that would otherwise be left blank.
43628 * term/efi/console.c (grub_console_getcolor): New function.
43629 (struct grub_console_term.getcolor): New variable.
43630 * term/i386/pc/console.c (grub_console_getcolor): New function.
43631 (struct grub_console_term.getcolor): New variable.
43632 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43633 (struct grub_console_term.getcolor): New variable.
43635 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43636 (struct grub_console_term.setcolor): Remove variable.
43637 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43638 (struct grub_console_term.setcolor): Remove variable.
43639 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43640 (struct grub_console_term.setcolor): Remove variable.
43641 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43642 (struct grub_console_term.setcolor): Remove variable.
43644 2007-12-25 Robert Millan <rmh@aybabtu.com>
43646 * configure.ac: Search for possible unifont.hex locations, and
43647 define UNIFONT_HEX if found.
43649 * Makefile.in (UNIFONT_HEX): Define variable.
43650 (DATA): Rename to ...
43651 (PKGLIB): ... this. Update all users.
43652 (PKGDATA): New variable.
43653 (pkgdata_IMAGES): Rename to ...
43654 (pkglib_IMAGES): ... this. Update all users.
43655 (pkgdata_MODULES): Rename to ...
43656 (pkglib_MODULES): ... this. Update all users.
43657 (pkgdata_PROGRAMS): Rename to ...
43658 (pkglib_PROGRAMS): ... this. Update all users.
43659 (pkgdata_DATA): Rename to ...
43660 (pkglib_DATA): ... this. Update all users.
43661 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43662 (unicode.pff, ascii.pff): New rules.
43663 (all-local): Add `$(PKGDATA)' dependency.
43664 (install-local): Process `$(PKGDATA)'.
43666 * util/update-grub_lib.in (font_path): Search for *.pff files in
43667 a few more locations, including `${pkgdata}'.
43669 2007-12-23 Robert Millan <rmh@aybabtu.com>
43671 Patch from Bean <bean123ch@gmail.com>:
43672 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43675 2007-12-21 Bean <bean123ch@gmail.com>
43677 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43678 (ntfscomp_mod_SOURCES): New variable.
43679 (ntfscomp_mod_CFLAGS): Likewise.
43680 (ntfscomp_mod_LDFLAGS): Likewise.
43682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43683 (grub_probe_SOURCES): Likewise.
43684 (grub_emu_SOURCES): Likewise.
43686 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43687 (grub_emu_SOURCES): Likewise.
43689 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43690 (grub_emu_SOURCES): Likewise.
43692 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43693 (grub_emu_SOURCES): Likewise.
43695 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43696 (read_run_list): Renamed to grub_ntfs_read_run_list.
43697 (decomp_nextvcn): Moved to ntfscomp.c.
43698 (decomp_getch): Likewise.
43699 (decomp_get16): Likewise.
43700 (decomp_block): Likewise.
43701 (read_block): Likewise.
43702 (read_data): Partially moved to ntfscomp.c.
43703 (fixup): Change unsigned to grub_uint16_t.
43704 (read_mft): Change unsigned long to grub_uint32_t.
43705 (read_attr): Likewise.
43706 (read_data): Likewise.
43707 (read_run_data): Likewise.
43708 (read_run_list): Likewise.
43709 (read_mft): Likewise.
43711 * fs/ntfscomp.c: New file.
43713 * include/grub/ntfs.h: New file.
43715 2007-12-16 Robert Millan <rmh@aybabtu.com>
43717 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43718 IDE disk check, since Linux is known to support 20 IDE disks.
43719 Reported by Colin Watson.
43721 2007-12-15 Bean <bean123ch@gmail.com>
43723 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43724 (lnxboot_img_SOURCES): New variable.
43725 (lnxboot_img_ASFLAGS): Likewise.
43726 (lnxboot_img_LDFLAGS): Likewise.
43728 * boot/i386/pc/lnxboot.S: New file.
43730 2007-11-24 Pavel Roskin <proski@gnu.org>
43732 * configure.ac: Test if '--build-id=none' is supported by the
43733 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43734 objcopy to generate incorrect binary files (binutils
43735 2.17.50.0.18-1 as shipped by Fedora 8).
43736 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43737 linking, so that build ID doesn't break the test.
43739 2007-11-24 Pavel Roskin <proski@gnu.org>
43741 * include/grub/i386/time.h: use "void" in the argument list
43742 of grub_cpu_idle().
43743 * include/grub/powerpc/time.h: Likewise.
43744 * include/grub/sparc64/time.h: Likewise.
43746 2007-11-18 Christian Franke <franke@computer.org>
43748 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43749 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43750 This fixes the problem that function keys did not work in grub-emu.
43752 2007-11-18 Christian Franke <franke@computer.org>
43754 * disk/host.c (grub_host_open): Remove attribute unused from
43755 name parameter. Add check for "host". This fixes the problem
43756 that grub-emu does not find partitions.
43758 2007-11-18 Christian Franke <franke@computer.org>
43760 * util/hostfs.c (is_dir): New function.
43761 (grub_hostfs_dir): Handle missing dirent.d_type case.
43762 (grub_hostfs_read): Add missing fseek().
43763 (grub_hostfs_label): Clear label pointer. This fixes a crash
43764 of grub-emu on "ls (host)".
43766 2007-11-18 Christian Franke <franke@computer.org>
43768 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43769 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43770 to 64 bit boundary by default.
43772 2007-11-18 Bean <bean123ch@gmail.com>
43774 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43775 (hexdump_mod_SOURCES): New variable.
43776 (hexdump_mod_CFLAGS): Likewise.
43777 (hexdump_mod_LDFLAGS): Likewise.
43779 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43781 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43783 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43785 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43787 * include/grub/hexdump.h: New file.
43789 * commands/hexdump.c: New file.
43791 2007-11-10 Robert Millan <rmh@aybabtu.com>
43793 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43794 in grub_outb() calls.
43795 (beep_on): Likewise.
43797 2007-11-10 Christian Franke <franke@computer.org>
43799 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43800 (grub_menu_run): Likewise.
43802 2007-11-10 Robert Millan <rmh@aybabtu.com>
43804 * include/grub/i386/efi/machine.h: New file.
43805 * include/grub/i386/linuxbios/machine.h: Likewise.
43806 * include/grub/i386/pc/machine.h: Likewise.
43807 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43808 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43810 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43811 (serial_hw_io_addr): New variable.
43812 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43813 instead of `(unsigned short *) 0x400'.
43815 2007-11-10 Bean <bean123ch@gmail.com>
43817 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43819 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43821 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43822 (vga_mod_SOURCES): Added.
43823 (vga_mod_CFLAGS): Likewise.
43824 (vga_mod_LDFLAGS): Likewise.
43826 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43828 (set_map_mask): Likewise.
43829 (set_read_map): Likewise.
43830 (set_read_address): Likewise.
43831 (vga_font): Removed variable.
43832 (get_vga_glyph): Removed function.
43833 (invalidate_char): Likewise.
43834 (write_char): Changed to use grub_font_get_glyph() for font
43836 (grub_vga_putchar): Likewise.
43837 (grub_vga_getcharwidth): Likewise.
43839 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43841 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43843 (pxeboot_img_LDFLAGS): Likewise.
43844 (diskboot_img_LDFLAGS): Likewise.
43845 (kernel_img_LDFLAGS): Likewise.
43847 2007-11-06 Robert Millan <rmh@aybabtu.com>
43849 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43850 in grub_outb() calls.
43851 (serial_hw_init): Likewise.
43853 2007-11-05 Robert Millan <rmh@aybabtu.com>
43855 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43856 spaces. Skip non-regular files.
43858 2007-11-05 Robert Millan <rmh@aybabtu.com>
43860 * kern/disk.c (grub_disk_firmware_fini)
43861 (grub_disk_firmware_is_tainted): New variables.
43863 * include/grub/disk.h (grub_disk_firmware_fini)
43864 (grub_disk_firmware_is_tainted): Likewise.
43866 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43867 (grub_disk_biosdisk_fini): ... to here.
43868 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43869 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43870 is set. Register grub_disk_biosdisk_fini() in
43871 `grub_disk_firmware_fini'.
43873 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43874 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43875 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43876 to finish existing firmware disk interface.
43878 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43879 (ata_mod_SOURCES): New variable.
43880 (ata_mod_CFLAGS): Likewise.
43881 (ata_mod_LDFLAGS): Likewise.
43883 2007-11-05 Robert Millan <rmh@aybabtu.com>
43885 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43886 (grub_ata_wait): Reimplement using grub_millisleep().
43888 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43889 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43891 2007-11-03 Marco Gerards <marco@gnu.org>
43893 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43894 (CRTC_ADDR_PORT): New macro.
43895 (CRTC_DATA_PORT): Likewise.
43896 (CRTC_CURSOR): Likewise.
43897 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43898 (CRTC_CURSOR_ADDR_LOW): Likewise.
43899 (update_cursor): New function.
43900 (grub_console_real_putchar): Call `update_cursor'.
43901 (grub_console_gotoxy): Likewise.
43902 (grub_console_cls): Set the default color when clearing the
43904 (grub_console_setcursor): Implemented.
43906 2007-11-03 Marco Gerards <marco@gnu.org>
43908 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43910 (grub_ata_pio_write): Likewise.
43912 (grub_atapi_identify): Wait after issuing an ATA command.
43913 (grub_atapi_packet): Likewise.
43914 (grub_ata_identify): Likewise.
43915 (grub_ata_readwrite): Likewise.
43917 2007-11-03 Marco Gerards <marco@gnu.org>
43919 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43920 (grub_ata_pio_write): Likewise.
43921 (grub_ata_readwrite): Use `grub_error', instead of
43922 returning `grub_errno'.
43924 2007-11-03 Marco Gerards <marco@gnu.org>
43926 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43927 grub_ata_pio_write once for every single sector, instead of for
43930 2007-10-31 Robert Millan <rmh@aybabtu.com>
43932 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43934 * conf/i386-linuxbios.rmk: New file.
43936 * kern/i386/pc/hardware.c: Likewise.
43937 * term/i386/pc/at_keyboard.c: Likewise.
43938 * term/i386/pc/vga_text.c: Likewise.
43940 * include/grub/i386/linuxbios/boot.h: Likewise.
43941 * include/grub/i386/linuxbios/console.h: Likewise.
43942 * include/grub/i386/linuxbios/init.h: Likewise.
43943 * include/grub/i386/linuxbios/kernel.h: Likewise.
43944 * include/grub/i386/linuxbios/loader.h: Likewise.
43945 * include/grub/i386/linuxbios/memory.h: Likewise.
43946 * include/grub/i386/linuxbios/serial.h: Likewise.
43947 * include/grub/i386/linuxbios/time.h: Likewise.
43949 * kern/i386/linuxbios/init.c: Likewise.
43950 * kern/i386/linuxbios/startup.S: Likewise.
43951 * kern/i386/linuxbios/table.c: Likewise.
43953 2007-10-31 Marco Gerards <marco@gnu.org>
43955 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43956 (ata_mod_SOURCES): New variable.
43957 (ata_mod_CFLAGS): Likewise.
43958 (ata_mod_LDFLAGS): Likewise.
43960 * disk/ata.c: New file.
43962 * include/grub/disk.h (grub_disk_dev_id): Add
43963 `GRUB_DISK_DEV_ATA_ID'.
43965 2007-10-31 Robert Millan <rmh@aybabtu.com>
43967 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43968 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43970 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43971 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43973 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43976 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43978 2007-10-27 Robert Millan <rmh@aybabtu.com>
43980 * include/grub/types.h (ULONG_MAX): Define macro.
43982 2007-10-22 Robert Millan <rmh@aybabtu.com>
43984 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43986 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43988 2007-10-22 Robert Millan <rmh@aybabtu.com>
43990 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43991 (pkgdata_MODULES): Add `biosdisk.mod'.
43992 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43995 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43996 (grub_biosdisk_init): Replace with ...
43997 (GRUB_MOD_INIT(biosdisk)): ... this.
43998 (grub_biosdisk_fini): Replace with ...
43999 (GRUB_MOD_FINI(biosdisk)): ... this.
44001 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
44002 (grub_machine_init): Remove call to grub_biosdisk_init().
44003 (grub_machine_fini): Remove call to grub_machine_fini().
44005 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
44007 2007-10-22 Robert Millan <rmh@aybabtu.com>
44009 * include/grub/time.h: New file.
44010 * include/grub/i386/time.h: Likewise.
44011 * include/grub/powerpc/time.h: Likewise.
44012 * include/grub/sparc64/time.h: Likewise.
44014 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
44016 (KERNEL_MACHINE_TIME_HEADER): ... this.
44017 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44019 (KERNEL_MACHINE_TIME_HEADER): ... this.
44020 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44022 (KERNEL_MACHINE_TIME_HEADER): ... this.
44024 * kern/i386/efi/init.c: Include `<grub/time.h>'.
44025 (grub_millisleep): New function.
44026 * kern/i386/pc/init.c: Include `<grub/time.h>'.
44027 (grub_millisleep): New function.
44028 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
44029 Remove `grub/machine/time.h' include.
44030 (grub_millisleep): New function.
44031 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
44032 Remove `grub/machine/time.h' include.
44033 (grub_millisleep): New function.
44035 * include/grub/misc.h (grub_div_roundup): New function.
44037 * kern/misc.c: Include `<grub/time.h>'.
44038 (grub_millisleep_generic): New function.
44040 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
44042 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
44044 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
44045 `machine/time.h'. Add `time.h'.
44046 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44048 2007-10-21 Robert Millan <rmh@aybabtu.com>
44050 * include/grub/misc.h (grub_max): New function.
44052 2007-10-21 Robert Millan <rmh@aybabtu.com>
44054 * util/misc.c (grub_util_info): Call fflush() before returning.
44056 2007-10-20 Robert Millan <rmh@aybabtu.com>
44058 * genmk.rb (Image): Copy `extra_flags' from here ...
44059 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
44061 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
44062 to `argc' and `args' arguments.
44064 2007-10-17 Robert Millan <rmh@aybabtu.com>
44066 * kern/i386/loader.S: New file.
44068 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
44069 * kern/i386/loader.S (grub_linux_prot_size)... to here.
44070 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
44071 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
44072 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
44073 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44074 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44075 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44076 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44077 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44078 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44079 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44080 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44081 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44083 * kern/i386/realmode.S: New file.
44085 * kern/i386/pc/startup.S (protstack): Moved from here ...
44086 * kern/i386/realmode.S (protstack)... to here.
44087 * kern/i386/pc/startup.S (gdt): Moved from here ...
44088 * kern/i386/realmode.S (gdt)... to here.
44089 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44090 * kern/i386/realmode.S (prot_to_real)... to here.
44092 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44093 `kern/i386/realmode.S'.
44095 2007-10-17 Robert Millan <rmh@aybabtu.com>
44097 * include/grub/i386/loader.h: New file.
44099 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44100 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44101 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44102 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44103 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44104 * include/grub/i386/loader.h (grub_linux_prot_size)
44105 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44106 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44107 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44108 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44110 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44112 2007-10-15 Robert Millan <rmh@aybabtu.com>
44114 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44115 filesystem when dev->disk is unset.
44116 Do probe for filesystem even when dev->disk->has_partitions is set.
44117 In case a filesystem is found, always report it.
44118 In case it isn't, if dev->disk->has_partitions is set, report that
44119 a partition table was found instead of reporting that no filesystem
44120 could be identified.
44122 2007-10-12 Robert Millan <rmh@aybabtu.com>
44124 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44125 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44127 * include/grub/types.h (grub_host_to_target16): New macro.
44128 (grub_host_to_target32): Likewise.
44129 (grub_host_to_target64): Likewise.
44130 (grub_target_to_host16): Likewise.
44131 (grub_target_to_host32): Likewise.
44132 (grub_target_to_host64): Likewise.
44134 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44135 Renamed from to ...
44136 (GRUB_MOD_ALIGN): ...this. Update all users.
44138 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44139 grub_host_to_target32.
44140 Replace grub_be_to_cpu32 with grub_target_to_host32.
44141 (load_modules): Likewise.
44142 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44143 Replace grub_be_to_cpu32 with grub_target_to_host32.
44144 Replace grub_cpu_to_be16 with grub_host_to_target16.
44145 Replace grub_cpu_to_be32 grub_host_to_target32.
44147 2007-10-12 Robert Millan <rmh@aybabtu.com>
44149 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44150 * util/elf/grub-mkimage.c: ... here.
44152 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44153 `util/powerpc/ieee1275/grub-mkimage.c'.
44155 2007-10-07 Robert Millan <rmh@aybabtu.com>
44157 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44158 and make it easier to figure out.
44159 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44160 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44161 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44162 leave us with less than HEAP_MIN_SIZE total heap.
44163 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
44165 2007-10-03 Robert Millan <rmh@aybabtu.com>
44167 * include/grub/i386/io.h: New file.
44168 * commands/i386/pc/play.c (inb): Removed.
44170 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44172 * term/i386/pc/serial.c (inb): Removed.
44174 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44176 * term/i386/pc/vga.c (inb): Removed.
44178 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44181 2007-10-02 Robert Millan <rmh@aybabtu.com>
44183 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44185 Reported by Marcin Kurek.
44187 2007-09-07 Robert Millan <rmh@aybabtu.com>
44189 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44190 SmartFirmware version updates (as released by Sven Luther), and avoid
44191 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44192 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44195 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44197 From Hitoshi Ozeki:
44198 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44199 when merging two regions.
44201 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44203 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44204 * normal/completion.c (grub_normal_do_completion): Likewise.
44205 Reported by Hitoshi Ozeki.
44207 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44209 Do not use devices at boot in chainloading.
44211 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44212 (boot_part_addr): Likewise.
44213 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44214 with BOOT_DRIVE and BOOT_PART_ADDR.
44215 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44216 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44218 2007-08-29 Robert Millan <rmh@aybabtu.com>
44220 Patch from Simon Peter <dn.tlp@gmx.net>:
44221 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44222 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44223 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44224 util/i386/pc/grub-setup.c_DEPENDENCIES.
44225 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44226 util/grub-probe.c_DEPENDENCIES.
44227 * conf/powerpc-ieee1275.rmk: Likewise.
44229 2007-08-28 Robert Millan <rmh@aybabtu.com>
44231 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44232 to tell grub-mkdevicemap how to name devices.
44233 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44236 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44237 util/i386/get_disk_name.c.
44238 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44239 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44240 util/ieee1275/get_disk_name.c.
44242 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44244 * DISTLIST: Add util/i386/get_disk_name.c and
44245 util/ieee1275/get_disk_name.c.
44247 * util/grub-mkdevicemap.c: Replace device naming logic with
44248 grub_util_get_disk_name() calls.
44250 2007-08-20 Robert Millan <rmh@aybabtu.com>
44252 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44253 (so that it works for both plural and singular quantities).
44255 2007-08-05 Robert Millan <rmh@aybabtu.com>
44257 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44258 so that [xz] isn't taken into account when determining order.
44260 2007-08-02 Marco Gerards <marco@gnu.org>
44262 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44263 `include/multiboot2.h', `include/grub/elfload.h',
44264 `include/multiboot.h', `include/grub/multiboot.h',
44265 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44266 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44267 `kern/elf.c', `loader/multiboot_loader.c',
44268 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44269 `loader/i386/pc/multiboot2.c',
44270 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44271 `util/i386/pc/grub-mkrescue.in'. Remove
44272 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44273 `include/grub/i386/pc/util/biosdisk.h' and
44274 `include/grub/powerpc/ieee1275/multiboot.h'.
44276 2007-08-02 Bean <bean123ch@gmail.com>
44278 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44279 (ntfs_mod_SOURCES): New variable.
44280 (ntfs_mod_CFLAGS): Likewise.
44281 (ntfs_mod_LDFLAGS): Likewise.
44283 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44284 (grub_probe_SOURCES): Likewise.
44285 (grub_emu_SOURCES): Likewise.
44287 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44288 (grub_emu_SOURCES): Likewise.
44290 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44291 (grub_emu_SOURCES): Likewise.
44293 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44295 * fs/ntfs.c: New file.
44297 2007-08-02 Bean <bean123ch@gmail.com>
44299 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44301 * file.h (grub_file): Likewise.
44303 * fshelp.h (grub_fshelp_read_file): Likewise.
44305 * util/i386/pc/grub-setup.c (setup): Likewise.
44306 (save_first_sector): Likewise.
44307 (save_blocklists): Likewise.
44309 * fs/affs.c (grub_affs_read_file): Likewise.
44311 * fs/ext2.c (grub_ext2_read_file): Likewise.
44313 * fs/fat.c (grub_fat_read_data): Likewise.
44315 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44317 * fs/hfs.c (grub_hfs_read_file): Likewise.
44319 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44321 * fs/jfs.c (grub_jfs_read_file): Likewise.
44323 * fs/minix.c (grub_minix_read_file): Likewise.
44325 * fs/sfs.c (grub_sfs_read_file): Likewise.
44327 * fs/ufs.c (grub_ufs_read_file): Likewise.
44329 * fs/xfs.c (grub_xfs_read_file): Likewise.
44331 * command/blocklist.c (read_blocklist): Likewise.
44332 (print_blocklist): Likewise.
44334 2007-08-02 Marco Gerards <marco@gnu.org>
44336 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44339 * disk/host.c: New file.
44341 * util/hostfs.c: Likewise.
44343 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44344 return `GRUB_ERR_BAD_FS'.
44345 * fs/sfs.c (grub_sfs_mount): Likewise.
44346 * fs/xfs.c (grub_xfs_mount): Likewise.
44348 * include/grub/disk.h (enum grub_disk_dev_id): Add
44349 `GRUB_DISK_DEVICE_HOST_ID'.
44351 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44353 2007-07-24 Jerone Young <jerone@gmail.com>
44355 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
44356 modules for compilation.
44357 * conf/powerpc-ieee1275.rmk: Likewise.
44359 * include/multiboot.h: Move multiboot definitions to one file. Rename
44360 many definitions to not get grub specific.
44361 * include/multiboot2.h: Create header with multiboot 2 definitions.
44362 * include/grub/multiboot.h: Header for grub specific function
44363 prototypes and definitions.
44364 * include/grub/multiboot2.h: Likewise.
44365 * include/grub/multiboot_loader.h: Likewise.
44366 * include/grub/i386/pc/multiboot.h: Removed.
44367 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44369 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44370 and 2 to allow for one multiboot and module commands.
44371 * loader/multiboot2.c: Add multiboot2 functionality.
44372 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44373 and definition names.
44374 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44376 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44377 ieee1275 specific multiboot2 code.
44379 * kern/i386/pc/startup.S: Change headers and definition names for
44380 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44382 2007-07-22 Robert Millan <rmh@aybabtu.com>
44384 * geninitheader.sh: Process file specified in first parameter rather
44385 than hardcoding grub_modules_init.lst.
44386 * geninit.sh: Likewise. Also, construct header name dynamically rather
44387 than hardcoding grub_modules_init.h.
44389 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44390 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44391 grub_probe_init.[ch] and grub_setup_init.[ch].
44393 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44394 grub_modules_init.h with grub_emu_init.h.
44395 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44396 grub_probe_init.[ch] files.
44397 * conf/i386-efi.rmk: Likewise.
44398 * conf/i386-pc.rmk: Likewise.
44399 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44400 grub_setup_init.[ch] files.
44402 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44403 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44404 to initialize modules rather than a list of hardcoded functions.
44405 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44406 grub_init_all() to initialize modules rather than a list of hardcoded
44409 2007-07-22 Robert Millan <rmh@aybabtu.com>
44411 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44412 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44414 2007-07-22 Robert Millan <rmh@aybabtu.com>
44416 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44417 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44418 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44419 flag when running on SmartFirmware.
44420 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44421 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44424 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44425 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44426 rather than decreasing it.
44428 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44429 there's not enough space to do it, fail in the same way as when it
44430 can't be done because there are no partitions.
44432 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44433 when nvsetenv failed.
44435 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44437 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44438 because this rule is automatically generated.
44439 (grub-mkrescue): Removed for the same reason as above.
44441 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44443 Migrate to GNU General Public License Version 3.
44445 * COPYING: Replaced with the plain text version of GPLv3.
44447 * config.guess: Updated from gnulib.
44448 * config.sub: Likewise.
44450 * geninit.sh: Output a GPLv3 copyright notice.
44451 * geninitheader.sh: Likewise.
44452 * genmodsrc.sh: Likewise.
44453 * gensymlist.sh.in: Likewise.
44455 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44456 * boot/i386/pc/diskboot.S: Likewise.
44457 * boot/i386/pc/pxeboot.S: Likewise.
44458 * commands/blocklist.c: Likewise.
44459 * commands/boot.c: Likewise.
44460 * commands/cat.c: Likewise.
44461 * commands/cmp.c: Likewise.
44462 * commands/configfile.c: Likewise.
44463 * commands/echo.c: Likewise.
44464 * commands/help.c: Likewise.
44465 * commands/ls.c: Likewise.
44466 * commands/search.c: Likewise.
44467 * commands/terminal.c: Likewise.
44468 * commands/test.c: Likewise.
44469 * commands/videotest.c: Likewise.
44470 * commands/i386/cpuid.c: Likewise.
44471 * commands/i386/pc/halt.c: Likewise.
44472 * commands/i386/pc/play.c: Likewise.
44473 * commands/i386/pc/reboot.c: Likewise.
44474 * commands/i386/pc/vbeinfo.c: Likewise.
44475 * commands/i386/pc/vbetest.c: Likewise.
44476 * commands/ieee1275/halt.c: Likewise.
44477 * commands/ieee1275/reboot.c: Likewise.
44478 * commands/ieee1275/suspend.c: Likewise.
44479 * disk/loopback.c: Likewise.
44480 * disk/lvm.c: Likewise.
44481 * disk/raid.c: Likewise.
44482 * disk/efi/efidisk.c: Likewise.
44483 * disk/i386/pc/biosdisk.c: Likewise.
44484 * disk/ieee1275/ofdisk.c: Likewise.
44485 * font/manager.c: Likewise.
44486 * fs/affs.c: Likewise.
44487 * fs/ext2.c: Likewise.
44488 * fs/fat.c: Likewise.
44489 * fs/fshelp.c: Likewise.
44490 * fs/hfs.c: Likewise.
44491 * fs/hfsplus.c: Likewise.
44492 * fs/iso9660.c: Likewise.
44493 * fs/jfs.c: Likewise.
44494 * fs/minix.c: Likewise.
44495 * fs/sfs.c: Likewise.
44496 * fs/ufs.c: Likewise.
44497 * fs/xfs.c: Likewise.
44498 * hello/hello.c: Likewise.
44499 * include/grub/acorn_filecore.h: Likewise.
44500 * include/grub/arg.h: Likewise.
44501 * include/grub/bitmap.h: Likewise.
44502 * include/grub/boot.h: Likewise.
44503 * include/grub/cache.h: Likewise.
44504 * include/grub/device.h: Likewise.
44505 * include/grub/disk.h: Likewise.
44506 * include/grub/dl.h: Likewise.
44507 * include/grub/elfload.h: Likewise.
44508 * include/grub/env.h: Likewise.
44509 * include/grub/err.h: Likewise.
44510 * include/grub/file.h: Likewise.
44511 * include/grub/font.h: Likewise.
44512 * include/grub/fs.h: Likewise.
44513 * include/grub/fshelp.h: Likewise.
44514 * include/grub/gzio.h: Likewise.
44515 * include/grub/hfs.h: Likewise.
44516 * include/grub/kernel.h: Likewise.
44517 * include/grub/loader.h: Likewise.
44518 * include/grub/lvm.h: Likewise.
44519 * include/grub/misc.h: Likewise.
44520 * include/grub/mm.h: Likewise.
44521 * include/grub/net.h: Likewise.
44522 * include/grub/normal.h: Likewise.
44523 * include/grub/parser.h: Likewise.
44524 * include/grub/partition.h: Likewise.
44525 * include/grub/pc_partition.h: Likewise.
44526 * include/grub/raid.h: Likewise.
44527 * include/grub/rescue.h: Likewise.
44528 * include/grub/script.h: Likewise.
44529 * include/grub/setjmp.h: Likewise.
44530 * include/grub/symbol.h: Likewise.
44531 * include/grub/term.h: Likewise.
44532 * include/grub/terminfo.h: Likewise.
44533 * include/grub/tparm.h: Likewise.
44534 * include/grub/types.h: Likewise.
44535 * include/grub/video.h: Likewise.
44536 * include/grub/efi/api.h: Likewise.
44537 * include/grub/efi/chainloader.h: Likewise.
44538 * include/grub/efi/console.h: Likewise.
44539 * include/grub/efi/console_control.h: Likewise.
44540 * include/grub/efi/disk.h: Likewise.
44541 * include/grub/efi/efi.h: Likewise.
44542 * include/grub/efi/pe32.h: Likewise.
44543 * include/grub/efi/time.h: Likewise.
44544 * include/grub/i386/linux.h: Likewise.
44545 * include/grub/i386/setjmp.h: Likewise.
44546 * include/grub/i386/types.h: Likewise.
44547 * include/grub/i386/efi/kernel.h: Likewise.
44548 * include/grub/i386/efi/loader.h: Likewise.
44549 * include/grub/i386/efi/time.h: Likewise.
44550 * include/grub/i386/pc/biosdisk.h: Likewise.
44551 * include/grub/i386/pc/boot.h: Likewise.
44552 * include/grub/i386/pc/chainloader.h: Likewise.
44553 * include/grub/i386/pc/console.h: Likewise.
44554 * include/grub/i386/pc/init.h: Likewise.
44555 * include/grub/i386/pc/kernel.h: Likewise.
44556 * include/grub/i386/pc/loader.h: Likewise.
44557 * include/grub/i386/pc/memory.h: Likewise.
44558 * include/grub/i386/pc/multiboot.h: Likewise.
44559 * include/grub/i386/pc/serial.h: Likewise.
44560 * include/grub/i386/pc/time.h: Likewise.
44561 * include/grub/i386/pc/vbe.h: Likewise.
44562 * include/grub/i386/pc/vbeblit.h: Likewise.
44563 * include/grub/i386/pc/vbefill.h: Likewise.
44564 * include/grub/i386/pc/vbeutil.h: Likewise.
44565 * include/grub/i386/pc/vga.h: Likewise.
44566 * include/grub/ieee1275/ieee1275.h: Likewise.
44567 * include/grub/ieee1275/ofdisk.h: Likewise.
44568 * include/grub/powerpc/libgcc.h: Likewise.
44569 * include/grub/powerpc/setjmp.h: Likewise.
44570 * include/grub/powerpc/types.h: Likewise.
44571 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44572 * include/grub/powerpc/ieee1275/console.h: Likewise.
44573 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44574 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44575 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44576 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44577 * include/grub/powerpc/ieee1275/time.h: Likewise.
44578 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44579 * include/grub/sparc64/libgcc.h: Likewise.
44580 * include/grub/sparc64/setjmp.h: Likewise.
44581 * include/grub/sparc64/types.h: Likewise.
44582 * include/grub/sparc64/ieee1275/console.h: Likewise.
44583 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44584 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44585 * include/grub/sparc64/ieee1275/time.h: Likewise.
44586 * include/grub/util/biosdisk.h: Likewise.
44587 * include/grub/util/getroot.h: Likewise.
44588 * include/grub/util/lvm.h: Likewise.
44589 * include/grub/util/misc.h: Likewise.
44590 * include/grub/util/raid.h: Likewise.
44591 * include/grub/util/resolve.h: Likewise.
44592 * io/gzio.c: Likewise.
44593 * kern/device.c: Likewise.
44594 * kern/disk.c: Likewise.
44595 * kern/dl.c: Likewise.
44596 * kern/elf.c: Likewise.
44597 * kern/env.c: Likewise.
44598 * kern/err.c: Likewise.
44599 * kern/file.c: Likewise.
44600 * kern/fs.c: Likewise.
44601 * kern/loader.c: Likewise.
44602 * kern/main.c: Likewise.
44603 * kern/misc.c: Likewise.
44604 * kern/mm.c: Likewise.
44605 * kern/parser.c: Likewise.
44606 * kern/partition.c: Likewise.
44607 * kern/rescue.c: Likewise.
44608 * kern/term.c: Likewise.
44609 * kern/efi/efi.c: Likewise.
44610 * kern/efi/init.c: Likewise.
44611 * kern/efi/mm.c: Likewise.
44612 * kern/i386/dl.c: Likewise.
44613 * kern/i386/efi/init.c: Likewise.
44614 * kern/i386/efi/startup.S: Likewise.
44615 * kern/i386/pc/init.c: Likewise.
44616 * kern/i386/pc/lzo1x.S: Likewise.
44617 * kern/i386/pc/startup.S: Likewise.
44618 * kern/ieee1275/ieee1275.c: Likewise.
44619 * kern/powerpc/cache.S: Likewise.
44620 * kern/powerpc/dl.c: Likewise.
44621 * kern/powerpc/ieee1275/cmain.c: Likewise.
44622 * kern/powerpc/ieee1275/crt0.S: Likewise.
44623 * kern/powerpc/ieee1275/init.c: Likewise.
44624 * kern/powerpc/ieee1275/openfw.c: Likewise.
44625 * kern/sparc64/cache.S: Likewise.
44626 * kern/sparc64/dl.c: Likewise.
44627 * kern/sparc64/ieee1275/init.c: Likewise.
44628 * kern/sparc64/ieee1275/openfw.c: Likewise.
44629 * loader/efi/chainloader.c: Likewise.
44630 * loader/efi/chainloader_normal.c: Likewise.
44631 * loader/i386/efi/linux.c: Likewise.
44632 * loader/i386/efi/linux_normal.c: Likewise.
44633 * loader/i386/pc/chainloader.c: Likewise.
44634 * loader/i386/pc/chainloader_normal.c: Likewise.
44635 * loader/i386/pc/linux.c: Likewise.
44636 * loader/i386/pc/linux_normal.c: Likewise.
44637 * loader/i386/pc/multiboot.c: Likewise.
44638 * loader/i386/pc/multiboot_normal.c: Likewise.
44639 * loader/powerpc/ieee1275/linux.c: Likewise.
44640 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44641 * normal/arg.c: Likewise.
44642 * normal/cmdline.c: Likewise.
44643 * normal/command.c: Likewise.
44644 * normal/completion.c: Likewise.
44645 * normal/execute.c: Likewise.
44646 * normal/function.c: Likewise.
44647 * normal/lexer.c: Likewise.
44648 * normal/main.c: Likewise.
44649 * normal/menu.c: Likewise.
44650 * normal/menu_entry.c: Likewise.
44651 * normal/misc.c: Likewise.
44652 * normal/parser.y: Likewise.
44653 * normal/script.c: Likewise.
44654 * normal/i386/setjmp.S: Likewise.
44655 * normal/powerpc/setjmp.S: Likewise.
44656 * normal/sparc64/setjmp.S: Likewise.
44657 * partmap/acorn.c: Likewise.
44658 * partmap/amiga.c: Likewise.
44659 * partmap/apple.c: Likewise.
44660 * partmap/gpt.c: Likewise.
44661 * partmap/pc.c: Likewise.
44662 * partmap/sun.c: Likewise.
44663 * term/gfxterm.c: Likewise.
44664 * term/terminfo.c: Likewise.
44665 * term/efi/console.c: Likewise.
44666 * term/i386/pc/console.c: Likewise.
44667 * term/i386/pc/serial.c: Likewise.
44668 * term/i386/pc/vesafb.c: Likewise.
44669 * term/i386/pc/vga.c: Likewise.
44670 * term/ieee1275/ofconsole.c: Likewise.
44671 * util/biosdisk.c: Likewise.
44672 * util/console.c: Likewise.
44673 * util/genmoddep.c: Likewise.
44674 * util/getroot.c: Likewise.
44675 * util/grub-emu.c: Likewise.
44676 * util/grub-mkdevicemap.c: Likewise.
44677 * util/grub-probe.c: Likewise.
44678 * util/lvm.c: Likewise.
44679 * util/misc.c: Likewise.
44680 * util/raid.c: Likewise.
44681 * util/resolve.c: Likewise.
44682 * util/update-grub.in: Likewise.
44683 * util/update-grub_lib.in: Likewise.
44684 * util/grub.d/00_header.in: Likewise.
44685 * util/grub.d/10_hurd.in: Likewise.
44686 * util/grub.d/10_linux.in: Likewise.
44687 * util/i386/efi/grub-install.in: Likewise.
44688 * util/i386/efi/grub-mkimage.c: Likewise.
44689 * util/i386/pc/grub-install.in: Likewise.
44690 * util/i386/pc/grub-mkimage.c: Likewise.
44691 * util/i386/pc/grub-mkrescue.in: Likewise.
44692 * util/i386/pc/grub-setup.c: Likewise.
44693 * util/i386/pc/misc.c: Likewise.
44694 * util/powerpc/ieee1275/grub-install.in: Likewise.
44695 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44696 * util/powerpc/ieee1275/misc.c: Likewise.
44697 * video/bitmap.c: Likewise.
44698 * video/video.c: Likewise.
44699 * video/i386/pc/vbe.c: Likewise.
44700 * video/i386/pc/vbeblit.c: Likewise.
44701 * video/i386/pc/vbefill.c: Likewise.
44702 * video/i386/pc/vbeutil.c: Likewise.
44703 * video/readers/tga.c: Likewise.
44705 2007-07-02 Robert Millan <rmh@aybabtu.com>
44707 * conf/i386-efi.rmk: Replace obsolete reference to
44708 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44709 with util/getroot.c.
44710 * conf/powerpc-ieee1275.rmk: Likewise.
44711 * conf/sparc64-ieee1275.rmk: Likewise.
44713 * util/grub-emu.c (main): Fix unchecked pointer handling.
44715 2007-07-02 Robert Millan <rmh@aybabtu.com>
44717 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44718 invocation to fail, in order to support partition-less media.
44720 * util/i386/pc/grub-install.in: Likewise.
44722 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44723 which fs or partmap modules are needed (akin to its sister scripts).
44725 Also use grub-probe to get rid of unportable /proc/mounts check.
44727 Print the same informational message that the other scripts do, before
44730 2007-06-23 Robert Millan <rmh@aybabtu.com>
44732 * util/update-grub_lib.in (font_path): New function. Determine whether
44733 a font file can be found and, if so, echo the GRUB path to it.
44735 * util/update-grub.in: Handle multiple terminals depending on user
44736 input, platform availability and font file presence. Propagate
44737 variables of our findings to /etc/grub.d/ children.
44739 * util/grub.d/00_header.in: Handle multiple terminals, based on
44740 environment setup by update-grub.
44742 2007-06-23 Robert Millan <rmh@aybabtu.com>
44744 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
44746 2007-06-21 Robert Millan <rmh@aybabtu.com>
44748 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44749 indicate end of data section in kernel image.
44750 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44751 GRUB_KERNEL_MACHINE_DATA_END.
44753 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44755 * kern/i386/efi/startup.S: Likewise.
44757 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44758 during image generation. Implement --prefix option to override this
44760 * util/i386/efi/grub-mkimage.c: Likewise.
44762 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44763 code to make path relative to its root into a separate function.
44765 * util/i386/pc/grub-install.in: Use newly provided
44766 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44767 pass the result to grub-install --prefix.
44769 2007-06-13 Robert Millan <rmh@aybabtu.com>
44771 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44772 DEFAULT_DEVICE_MAP.
44773 * util/grub-emu.c: Use above definitions from misc.h instead of
44775 * util/grub-mkdevicemap.c: Likewise.
44776 * util/i386/pc/grub-setup.c: Likewise.
44777 * util/grub-probe.c: Likewise.
44778 (probe): Abort with grub_util_error() when either
44779 grub_guess_root_device or grub_util_get_grub_dev fails.
44781 2007-06-12 Robert Millan <rmh@aybabtu.com>
44783 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44784 "pager" assignment.
44785 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44787 * util/grub-probe.c (probe): Likewise for "drive_name".
44789 2007-06-11 Robert Millan <rmh@aybabtu.com>
44791 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44792 not just the cdrom one.
44794 2007-06-11 Robert Millan <rmh@aybabtu.com>
44796 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44797 Add --pkglibdir=DIR option to override pkglibdir.
44798 Mention --image-type=TYPE in help output.
44799 Fix --grub-mkimage (it was a no-op).
44800 Abort gracefully when no parameter is given.
44802 2007-06-11 Robert Millan <rmh@aybabtu.com>
44804 * util/i386/pc/grub-mkrescue.in: New file.
44805 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44806 * Makefile.in: Handle bin_SCRIPTS.
44808 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44810 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44811 list of video modes.
44813 2007-06-06 Robert Millan <rmh@aybabtu.com>
44815 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44816 file doesn't exist, or if it is in a filesystem grub can't read.
44818 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44819 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44820 header comment to fit in 80 columns when the variables are resolved.
44822 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44823 could be identified by update-grub. Remove redundant check for
44824 unifont.pff existence (since convert_system_path_to_grub_path now
44827 2007-06-04 Robert Millan <rmh@aybabtu.com>
44829 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44831 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44833 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44835 2007-06-04 Robert Millan <rmh@aybabtu.com>
44837 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44839 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44840 grub_apple_partition_map_fini.
44843 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44844 to access >2 TiB disks).
44846 Print disk->total_sectors with %llu instead of %lu, since this
44847 variable is always 64-bit (prevents wrong disk size from being displayed
44848 on either >2 TiB disk or big-endian CPU).
44850 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44851 into a generic case that supports all (sane) partition maps.
44853 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44856 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44857 and grub_apple_partition_map_fini() after that.
44859 2007-06-01 Robert Millan <rmh@aybabtu.com>
44861 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44863 * util/grub.d/00_header.in: Only enable gfxterm when
44864 convert_system_path_to_grub_path() succeeds.
44866 2007-05-20 Robert Millan <rmh@aybabtu.com>
44868 * util/update-grub_lib.in: New file.
44869 * DISTLIST: Add update-grub_lib.in.
44870 * conf/common.rmk: Generate update-grub_lib and install it in
44872 * Makefile.in: Add install routine for $(lib_DATA).
44874 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44875 function provided by update-grub_lib to support arbitrary paths of
44877 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44878 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44880 2007-05-19 Robert Millan <rmh@aybabtu.com>
44882 * commands/i386/cpuid.c: New module.
44883 * DISTLIST: Add it.
44884 * conf/i386-efi.rmk: Enable cpuid.mod.
44885 * conf/i386-pc.rmk: Likewise.
44887 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44889 * kern/disk.c (grub_disk_read): Check return value of
44892 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44894 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44896 * disk/raid.c (grub_raid_open): Likewise.
44898 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44900 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44901 stack instead of on the heap.
44903 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44904 before doing a read on it.
44906 * configure.ac: Only use -fno-stack-protector for the target
44909 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44911 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44912 __attribute_ ((unused)) to mode_type argument.
44914 * util/getroot.c (grub_guess_root_device): Fix #endif.
44916 * kern/misc.c (memcmp): Fix prototype.
44918 * include/grub/partition.h [GRUB_UTIL]
44919 (grub_gpt_partition_map_init): Add prototype.
44920 (grub_gpt_partition_map_fini): Likewise.
44922 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44923 at the right place.
44925 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44926 (grub_fat_read_data): Likewise.
44927 (grub_fat_find_dir): Likewise.
44929 * font/manager.c (find_glyph): Make table a const.
44930 (grub_font_get_glyph): Remove bitmap from if statement.
44932 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44934 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44935 code, first search for device in /dev/mapper, then in /dev.
44936 (grub_util_get_grub_dev): New function.
44937 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44939 * util/grub-probe.c (probe): Remove check for RAID, call
44940 grub_util_get_grub_dev() instead of
44941 grub_util_biosdisk_get_grub_dev().
44942 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44943 grub_util_biosdisk_get_grub_dev().
44944 * util/i386/pc/grub-setup.c (main): Likewise.
44946 2007-05-16 Robert Millan <rmh@aybabtu.com>
44948 * DISTLIST: Update for the latest changes.
44949 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44950 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44951 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44952 grub/util/biosdisk.h.
44953 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44954 grub/util/biosdisk.h.
44956 2007-05-16 Robert Millan <rmh@aybabtu.com>
44958 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44960 2007-05-16 Robert Millan <rmh@aybabtu.com>
44962 * util/i386/efi/grub-install.in: New.
44963 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44964 newly added grub-install.
44965 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44967 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44968 grub/util/biosdisk.h.
44969 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44970 grub/util/biosdisk.h.
44972 2007-05-16 Robert Millan <rmh@aybabtu.com>
44974 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44975 * include/grub/util/biosdisk.h: ... here.
44976 * util/i386/pc/biosdisk.c: Moved to ...
44977 * util/biosdisk.c: ... here.
44978 * util/i386/pc/getroot.c: Moved to ...
44979 * util/getroot.c: ... here.
44980 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44981 * util/grub-mkdevicemap.c: ... here.
44982 * util/i386/pc/grub-probe.c: Moved to ...
44983 * util/grub-probe.c: ... here.
44985 2007-05-15 Robert Millan <rmh@aybabtu.com>
44987 * util/update-grub.in: Remove duplicated line in grub.cfg header
44990 2007-05-13 Robert Millan <rmh@aybabtu.com>
44992 * util/update-grub.in: Fix a few assumptions about the devices holding
44993 /, /boot and /boot/grub being the same.
44994 * util/grub.d/00_header.in: Likewise.
44995 * util/grub.d/10_hurd.in: Likewise.
44996 * util/grub.d/10_linux.in: Likewise.
44998 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44999 patterns. Use that to define the `.old' suffix as older than `'.
45001 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
45003 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
45004 the grub.cfg header message.
45006 2007-05-11 Robert Millan <rmh@aybabtu.com>
45008 * util/update-grub.in: Create device.map if it doesn't already exist,
45009 before attempting to run grub-probe.
45010 Check for grub-probe and grub-mkdevicemap with the same code
45011 grub-install is using.
45014 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
45016 * Makefile.in: Add the datarootdir autoconf variable.
45018 2007-05-09 Robert Millan <rmh@aybabtu.com>
45020 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
45021 fail gracefully if dev->disk->partition == NULL.
45023 2007-05-07 Robert Millan <rmh@aybabtu.com>
45025 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
45026 determine partition map module.
45027 * util/i386/pc/grub-install.in: Use this feature to decide which
45028 partition module to load, instead of hardcoding pc and gpt.
45030 2007-05-07 Robert Millan <rmh@aybabtu.com>
45032 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
45033 source directory differs from build directory.
45035 2007-05-05 Robert Millan <rmh@aybabtu.com>
45037 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
45040 2007-05-05 Robert Millan <rmh@aybabtu.com>
45042 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
45044 2007-05-05 Robert Millan <rmh@aybabtu.com>
45046 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
45047 command-line arguments via ${GRUB_CMDLINE_LINUX}.
45049 2007-05-05 Robert Millan <rmh@aybabtu.com>
45051 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
45052 (grub_probe_SOURCES): Likewise.
45053 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
45054 GPT and initialize dos_part and bsd_part accordingly.
45055 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
45057 (main): Activate gpt module for use during partition identification,
45058 and deactivate it afterwards.
45059 * util/i386/pc/grub-install.in: Add gpt module to core.img.
45060 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
45061 partition identification, and deactivate it afterwards.
45063 2007-05-05 Robert Millan <rmh@aybabtu.com>
45065 * term/i386/pc/console.c (grub_console_fini): Call
45066 grub_term_set_current() before grub_term_unregister().
45068 2007-05-04 Robert Millan <rmh@aybabtu.com>
45070 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
45071 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
45072 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
45073 and update-grub_DATA.
45074 * conf/common.rmk: Build and install update-grub components.
45075 * conf/common.mk: Regenerate.
45076 * util/update-grub.in: New. Core of update-grub.
45077 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45078 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45079 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45080 * util/grub.d/README: New. Document grub.d directory layout.
45082 2007-05-01 Robert Millan <rmh@aybabtu.com>
45084 * util/grub-emu.c: Move initialization functions
45085 grub_util_biosdisk_init() and grub_init_all() before
45086 grub_util_biosdisk_get_grub_dev(), which relies on them.
45088 2007-04-19 Robert Millan <rmh@aybabtu.com>
45090 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45093 2007-04-18 Jerone Young <jerone@gmail.com>
45095 * kernel/elf.c: Add missing parenthesis for conditional statement
45098 2007-04-10 Jerone Young <jerone@gmail.com>
45100 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45101 continue on and look for device node with real device name.
45103 2007-04-10 Jerone Young <jerone@gmail.com>
45105 * configure.ac: Add argument for autoconf to use transformation
45107 * Makefile.in: Add autoconf package transformation code.
45108 * util/i386/pc/grub-install.in: Likewise.
45109 * util/powerpc/ieee1275/grub-install.in: Likewise.
45111 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45113 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45114 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45115 (EXT2_REVISION): Likewise.
45116 (EXT2_INODE_SIZE): Likewise.
45117 (struct grub_ext2_block_group): Added a missing member
45119 (grub_ext2_read_inode): Divide by the inode size in a superblock
45120 instead of 128 to obtain INODES_PER_BLOCK.
45121 Use the macro EXT2_INODE_SIZE instead of directly using
45122 SBLOCK->INODE_SIZE.
45124 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45126 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45127 superblock instead of the structure size to compute an
45128 offset. This fixes the problem that GRUB could not read a
45129 filesystem when inode size is different from 128-byte.
45131 2007-03-05 Marco Gerards <marco@gnu.org>
45133 * normal/main.c (read_config_file): When "menu" is not set, create
45134 an initial context.
45136 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45138 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45139 (HEAP_LIMIT): New macro.
45140 (grub_claim_heap): Claim memory up to `heaplimit'.
45142 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45144 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45145 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45146 (_start): Likewise.
45147 (grub_arch_modules_addr): Return address after `_end'.
45148 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45149 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45150 (add_segments): Calculate `_end' from phdr size and location.
45151 (ALIGN_UP): Moved to ...
45152 * include/grub/misc.h: here.
45153 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45155 (GRUB_IEEE1275_MODULE_BASE): Removed.
45157 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45159 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45162 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45164 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45166 (grub_elf64_load_hook_t): Likewise.
45167 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45170 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45172 * kern/mm.c: Update copyright.
45173 (grub_mm_debug): Correct syntax error.
45174 (grub_mm_dump_free): New function.
45175 (grub_debug_free): Call `grub_free'.
45176 * include/grub/mm.h: Update copyright.
45177 (grub_mm_dump_free): Add declaration.
45179 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45181 * include/grub/ieee1275/ieee1275.h: Update copyright.
45182 * kern/powerpc/ieee1275/init.c: Likewise.
45183 * kern/powerpc/ieee1275/openfw.c: Likewise.
45185 * loader/powerpc/ieee1275/linux.c: Likewise.
45186 * include/grub/elfload.h: Likewise.
45187 * kern/elf.c: Likewise.
45188 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45190 (grub_elf64_load): Likewise.
45191 (grub_elf32_load_segment): Move to a nested function.
45192 (grub_elf64_load_segment): Likewise.
45194 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45196 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45198 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45199 (grub_heap_len): Likewise.
45200 (HEAP_SIZE): New macro.
45201 (grub_claim_heap): New function.
45202 (grub_machine_init): Don't claim heap directly. Call
45204 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45205 (grub_available_iterate): New function.
45207 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45209 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45210 * configure.ac: Use it for testing the HOST and TARGET compilers.
45212 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45214 * Makefile.in (enable_grub_emu): New variable.
45215 * configure.ac (--enable-grub-emu): New option.
45216 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45217 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45218 * conf/i386-pc.rmk: Likewise.
45219 * conf/powerpc-ieee1275.rmk: Likewise.
45220 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45222 2006-12-12 Marco Gerards <marco@gnu.org>
45224 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45226 * kern/env.c (grub_env_unset): Don't free the member `value' when
45227 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45230 * normal/main.c (current_menu): Removed.
45231 (free_menu): Unset the `menu' environment variable.
45232 (grub_normal_menu_addentry): Make use of the environment variable
45233 `menu', instead of using the global `current_menu'. Allocate
45234 memory for the sourcecode of this entry.
45235 (read_config_file): New argument `nested', changed all callers.
45236 Only in the case of a new context, initialize a new menu. Set the
45237 `menu' environment variable.
45238 (grub_normal_execute): Don't set and unset the environment
45239 variable `menu' here anymore. Only free the menu when leaving the
45242 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45245 2006-12-11 Marco Gerards <marco@gnu.org>
45247 * normal/menu_entry.c (run): Fix off by one bug so the last line
45248 is executed. Move the loader check to outside the loop.
45250 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45252 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45254 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45256 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45257 the number of sectors. Reported by Andrey Shuvikov
45258 <mr_hyro@yahoo.com>.
45260 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45262 * kern/disk.c (grub_disk_read): When there is a read error, always
45263 try to read only the necessary data.
45265 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45267 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45269 [GRUB_UTIL] (grub_raid_fini): Likewise.
45270 [GRUB_UTIL] (grub_lvm_init): Likewise.
45271 [GRUB_UTIL] (grub_lvm_fini): Likewise.
45272 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45273 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45274 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45275 and grub_raid_fini().
45277 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45279 * include/grub/types.h (__unused): Rename to UNUSED.
45280 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45281 (grub_elf64_size): Likewise.
45283 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45285 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45286 grub_error_push and grub_error_pop in the error-handling path.
45287 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45290 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45292 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45293 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45294 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45295 (kernel_elf_SOURCES): Likewise.
45296 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45297 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45298 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45299 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45300 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45301 (elf_mod_SOURCES): New variable.
45302 (elf_mod_CFLAGS): Likewise.
45303 (elf_mod_LDFLAGS): Likewise.
45304 * include/grub/types.h (__unused): New macro.
45305 * include/grub/elfload.h: New file.
45306 * kern/elf.c: Likewise.
45307 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45308 (ELF32_LOADMASK): New macro.
45309 (ELF64_LOADMASK): Likewise.
45310 (vmlinux): Removed.
45311 (grub_linux_load32): New function.
45312 (grub_linux_load64): Likewise.
45313 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45314 Use grub_elf_t instead of grub_file_t.
45316 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45318 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45319 `catch_result' to struct set_color_args.
45321 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45323 * normal/menu.c: Include grub/script.h.
45324 * normal/menu_entry.c: Likewise.
45325 * include/grub/normal.h: Do not include grub/script.h.
45327 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45329 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45331 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45333 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45335 (grub_disk_close): Print debug messages when closing a disk.
45336 (grub_disk_read): Print debug messages when disk read fails.
45337 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45339 * kern/partition.c: Include misc.h.
45340 (grub_partition_iterate): Print debug messages when detecting
45343 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45345 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45347 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45349 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45351 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45352 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45354 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45356 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45357 instead of sizeof(lv). Patch by Michael Guntsche.
45359 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45361 * disk/lvm.c: Rename VGS to VG_LIST.
45362 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45363 (grub_lvm_open): Likewise.
45364 Thanks to Michael Guntsche for finding this bug.
45366 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45368 * configure.ac (AC_INIT): Bumped to 1.95.
45370 2006-10-14 Robert Millan <rmh@aybabtu.com>
45372 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45373 with "/dev/.static/dev/md".
45375 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45377 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45378 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45379 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45380 DRIVE_NAME are always freed.
45382 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45383 DOS_PART, as a DOS partition is counted from one instead of zero
45384 now. Reported by Robert Millan.
45386 2006-10-14 Robert Millan <rmh@aybabtu.com>
45388 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45389 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45390 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45391 string returned by grub_guess_root_device.
45392 * util/i386/pc/grub-setup.c: Likewise.
45393 * util/i386/pc/grub-probefs.c: Likewise.
45395 * util/i386/pc/grub-probefs.c: Rename to ...
45396 * util/i386/pc/grub-probe.c: ... this.
45397 * DISTLIST: Remove grub-probefs, add grub-probe.
45398 * conf/i386-efi.rmk: Likewise.
45399 * conf/i386-pc.rmk: Likewise.
45400 * util/i386/pc/grub-install.in: Likewise.
45402 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45403 choose which information we want to print.
45405 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45407 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45408 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45409 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45410 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45411 video/readers/tga.c and video/i386/pc/vbeutil.c.
45413 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45415 Added support for RAID and LVM.
45417 * disk/lvm.c: New file.
45418 * disk/raid.c: Likewise.
45419 * include/grub/lvm.h: Likewise.
45420 * include/grub/raid.h: Likewise.
45421 * include/grub/util/lvm.h: Likewise.
45422 * include/grub/util/raid.h: Likewise.
45423 * util/lvm.c: Likewise.
45424 * util/raid.c: Likewise.
45426 * include/grub/disk.h (grub_disk_dev_id): Add
45427 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45428 (grub_disk_get_size): New prototype.
45429 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45430 returns a partition.
45431 (grub_disk_get_size): New function.
45433 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45434 verbatim if grub_install_dos_part is -2.
45436 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45439 * util/i386/pc/grub-setup.c (setup): New argument
45440 MUST_EMBED. Force embedding of GRUB when the argument is
45441 true. Close FILE before returning.
45442 (main): Add support for RAID and LVM.
45444 * conf/common.rmk: Add RAID and LVM modules.
45445 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45447 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45449 * kern/misc.c (grub_strstr): New function.
45450 * include/grub/misc.h (grub_strstr): New prototype.
45452 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45454 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45456 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45458 * kern/misc.c (grub_strtoull): Guess the base only if not
45461 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45463 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45466 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45468 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45470 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45471 Remove `flags' argument. All callers changed.
45472 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45473 (IEEE1275_IHANDLE_INVALID): New variable.
45474 (IEEE1275_CELL_INVALID): New variable.
45475 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45476 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45477 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45478 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45479 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45480 codes from Open Firmware. All callers updated.
45481 (grub_ieee1275_next_property): Directly return Open Firmware return
45483 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45484 Standardize error checking from `grub_ieee1275_get_property'.
45485 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45486 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45488 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
45490 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45491 `instance_to_package_args' to `instance_to_path_args'.
45493 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45494 `grub_ieee1275_chosen'.
45496 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45497 `grub_ieee1275_interpret'.
45499 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
45501 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45503 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
45505 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45506 (__cmpdi): Likewise.
45508 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45509 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45512 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
45514 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45515 to type `grub_ssize_t'.
45516 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45518 2006-09-22 Marco Gerards <marco@gnu.org>
45520 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45523 2006-09-22 Marco Gerards <marco@gnu.org>
45525 * commands/echo.c: New file.
45527 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45529 * conf/common.rmk (echo_mod_SOURCES): New variable.
45530 (echo_mod_CFLAGS): Likewise.
45531 (echo_mod_LDFLAGS): Likewise.
45533 2006-09-22 Marco Gerards <marco@gnu.org>
45535 * normal/main.c (get_line): Malloc memory instead of using
45536 preallocated memory. Removed the arguments `cmdline' and
45537 `max_len'. Updated all callers.
45539 2006-09-22 Marco Gerards <marco@gnu.org>
45541 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45542 (normal_mod_DEPENDENCIES): Likewise.
45544 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45545 (normal_mod_DEPENDENCIES): Likewise.
45547 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45549 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
45551 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45553 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45554 (normal_mod_DEPENDENCIES): Likewise.
45555 * conf/i386-pc.mk: Regenerate.
45556 * conf/i386-efi.mk: Likewise
45557 * conf/common.mk: Likewise.
45558 * conf/powerpc-ieee1275.mk: Likewise.
45559 * conf/sparc64-ieee1275.mk: Likewise.
45561 2006-09-22 Robert Millan <rmh@aybabtu.com>
45563 Sync with i386 version.
45564 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45565 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45567 2006-09-21 Robert Millan <rmh@aybabtu.com>
45569 Import from GRUB Legacy (lib/device.c):
45570 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45571 (init_device_map) [__linux__]: Add support for I2O devices.
45573 2006-09-14 Marco Gerards <marco@gnu.org>
45575 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45578 2006-09-14 Robert Millan <rmh@aybabtu.com>
45580 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45583 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
45585 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45586 before adding it to device.map.
45588 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
45590 * genmk.rb: Let GCC generate dependencies the first time it
45591 compiles a file; using the -MD option.
45592 * conf/common.mk: Regenerate.
45593 * conf/i386-pc.mk: Likewise.
45594 * conf/i386-efi.mk: Likewise.
45595 * conf/powerpc-ieee1275.mk: Likewise.
45596 * conf/sparc64-ieee1275.mk: Likewise.
45598 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45600 Move the prototypes of grub_setjmp and grub_longjmp to
45601 cpu/setjmp.h, so that each architecture may specify different
45604 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45605 (grub_longjmp): Likewise.
45606 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45607 (grub_longjmp): Likewise.
45608 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45609 (grub_longjmp): Likewise.
45611 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45612 [!GRUB_UTIL] (grub_longjmp): Removed.
45614 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45616 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45617 "color!" method does not return any value.
45619 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45621 * include/grub/bitmap.h: New file.
45623 * include/grub/i386/pc/vbeutil.h: Likewise.
45625 * video/bitmap.c: Likewise.
45627 * video/readers/tga.c: Likewise.
45629 * video/i386/pc/vbeutil.c: Likewise.
45631 * commands/videotest.c: Code cleanup and updated to reflect to new
45634 * term/gfxterm.c: Likewise.
45636 * video/video.c: Likewise.
45638 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45639 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45640 (bitmap_mod_SOURCES): New entry.
45641 (bitmap_mod_CFLAGS): Likewise.
45642 (bitmap_mod_LDFLAGS): Likewise.
45643 (tga_mod_SOURCES): Likewise.
45644 (tga_mod_CFLAGS): Likewise.
45645 (tga_mod_LDFLAGS): Likewise.
45647 * include/grub/video.h (grub_video_blit_operators): New enum type.
45648 (grub_video_render_target): Changed as forward declaration and moved
45649 actual definition to be video driver specific.
45650 (grub_video_adapter.blit_bitmap): Added blitting operator.
45651 (grub_video_adapter.blit_render_target): Likewise.
45652 (grub_video_blit_bitmap): Likewise.
45653 (grub_video_blit_render_target): Likewise.
45655 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45656 driver specific render target definition.
45657 (grub_video_vbe_map_rgba): Added driver internal helper.
45658 (grub_video_vbe_unmap_color): Updated to use
45659 grub_video_i386_vbeblit_info.
45660 (grub_video_vbe_get_video_ptr): Likewise.
45662 * include/grub/i386/pc/vbeblit.h
45663 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45664 grub_video_i386_vbeblit_info.
45665 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45666 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45667 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45668 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45669 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45670 (grub_video_i386_vbeblit_index_index): Likewise.
45671 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45672 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45673 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45674 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45676 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45679 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45680 include/grub/i386/pc/vbeblit.h.
45682 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45683 Updated to use grub_video_i386_vbeblit_info.
45684 (grub_video_i386_vbefill_R8G8B8): Likewise.
45685 (grub_video_i386_vbefill_index): Likewise.
45686 (grub_video_i386_vbefill): Added generic filler.
45688 * video/i386/pc/vbefill.c: Updated to reflect changes on
45689 include/grub/i386/pc/vbefill.h.
45691 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45692 grub_video_i386_vbeblit_info.
45693 (grub_video_vbe_unmap_color): Likewise.
45694 (grub_video_vbe_blit_glyph): Likewise.
45695 (grub_video_vbe_scroll): Likewise.
45696 (grub_video_vbe_draw_pixel): Removed function.
45697 (grub_video_vbe_get_pixel): Likewise.
45698 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45699 updated code to use it.
45700 (common_blitter): Added common blitter for render target and bitmap.
45701 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45702 (grub_video_vbe_blit_render_target): Likewise.
45704 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
45706 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45707 is in text mode if there is no console control protocol instance
45710 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45712 * include/grub/video.h: Code cleanup.
45714 * include/grub/i386/pc/vbe.h: Likewise.
45716 * video/i386/pc/vbe.c: Likewise.
45718 * video/i386/pc/vbeblit.c: Likewise.
45720 * video/i386/pc/vbefill.c: Likewise.
45722 * video/video.c: Likewise. Also added more comments.
45724 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45726 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45727 (struct grub_biosdisk_dap): Likewise.
45729 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45730 linkage settings for all functions.
45732 2006-07-12 Marco Gerards <marco@gnu.org>
45734 * configure.ac (--enable-mm-debug): Fix typo.
45736 * genkernsyms.sh.in: Use proper quoting for `CC'.
45738 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45740 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45741 (normal_mod_ASFLAGS): Remove "-m32".
45743 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45745 * util/misc.c: Include config.h.
45746 [!HAVE_MEMALIGN]: Do not include malloc.h.
45747 (grub_memalign): Use posix_memalign, if present. Then, use
45748 memalign, if present. Otherwise, emit an error.
45750 * util/grub-emu.c: Do not include malloc.h.
45752 * include/grub/util/misc.h: Include unistd.h. This is required for
45753 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45754 D. Eades III <hde@foobar-qux.org>.
45756 * configure.ac (AC_GNU_SOURCE): Added.
45757 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45760 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45762 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45763 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45765 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45767 * include/grub/types.h (grub_host_addr_t): Rename to
45768 grub_target_addr_t.
45769 (grub_host_off_t): Rename to grub_target_off_t.
45770 (grub_host_size_t): Rename to grub_target_size_t.
45771 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45772 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45774 * include/grub/kernel.h (struct grub_module_header): Change type
45775 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45776 (grub_module_info): Likewise.
45778 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45780 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45781 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45782 Velazquez <jesus.velazquez@gmail.com>.
45784 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45786 Count partitions from 1 instead of 0 in the string representation
45787 of partitions. Still use 0-based internally.
45789 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45790 (sun_partition_map_iterate): Use grub_partition_t instead of
45791 struct grub_partition *. Cast DESC->START_CYLINDER to
45792 grub_uint64_t after converting the endian.
45793 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45794 (sun_partition_map_get_name): Add 1 to P->INDEX.
45796 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45798 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45800 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45801 zero instead of one.
45802 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45803 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45805 * partmap/apple.c (apple_partition_map_iterate): Change the type
45806 of POS to unsigned.
45807 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45808 (apple_partition_map_get_name): Add 1 into P->INDEX.
45810 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45811 of POS to unsigned.
45812 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45813 calculate the offset of a partition.
45814 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45815 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45817 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45818 SECTOR to grub_disk_addr_t.
45819 (acorn_partition_map_iterate): Likewise.
45820 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45821 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45823 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45825 * kern/i386/pc/init.c (make_install_device): Add 1 into
45826 GRUB_INSTALL_DOS_PART.
45828 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45831 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45833 Clean up the code to support 64-bit addressing in disks and
45834 files. This change is not enough for filesystems yet.
45836 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45837 type of "start" to grub_uint64_t.
45838 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45839 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45840 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45843 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45844 to grub_disk_addr_t.
45846 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45849 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45851 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45854 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45856 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45858 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45860 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45861 to grub_off_t, to detect an error from grub_file_seek.
45862 (grub_multiboot_load_elf32): Likewise.
45864 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45865 maximum unsigned long value when an overflow is detected.
45866 (grub_strtoull): New function.
45867 (grub_divmod64): Likewise.
45868 (grub_lltoa): use grub_divmod64.
45870 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45872 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45873 the pointer to next character. Use grub_strtoull instead of
45875 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45876 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45879 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
45880 return value is signed.
45881 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45882 test if OFFSET is less than zero, as OFFSET is unsigned now.
45884 * kern/disk.c (struct grub_disk_cache): Change the type of
45885 "sector" to grub_disk_addr_t.
45886 (grub_disk_cache_get_index): Change the type of SECTOR to
45887 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45888 unsigned after shifting.
45889 (grub_disk_cache_invalidate): Change the type of SECTOR to
45891 (grub_disk_cache_unlock): Likewise.
45892 (grub_disk_cache_store): Likewise.
45893 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45894 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45895 grub_disk_addr_t and grub_uint64_t, respectively.
45896 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45897 body, as the value of OFFSET is tweaked by
45898 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45899 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45901 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45902 body, as the value of OFFSET is tweaked by
45903 grub_disk_check_range. Change the types of LEN and N to
45906 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45907 and "saved_offset" to grub_off_t.
45908 (test_header): Cast BUF to char *.
45909 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45911 (grub_gzio_read): Change the types of OFFSET and SIZE to
45912 grub_off_t and grub_size_t, respectively.
45914 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45916 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45917 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45918 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45919 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45920 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45922 * include/grub/types.h (grub_off_t): Unconditionally set to
45924 (grub_disk_addr_t): Changed to grub_uint64_t.
45926 * include/grub/partition.h (struct grub_partition): Change the
45927 types of "start", "len" and "offset" to grub_disk_addr_t,
45928 grub_uint64_t and grub_disk_addr_t, respectively.
45929 (grub_partition_get_start): Return grub_disk_addr_t.
45930 (grub_partition_get_len): Return grub_uint64_t.
45932 * include/grub/misc.h (grub_strtoull): New prototype.
45933 (grub_divmod64): Likewise.
45935 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45936 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45937 grub_off_t, respectively.
45938 All callers and references changed.
45940 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45941 grub_size_t in "read".
45942 All callers and references changed.
45944 * include/grub/file.h (struct grub_file): Change the types of
45945 "offset" and "size" to grub_off_t and grub_off_t,
45946 respectively. Change the type of SECTOR to grub_disk_addr_t in
45948 (grub_file_read): Change the type of LEN to grub_size_t.
45949 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45951 (grub_file_size): Return grub_off_t.
45952 (grub_file_tell): Likewise.
45953 All callers and references changed.
45955 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45956 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45958 (struct grub_disk): Change the type of "total_sectors" to
45959 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
45961 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45962 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45963 (grub_disk_write): Likewise.
45964 All callers and references changed.
45966 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45967 char * for grub_strncmp to silence gcc.
45968 (grub_iso9660_mount): Likewise.
45969 (grub_iso9660_mount): Likewise.
45970 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45972 (grub_iso9660_iterate_dir): Likewise.
45973 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45975 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45976 LEN to grub_disk_addr_t and grub_size_t, respectively.
45978 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45980 * fs/jfs.c (grub_jfs_read_file): Likewise.
45982 * fs/minix.c (grub_jfs_read_file): Likewise.
45984 * fs/sfs.c (grub_jfs_read_file): Likewise.
45986 * fs/ufs.c (grub_jfs_read_file): Likewise.
45988 * fs/xfs.c (grub_jfs_read_file): Likewise.
45990 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45991 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45994 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45995 BLKNR to -1 instead of returning GRUB_ERRNO.
45996 (grub_ext2_read_file): Change the types of SECTOR and
45997 LEN to grub_disk_addr_t and grub_size_t, respectively.
45999 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
46000 LEN to grub_disk_addr_t and grub_size_t, respectively.
46002 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
46005 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
46006 string. Do not cast SECTOR explicitly.
46008 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
46009 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
46010 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
46011 grub_disk_addr_t and grub_size_t, respectively. If the sector is
46012 over 2TB and LBA mode is not supported, raise an error.
46013 (get_safe_sectors): New function.
46014 (grub_biosdisk_read): Use get_safe_sectors.
46015 (grub_biosdisk_write): Likewise.
46017 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
46018 (grub_efidisk_write): Likewise.
46020 * disk/loopback.c (delete_loopback): Cosmetic changes.
46021 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
46023 (grub_loopback_open): Likewise.
46024 (grub_loopback_read): Likewise. Also, change the type of POS to
46025 grub_off_t, and fix the usage of grub_memset.
46027 * commands/i386/pc/play.c: Include grub/machine/time.h.
46029 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
46032 * commands/configfile.c: Include grub/env.h.
46034 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
46035 GRUB_ERRNO directly instead. Change the type of POS to
46036 grub_off_t. Follow the coding standard.
46038 * commands/blocklist.c: Include grub/partition.h.
46039 (grub_cmd_blocklist): Return an error if the underlying device is
46040 not a disk. Take the starting sector of a partition into account,
46041 if a partition is used.
46043 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
46045 (lba_mode): Support 64-bit addresses.
46046 (chs_mode): Likewise.
46047 (copy_buffer): Adapted to the new offsets of a length field and a
46049 (blocklist_default_start): Allocate 64-bit space.
46051 * boot/i386/pc/boot.S (force_lba): Removed.
46052 (boot_drive): Moved to under KERNEL_SECTOR.
46053 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
46055 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
46057 (lba_mode): Refactored to support a 64-bit address. More size
46059 (setup_sectors): Likewise.
46061 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46063 * DISTLIST: Added include/grub/i386/linux.h. Removed
46064 include/grub/i386/pc/linux.h
46066 * configure.ac (AC_INIT): Bumped to 1.94.
46068 * config.guess: Updated from gnulib.
46069 * config.sub: Likewise.
46070 * install-sh: Likewise.
46071 * mkinstalldirs: Likewise.
46073 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46075 * conf/common.rmk (grub_modules_init.lst): Depended on
46076 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46079 * genmk.rb (PModule::rule): Reverted the previous change.
46081 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46083 * conf/common.rmk (grub_modules_init.lst): Depends on
46084 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46085 that the target does not exist before producing.
46086 (grub_modules_init.h): Remove the target before generating.
46087 (grub_emu_init.c): Likewise.
46089 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46091 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46093 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46094 for the target-specific tests. Make sure that we also have the
46095 up-to-date target variables for those tests.
46097 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46099 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46100 (PModule::rule): Likewise.
46102 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46104 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46105 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46106 target-specific flags should be prefixed.
46107 (PModule::rule): Likewise.
46109 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46111 * configure.ac (CMP): Check if cmp is available explicitly.
46113 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46115 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46116 (target_cpu): New variable.
46117 (pkglibdir): Use target_cpu instead of host_cpu.
46119 * util/i386/pc/grub-install.in (host_cpu): Removed.
46120 (target_cpu): New variable.
46121 (pkglibdir): Use target_cpu instead of host_cpu.
46123 * util/genmoddep.c: Removed.
46125 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46126 instead of GRUB_HOST_SIZEOF_VOID_P.
46127 * kern/dl.c: Likewise.
46129 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46131 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46132 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46133 (GRUB_TARGET_SIZEOF_LONG): ... this.
46134 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46135 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46136 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46138 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46139 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46140 (GRUB_TARGET_SIZEOF_LONG): ... this.
46141 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46142 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46143 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46145 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46146 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46147 (GRUB_TARGET_SIZEOF_LONG): ... this.
46148 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46149 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46151 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46152 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46153 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46154 instead of GRUB_HOST_SIZEOF_LONG.
46155 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46156 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46157 GRUB_CPU_WORDS_BIGENDIAN.
46158 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46159 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46162 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46163 (genmoddep_SOURCES): Likewise.
46164 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46165 (genmoddep_SOURCES): Likewise.
46166 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46167 (genmoddep_SOURCES): Likewise.
46168 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46170 (genmoddep_SOURCES): Likewise.
46172 * genmoddep.awk: New file.
46174 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46175 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46176 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46177 (PModule::rule): Likewise.
46178 (Program::rule): Likewise.
46179 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46180 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46183 * configure.ac: Rewritten intensively to use host and target
46184 instead of build and host, respectively.
46186 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46187 (host_cpu): Removed.
46188 (target_cpu): New variable.
46189 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46190 (BUILD_CC): Removed.
46191 (BUILD_CFLAGS): Likewise.
46192 (BUILD_CPPFLAGS): Likewise.
46193 (TARGET_CC): New variable.
46194 (TARGET_CFLAGS): Likewise.
46195 (TARGET_CPPFLAGS): Likewise.
46196 (TARGET_LDFLAGS): Likewise.
46198 (include): Use target_cpu instead of host_cpu.
46199 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
46201 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46203 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46205 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46206 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46207 field 'false' to 'exec_on_false'.
46208 (grub_script_create_cmdif): Renamed argument names to reflect above
46211 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46213 * normal/script.c (grub_script_create_cmdif): Likewise.
46215 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46217 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46219 (grub_hfsplus_btree_recptr): Likewise.
46220 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46221 FILEBLOCK both to pass a block number and store next block
46223 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46224 overflow file correctly. Specify errors appropriately, because
46225 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46226 grub_hfsplus_btree_recptr to get the pointer to a found key.
46227 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46230 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46232 (_linux_mod_SOURCES): New variable.
46233 (_linux_mod_CFLAGS): Likewise.
46234 (_linux_mod_LDFLAGS): Likewise.
46235 (linux_mod_SOURCES): Likewise.
46236 (linux_mod_CFLAGS): Likewise.
46237 (linux_mod_LDFLAGS): Likewise.
46239 * DISTLIST: Added loader/i386/efi/linux.c,
46240 loader/i386/efi/linux_normal.c and
46241 include/grub/i386/efi/loader.h.
46243 * loader/i386/efi/linux.c: New file.
46244 * loader/i386/efi/linux_normal.c: Likewise.
46245 * include/grub/i386/efi/loader.h: Likewise.
46247 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46249 * commands/blocklist.c: New file.
46251 * DISTLIST: Added commands/blocklist.c.
46253 * term/efi/console.c (grub_console_highlight_color): Use a lighter
46254 color for the background, and a darker color for the foreground.
46255 (grub_console_checkkey): Return READ_KEY.
46256 (grub_console_cls): Set the background to
46257 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46259 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46261 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46262 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46264 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46267 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46268 BG. The spec is wrong again.
46270 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46272 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46274 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46275 commands/blocklist.c.
46276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46278 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46279 (blocklist_mod_SOURCES): New variable.
46280 (blocklist_mod_CFLAGS): Likewise.
46281 (blocklist_mod_LDFLAGS): Likewise.
46283 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46285 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46287 (lba_mode): Use %eax more intensively to reduce the code size.
46289 2006-05-20 Marco Gerards <marco@gnu.org>
46291 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46293 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46295 (script): Accept leading newlines.
46296 (newlines): New rule to describe 0 or more newlines.
46297 (commands): Accept `command' with trailing newline. Fixed the
46298 order in which arguments were passed to `grub_script_add_cmd'.
46299 Accept commands separated by newlines.
46300 (function): Changed to accept newlines.
46301 (menuentry) Rewritten.
46303 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46304 front of the list, instead of to the end.
46306 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46308 * util/i386/pc/grub-install.in (bindir): New variable.
46309 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46310 Shaver <lbgwjl@gmail.com>.
46312 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46314 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46315 grub/machine/linux.h
46316 * loader/i386/pc/linux.c: Likewise.
46318 * include/grub/i386/pc/linux.h: Moved to ...
46319 * include/grub/i386/linux.h: ... here.
46321 * include/grub/i386/linux.h (struct linux_kernel_params): New
46324 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46326 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46328 (grub_video_vbe_blit_glyph): Likewise.
46329 (grub_video_vbe_blit_bitmap): Likewise.
46330 (grub_video_vbe_blit_render_target): Likewise.
46332 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46334 * configure.ac (--with-platform): Properly quote the square
46337 2006-05-08 Marco Gerards <marco@gnu.org>
46339 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46341 (kernel_elf_HEADERS): ...to this. Updated all users.
46342 (grubof_symlist.c): Renamed from this...
46343 (kernel_elf_symlist.c): ...to this. Updated all users.
46344 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46345 (grubof_SOURCES): Renamed from this...
46346 (kernel_elf_SOURCES): ...to this.
46347 (grubof_HEADERS): Renamed from this...
46348 (kernel_elf_HEADERS): ...to this.
46349 (grubof_CFLAGS): Renamed from this...
46350 (kernel_elf_CFLAGS): ...to this.
46351 (grubof_ASFLAGS): Renamed from this...
46352 (kernel_elf_ASFLAGS): ...to this.
46353 (grubof_LDFLAGS): Renamed from this...
46354 (kernel_elf_LDFLAGS): ...to this.
46356 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46358 (kernel_elf_HEADERS): ...to this. Updated all users.
46359 (grubof_symlist.c): Renamed from this...
46360 (kernel_elf_symlist.c): ...to this. Updated all users.
46361 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46362 (grubof_SOURCES): Renamed from this...
46363 (kernel_elf_SOURCES): ...to this.
46364 (grubof_HEADERS): Renamed from this...
46365 (kernel_elf_HEADERS): ...to this.
46366 (grubof_CFLAGS): Renamed from this...
46367 (kernel_elf_CFLAGS): ...to this.
46368 (grubof_ASFLAGS): Renamed from this...
46369 (kernel_elf_ASFLAGS): ...to this.
46370 (grubof_LDFLAGS): Renamed from this...
46371 (kernel_elf_LDFLAGS): ...to this.
46373 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46374 `kernel.elf' instead of `grubof'.
46376 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46378 Add --with-platform to configure. Use pkglibdir instead of
46379 pkgdatadir. This is reported by Roger Leigh.
46381 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46382 (host_vendor): Likewise.
46383 (host_os): Likewise.
46384 (pkgdatadir): Likewise.
46385 (platform): New variable.
46386 (pkglibdir): Likewise.
46387 Use PKGLIBDIR instead of PKGDATADIR.
46389 * util/i386/pc/grub-install.in (datadir): Removed.
46390 (host_vendor): Likewise.
46391 (host_os): Likewise.
46392 (pkgdatadir): Likewise.
46393 (platform): New variable.
46394 (pkglibdir): Likewise.
46395 Use PKGLIBDIR instead of PKGDATADIR.
46397 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46398 instead of GRUB_DATADIR.
46400 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46402 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46405 * configure.ac (--with-platform): New option.
46406 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46408 * Makefile.in: Include a makefile based on PLATFORM instead of
46410 (pkgdatadir): Not appended by the machine type.
46411 (pkglibdir): Appended by the machine type.
46412 (host_vendor): Removed.
46413 (platform): New variable.
46414 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46415 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46416 (uninstall): Likewise.
46418 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46420 Use the environment context in the menu. Remove the commands
46421 "default" and "timeout", and use variables instead.
46423 * normal/menu.c: Include grub/env.h.
46424 (print_entry): Cast TITLE to silence gcc.
46425 (get_timeout): New function.
46426 (set_timeout): Likewise.
46427 (get_entry_number): Likewise.
46428 (run_menu): Use a default entry, a fallback entry and a timeout
46429 in the environment variables "default", "fallback" and
46430 "timeout". Also, tweak the default entry if it is not within the
46431 current menu entries.
46432 (grub_menu_run): Use a fallback entry in the environment variable
46435 * normal/main.c (read_config_file): Do not initialize
46436 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46438 (grub_normal_execute): Use a data slot to store the menu.
46440 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46441 fallback_entry and timeout.
46442 (struct grub_menu_list): Removed.
46443 (grub_menu_list_t): Likewise.
46444 (struct grub_context): Likewise.
46445 (grub_context_t): Likewise.
46446 (grub_context_get): Likewise.
46447 (grub_context_get_current_menu): Likewise.
46448 (grub_context_push_menu): Likewise.
46449 (grub_context_pop_menu): Likewise.
46450 (grub_default_init): Likewise.
46451 (grub_default_fini): Likewise.
46452 (grub_timeout_init): Likewise.
46453 (grub_timeout_fini): Likewise.
46455 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46457 (normal_mod_SOURCES): Removed normal/context.c.
46459 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46460 commands/default.c, commands/timeout.c and normal/context.c.
46461 (normal_mod_SOURCES): Removed normal/context.c.
46463 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46464 commands/timeout.c and normal/context.c.
46465 (normal_mod_SOURCES): Removed normal/context.c.
46467 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46468 commands/default.c, commands/timeout.c and normal/context.c.
46469 (normal_mod_SOURCES): Removed normal/context.c.
46471 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46473 (default_mod_SOURCES): Removed.
46474 (default_mod_CFLAGS): Likewise.
46475 (default_mod_LDFLAGS): Likewise.
46476 (timeout_mod_SOURCES): Removed.
46477 (timeout_mod_CFLAGS): Likewise.
46478 (timeout_mod_LDFLAGS): Likewise.
46480 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46483 * commands/default.c: Removed.
46484 * commands/timeout.c: Likewise.
46485 * normal/context.c: Likewise.
46487 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46489 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46491 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46493 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46494 "next" to "prev" for readability.
46495 (struct grub_env_sorted_var): New struct.
46496 (grub_env_context): Renamed to ...
46497 (initial_context): ... this.
46498 (grub_env_var_context): Renamed to ...
46499 (current_context): ... this.
46500 (grub_env_find): Look only at CURRENT_CONTEXT.
46501 (grub_env_context_open): Rewritten to copy exported variables from
46503 (grub_env_context_close): Rewritten according to the new
46504 scheme. Also, add an assertion to prevent the initial context from
46506 (grub_env_insert): Removed the code for the sorted list.
46507 (grub_env_remove): Likewise.
46508 (grub_env_export): Simply mark the variable with
46509 GRUB_ENV_VAR_GLOBAL.
46510 (grub_env_set): A cosmetic change for naming consistency.
46511 (grub_env_get): Likewise.
46512 (grub_env_unset): Likewise.
46513 (grub_env_iterate): Rewritten to sort variables within this
46515 (grub_register_variable_hook): Fixed for naming consistency. Call
46516 grub_env_find again, only if NAME is not found at the first time.
46517 (mangle_data_slot_name): New function.
46518 (grub_env_set_data_slot): Likewise.
46519 (grub_env_get_data_slot): Likewise.
46520 (grub_env_unset_data_slot): Likewise.
46522 * include/grub/env.h (grub_env_var_type): New enum.
46523 (GRUB_ENV_VAR_LOCAL): New constant.
46524 (GRUB_ENV_VAR_GLOBAL): Likewise.
46525 (GRUB_ENV_VAR_DATA): Likewise.
46526 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46528 (grub_env_set): Replace VAR with NAME for consistency.
46529 (grub_register_variable_hook): Likewise.
46530 (grub_env_export): Specify the name of the argument.
46531 (grub_env_set_data_slot): New prototype.
46532 (grub_env_get_data_slot): Likewise.
46533 (grub_env_unset_data_slot): Likewise.
46535 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46537 Extend the loader so that GRUB can accept a loader which comes
46538 back to GRUB when a loaded image exits. Also, this change adds
46539 support for a chainloader on EFI.
46541 * term/efi/console.c: Include grub/misc.h.
46542 (grub_console_checkkey): Display a scan code on the top for
46543 debugging. This will be removed once the EFI port gets stable.
46544 Correct the scan code mapping.
46546 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46547 allocate memory from larger regions, in order to reduce the number
46548 of allocated regions. Otherwise, the MacOSX loader panics.
46549 (filter_memory_map): Avoid less than 1MB for compatibility with
46551 (add_memory_regions): Allocate from the tail of a region, if
46552 possible, to avoid allocating a region near to 1MB, for the MacOSX
46555 * kern/efi/init.c (grub_efi_set_prefix): Specify
46556 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46558 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46559 argument IMAGE_HANDLE and specify it to get a loaded image.
46560 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46561 grub_efi_get_loaded_image.
46562 (grub_efi_get_filename): Divide the length by the size of
46564 (grub_efi_get_device_path): New function.
46565 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46566 the length by the size of grub_efi_char16_t for a file path device
46569 * kern/loader.c (grub_loader_noreturn): New variable.
46570 (grub_loader_set): Accept a new argument NORETURN. Set
46571 GRUB_LOADER_NORETURN to NORETURN.
46572 All callers changed.
46573 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46576 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46578 (grub_efi_get_loaded_image): Take an argument to specify an image
46581 * include/grub/loader.h (grub_loader_set): Added one more argument
46584 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46585 instead of grub_efi_open_protocol.
46586 (grub_efidisk_get_device_name): Likewise.
46587 (grub_efidisk_close): Print a newline.
46588 (grub_efidisk_get_device_handle): Fixed to use
46589 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46590 GRUB_EFI_DEVICE_PATH_TYPE.
46592 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46593 * kern/efi/efi.c (device_path_guid): ... here.
46595 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46597 (kernel_mod_HEADERS): Added efi/disk.h.
46598 (_chain_mod_SOURCES): New variable.
46599 (_chain_mod_CFLAGS): Likewise.
46600 (_chain_mod_LDFLAGS): Likewise.
46601 (chain_mod_SOURCES): Likewise.
46602 (chain_mod_CFLAGS): Likewise.
46603 (chain_mod_LDFLAGS): Likewise.
46605 * DISTLIST: Added include/grub/efi/chainloader.h,
46606 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46608 * include/grub/efi/chainloader.h: New file.
46609 * loader/efi/chainloader.c: Likewise.
46610 * loader/efi/chainloader_normal.c: Likewise.
46612 2006-04-30 Marco Gerards <marco@gnu.org>
46614 * commands/configfile.c (grub_cmd_source): New function.
46615 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46616 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46618 2006-04-30 Marco Gerards <marco@gnu.org>
46620 * normal/execute.c (grub_script_execute_cmd): Change the return
46621 type to `grub_err_t'. Correctly return the error.
46622 (grub_script_execute_cmdline): In case a command line is not a
46623 command or a function, try to interpret it as an assignment.
46625 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46627 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46628 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46629 skip a node whose name is obviously invalid as UTF-16,
46630 i.e. contains a NUL character. Stop the iteration when the last
46631 directory entry is found. Instead of using the return value of
46632 grub_hfsplus_btree_iterate_node, store the value in RET and use
46633 it, because the iterator can be stopped by the last directory
46636 2006-04-30 Marco Gerards <marco@gnu.org>
46638 * include/grub/env.h (grub_env_export): New prototype. Reported
46639 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46641 2006-04-30 Marco Gerards <marco@gnu.org>
46643 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46644 size of the extents in a catalog file record.
46646 2006-04-29 Marco Gerards <marco@gnu.org>
46648 * commands/configfile.c (grub_cmd_configfile): Execute the
46649 configfile within its own context.
46651 * include/grub/env.h (grub_env_context_open): New prototype.
46652 (grub_env_context_close): Likewise.
46654 * kern/env.c (grub_env): Removed.
46655 (grub_env_sorted): Likewise.
46656 (grub_env_context): New variable.
46657 (grub_env_var_context): Likewise.
46658 (grub_env_find): Search both the active context and the global
46660 (grub_env_context_open): New function.
46661 (grub_env_context_close): Likewise.
46662 (grub_env_insert): Likewise.
46663 (grub_env_remove): Likewise.
46664 (grub_env_export): Likewise.
46665 (grub_env_set): Changed to use helper functions to avoid code
46667 (grub_env_iterate): Rewritten so both the current context and the
46668 global context are being used.
46670 * normal/command.c (export_command): New function.
46671 (grub_command_init): Register the `export' function.
46673 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46675 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46676 explicitly to suppress gcc's warnings.
46677 * fs/fat.c (grub_fat_find_dir): Likewise.
46678 (grub_fat_label): Likewise.
46679 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46680 (grub_xfs_mount): Likewise.
46681 (grub_xfs_label): Likewise.
46682 * fs/affs.c (grub_affs_mount): Likewise.
46683 (grub_affs_label): Likewise.
46684 (grub_affs_iterate_dir): Likewise.
46685 * fs/sfs.c (grub_sfs_mount): Likewise.
46686 (grub_sfs_iterate_dir): Likewise.
46687 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46688 * fs/hfs.c (grub_hfs_mount): Likewise.
46689 (grub_hfs_cmp_catkeys): Likewise.
46690 (grub_hfs_find_dir): Likewise.
46691 (grub_hfs_dir): Likewise.
46692 (grub_hfs_label): Likewise.
46693 * fs/jfs.c (grub_jfs_mount): Likewise.
46694 (grub_jfs_opendir): Likewise.
46695 (grub_jfs_getent): Likewise.
46696 (grub_jfs_lookup_symlink): Likewise.
46697 (grub_jfs_label): Likewise.
46698 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46699 (grub_hfsplus_iterate_dir): Likewise.
46700 (grub_hfsplus_btree_iterate_node): Made static.
46702 * util/grub-emu.c (prefix): New variable.
46703 (grub_machine_set_prefix): New function.
46704 (main): Do not set the environment variable "prefix" here. Only
46705 set PREFIX, which is used later by grub_machine_set_prefix.
46707 * include/grub/video.h: Do not include grub/symbol.h.
46708 (grub_video_register): Not exported. This symbol is not defined in
46710 (grub_video_unregister): Likewise.
46711 (grub_video_iterate): Likewise.
46712 (grub_video_setup): Likewise.
46713 (grub_video_restore): Likewise.
46714 (grub_video_get_info): Likewise.
46715 (grub_video_get_blit_format): Likewise.
46716 (grub_video_set_palette): Likewise.
46717 (grub_video_get_palette): Likewise.
46718 (grub_video_set_viewport): Likewise.
46719 (grub_video_get_viewport): Likewise.
46720 (grub_video_map_color): Likewise.
46721 (grub_video_map_rgb): Likewise.
46722 (grub_video_map_rgba): Likewise.
46723 (grub_video_fill_rect): Likewise.
46724 (grub_video_blit_glyph): Likewise.
46725 (grub_video_blit_bitmap): Likewise.
46726 (grub_video_blit_render_target): Likewise.
46727 (grub_video_scroll): Likewise.
46728 (grub_video_swap_buffers): Likewise.
46729 (grub_video_create_render_target): Likewise.
46730 (grub_video_delete_render_target): Likewise.
46731 (grub_video_set_active_render_target): Likewise.
46733 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46735 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46737 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46738 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46739 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46740 instead of $(srcdir)/genkernsyms.sh.
46742 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46743 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46744 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46745 instead of $(srcdir)/genkernsyms.sh.
46747 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46748 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46749 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46750 instead of $(srcdir)/genkernsyms.sh.
46752 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46753 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46754 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46755 instead of $(srcdir)/genkernsyms.sh.
46757 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46760 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46762 (gensymlist.sh): New target.
46763 (genkernsyms.sh): Likewise.
46765 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46766 genkernsyms.sh.in and gensymlist.sh.in.
46768 * genkernsyms.sh: Removed.
46769 * gensymlist.sh: Likewise.
46771 * genkernsyms.sh.in: New file.
46772 * gensymlist.sh.in: Likewise.
46774 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46776 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46777 clobber "prefix", since we may have already set it manually.
46779 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46781 * kern/misc.c (abort): New alias for grub_abort.
46783 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46785 A new machine-specific function "grub_machine_set_prefix" is
46786 defined. This is called after loading modules, so that a prefix
46787 initialization can use modules. Also, this change adds an
46788 intensive debugging feature for the memory manager via the
46789 configure option "--enable-mm-debug".
46791 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46794 * kern/sparc64/ieee1275/init.c (abort): Removed.
46795 (grub_stop): Likewise.
46796 (grub_exit): New function.
46797 (grub_set_prefix): Renamed to ...
46798 (grub_machine_set_prefix): ... this.
46799 (grub_machine_init): Do not call grub_set_prefix.
46801 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46802 (grub_machine_set_prefix): ... this.
46803 (grub_machine_init): Do not call grub_set_prefix.
46805 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46806 (grub_machine_init): Do not set the prefix here.
46808 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46810 * kern/efi/init.c: Include grub/mm.h.
46811 (grub_efi_set_prefix): New function.
46813 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46814 (grub_efi_get_filename): New function.
46815 (grub_print_device_path): Renamed to ...
46816 (grub_efi_print_device_path): ... this.
46818 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46819 [MM_DEBUG] (grub_realloc): Likewise.
46820 [MM_DEBUG] (grub_free): Likewise.
46821 [MM_DEBUG] (grub_memalign): Likewise.
46822 [MM_DEBUG] (grub_mm_debug): New variable.
46823 [MM_DEBUG] (grub_debug_malloc): New function.
46824 [MM_DEBUG] (grub_debug_free): New function.
46825 [MM_DEBUG] (grub_debug_realloc): New function.
46826 [MM_DEBUG] (grub_debug_memalign): New function.
46828 * kern/misc.c (grub_abort): Print a newline to distinguish
46831 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46832 grub_set_root_dev after loading modules. This is necessary when
46833 setting a prefix depends on modules.
46835 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46836 (grub_efi_print_device_path): ... this.
46837 (grub_efi_get_filename): New prototype.
46838 (grub_efi_set_prefix): Likewise.
46840 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46842 (grub_efidisk_get_device_handle): New prototype.
46843 (grub_efidisk_get_device_name): Likewise.
46845 * include/grub/mm.h: Include config.h.
46846 (MM_DEBUG): Removed.
46847 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46848 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46849 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46850 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46851 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46852 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46853 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46854 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46855 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46857 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46859 * disk/efi/efidisk.c: Include grub/partition.h.
46860 (iterate_child_devices): New function.
46861 (add_device): First, compare only last device path nodes, so that
46862 devices are sorted by the types.
46863 (grub_efidisk_get_device_handle): New function.
46864 (grub_efidisk_get_device_name): Likewise.
46866 * configure.ac (--enable-mm-debug): New option to enable the
46867 memory manager debugging feature. This makes the binary much
46868 bigger, so is disabled by default.
46870 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46872 Use grub_abort instead of grub_stop, and grub_exit must be
46873 define in each architecture now. Also, this change adds support
46876 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46877 (grub_getkey): New function.
46878 (grub_term_get_current): Likewise.
46880 * util/i386/pc/grub-setup.c: Include grub/term.h.
46881 (grub_getkey): New function.
46882 (grub_term_get_current): Likewise.
46884 * util/misc.c (grub_stop): Renamed to ...
46885 (grub_exit): ... this.
46887 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46888 (grub_exit): ... this.
46889 (grub_machine_init): Use grub_abort instead of abort.
46890 (grub_stop): Removed.
46892 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46895 * kern/i386/pc/startup.S (grub_exit): New function.
46896 (cold_reboot): New label.
46898 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46899 (grub_efi_init): Call grub_efidisk_init.
46900 (grub_efi_fini): Call grub_efidisk_fini.
46902 * kern/efi/efi.c: Include grub/mm.h.
46903 (grub_efi_console_control_guid): Renamed to ...
46904 (console_control_guid): ... this.
46905 (grub_efi_loaded_image_guid): Renamed to ...
46906 (loaded_image_guid): ... this.
46907 (grub_efi_locate_handle): New function.
46908 (grub_efi_open_protocol): Likewise.
46909 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46910 GRUB_EFI_CONSOLE_CONTROL_GUID.
46911 (grub_efi_exit): Removed.
46912 (grub_stop): Likewise.
46913 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46914 (grub_exit): New function.
46915 (grub_print_device_path): Likewise.
46917 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46918 (grub_enter_rescue_mode): Register "exit".
46920 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46921 (grub_abort): New function.
46923 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46925 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46927 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46929 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46930 (grub_print_device_path): New prototype.
46931 (grub_efi_locate_handle): Likewise.
46932 (grub_efi_open_protocol): Likewise.
46934 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46935 * disk/efi/efidisk.c: Likewise.
46937 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46939 * include/grub/efi/console_control.h
46940 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46942 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46943 last 8 bytes as an array.
46944 (GRUB_EFI_DISK_IO_GUID): New macro.
46945 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46946 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46947 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46949 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46950 (struct grub_efi_device_path): Rename the member "sub_type" to
46952 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46953 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46954 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46955 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46956 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46957 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46958 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46959 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46960 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46961 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46962 (struct grub_efi_pci_device_path): New structure.
46963 (grub_efi_pci_device_path_t): New type.
46964 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46965 (struct grub_efi_pccard_device_path): New structure.
46966 (grub_efi_pccard_device_path_t): New type.
46967 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46968 (struct grub_efi_memory_mapped_device_path): New structure.
46969 (grub_efi_memory_mapped_device_path_t): New type.
46970 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46971 (struct grub_efi_vendor_device_path): New structure.
46972 (grub_efi_vendor_device_path_t): New type.
46973 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46974 (struct grub_efi_controller_device_path): New structure.
46975 (grub_efi_controller_device_path_t): New type.
46976 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46977 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46978 (struct grub_efi_acpi_device_path): New structure.
46979 (grub_efi_acpi_device_path_t): New type.
46980 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46981 (struct grub_efi_expanded_acpi_device_path): New structure.
46982 (grub_efi_expanded_acpi_device_path_t): New type.
46983 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46984 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46985 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46986 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46987 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46988 (struct grub_efi_atapi_device_path): New structure.
46989 (grub_efi_atapi_device_path_t): New type.
46990 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46991 (struct grub_efi_fibre_channel_device_path): New structure.
46992 (grub_efi_fibre_channel_device_path_t): New type.
46993 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46994 (struct grub_efi_1394_device_path): New structure.
46995 (grub_efi_1394_device_path_t): New type.
46996 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46997 (struct grub_efi_usb_device_path): New structure.
46998 (grub_efi_usb_device_path_t): New type.
46999 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
47000 (struct grub_efi_usb_class_device_path): New structure.
47001 (grub_efi_usb_class_device_path_t): New type.
47002 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
47003 (struct grub_efi_i2o_device_path): New structure.
47004 (grub_efi_i2o_device_path_t): New type.
47005 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
47006 (struct grub_efi_mac_address_device_path): New structure.
47007 (grub_efi_mac_address_device_path_t): New type.
47008 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
47009 (struct grub_efi_ipv4_device_path): New structure.
47010 (grub_efi_ipv4_device_path_t): New type.
47011 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
47012 (struct grub_efi_ipv6_device_path): New structure.
47013 (grub_efi_ipv6_device_path_t): New type.
47014 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
47015 (struct grub_efi_infiniband_device_path): New structure.
47016 (grub_efi_infiniband_device_path_t): New type.
47017 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
47018 (struct grub_efi_uart_device_path): New structure.
47019 (grub_efi_uart_device_path_t): New type.
47020 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
47021 (struct grub_efi_vendor_messaging_device_path): New structure.
47022 (grub_efi_vendor_messaging_device_path_t): New type.
47023 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
47024 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
47025 (struct grub_efi_hard_drive_device_path): New structure.
47026 (grub_efi_hard_drive_device_path_t): New type.
47027 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
47028 (struct grub_efi_cdrom_device_path): New structure.
47029 (grub_efi_cdrom_device_path_t): New type.
47030 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
47031 (struct grub_efi_vendor_media_device_path): New structure.
47032 (grub_efi_vendor_media_device_path_t): New type.
47033 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
47034 (struct grub_efi_file_path_device_path): New structure.
47035 (grub_efi_file_path_device_path_t): New type.
47036 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
47037 (struct grub_efi_protocol_device_path): New structure.
47038 (grub_efi_protocol_device_path_t): New type.
47039 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
47040 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
47041 (struct grub_efi_bios_device_path): New structure.
47042 (grub_efi_bios_device_path_t): New type.
47043 (struct grub_efi_disk_io): New structure.
47044 (grub_efi_disk_io_t): New type.
47045 (struct grub_efi_block_io_media): New structure.
47046 (grub_efi_block_io_media_t): New type.
47047 (struct grub_efi_block_io): New structure.
47048 (grub_efi_block_io_t): New type.
47050 * include/grub/misc.h (grub_stop): Removed.
47051 (grub_exit): New prototype.
47052 (grub_abort): Likewise.
47054 * include/grub/disk.h (enum grub_disk_dev_id): Added
47055 GRUB_DISK_DEVICE_EFIDISK_ID.
47057 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
47058 disk/efi/efidisk.c.
47059 (kernel_syms.lst): Remove the target if an error occurs.
47061 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
47063 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
47064 as it was simply too buggy.
47066 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
47068 * kern/misc.c (grub_lltoa): New function.
47069 (grub_vsprintf): Added support for the long long suffix,
47072 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
47074 * Makefile.in (LDFLAGS): Add variable.
47075 (LD): Remove variable.
47076 * configure.ac: Add -m32 to LDFLAGS.
47077 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47078 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47079 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47080 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47081 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47083 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47084 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47085 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47087 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47089 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47090 length for unknown glyph.
47092 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47094 Add support for pre-loaded modules into the EFI port.
47096 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47097 completely. Accept one more argument DIR. The caller has changed.
47099 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47101 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47102 (grub_efi_loaded_image_guid): New variable.
47103 (grub_efi_get_loaded_image): New function.
47104 (grub_arch_modules_addr): Likewise.
47106 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47109 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47110 (struct grub_efi_loaded_image): New structure.
47111 (grub_efi_loaded_image_t): New type.
47113 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47115 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47116 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47117 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47119 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47121 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47123 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47125 * DISTLIST: Added include/grub/efi/console.h,
47126 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47127 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47129 * include/grub/efi/console.h: New file.
47130 * include/grub/efi/time.h: Likewise.
47131 * include/grub/i386/efi/kernel.h: Likewise.
47132 * kern/efi/init.c: Likewise.
47133 * kern/efi/mm.c: Likewise.
47134 * term/efi/console.c: Likewise.
47136 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47137 (grub_stop): Removed.
47138 (grub_get_rtc): Likewise.
47139 (grub_machine_init): Simply call grub_efi_init.
47140 (grub_machine_fini): Call grub_efi_fini.
47142 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47143 (grub_efi_output_string): Removed.
47144 (grub_efi_stall): New function.
47145 (grub_stop): Likewise.
47146 (grub_get_rtc): Likewise.
47148 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47149 (grub_efi_stall): New prototype.
47150 (grub_efi_allocate_pages): Likewise.
47151 (grub_efi_free_pages): Likewise.
47152 (grub_efi_get_memory_map): Likewise.
47153 (grub_efi_mm_init): Likewise.
47154 (grub_efi_mm_fini): Likewise.
47155 (grub_efi_init): Likewise.
47156 (grub_efi_fini): Likewise.
47158 * include/grub/i386/efi/time.h: Do not include
47159 grub/symbol.h. Include grub/efi/time.h.
47160 (GRUB_TICKS_PER_SECOND): Removed.
47161 (grub_get_rtc): Likewise.
47163 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47164 Added padding. The EFI spec is buggy.
47165 (GRUB_EFI_BLACK): New macro.
47166 (GRUB_EFI_BLUE): Likewise.
47167 (GRUB_EFI_GREEN): Likewise.
47168 (GRUB_EFI_CYAN): Likewise.
47169 (GRUB_EFI_RED): Likewise.
47170 (GRUB_EFI_MAGENTA): Likewise.
47171 (GRUB_EFI_BROWN): Likewise.
47172 (GRUB_EFI_LIGHTGRAY): Likewise.
47173 (GRUB_EFI_BRIGHT): Likewise.
47174 (GRUB_EFI_DARKGRAY): Likewise.
47175 (GRUB_EFI_LIGHTBLUE): Likewise.
47176 (GRUB_EFI_LIGHTGREEN): Likewise.
47177 (GRUB_EFI_LIGHTCYAN): Likewise.
47178 (GRUB_EFI_LIGHTRED): Likewise.
47179 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47180 (GRUB_EFI_YELLOW): Likewise.
47181 (GRUB_EFI_WHITE): Likewise.
47182 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47183 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47184 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47185 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47186 (GRUB_EFI_BACKGROUND_RED): Likewise.
47187 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47188 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47189 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47190 (GRUB_EFI_TEXT_ATTR): Likewise.
47192 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47193 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47194 (kernel_mod_HEADERS): Added efi/time.h.
47196 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47198 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47199 include/grub/efi/api.h, include/grub/efi/console_control.h,
47200 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47201 include/grub/i386/efi/time.h, kern/efi/efi.c,
47202 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47203 and util/i386/efi/grub-mkimage.c.
47205 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47207 * genmk.rb (PModule#rule): Do not export symbols if
47208 #{prefix}_EXPORTS is set to "no".
47210 * conf/i386-efi.mk: New file.
47211 * conf/i386-efi.rmk: Likewise.
47212 * include/grub/efi/api.h: Likewise.
47213 * include/grub/efi/console_control.h: Likewise.
47214 * include/grub/efi/efi.h: Likewise.
47215 * include/grub/efi/pe32.h: Likewise.
47216 * include/grub/i386/efi/time.h: Likewise.
47217 * kern/efi/efi.c: Likewise.
47218 * kern/i386/efi/init.c: Likewise.
47219 * kern/i386/efi/startup.S: Likewise.
47220 * util/i386/efi/grub-mkimage.c: Likewise.
47222 2006-04-17 Marco Gerards <marco@gnu.org>
47224 * include/grub/script.h: Include <grub/parser.h> and
47225 "grub_script.tab.h".
47226 (struct grub_lexer_param): New struct.
47227 (struct grub_parser_param): Likewise.
47228 (grub_script_create_arglist): Pass the state in an argument.
47229 (grub_script_add_arglist): Likewise.
47230 (grub_script_create_cmdline): Likewise.
47231 (grub_script_create_cmdblock): Likewise.
47232 (grub_script_create_cmdif): Likewise.
47233 (grub_script_create_cmdmenu): Likewise.
47234 (grub_script_add_cmd): Likewise.
47235 (grub_script_arg_add): Likewise.
47236 (grub_script_lexer_ref): Likewise.
47237 (grub_script_lexer_deref): Likewise.
47238 (grub_script_lexer_record_start): Likewise.
47239 (grub_script_lexer_record_stop): Likewise.
47240 (grub_script_mem_record): Likewise.
47241 (grub_script_mem_record_stop): Likewise.
47242 (grub_script_malloc): Likewise.
47243 (grub_script_yylex): Likewise.
47244 (grub_script_yyparse): Likewise.
47245 (grub_script_yyerror): Likewise.
47246 (grub_script_yylex): Likewise.
47247 (grub_script_lexer_init): Return the state.
47249 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47250 (grub_script_lexer_done): Likewise.
47251 (grub_script_lexer_getline): Likewise.
47252 (grub_script_lexer_refs): Likewise.
47253 (script): Likewise.
47254 (newscript): Likewise.
47255 (record): Likewise.
47256 (recording): Likewise.
47257 (recordpos): Likewise.
47258 (recordlen): Likewise.
47259 (grub_script_lexer_init): Return the state instead of setting
47261 (grub_script_lexer_ref): Use the newly added argument for state
47262 instead of globals.
47263 (grub_script_lexer_deref): Likewise.
47264 (grub_script_lexer_record_start): Likewise.
47265 (grub_script_lexer_record_stop): Likewise.
47266 (recordchar): Likewise.
47267 (nextchar): Likewise.
47268 (grub_script_yylex2): Likewise.
47269 (grub_script_yylex): Likewise.
47270 (grub_script_yyerror): Likewise.
47272 * normal/parser.y (func_mem): Removed variable.
47273 (menu_entry): Likewise.
47275 (%lex-param): New parser option.
47276 (%parse-param): Likewise.
47277 (script): Always return the AST.
47278 (argument): Pass the state around.
47279 (arguments): Likewise.
47280 (grubcmd): Likewise.
47281 (commands): Likewise.
47282 (function): Likewise.
47283 (menuentry): Likewise.
47284 (if_statement): Likewise.
47287 * normal/script.c (grub_script_memused): Removed variable.
47288 (grub_script_parsed): Likewise.
47289 (grub_script_malloc): Added a state argument. Use that instead of
47291 (grub_script_mem_record): Likewise.
47292 (grub_script_mem_record_stop): Likewise.
47293 (grub_script_arg_add): Likewise.
47294 (grub_script_add_arglist): Likewise.
47295 (grub_script_create_cmdline): Likewise.
47296 (grub_script_create_cmdif): Likewise.
47297 (grub_script_create_cmdmenu): Likewise.
47298 (grub_script_add_cmd): Likewise.
47299 (grub_script_parse): Setup the state before calling the parser.
47301 2006-04-16 Marco Gerards <marco@gnu.org>
47303 * normal/command.c (grub_command_init): Remove the title command.
47305 * normal/lexer.c (grub_script_yylex): Renamed from this...
47306 (grub_script_yylex2): ... to this.
47307 (grub_script_yylex): New function. Temporary
47308 introduced to filter some tokens.
47309 (grub_script_yyerror): Print a newline.
47311 * normal/main.c (read_config_file): Output information about the
47312 lines that contain errors. Wait for a key after all lines have
47313 been processed. Don't return an empty menu.
47315 * normal/parser.y (func_mem): Don't initialize.
47316 (menu_entry): Likewise.
47317 (err): New variable.
47318 (script): Don't return anything when an error was encountered.
47319 (ws, returns): Removed rules.
47320 (argument): Disabled concatenated variable support.
47321 (arguments): Remove explicit separators.
47322 (grubcmd): Likewise.
47323 (function): Likewise.
47324 (menuentry): Likewise.
47326 (commands): Likewise. Add error handling.
47328 * normal/script.c (grub_script_create_cmdline): If
47329 `grub_script_parsed' is 0, assume the parser encountered an error.
47331 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47333 * configure.ac: Add support for EFI. Fix the typo
47334 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47336 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47338 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47339 foreign multibyte characters should be shown correctly.
47341 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47343 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47345 (read_config_file): Made it to close file before returning.
47347 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47349 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47350 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47351 video/i386/pc/vbefill.c.
47353 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47354 video/i386/pc/vbefill.c.
47356 * include/grub/video.h (grub_video_blit_format): New enum.
47357 (grub_video_mode_info): Added new member blit_format.
47358 (grub_video_get_blit_format): New function prototype.
47360 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47361 function prototype.
47362 (grub_video_vbe_map_rgb): Likewise.
47363 (grub_video_vbe_unmap_color): Likewise.
47365 * include/grub/i386/pc/vbeblit.h: New file.
47367 * include/grub/i386/pc/vbefill.h: New file.
47369 * video/video.c (grub_video_get_blit_format): New function.
47370 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47371 (grub_video_vbe_map_rgb): Likewise.
47372 (grub_video_vbe_unmap_color): Likewise.
47374 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47376 (grub_video_vbe_blit_render_target): Changed to use more optimized
47378 (grub_video_vbe_setup): Added detection for optimized settings.
47379 (grub_video_vbe_create_render_target): Likewise.
47381 * video/i386/pc/vbeblit.c: New file.
47383 * video/i386/pc/vbefill.c: New file.
47385 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47387 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47390 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47391 parsing to support both hex and dec ranges. If filename was missing
47392 show usage information.
47394 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47396 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47397 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47399 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47400 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47401 (video_mod_SOURCES): Added.
47402 (video_mod_CFLAGS): Likewise.
47403 (video_mod_LDFLAGS): Likewise.
47404 (gfxterm_mod_SOURCES): Likewise.
47405 (gfxterm_mod_CFLAGS): Likewise.
47406 (gfxterm_mod_LDFLAGS): Likewise.
47407 (videotest_mod_SOURCES): Likewise.
47408 (videotest_mod_CFLAGS): Likewise.
47409 (videotest_mod_LDFLAGS): Likewise.
47410 (vesafb_mod_SOURCES): Removed.
47411 (vesafb_mod_CFLAGS): Likewise.
47412 (vesafb_mod_LDFLAGS): Likewise.
47413 (vga_mod_SOURCES): Likewise.
47414 (vga_mod_CFLAGS): Likewise.
47415 (vga_mod_LDFLAGS): Likewise.
47417 * commands/videotest.c: New file.
47419 * font/manager.c (fill_with_default_glyph): Modified to use
47421 (grub_font_get_glyph): Likewise.
47422 (fontmanager): Renamed from this...
47423 (font_manager): ... to this.
47425 * include/grub/font.h (grub_font_glyph): Added new structure.
47426 (grub_font_get_glyph): Modified to use grub_font_glyph.
47428 * include/grub/misc.h (grub_abs): Added as inline function.
47430 * include/grub/video.h: New file.
47432 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47433 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47434 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47435 (grub_vbe_get_controller_info): Renamed from this...
47436 (grub_vbe_bios_get_controller_info): ... to this.
47437 (grub_vbe_get_mode_info): Renamed from this...
47438 (grub_vbe_bios_get_mode_info): ... to this.
47439 (grub_vbe_set_mode): Renamed from this...
47440 (grub_vbe_bios_set_mode): ... to this.
47441 (grub_vbe_get_mode): Renamed from this...
47442 (grub_vbe_bios_get_mode): ... to this.
47443 (grub_vbe_set_memory_window): Renamed from this...
47444 (grub_vbe_bios_set_memory_window): ... to this.
47445 (grub_vbe_get_memory_window): Renamed from this...
47446 (grub_vbe_bios_get_memory_window): ... to this.
47447 (grub_vbe_set_scanline_length): Renamed from this...
47448 (grub_vbe_set_scanline_length): ... to this.
47449 (grub_vbe_get_scanline_length): Renamed from this...
47450 (grub_vbe_bios_get_scanline_length): ... to this.
47451 (grub_vbe_set_display_start): Renamed from this...
47452 (grub_vbe_bios_set_display_start): ... to this.
47453 (grub_vbe_get_display_start): Renamed from this...
47454 (grub_vbe_bios_get_display_start): ... to this.
47455 (grub_vbe_set_palette_data): Renamed from this...
47456 (grub_vbe_bios_set_palette_data): ... to this.
47457 (grub_vbe_set_pixel_rgb): Removed.
47458 (grub_vbe_set_pixel_index): Likewise.
47460 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47462 (grub_vbe_bios_get_controller_info): ... to this.
47463 (grub_vbe_get_mode_info): Renamed from this...
47464 (grub_vbe_bios_get_mode_info): ... to this.
47465 (grub_vbe_set_mode): Renamed from this...
47466 (grub_vbe_bios_set_mode): ... to this.
47467 (grub_vbe_get_mode): Renamed from this...
47468 (grub_vbe_bios_get_mode): ... to this.
47469 (grub_vbe_set_memory_window): Renamed from this...
47470 (grub_vbe_bios_set_memory_window): ... to this.
47471 (grub_vbe_get_memory_window): Renamed from this...
47472 (grub_vbe_bios_get_memory_window): ... to this.
47473 (grub_vbe_set_scanline_length): Renamed from this...
47474 (grub_vbe_set_scanline_length): ... to this.
47475 (grub_vbe_get_scanline_length): Renamed from this...
47476 (grub_vbe_bios_get_scanline_length): ... to this.
47477 (grub_vbe_set_display_start): Renamed from this...
47478 (grub_vbe_bios_set_display_start): ... to this.
47479 (grub_vbe_get_display_start): Renamed from this...
47480 (grub_vbe_bios_get_display_start): ... to this.
47481 (grub_vbe_set_palette_data): Renamed from this...
47482 (grub_vbe_bios_set_palette_data): ... to this.
47483 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47484 getting corrupted after calling it. Added more pushes and pops.
47485 (grub_vbe_bios_set_mode): Likewise.
47486 (grub_vbe_bios_get_mode): Likewise.
47487 (grub_vbe_bios_get_memory_window): Likewise.
47488 (grub_vbe_bios_set_scanline_length): Likewise.
47489 (grub_vbe_bios_get_scanline_length): Likewise.
47490 (grub_vbe_bios_get_display_start): Likewise.
47491 (grub_vbe_bios_set_palette_data): Likewise.
47493 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47494 (cl_insert): Likewise.
47495 (cl_delete): Likewise.
47497 * term/gfxterm.c: New file.
47499 * term/i386/pc/vesafb.c: Removed file.
47501 * video/video.c: New file.
47503 * video/i386/pc/vbe.c (real2pm): Added new function.
47504 (grub_video_vbe_draw_pixel): Likewise.
47505 (grub_video_vbe_get_video_ptr): Likewise.
47506 (grub_video_vbe_get_pixel): Likewise
47507 (grub_video_vbe_init): Likewise.
47508 (grub_video_vbe_fini): Likewise.
47509 (grub_video_vbe_setup): Likewise.
47510 (grub_video_vbe_get_info): Likewise.
47511 (grub_video_vbe_set_palette): Likewise.
47512 (grub_video_vbe_get_palette): Likewise.
47513 (grub_video_vbe_set_viewport): Likewise.
47514 (grub_video_vbe_get_viewport): Likewise.
47515 (grub_video_vbe_map_color): Likewise.
47516 (grub_video_vbe_map_rgb): Likewise.
47517 (grub_video_vbe_map_rgba): Likewise.
47518 (grub_video_vbe_unmap_color): Likewise.
47519 (grub_video_vbe_fill_rect): Likewise.
47520 (grub_video_vbe_blit_glyph): Likewise.
47521 (grub_video_vbe_blit_bitmap): Likewise.
47522 (grub_video_vbe_blit_render_target): Likewise.
47523 (grub_video_vbe_scroll): Likewise.
47524 (grub_video_vbe_swap_buffers): Likewise.
47525 (grub_video_vbe_create_render_target): Likewise.
47526 (grub_video_vbe_delete_render_target): Likewise.
47527 (grub_video_vbe_set_active_render_target): Likewise.
47528 (grub_vbe_set_pixel_rgb): Remove function.
47529 (grub_vbe_set_pixel_index): Likewise.
47530 (index_color_mode): Remove static variable.
47531 (active_mode): Likewise.
47532 (framebuffer): Likewise.
47533 (bytes_per_scan_line): Likewise.
47534 (grub_video_vbe_adapter): Added new static variable.
47535 (framebuffer): Likewise.
47536 (render_target): Likewise.
47537 (initial_mode): Likewise.
47538 (mode_in_use): Likewise.
47539 (mode_list): Likewise.
47541 2006-03-10 Marco Gerards <marco@gnu.org>
47543 * configure.ac (AC_INIT): Bumped to 1.93.
47545 * DISTLIST: Added `include/grub/hfs.h'.
47547 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47549 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47550 18H, which might help the BIOS falling back to next boot media.
47552 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47554 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47555 Poe Chen <poe.poechen@gmail.com>.
47557 2006-01-17 Marco Gerards <marco@gnu.org>
47559 * include/grub/normal.h: Include <grub/script.h>.
47560 (grub_command_list): Removed struct.
47561 (grub_command_list_t): Removed type.
47562 (grub_menu_entry): Remove members `num' and `command_list'. Add
47563 members `commands' and `sourcecode'.
47564 * include/grub/script.h: Add inclusion guards.
47565 (grub_script_cmd_menuentry): New struct.
47566 (grub_script_execute_menuentry): New prototype.
47567 (grub_script_lexer_record_start): Likewise.
47568 (grub_script_lexer_record_stop): Likewise.
47569 * normal/execute.c (grub_script_execute_menuentry): New function.
47570 * normal/lexer.c (record, recording, recordpos, recordlen): New
47572 (grub_script_lexer_record_start): New function.
47573 (grub_script_lexer_record_stop): Likewise.
47574 (recordchar): Likewise.
47575 (nextchar): Likewise.
47576 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47577 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47578 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47579 (current_menu): New variable.
47580 (free_menu): Mainly rewritten.
47581 (grub_normal_menu_addentry): New function.
47582 (read_config_file): Rewritten.
47583 * normal/menu.c (run_menu_entry): Mainly rewritten.
47584 * normal/menu_entry.c (make_screen): Rewritten the code to insert
47586 (run): Mainly rewritten.
47587 * normal/parser.y (menu_entry): New variable.
47588 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47589 (menuentry): New rule.
47590 (command): Add `menuentry'.
47591 (if_statement): Allow additional returns before `fi'.
47592 * normal/script.c (grub_script_create_cmdmenu): New function.
47594 2006-01-03 Marco Gerards <marco@gnu.org>
47596 * INSTALL: GNU Bison is required.
47597 * configure.ac: Rewritten the test to detect Bison.
47598 * Makefile.in (YACC): New variable. Reported by Xun Sun
47599 <xun.sun.cn@gmail.com>.
47601 2006-01-03 Marco Gerards <marco@gnu.org>
47603 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47604 the HFS+ filesystem to filesystem blocks.
47605 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47606 GCC warning is silenced.
47608 2006-01-03 Marco Gerards <marco@gnu.org>
47610 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47611 read from disk from big endian to host byte order.
47613 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47615 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47617 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47618 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47619 embedded HFS+ filesystem.
47620 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47621 (grub_hfs_sblock): Move from here...
47622 * include/grub/hfs.h: To here... New file.
47623 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47625 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47627 (grub_hfsplus_volheader): Change type of member `magic' to
47629 (grub_hfsplus_data): Add new member `embedded_offset'.
47630 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47632 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47633 Calculate the offset.
47635 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47637 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47639 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47641 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47643 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47644 ENV->NAME is NULL after allocating ENV->VALUE.
47646 2005-12-25 Marco Gerards <marco@gnu.org>
47648 * kern/env.c (grub_env_set): Rewritten the error handling code.
47650 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47652 * geninit.sh: Made more robust, and more portable.
47654 2005-12-25 Marco Gerards <marco@gnu.org>
47656 Add support for Apple HFS+ filesystems.
47658 * fs/hfsplus.c: New file.
47660 * DISTLIST: Added `fs/hfsplus.c'.
47662 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47663 (hfsplus_mod_SOURCES): New variable.
47664 (hfsplus_mod_CFLAGS): Likewise.
47665 (hfsplus_mod_LDFLAGS): Likewise.
47666 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47667 (grub_setup_SOURCES): Likewise.
47668 (grub_mkdevicemap_SOURCES): Likewise.
47669 (grub_emu_SOURCES): Likewise.
47670 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47672 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47674 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47676 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47678 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47679 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47680 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47681 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47682 normal/lexer.c, normal/parser.y, normal/script.c, and
47684 Removed kern/sparc64/cache.c.
47686 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47687 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47690 * configure.ac (AC_INIT): Bumped to 1.92.
47692 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47694 * kern/err.c (grub_error_push): Added new function to support error
47696 (grub_error_pop): Likewise.
47697 (grub_error_stack_items): New local variable to support error stacks.
47698 (grub_error_stack_pos): Likewise.
47699 (grub_error_stack_assert): Likewise.
47700 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47702 (grub_print_error): Added support to print errors from error stack.
47704 * include/grub/err.h (grub_error_push): Added function prototype.
47705 (grub_error_pop): Likewise.
47707 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47709 * configure.ac: Accept `powerpc64' as host_cpu.
47710 (amd64): Rename to `biarch32'.
47712 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47713 non-cacheline-aligned addresses.
47715 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47716 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47717 if `size' is non-zero.
47719 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
47721 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47722 and `cd' to make sure the filename is not prefixed with a
47724 (pkgdata_MODULES): Add `gpt.mod'.
47725 (gpt_mod_SOURCES): New variable.
47726 (gpt_mod_CFLAGS): Likewise.
47727 (gpt_mod_LDFLAGS): Likewise.
47729 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47731 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47734 * partmap/gpt.c: New file.
47736 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47737 GPT partition map is detected.
47739 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47741 * commands/i386/pc/play.c: New file.
47742 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47743 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47746 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
47748 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47749 ((unused))' to silence gcc warning.
47751 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47753 * configure.ac: Correct `AC_PROG_YACC' test.
47755 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47757 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47758 check before installing files.
47760 2005-11-22 Mike Small <smallm@panix.com>
47762 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47763 number regex so multidigit numbers are recognized correctly.
47765 2005-11-22 Mike Small <smallm@panix.com>
47767 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47768 debugging message before attempting to claim memory.
47769 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47770 multiple addresses in case of failure.
47772 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47774 * term/tparm.c (get_space): Remove empty `if' statement.
47776 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47778 * kern/parser.c (check_varstate): Rename `state' to 's'.
47780 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47782 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47783 variable definitions to the beginning of each function. Sort stack
47785 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47786 `buf' argument to `char *'.
47788 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47790 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47791 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
47792 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
47793 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47794 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47795 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47796 configfile.mod, search.mod, gzio.mod and test.mod.
47797 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47798 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47799 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47800 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47801 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47802 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47803 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47804 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47805 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47806 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47807 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47808 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47809 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47810 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47811 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47812 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47813 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47814 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47815 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47816 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47817 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47818 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47819 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47821 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47823 (pkgdata_MODULES): Add test.mod.
47825 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47827 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47828 appending to variables with "+=".
47829 (PModule): Use full pathname to generate *.lst filenames.
47831 * Makefile.in: Fixed list rules moved from genmk.rb.
47832 (.DELETE_ON_ERROR): New special target.
47833 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47835 * conf/i386-pc.rmk: Include conf/common.mk.
47836 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
47837 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
47838 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47839 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47840 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47841 configfile.mod, search.mod, gzio.mod and test.mod.
47842 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47843 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47844 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47845 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47846 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47847 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47848 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47849 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47850 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47851 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47852 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47853 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47854 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47855 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47856 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47857 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47858 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47859 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47860 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47861 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47862 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47863 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47864 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47866 * conf/common.rmk: ... to here. New file.
47868 * conf/common.mk: New file.
47870 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47872 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47873 (grub_script.tab.c): ... here.
47875 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47876 (grub_script.tab.c): ... here.
47878 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47879 (grub_script.tab.c): ... here.
47881 * normal/command.c (grub_command_find): Fixed a memory leak of
47882 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47884 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47886 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47887 "@" which marks the start of a comment on ARM.
47888 (VARIABLE): Likewise.
47890 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47892 Add support for Linux/ADFS partition tables.
47894 * partmap/acorn.c: New file.
47896 * include/grub/acorn_filecore.h: Likewise.
47898 * DISTLIST: Added `partmap/acorn.c' and
47899 `include/grub/acorn_filecore.h'.
47901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47903 (pkgdata_MODULES): Add `acorn.mod'.
47904 (acorn_mod_SOURCES): New variable.
47905 (acorn_mod_CFLAGS): Likewise.
47907 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47909 (pkgdata_MODULES): Add `acorn.mod'.
47910 (acorn_mod_SOURCES): New variable.
47911 (acorn_mod_CFLAGS): Likewise.
47913 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47914 (pkgdata_MODULES): Add `acorn.mod'.
47915 (acorn_mod_SOURCES): New variable.
47916 (acorn_mod_CFLAGS): Likewise.
47917 (acorn_mod_LDFLAGS): Likewise.
47919 * include/types.h (grub_disk_addr_t): New typedef.
47921 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
47923 * geninit.sh: New file.
47925 * geninitheader.sh: Likewise.
47927 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47928 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47929 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47930 * commands/configfile.c (grub_configfile_init)
47931 (grub_configfile_fini): Likewise.
47932 * commands/default.c (grub_default_init, grub_default_fini):
47934 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47935 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47936 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47937 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47939 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47940 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47942 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
47943 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
47945 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47947 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
47949 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47950 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47951 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47952 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47953 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47954 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47955 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47956 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47957 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47958 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47959 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47960 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47961 * partmap/amiga.c (grub_amiga_partition_map_init)
47962 (grub_amiga_partition_map_fini): Likewise.
47963 * partmap/apple.c (grub_apple_partition_map_init)
47964 (grub_apple_partition_map_fini): Likewise.
47965 * partmap/pc.c (grub_pc_partition_map_init)
47966 (grub_pc_partition_map_fini): Likewise.
47967 * partmap/sun.c (grub_sun_partition_map_init,
47968 grub_sun_partition_map_fini): Likewise.
47969 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47972 * util/grub-emu.c: Include <grub_modules_init.h>.
47973 (main): Don't initialize and de-initialize any modules directly,
47974 use `grub_init_all' and `grub_fini_all' instead.
47976 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47977 `grub_vesafb_mod_init'.
47978 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47980 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47981 `grub_vga_mod_init'. Updated all users.
47982 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
47984 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47985 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47988 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47989 Generate a function to initialize the module in utilities.
47990 Updated all callers.
47991 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47992 initialize the module in utilities. Updated all callers.
47994 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47996 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47997 escape sequence and a literal ^L to clear the screen.
47999 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
48000 when returning from Open Firmware.
48002 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48004 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
48005 (grub_ofconsole_height): Likewise.
48006 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
48007 manually insert a '\n'.
48008 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
48009 `grub_ofconsole_height'. Return early if these are already set.
48011 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
48013 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48014 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
48015 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
48016 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
48017 and `normal/script.c'.
48018 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48019 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48020 (test_mod_SOURCES): New variable.
48021 (test_mod_CFLAGS): Likewise.
48022 (test_mod_LDFLAGS): Likewise.
48023 (pkgdata_MODULES): Add `test.mod'.
48024 (grub_script.tab.c): New rule.
48025 (grub_script.tab.h): Likewise.
48027 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
48029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48030 `commands/test.c', `normal/execute.c', `normal/lexer.c',
48031 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48032 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48033 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48034 (test_mod_SOURCES): New variable.
48035 (test_mod_CFLAGS): Likewise.
48036 (pkgdata_MODULES): Add `test.mod'.
48037 (grub_script.tab.c): New rule.
48038 (grub_script.tab.h): Likewise.
48040 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
48042 Add initial scripting support.
48044 * commands/test.c: New file.
48045 * include/grub/script.h: Likewise.
48046 * normal/execute.c: Likewise.
48047 * normal/function.c: Likewise.
48048 * normal/lexer.c: Likewise.
48049 * normal/parser.y: Likewise.
48050 * normal/script.c: Likewise.
48052 * configure.ac: Add `AC_PROG_YACC' test.
48054 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
48055 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
48056 `normal/function.c' and `normal/script.c'.
48057 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48058 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48059 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
48061 (pkgdata_MODULES): Add `test.mod'.
48062 (grub_script.tab.c): New rule.
48063 (grub_script.tab.h): Likewise.
48065 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
48067 * include/grub/normal.h (grub_test_init): New prototype.
48068 (grub_test_fini): Likewise.
48070 * normal/command.c: Include <grub/script.h>.
48071 (grub_command_execute): Rewritten.
48073 * util/grub-emu.c (main): Call `grub_test_init' and
48076 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48078 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48080 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48081 there are no pending characters.
48083 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48085 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48086 `grub_strndup' to drop device arguments. Replace unnecessary
48087 `grub_strndup' with `grub_strdup'.
48089 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48091 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48092 `debug' environment variable has been set.
48094 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
48096 * Makefile.in (install-local): Use $(DATA).
48097 (uninstall): Likewise.
48098 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48099 (sbin_UTILITIES): ... to here.
48100 (sbin_SCRIPTS): New variable.
48101 (grub_install_SOURCES): New variable.
48102 * util/powerpc/ieee1275/grub-install.in: New file.
48103 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48105 (add_segments): Call `grub_util_get_path'.
48107 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48109 From Timothy Baldwin:
48110 * commands/ls.c (grub_ls_list_files): Close FILE with
48112 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48114 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
48116 * include/grub/parser.h: New file.
48118 * kern/parser.c: Likewise.
48120 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48121 (grub_setup_SOURCES): Likewise.
48122 (grub_probefs_SOURCES): Likewise.
48123 (grub_emu_SOURCES): Likewise.
48124 (kernel_img_HEADERS): Add `parser.h'.
48126 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48127 (grub_emu_SOURCES): Add `kern/parser.c'.
48128 (grubof_SOURCES): Likewise.
48130 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48131 (grubof_SOURCES): Add `kern/parser.c'.
48133 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48135 * kern/misc.c (grub_split_cmdline): Removed function.
48137 * kern/rescue.c: Include <grub/parser.h>.
48138 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48139 of `grub_split_cmdline'.
48141 * normal/command.c: Include <grub/parser.h>.
48142 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48143 of `grub_split_cmdline'.
48145 * normal/completion.c: Include <grub/parser.h>.
48146 (cmdline_state): New variable.
48147 (iterate_dir): End the filename with a quote depending on the
48148 command line state.
48149 (get_state): new function.
48150 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48151 split the arguments and determine the current argument. When the
48152 argument string is not quoted, escape all spaces.
48154 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48156 * normal/sparc64/setjmp.S: New file.
48158 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48160 * include/grub/sparc64/libgcc.h: New file.
48161 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48162 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48163 normal/sparc64/setjmp.c.
48165 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48167 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48168 * kern/sparc64/cache.S: New file.
48169 * kern/sparc64/cache.c: Removed.
48170 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48171 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48173 (COMMON_LDFLAGS): Add -melf64_sparc.
48174 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48175 (grubof_SOURCES): Use cache.S instead of cache.c.
48176 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48177 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48178 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48180 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48181 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48182 (linux_mod_CFLAGS): Commented out.
48183 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48184 out because module isn't built.
48185 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48186 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48187 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48188 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48189 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48190 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48191 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48192 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48193 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48194 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48195 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48196 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48197 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48198 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48200 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48202 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48203 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48204 longer, because HFS should not be used on PC.
48206 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48208 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48209 consistently within the loop.
48211 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
48213 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48214 directory can not be read.
48216 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48218 * configure.ac (AC_INIT): Increase the version number to 1.91.
48220 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48221 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48222 term/i386/pc/serial.c.
48224 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48226 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48227 file size must be permitted.
48229 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48230 between %ah and %al.
48232 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48234 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48236 Call the hook with a NUL-terminated filename.
48237 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48240 * kern/term.c (cursor_state): New variable.
48241 (grub_term_set_current): Reset the cursor state on a new
48243 (grub_setcursor): Rewritten to use CURSOR_STATE.
48244 (grub_getcursor): New function.
48246 * include/grub/term.h (grub_getcursor): New prototype.
48248 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48249 integers on ARM. Reported by Timothy Baldwin
48250 <T.E.Baldwin99@members.leeds.ac.uk>.
48252 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
48254 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48256 (grub_sfs_dir): Likewise.
48258 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
48260 Add support for the SFS filesystem.
48262 * fs/sfs.c: New file.
48264 * DISTLIST: Added `fs/sfs.c'.
48266 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48267 (grub_probefs_SOURCES): Likewise.
48268 (grub_emu_SOURCES): Likewise.
48269 (pkgdata_MODULES): Add `sfs.mod'.
48270 (sfs_mod_SOURCES): New variable.
48271 (sfs_mod_CFLAGS): Likewise.
48272 (sfs_mod_LDFLAGS): Likewise.
48274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48275 (pkgdata_MODULES): Add `sfs.mod'.
48276 (sfs_mod_SOURCES): New variable.
48277 (sfs_mod_CFLAGS): Likewise.
48279 * util/grub-emu.c (main): Call `grub_sfs_init' and
48282 * include/grub/fs.h (grub_sfs_init): New prototype.
48283 (grub_sfs_fini): Likewise.
48285 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
48287 Add support for the AFFS filesystem.
48289 * fs/affs.c: New file.
48291 * DISTLIST: Added `fs/affs.c'.
48293 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48294 (grub_probefs_SOURCES): Likewise.
48295 (grub_emu_SOURCES): Likewise.
48296 (pkgdata_MODULES): Add `affs.mod'.
48297 (affs_mod_SOURCES): New variable.
48298 (affs_mod_CFLAGS): Likewise.
48299 (affs_mod_LDFLAGS): Likewise.
48301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48302 (pkgdata_MODULES): Add `affs.mod'.
48303 (affs_mod_SOURCES): New variable.
48304 (affs_mod_CFLAGS): Likewise.
48306 * util/grub-emu.c (main): Call `grub_affs_init' and
48309 * include/grub/fs.h (grub_affs_init): New prototype.
48310 (grub_affs_fini): Likewise.
48312 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
48314 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48316 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
48318 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48321 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48324 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48325 (COMMON_LDFLAGS): New variable.
48326 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48327 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48328 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48329 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48330 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48331 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48332 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48333 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48334 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48335 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48336 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48337 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48338 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48339 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48340 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48342 (normal_mod_ASFLAGS): Add `-m32'.
48344 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48345 (grub_host_size_t, grub_host_ssize_t): New types.
48346 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
48347 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
48348 `GRUB_HOST_SIZEOF_VOID_P'.
48350 * include/grub/kernel.h (struct grub_module_header): Type of
48351 member offset changed to `grub_host_off_t'. Type of member size
48352 changed to `grub_host_size_t'.
48353 (struct grub_module_info): Type of member offset changed to
48354 `grub_host_off_t'. Type of member size changed to
48355 `grub_host_size_t'.
48357 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48359 Make GRUB's kernel compliant to Multiboot Specification.
48361 * kern/i386/pc/startup.S (multiboot_header): New label.
48362 (multiboot_entry): Likewise.
48363 (multiboot_trampoline): Likewise.
48365 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48366 Increased to 0x4A0.
48368 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48369 put parentheses after a question mark.
48370 [!GRUB_UTIL] (my_mod): New variable.
48372 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48374 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
48376 Adds support for the XFS filesystem. Btrees are not supported
48379 * fs/xfs.c: New file.
48381 * DISTLIST: Added `fs/xfs.c'.
48383 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48384 (grub_probefs_SOURCES): Likewise.
48385 (grub_emu_SOURCES): Likewise.
48386 (pkgdata_MODULES): Add `xfs.mod'.
48387 (xfs_mod_SOURCES): New variable.
48388 (xfs_mod_CFLAGS): Likewise.
48390 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48391 (pkgdata_MODULES): Add `xfs.mod'.
48392 (xfs_mod_SOURCES): New variable.
48393 (xfs_mod_CFLAGS): Likewise.
48395 * util/grub-emu.c (main): Call `grub_xfs_init' and
48398 * include/grub/fs.h (grub_xfs_init): New prototype.
48399 (grub_xfs_fini): Likewise.
48402 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48404 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48405 color modes, allow greater than 16 colors to be configured as
48408 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48410 * normal/completion.c (complete_arguments): Add the qualifier
48411 const into OPTIONS.
48413 From Omniflux <omniflux+lists@omniflux.com>:
48414 * include/grub/terminfo.h: New file.
48415 * include/grub/tparm.h: Likewise.
48416 * include/grub/i386/pc/serial.h: Likewise.
48417 * term/terminfo.c: Likewise.
48418 * term/tparm.c: Likewise.
48419 * term/i386/pc/serial.c: Likewise.
48420 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48422 (terminfo_mod_SOURCES): New variable.
48423 (terminfo_mod_CFLAGS): Likewise.
48424 (serial_mod_SOURCES): Likewise.
48425 (serial_mod_CFLAGS): Likewise.
48427 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48429 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48430 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48431 and kern/powerpc/ieee1275/cmain.c, respectively.
48433 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48434 * kern/powerpc/ieee1275/crt0.S: ... here.
48436 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48437 * kern/powerpc/ieee1275/cmain.c: ... here.
48439 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48440 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48441 instead of boot/powerpc/ieee1275/crt0.S and
48442 boot/powerpc/ieee1275/cmain.c, respectively.
48444 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48445 sectors. It was not used anyway.
48447 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48449 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48450 `unused parameter' warning.
48452 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48454 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48456 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48459 2005-08-28 Marco Gerards <metgerards@student.han.nl>
48461 * include/grub/normal.h (enum grub_completion_type): Added
48462 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48464 * normal/cmdline.c (print_completion): Handle
48465 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48466 * normal/menu_entry.c (store_completion): Likewise.
48468 * normal/completion.c (complete_arguments): New function.
48469 (grub_normal_do_completion): Call `complete_arguments' when the
48470 current words start with a dash.
48472 2005-08-27 Marco Gerards <metgerards@student.han.nl>
48474 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48475 `gzio.mod' instead of `io.mod').
48477 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48479 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48480 (DISTDIRS): Added io and video.
48481 Rewrite the search routine to make an output consistently.
48483 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48484 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48485 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48486 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48487 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48488 util/powerpc/ieee1275/misc.c.
48490 * include/grub/gzio.h: New file.
48491 * io/gzio.c: Likewise.
48493 * kern/file.c (grub_file_close): Call grub_device_close only if
48494 FILE->DEVICE is not NULL.
48496 * include/grub/mm.h [!NULL] (NULL): New macro.
48498 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48500 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48501 (pkgdata_MODULES): Added gzio.mod.
48502 (gzio_mod_SOURCES): New variable.
48503 (gzio_mod_CFLAGS): Likewise.
48505 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48506 (pkgdata_MODULES): Added gzio.mod.
48507 (gzio_mod_SOURCES): New variable.
48508 (gzio_mod_CFLAGS): Likewise.
48510 * commands/cat.c: Include grub/gzio.h.
48511 (grub_cmd_cat): Use grub_gzfile_open instead of
48514 * commands/cmp.c: Include grub/gzio.h.
48515 (grub_cmd_cmp): Use grub_gzfile_open instead of
48518 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48519 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48521 (grub_rescue_cmd_module): Likewise.
48523 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48525 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48526 kern/sparc64/ieee1275/init.c because it contains _start.
48527 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48529 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48531 * configure.ac: Add support for sparc64 host with ieee1275
48533 * configure: Generated from configure.ac.
48534 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48536 (grub_ofdisk_read): Likewise.
48537 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48538 pointers as (void *) to remove a warning.
48539 (grub_ofdisk_close): Likewise.
48540 (grub_ofdisk_read): Likewise.
48541 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48542 returns, so make it return void to remove a warning.
48543 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48544 Corresponding prototype change.
48545 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48546 values, and cast the pointers as (void *) to remove a warning.
48547 (grub_mm_dump): Likewise.
48548 * conf/sparc64-ieee1275.mk: New file.
48549 * conf/sparc64-ieee1275.rmk: Likewise.
48550 * include/grub/sparc64/setjmp.h: Likewise.
48551 * include/grub/sparc64/types.h: Likewise.
48552 * include/grub/sparc64/ieee1275/console.h: Likewise.
48553 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48554 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48555 * include/grub/sparc64/ieee1275/time.h: Likewise.
48556 * kern/sparc64/cache.c: Likewise.
48557 * kern/sparc64/dl.c: Likewise.
48558 * kern/sparc64/ieee1275/init.c: Likewise.
48559 * kern/sparc64/ieee1275/openfw.c: Likewise.
48561 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48563 * util/console.c (grub_ncurses_putchar): If C is greater than
48564 0x7f, set C to a question mark.
48565 (grub_ncurses_getcharwidth): New function.
48566 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48569 * normal/menu.c (print_entry): Made aware of Unicode. First,
48570 convert TITLE to UCS-4, and predict the cursor position by
48573 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48575 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48577 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48579 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48580 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48583 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48584 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48585 grub_strcpy and grub_strlen. Take it into account that a space
48586 character is inserted as a delimiter.
48588 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48590 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
48591 invalid magic in the error.
48593 * commands/search.c: New file.
48595 * util/grub-emu.c (main): Call grub_search_init and
48598 * kern/rescue.c (grub_rescue_print_disks): Removed.
48599 (grub_rescue_print_devices): New function.
48600 (grub_rescue_cmd_ls): Use grub_device_iterate with
48601 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48602 grub_rescue_print_disks.
48604 * kern/partition.c (grub_partition_iterate): Return the result of
48605 PARTMAP->ITERATE instead of GRUB_ERRNO.
48607 * kern/device.c: Include grub/partition.h.
48608 (grub_device_iterate): New function.
48610 * include/grub/partition.h (grub_partition_iterate): Return int
48611 instead of grub_err_t.
48613 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48615 [GRUB_UTIL] (grub_search_fini): Likewise.
48617 * include/grub/device.h (grub_device_iterate): New prototype.
48619 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48621 (pkgdata_MODULES): Added search.mod.
48622 (search_mod_SOURCES): New variable.
48623 (search_mod_CFLAGS): Likewise.
48625 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48626 (pkgdata_MODULES): Added search.mod.
48627 (search_mod_SOURCES): New variable.
48628 (search_mod_CFLAGS): Likewise.
48630 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48631 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48632 All callers changed.
48634 * DISTLIST: Added commands/search.c.
48636 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48638 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48640 (grub_getcharwidth): New function.
48642 * kern/misc.c (grub_utf8_to_ucs4): New function.
48644 * include/grub/term.h (struct grub_term): Added a new member
48646 (grub_getcharwidth): New prototype.
48648 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48650 * term/i386/pc/console.c (map_char): New function. Segregated from
48651 grub_console_putchar.
48652 (grub_console_putchar): Use map_char.
48653 (grub_console_getcharwidth): New function.
48654 (grub_console_term): Specified grub_console_getcharwidth as
48657 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48658 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48660 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48662 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48663 on grub_strtoul completely.
48664 (write_char): Declare local variables in the beginning of the
48666 (grub_vesafb_getcharwidth): New function.
48667 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48670 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48672 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48673 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48674 commands/i386/pc/vbetest.c.
48676 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48677 call grub_vbe_get_controller_info again, because the returned
48678 information is volatile.
48679 (grub_vbe_set_video_mode): Mostly rewritten.
48680 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48681 grub_vbe_status_t correctly.
48682 (grub_vbe_get_video_mode_info): Likewise.
48683 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48684 several if statements.
48686 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48687 * commands/i386/pc/vbeinfo.c: ... this.
48689 * commands/i386/pc/vbe_test.c: Renamed to ...
48690 * commands/i386/pc/vbetest.c: ... this.
48692 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48694 (grub_cmd_vbeinfo): ... this. Save video modes before
48695 iterating. Skip a video mode, if it is not available, not enough
48696 information is given or it is monochrome. Show the memory
48697 model. Leave the interpretation of MODEVAR to grub_strtoul
48699 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48700 (GRUB_MOD_FINI): Likewise.
48702 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48703 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48704 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48705 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48706 grub_strtoul completely.
48707 (real2pm): Removed.
48708 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48709 (GRUB_MOD_FINI): Likewise.
48711 * normal/misc.c: Include grub/mm.h.
48713 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48714 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48715 (vbe_list_modes_mod_SOURCES): Removed.
48716 (vbe_list_modes_mod_CFLAGS): Likewise.
48717 (vbe_test_mod_SOURCES): Likewise.
48718 (vbe_test_mod_CFLAGS): Likewise.
48719 (vbeinfo_mod_SOURCES): New variable.
48720 (vbeinfo_mod_CFLAGS): Likewise.
48721 (vbetest_mod_SOURCES): Likewise.
48722 (vbetest_mod_CFLAGS): Likewise.
48724 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48726 * normal/misc.c: New file.
48728 * DISTLIST: Added normal/misc.c.
48730 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48731 DISK to HOOK. Call HOOK with DISK.
48732 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48733 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48734 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48736 * normal/menu_entry.c (struct screen): Added a new member
48737 "completion_shown".
48738 (completion_buffer): New global variable.
48739 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48740 (store_completion): New function.
48741 (complete): Likewise.
48742 (clear_completions): Likewise.
48743 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48744 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48745 a tab, call complete.
48747 * normal/completion.c (disk_dev): Removed.
48748 (print_simple_completion): Likewise.
48749 (print_partition_completion): Likewise.
48750 (print_func): New global variable.
48751 (add_completion): Do not take the arguments WHAT or PRINT any
48752 longer. Added a new argument TYPE. Instead of printing directly,
48753 call PRINT_FUNC if not NULL.
48754 All callers changed.
48755 (complete_device): Use a local variable DEV instead of
48756 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48757 (grub_normal_do_completion): Take a new argument HOOK. Do not
48758 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48759 empty string, return NULL instead.
48760 All callers changed.
48762 * normal/cmdline.c (print_completion): New function.
48764 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48766 All callers changed.
48768 * kern/disk.c (grub_print_partinfo): Removed.
48770 * include/grub/partition.h (struct grub_partition_map): Add a new
48771 argument DISK into HOOK of ITERATE.
48772 (grub_partition_iterate): Add a new argument DISK to HOOK.
48774 * include/grub/normal.h (enum grub_completion_type): New enum.
48775 (grub_completion_type_t): New type.
48776 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48777 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48778 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48779 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48780 (grub_normal_do_completion): Added a new argument HOOK.
48781 (grub_normal_print_device_info): New prototype.
48783 * include/grub/disk.h (grub_print_partinfo): Removed.
48785 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48786 (normal_mod_SOURCES): Likewise.
48787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48788 (normal_mod_SOURCES): Likewise.
48790 * commands/ls.c (grub_ls_list_disks): Use
48791 grub_normal_print_device_info instead of grub_print_partinfo. Free
48793 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48794 duplicating the code.
48796 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48798 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
48799 follow GCS more precisely.
48800 * commands/i386/pc/vbe_test.c: Likewise.
48801 * include/grub/i386/pc/vbe.h: Likewise.
48802 * term/i386/pc/vesafb.c: Likewise.
48803 * video/i386/pc/vbe.c: Likewise.
48805 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48807 * DISTLIST: Added term/i386/pc/vesafb.c
48808 DISTLIST: Added video/i386/pc/vbe.c
48809 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48810 DISTLIST: Added commands/i386/pc/vbe_test.c.
48811 * commands/i386/pc/vbe_list_modes.c: New file.
48812 * commands/i386/pc/vbe_test.c: Likewise.
48813 * term/i386/pc/vesafb.c: Likewise.
48814 * video/i386/pc/vbe.c: Likewise.
48815 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48816 (grub_vbe_probe) Added prototype.
48817 (grub_vbe_set_video_mode) Likewise.
48818 (grub_vbe_get_video_mode) Likewise.
48819 (grub_vbe_get_video_mode_info) Likewise.
48820 (grub_vbe_set_pixel_rgb) Likewise.
48821 (grub_vbe_set_pixel_index) Likewise.
48822 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48823 (pkgdata_MODULES): Added vesafb.mod.
48824 (pkgdata_MODULES): Added vbe_list_modes.mod.
48825 (pkgdata_MODULES): Added vbe_test.mod.
48826 (vbe_mod_SOURCES): Added.
48827 (vbe_mod_CFLAGS): Likewise.
48828 (vesafb_mod_SOURCES): Likewise.
48829 (vesafb_mod_CFLAGS): Likewise.
48830 (vbe_list_modes_mod_SOURCES): Likewise.
48831 (vbe_list_modes_mod_CFLAGS): Likewise.
48832 (vbe_test_mod_SOURCES): Likewise.
48833 (vbe_test_mod_CFLAGS): Likewise.
48835 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48837 * normal/command.c (grub_command_execute): If INTERACTIVE is
48838 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48839 CMDLINE. Disable the pager if INTERACTIVE is true.
48840 All callers are changed.
48842 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48843 before reading a config file.
48844 * normal/main.c (read_config_file): Even if a command is not
48845 found, register it if it is within an entry.
48847 * util/grub-emu.c: Include sys/types.h and unistd.h.
48848 (options): Added --hold.
48849 (struct arguments): Added a new member "hold".
48850 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48852 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48853 cleared by a debugger, if it is not zero.
48855 * include/grub/normal.h (grub_command_execute): Add an argument
48858 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48860 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48862 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48864 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48865 program with another one, because the old one didn't detect a bug
48866 in gcc-3.4. Always use regparm 2, because the new test is still
48867 not enough for gcc-4.0. Someone must investigate a simple test
48868 case which detects a bug in gcc-4.0.
48870 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48872 * DISTLIST: Added normal/completion.c.
48874 * normal/completion.c: New file.
48876 * term/i386/pc/console.c (grub_console_getwh): New function.
48877 (grub_console_term): Assign grub_console_getwh to getwh.
48879 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48880 function is defined in normal/completion.c as
48881 grub_normal_do_completion.
48882 (grub_cmdline_get): Use grub_normal_do_completion instead of
48885 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48886 returns non-zero, otherwise return 0.
48887 (grub_partition_iterate): First, probe the partition map. Then,
48888 call ITERATE only for this partition map.
48890 * kern/misc.c (grub_strncmp): Rewritten.
48892 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48893 returns non-zero. Otherwise return 0.
48895 * include/grub/partition.h (grub_partition_map_iterate): Return
48896 int instead of void.
48898 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48900 * include/grub/misc.h (grub_strncmp): Change the type of N to
48903 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48906 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
48907 unsigned explicitly before comparing it with I.
48909 * kern/main.c (grub_env_write_root): Add the attribute unused into
48912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48913 normal/completion.c.
48914 (normal_mod_SOURCES): Likewise.
48915 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48916 (normal_mod_SOURCES): Likewise.
48918 * normal/command.c (grub_iterate_commands): If ITERATE returns
48919 non-zero, return one immediately.
48921 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48923 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48924 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48926 (grub_vbe_get_controller_info): New function.
48927 (grub_vbe_get_mode_info): Likewise.
48928 (grub_vbe_set_mode): Likewise.
48929 (grub_vbe_get_mode): Likewise.
48930 (grub_vbe_set_memory_window): Likewise.
48931 (grub_vbe_get_memory_window): Likewise.
48932 (grub_vbe_set_scanline_length): Likewise.
48933 (grub_vbe_get_scanline_length): Likewise.
48934 (grub_vbe_set_display_start): Likewise.
48935 (grub_vbe_get_display_start): Likewise.
48936 (grub_vbe_set_palette_data): Likewise.
48937 * include/grub/i386/pc/vbe.h: New file.
48939 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48941 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48942 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48943 * DISTLIST: Likewise.
48944 * kern/ieee1275/of.c: Moved to ...
48945 * kern/ieee1275/ieee1275.c: ... here.
48947 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48949 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48950 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48951 Pass 0 as `end' parameter to grub_strtoul().
48953 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48955 * include/grub/powerpc/ieee1275/console.h: Do not include
48956 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48958 (grub_console_cur_color): Remove i386-specific prototype.
48959 (grub_console_real_putchar): Likewise.
48960 (grub_console_checkkey): Likewise.
48961 (grub_console_getkey): Likewise.
48962 (grub_console_getxy): Likewise.
48963 (grub_console_gotoxy): Likewise.
48964 (grub_console_cls): Likewise.
48965 (grub_console_setcursor): Likewise.
48966 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48967 Include <grub/machine/console.h>.
48968 * term/ieee1275/ofconsole.c: Likewise.
48970 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48972 * Makefile.in (LIBLZO): New variable.
48974 * configure.ac: Check for LZO version 2.
48976 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48977 lzo/lzo1x.h instead of lzo1x.h.
48979 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48982 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48983 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48985 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48986 copying the data from PARTITION to P.
48988 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48990 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48991 negative, unload the module.
48993 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48994 map is "pc_partition_map" but not "pc".
48995 (usage): Fix the description. The options are --boot-image and
48996 --core-image but not --boot-file or --core-file.
48997 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48998 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
49001 * util/i386/pc/grub-install.in: Do not specify --boot-file or
49002 --core-file. Specify INSTALL_DEVICE as an argument.
49004 * util/console.c: Include config.h.
49005 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
49006 [HAVE_NCURSES_H]: Include ncurses.h.
49007 [HAVE_CURSES_H]: Include curses.h.
49008 [!A_NORMAL] (A_NORMAL): Defined as zero.
49009 [!A_STANDOUT] (A_STANDOUT): Likewise.
49011 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
49013 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
49015 * configure.ac: Check for curses libraries and headers.
49017 * Makefile.in (LIBCURSES): New variable.
49019 * genmk.rb (Script::rule): Set the executable bits.
49021 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
49022 name of the PC partition map is "pc_partition_map" but not "pc".
49024 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49026 * util/i386/pc/grub-install.in (grub_probefs): New variable.
49027 (modules): Likewise.
49028 (usage): Added descriptions for --modules and --grub-probefs.
49029 Handle --modules and --grub-probefs. Save the arguments in MODULES
49030 and GRUB_PROBEFS, respectively.
49031 Auto-detect a filesystem module against GRUBDIR. If the result is
49032 empty and modules are not specified explicitly, abort the
49033 installation. Add the result to MODULES.
49035 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
49036 disk/powerpc/ieee1275/ofdisk.c,
49037 include/grub/powerpc/ieee1275/init.h and
49038 term/powerpc/ieee1275/ofconsole.c.
49039 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
49040 term/ieee1275/ofconsole.c.
49042 * include/grub/powerpc/ieee1275/console.h: Resurrected.
49044 * COPYING: Upgraded to the latest version. Only the address of the
49045 FSF office has changed.
49047 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49049 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49050 kern/ieee1275.c with kern/ieee1275/of.c.
49052 * kern/ieee1275.c: Moved to ...
49053 * kern/ieee1275/of.c: ... here.
49055 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
49057 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
49060 * config.guess: Updated to the latest version from gnulib.
49061 * config.sub: Likewise.
49062 * install.sh: Likewise.
49063 * mkinstalldirs: Likewise.
49065 * include/grub/console.h: Removed. This file is arch-specific. Do
49066 not put this in include/grub.
49068 * include/grub/i386/pc/console.h: Resurrected.
49070 * util/console.c: Include grub/machine/console.h instead of
49072 * util/grub-emu.c: Likewise.
49074 2005-08-04 Marco Gerards <metgerards@student.han.nl>
49076 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49079 From Vincent Pelletier <subdino2004@yahoo.fr>
49080 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49081 Redefined to use grub_getwh.
49082 (grub_term): New member named getwh.
49083 (grub_getwh): New prototype.
49084 * kern/term.c (grub_getwh): New function.
49085 * term/i386/pc/console.c (grub_console_getwh): New function.
49086 (grub_console_term): New member `getwh'.
49087 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49088 (grub_vga_term): New member `getwh'.
49089 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
49091 (grub_ofconsole_getw): New function.
49092 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49093 (grub_ofconsole_term): New field named getwh and new initial
49096 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49098 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49099 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49100 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49101 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49102 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49103 of <grub/machine/ieee1275.h>.
49104 * commands/ieee1275/reboot.c: Likewise.
49105 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49106 * kern/ieee1275.c: ... to here. All users updated. Change all
49107 parameter structs to use new type `grub_ieee1275_cell_t'.
49108 * term/powerpc/ieee1275/ofconsole.c: Move ...
49109 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49110 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49111 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49112 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49114 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49115 Remove unused prototypes. All users updated.
49116 * include/grub/powerpc/ieee1275/console.h: Removed.
49117 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49118 `grub_ieee1275_cell_t'.
49119 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49120 Cast comparisons with -1 to the correct type.
49121 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49122 type to match `grub_ieee1275_entry_fn'.
49124 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49126 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49128 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49129 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49131 (grub_probefs_SOURCES): New variable.
49133 * util/i386/pc/grub-probefs.c: New file.
49135 * util/i386/pc/grub-setup.c (main): Call
49136 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49137 grub_hfs_init and grub_jfs_init to initialize the system. Call
49138 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49139 grub_pc_partition_map_fini to finish the system.
49141 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49143 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49145 (grub_multiboot_load_elf32): Likewise.
49146 (grub_multiboot_is_elf64): Likewise.
49147 (grub_multiboot_load_elf64): Likewise.
49148 (grub_multiboot_load_elf): Likewise.
49149 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49150 an ELF32 or ELF64 file.
49151 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49153 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49154 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49155 NULL before calling FS->LABEL.
49156 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49157 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49158 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49159 before calling FS->LABEL.
49161 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49163 * util/i386/pc/grub-install.in (datadir): New variable.
49165 (pkgdatadir): New variable.
49166 (pkglibdir): Removed.
49168 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49170 * DISTLIST: Added util/i386/pc/grub-install.in.
49172 * util/i386/pc/grub-install.in: New file.
49174 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49175 (grub_install_SOURCES): Likewise.
49177 * genmk.rb: Added support for scripts.
49178 (Script): New class.
49179 (scripts): New variable.
49181 * Makefile.in (install-local): Install sbin_SCRIPTS by
49183 (uninstall): Remove sbin_SCRIPTS.
49185 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49186 device, try to get a GRUB device by
49187 grub_util_biosdisk_get_grub_dev.
49190 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49191 description for --device-map.
49193 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49195 Change the semantics of variable hooks. They now return strings
49196 instead of error values.
49198 * util/i386/pc/grub-setup.c: Include grub/env.h.
49199 (setup): Use grub_device_set_root instead of grub_env_set.
49201 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49202 grub_env_get instead of grub_device_set_root and
49203 grub_device_get_root, respectively.
49205 * kern/main.c (grub_env_write_root): New function.
49206 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49207 grub_env_set instead of grub_device_set_root.
49209 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49211 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49212 rather than calling ENV->WRITE_HOOK afterwards.
49213 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49214 passing a pointer of a pointer.
49215 (grub_register_variable_hook): Change the types of "read_hook" and
49216 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49218 Allocate the default empty string on the heap, because this string
49219 may be freed later.
49221 * kern/device.c: Include grub/env.h.
49222 (grub_device_set_root): Removed.
49223 (grub_device_get_root): Likewise.
49224 (grub_device_open): Use grub_env_get instead of
49225 grub_device_get_root.
49227 * include/grub/env.h (grub_env_read_hook_t): New type.
49228 (grub_env_write_hook_t): Likewise.
49229 (grub_env_var): Change the types of "read_hook" and "write_hook"
49230 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49231 (grub_register_variable_hook): Likewise.
49233 * include/grub/device.h (grub_device_set_root): Removed.
49234 (grub_device_set_root): Likewise.
49236 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49237 make sure that DIRNAME terminates with '/', so that
49238 grub_fat_find_dir will fail if PATH is not a directory.
49240 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49242 Use the qualifier auto for print_files and print_files_long.
49243 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49245 Put a newline only if there is no error.
49246 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49249 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49251 * kern/partition.c (grub_partition_probe): Initialize PART to
49252 NULL. Otherwise, when no partition map is registered, this returns
49255 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49257 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49258 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49261 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49263 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49264 information on each device, if it does not have partitions. Print
49265 "Device" instead of "Disk", because this function is not specific
49268 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49269 static to ensure that it is put on the memory rather than a
49272 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49274 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49275 (grub_cat_init): Likewise.
49276 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49277 (options): Likewise.
49278 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49279 (grub_configfile_init): Likewise.
49280 * font/manager.c (GRUB_MOD_INIT): Likewise.
49281 * commands/help.c (GRUB_MOD_INIT): Likewise.
49282 (grub_help_init): Likewise.
49283 * normal/command.c (grub_command_init): Likewise.
49284 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49285 * disk/loopback.c (grub_loop_init): Likewise.
49286 (GRUB_MOD_INIT): Likewise.
49287 * commands/ls.c (grub_ls_init): Likewise.
49288 (GRUB_MOD_INIT): Likewise.
49289 (options): Likewise.
49290 * commands/boot.c (grub_boot_init): Likewise.
49291 (GRUB_MOD_INIT): Likewise.
49292 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49293 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49294 (GRUB_MOD_INIT): Likewise.
49295 * commands/cmp.c (grub_cmp_init): Likewise.
49296 (GRUB_MOD_INIT): Likewise.
49298 * normal/arg.c: Use <> instead of "" to include header files.
49299 (SHORT_ARG_HELP): New macro.
49300 (SHORT_ARG_USAGE): Likewise.
49301 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49302 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49304 (find_short): Check if C is 'h' or 'u' explicitly.
49305 (grub_arg_show_help): Use space characters instead of tabs. Treat
49306 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49307 are shown with --help and --usage only if they are not used for
49308 the command itself.
49309 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49312 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49313 const into "longarg". Change the type of "shortarg" to int.
49315 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49317 * boot/i386/pc/boot.S (boot_drive_check): New label.
49319 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49322 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49323 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49325 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49327 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49328 When turning off Gate A20, skip the check and return immediately,
49329 because this is not fatal usually.
49331 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
49333 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49334 be 0x7C00 instead of 0x8000.
49336 * boot/i386/pc/pxeboot.S: Rewritten.
49338 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49340 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49343 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49345 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49346 robustness. This routine now supports a BIOS call and System
49347 Control Port A to modify the gate A20.
49349 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49350 Increased to 0x440.
49352 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49354 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49355 device path and resulting ihandle.
49356 (grub_ofdisk_close): dprintf the ihandle being closed.
49357 (grub_ofdisk_read): dprintf function parameters.
49358 * kern/mm.c (grub_mm_init_region): Likewise.
49359 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49360 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49361 size, and boot arguments.
49362 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49363 before loading into memory.
49364 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49365 before loading into memory.
49367 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49369 * kern/mm.c: Added much documentation.
49370 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49371 8, set to 5 instead of 8.
49373 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
49375 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49377 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49378 (grub_mkdevicemap_SOURCES): New variable.
49380 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49381 lib/device.c of GRUB Legacy.
49383 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
49385 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49386 instead of PATH is NULL.
49388 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49390 * commands/cmp.c (BUFFER_SIZE): New macro.
49391 (grub_cmd_cmp): Close the right file at the right time. Compare
49392 only data just read. Don't report files of different size as
49393 identical. Dynamically allocate buffers. Move variable
49394 declarations at the beginning of function.
49396 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
49398 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49401 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49403 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49404 when backspace is pressed at beginning of line.
49406 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
49408 * DISTLIST: Added genfslist.sh.
49410 * normal/main.c (fs_module_list): New variable.
49411 (autoload_fs_module): New function.
49412 (read_fs_list): Likewise.
49413 (grub_normal_execute): Call read_fs_list.
49415 * kern/fs.c (grub_fs_autoload_hook): New variable.
49416 (grub_fs_probe): Added support for auto-loading.
49418 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49419 (grub_fs_module_list_t): New type.
49421 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49422 (grub_fs_autoload_hook): New prototype.
49424 * genfslist.sh: New file.
49426 * genmk.rb: Added a rule to generate a filesystem list.
49428 2005-06-30 Marco Gerards <metgerards@student.han.nl>
49430 * configure.ac: Fix the test for cross-compiling.
49432 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49433 define GRUB_UTIL anymore.
49435 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49436 so this function works on other systems than just big endian.
49437 (load_modules): Likewise.
49438 (add_segments): Likewise.
49440 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49442 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49443 contains `l' modifier, get a long from va_arg().
49445 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49447 * kern/mm.c (grub_free): If the next free block which is being
49448 merged is the first free block, set the first block to the block
49450 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49452 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49454 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49455 `grub_ieee1275_chosen'.
49457 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49459 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49460 (grub_ieee1275_chosen): New variable.
49461 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49463 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49464 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49465 Rename first argument to `phandle' for consistency.
49466 (grub_ieee1275_get_property_length): Likewise.
49467 (grub_ieee1275_next_property): Likewise. Change type of first argument
49468 to grub_ieee1275_phandle_t.
49469 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49470 Move export next to declaration.
49471 (grub_ieee1275_chosen): New variable.
49472 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49473 Correct cosmetic typo.
49474 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49475 `grub_ieee1275_chosen'.
49476 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49477 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49478 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49479 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49480 `grub_ieee1275_chosen'.
49482 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49484 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49486 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49487 /chosen/bootargs as "variable=value" pairs.
49489 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49491 * include/grub/misc.h (grub_dprintf): New macro.
49492 (grub_real_dprintf): New prototype.
49493 (grub_strword): Likewise.
49494 (grub_iswordseparator): Likewise.
49495 * kern/misc.c (grub_real_dprintf): New function.
49496 (grub_strword): Likewise.
49497 (grub_iswordseparator): Likewise.
49499 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49501 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49502 (roundup): Remove macro.
49503 (grub_ieee1275_flags): Make static.
49504 (grub_ieee1275_realmode): Remove.
49505 (grub_ieee1275_test_flag): New function.
49506 (grub_ieee1275_set_flag): Likewise.
49507 (find_options): Rename to `grub_ieee1275_find_options'; update
49508 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49509 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49510 (cmain): New prototype.
49511 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49512 `grub_ieee1275_flags' directly.
49513 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49514 machine/biosdisk.h.
49515 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49516 Don't include grub/machine/init.h.
49517 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49518 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49520 (grub_ieee1275_realmode): Likewise.
49521 (grub_ieee1275_flag): New enum.
49522 (grub_ieee1275_test_flag): New prototype.
49523 (grub_ieee1275_set_flag): New prototype.
49524 * include/grub/powerpc/ieee1275/init.h: Remove file.
49525 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49526 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49527 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49528 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49530 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49531 `grub_ieee1275_test_flag'.
49532 (grub_ieee1275_encode_devname): Likewise.
49534 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49536 * include/grub/powerpc/ieee1275/ieee1275.h
49537 (grub_ieee1275_encode_devname): New prototype.
49538 (grub_ieee1275_get_filename): Likewise.
49539 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49541 (grub_set_prefix): Likewise.
49542 (grub_machine_init): Call grub_set_prefix.
49543 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49544 (grub_parse_type): New enum.
49545 (grub_ieee1275_get_devargs): New function.
49546 (grub_ieee1275_get_devname): Likewise.
49547 (grub_ieee1275_parse_args): Likewise.
49548 (grub_ieee1275_get_filename): Likewise.
49549 (grub_ieee1275_encode_devname): Likewise.
49551 2005-03-30 Marco Gerards <metgerards@student.han.nl>
49553 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49554 `grub_loader_unset'.
49556 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49558 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49559 instead of grub_ieee1275_interpret.
49560 (grub_halt_init): New function.
49561 (grub_halt_fini): Likewise.
49562 (GRUB_MOD_INIT): Correct message grammar.
49563 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49564 instead of grub_ieee1275_interpret.
49565 (grub_reboot_init): New function.
49566 (grub_reboot_fini): Likewise.
49567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49568 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49569 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49570 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49571 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49573 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49575 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49577 (grub_halt): Likewise.
49578 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49579 (cmain): Remove __attribute__((unused)).
49580 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49581 (grub_heap_len): Likewise.
49582 (grub_machine_fini): New function.
49583 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49584 (grub_halt): Likewise.
49585 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49587 * util/powerpc/ieee1275/misc.c: New file.
49589 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49591 * DISTLIST: New file.
49592 * gendistlist.sh: Likewise.
49594 * Makefile.in (COMMON_DISTFILES): Removed.
49595 (BOOT_DISTFILES): Likewise.
49596 (CONF_DISTFILES): Likewise.
49597 (DISK_DISTFILES): Likewise.
49598 (FS_DISTFILES): Likewise.
49599 (INCLUDE_DISTFILES): Likewise.
49600 (KERN_DISTFILES): Likewise.
49601 (LOADER_DISTFILES): Likewise.
49602 (TERM_DISTFILES): Likewise.
49603 (UTIL_DISTFILES): Likewise.
49604 (DISTFILES): Likewise.
49605 (uninstall): Uninstall files in $(pkgdata_DATA).
49606 (DISTLIST): New target.
49607 (distdir): Use the contents of the file DISTLIST to get a list of
49610 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49612 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49613 descriptor. This is ported from GRUB Legacy.
49615 * gencmdlist.sh: Added an extra semicolon to make it work with
49616 old sed versions. Reported by Robert Bihlmeyer
49617 <robbe@orcus.priv.at>.
49619 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
49621 Automatic loading of commands is supported.
49623 * normal/main.c (read_command_list): New function.
49624 (grub_normal_execute): Call read_command_list.
49626 * normal/command.c (grub_register_command): Return zero or CMD.
49627 Allocate CMD->NAME from the heap.
49628 Initialize CMD->MODULE_NAME to zero.
49629 Find the same name as well. If the same command is found and it is
49630 a dummy command, overwrite members. If it is not a dummy command,
49632 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49633 (grub_command_find): If a dummy command is found, load a module
49634 and retry to find a command only once.
49636 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49637 make sure that each command is loaded.
49639 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49641 (struct grub_command): Remove const from the member `name'.
49642 Add a new member `module_name'.
49643 (grub_register_command): Return grub_command_t.
49645 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49646 sure that each command is loaded.
49648 * genmk.rb (PModule::rule): Specify a module name without the
49649 suffix ".mod" to gencmdlist.sh.
49651 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49653 * gencmdlist.sh: New file.
49655 * genmk.rb (PModule::rule): Generate a rule for a command list.
49657 Generate command.lst from $(COMMANDFILES).
49659 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49660 (DATA): Added $(pkgdata_DATA).
49661 (install-local): Install files in $(pkgdata_DATA).
49663 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49665 * term/i386/pc/vga.c (debug_command): Removed.
49666 (GRUB_MOD_INIT): Do not register the command "debug".
49668 From Hollis Blanchard:
49669 * commands/configfile.c: New file.
49670 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49671 commands/configfile.c.
49672 (pkgdata_MODULES): Added configfile.mod.
49673 (configfile_mod_SOURCES): New variable.
49674 (configfile_mod_CFLAGS): Likewise.
49675 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49676 commands/configfile.c.
49677 (pkgdata_MODULES): Added configfile.mod.
49678 (configfile_mod_SOURCES): New variable.
49679 (configfile_mod_CFLAGS): Likewise.
49680 * util/grub-emu.c (main): Call grub_configfile_init and
49681 grub_configfile_fini.
49682 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49684 [GRUB_UTIL] (grub_configfile_fini): Likewise.
49686 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49688 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49691 * commands/help.c (grub_cmd_help): Do not print newlines after
49692 the last command in print_command_help.
49694 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49696 * commands/default.h: New file.
49697 * commands/timeout.h: Likewise.
49698 * normal/context.c: Likewise.
49700 * util/misc.c: Do not include sys/times.h.
49701 Include sys/time.h and grub/machine/time.h.
49702 (grub_get_rtc): Rewritten with gettimeofday.
49704 * util/grub-emu.c (main): Call grub_default_init and
49705 grub_timeout_init before grub_normal_init, and call
49706 grub_timeout_fini and grub_default_fini after grub_main.
49708 * util/console.c (grub_ncurses_checkkey): Return the read
49711 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49714 * normal/main.c (read_config_file): Push MENU. If this fails,
49715 print an error and wait for a user input.
49716 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49717 If a menu is empty or an error occurs, pop MENU.
49718 (grub_normal_execute): Pop and free MENU after grub_menu_run
49721 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49723 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49725 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49727 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49729 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49732 * include/grub/normal.h (struct grub_menu_list): New struct.
49733 (grub_menu_list_t): New type.
49734 (struct grub_context): New struct.
49735 (grub_context_t): New type.
49736 (grub_register_command): Got rid of EXPORT_FUNC.
49737 (grub_unregister_command): Likewise.
49738 (grub_context_get): New prototype.
49739 (grub_context_get_current_menu): Likewise.
49740 (grub_context_push_menu): Likewise.
49741 (grub_context_pop_menu): Likewise.
49742 [GRUB_UTIL] (grub_default_init): Likewise.
49743 [GRUB_UTIL] (grub_default_fini): Likewise.
49744 [GRUB_UTIL] (grub_timeout_init): Likewise.
49745 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49747 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49748 commands/timeout.c and normal/context.c.
49749 (pkgdata_MODULES): Added default.mod and timeout.mod.
49750 (normal_mod_SOURCES): Added normal/context.c.
49751 (default_mod_SOURCES): New variable.
49752 (default_mod_CFLAGS): Likewise.
49753 (timeout_mod_SOURCES): Likewise.
49754 (timeout_mod_CFLAGS): Likewise.
49755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49757 (pkgdata_MODULES): Added default.mod and timeout.mod.
49758 (normal_mod_SOURCES): Added normal/context.c.
49759 (default_mod_SOURCES): New variable.
49760 (default_mod_CFLAGS): Likewise.
49761 (timeout_mod_SOURCES): Likewise.
49762 (timeout_mod_CFLAGS): Likewise.
49764 * Makefile.in (all-local): Added $(MKFILES).
49766 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49768 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49769 (grub_emu_SOURCES): Likewise.
49770 (pkgdata_MODULES): Add `sun.mod'.
49771 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49772 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49774 (pkgdata_MODULES): Add `sun.mod'.
49775 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49776 * include/grub/partition.h (grub_sun_partition_map_init): New
49778 (grub_sun_partition_map_fini): Likewise.
49779 * partmap/sun.c: New file.
49780 * util/grub-emu.c (main): Initialize and de-initialize the sun
49781 partitionmap support.
49783 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49785 This implements an Emacs-like menu entry editor.
49787 * normal/menu_entry.c: New file.
49789 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49790 characters to ASCII.
49791 (saved_char): New variable.
49792 (grub_ncurses_checkkey): Rewritten completely.
49793 (grub_ncurses_getkey): Likewise.
49794 (grub_ncurses_init): Call raw instead of cbreak.
49796 * normal/menu.c (print_entry): Do not put a space.
49797 (init_page): Renamed to ...
49798 (grub_menu_init_page): ... this. All callers changed.
49799 (edit_menu_entry): Removed.
49800 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49802 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49804 * kern/misc.c (grub_vprintf): Call grub_refresh.
49806 * normal/menu.c (DISP_LEFT): Renamed to ...
49807 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49808 * normal/menu.c (DISP_UP): Renamed to ...
49809 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49810 * normal/menu.c (DISP_RIGHT): Renamed to ...
49811 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49812 * normal/menu.c (DISP_DOWN): Renamed to ...
49813 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49814 * normal/menu.c (DISP_HLINE): Renamed to ...
49815 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49816 * normal/menu.c (DISP_VLINE): Renamed to ...
49817 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49818 * normal/menu.c (DISP_UL): Renamed to ...
49819 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49820 * normal/menu.c (DISP_UR): Renamed to ...
49821 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49822 * normal/menu.c (DISP_LL): Renamed to ...
49823 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49824 * normal/menu.c (DISP_LR): Renamed to ...
49825 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49826 * normal/menu.c (TERM_WIDTH): Renamed to ...
49827 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49828 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49829 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49830 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49831 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49832 * normal/menu.c (TERM_MARGIN): Renamed to ...
49833 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49834 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49835 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49836 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49837 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49838 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49839 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49840 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49841 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49842 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49843 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49844 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49845 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49846 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49847 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49848 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49849 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49850 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49851 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49852 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49853 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49854 All callers changed.
49856 * include/grub/normal.h: New prototype.
49858 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49859 normal/menu_entry.c.
49860 (normal_mod_SOURCES): Likewise.
49861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49862 (normal_mod_SOURCES): Likewise.
49864 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49866 * include/grub/normal.h (grub_halt_init): New prototype.
49867 (grub_halt_fini): Likewise.
49868 (grub_reboot_init): Likewise.
49869 (grub_reboot_fini): Likewise.
49871 * util/grub-emu.c: Include signal.h.
49872 (main_env): New global variable.
49873 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49875 (grub_machine_fini): New function.
49876 (main): Call grub_halt_init and grub_reboot_init before
49877 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49878 Call setjmp with MAIN_ENV to go back afterwards.
49879 Call grub_machine_fini right before return.
49881 * include/grub/util/misc.h: Include setjmp.h.
49882 (main_env): New prototype.
49884 * include/grub/kernel.h (grub_machine_fini): New prototype.
49885 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49886 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49888 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49889 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49890 * term/i386/pc/console.c (grub_console_fini): Likewise.
49892 * util/i386/pc/misc.c: New file.
49894 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49895 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49896 commands/i386/pc/reboot.c.
49898 2005-02-14 Guillem Jover <guillem@hadrons.org>
49900 * include/grub/dl.h (grub_dl_check_header): New prototype.
49901 (grub_arch_dl_check_header): Change return type to grub_err_t,
49902 remove size parameter and export function. Update all callers.
49903 * kern/dl.c (grub_dl_check_header): New function.
49904 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49905 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49906 are inside the core.
49907 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49908 independent ELF header checks.
49909 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49910 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49911 `grub_dl_check_header' instead of explicit checks. Check for the
49913 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49914 `grub_dl_check_header' instead of explicit checks. Remove arch
49915 specific ELF header checks.
49917 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49920 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49922 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49923 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49925 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49927 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
49928 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
49929 (part_map_iterate): Clear `grub_errno' and return 0 if
49930 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
49931 * partmap/amiga.c (amiga_partition_map_iterate): Return
49932 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49933 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49935 2005-02-01 Guillem Jover <guillem@hadrons.org>
49937 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49940 2005-01-31 Marco Gerards <metgerards@student.han.nl>
49942 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49944 (grub_rescue_cmd_linux): New prototype.
49945 (grub_rescue_cmd_initrd): Likewise.
49946 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49948 (grub_linux_release_mem): Release the memory for the initrd.
49949 (grub_load_linux): Renamed from this...
49950 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49951 Changed `entry' not to be static. Loop over memory regions to
49952 find another one when the default fails.
49953 (grub_rescue_cmd_initrd): New function.
49954 (grub_linux_init): Remove function.
49955 (grub_linux_fini): Likewise.
49956 (GRUB_MOD_INIT): Register `initrd'.
49957 (GRUB_MOD_FINI): Unregister `initrd'.
49958 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49960 (grub_linux_normal_fini): Likewise.
49961 (GRUB_MOD_INIT): Register `initrd'.
49962 (GRUB_MOD_FINI): Unregister `initrd'.
49964 2005-01-31 Marco Gerards <metgerards@student.han.nl>
49966 * commands/help.c: New file.
49967 * normal/arg.c (show_help): Renamed to...
49968 (grub_arg_show_help): ... this.
49969 * commands/i386/pc/halt.c: New file.
49970 * commands/i386/pc/reboot.c: Likewise.
49971 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49972 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49973 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49974 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49978 (pkgdata_MODULES): Add `help.mod'.
49979 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49980 * grub/i386/pc/init.h (grub_reboot): New prototype.
49981 (grub_halt): Likewise.
49982 * include/grub/normal.h (grub_arg_show_help): New prototype.
49983 (grub_help_init): Likewise.
49984 (grub_help_fini): Likewise.
49985 * util/grub-emu.c (main): Initialize and deinitialize the help
49988 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49990 * normal/command.c (grub_command_init): Fixed the description of
49991 the `set' and `unset' commands.
49993 2005-01-31 Marco Gerards <metgerards@student.han.nl>
49995 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49997 * commands/ieee1275/halt.c: New file.
49998 * commands/ieee1275/reboot.c: Likewise.
49999 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
50000 `__attribute__ ((unused))'. Some GCS related fixed.
50001 (grub_suspend_init) [GRUB_UTIL]: Function removed.
50002 (grub_suspend_fini): Likewise.
50003 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
50005 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
50006 (halt_mod_CFLAGS): New variables.
50007 * include/grub/powerpc/ieee1275/ieee1275.h
50008 (grub_ieee1275_interpret): New prototype.
50010 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
50012 * include/grub/misc.h (memmove): New prototype.
50013 (memcpy): Likewise.
50015 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
50017 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
50018 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
50020 2005-01-22 Marco Gerards <metgerards@student.han.nl>
50022 * kern/misc.c (grub_strndup): Function rewritten.
50024 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
50026 * normal/menu.c (TERM_WIDTH): Macro redefined.
50027 (TERM_TOP_BORDER_Y): Likewise.
50028 (draw_border): Replaced while-loop by a for-loop. Make the number
50029 of lines consistent with the number of lines displayed in
50030 print_entries. Added a margin below the rectangle.
50031 (print_entry): Make the entry fit in the rectangle.
50032 (print_entries): Display the scroll arrows next to the right
50035 2005-01-21 Marco Gerards <metgerards@student.han.nl>
50037 * fs/minix.c (grub_minix_find_file): Reserve more space for
50038 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
50039 `grub_strncpy' to copy `path' into it.
50041 2005-01-21 Marco Gerards <metgerards@student.han.nl>
50043 Add the loopback device, a device via which files can be accessed
50046 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
50047 (pkgdata_MODULES): Add loopback.mod.
50048 (loopback_mod_SOURCES): New variable.
50049 (loopback_mod_CFLAGS): Likewise.
50050 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50052 (pkgdata_MODULES): Add loopback.mod.
50053 (loopback_mod_SOURCES): New variable.
50054 (loopback_mod_CFLAGS): Likewise.
50055 * disk/loopback.c: new file.
50056 * include/grub/normal.h (grub_loop_init): New prototype.
50057 (grub_loop_fini): New prototype.
50058 * util/grub-emu.c (main): Initialize and de-initialize loopback
50060 * include/grub/disk.h (grub_disk_dev_id): Add
50061 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
50063 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
50065 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
50067 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
50068 (suspend_mod_SOURCES): New variable.
50069 (suspend_mod_CFLAGS): Likewise.
50070 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
50072 * commands/ieee1275/suspend.c: New file.
50074 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50076 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
50077 ((unused))' to `__attribute__ ((used))'.
50078 (GRUB_MOD_FINI): Likewise.
50079 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50080 * genmk.rb (PModule): Assign space to common symbols when linking
50083 2005-01-20 Marco Gerards <metgerards@student.han.nl>
50085 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50086 `unsigned' arguments to `grub_size_t'.
50087 (grub_malloc): Likewise.
50088 (grub_realloc): Likewise.
50089 (grub_memalign): Likewise.
50090 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50091 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50092 * util/misc.c (grub_malloc): Likewise.
50093 (grub_realloc): Likewise.
50094 * kern/mm.c (get_header_from_pointer): Change the casts to
50095 `unsigned' into a cast to `grub_size_t'.
50097 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50098 point to `currnode' when `currnode' is changed.
50100 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50101 Schottelius <nico-linux@schottelius.org>.
50103 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50105 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50106 (note_path): Remove variable.
50107 (GRUB_IEEE1275_NOTE_NAME): New macro.
50108 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50109 (grub_ieee1275_note_hdr): New structure.
50110 (grub_ieee1275_note_desc): Likewise.
50111 (grub_ieee1275_note): Likewise.
50112 (load_note): Remove `dir' argument. All callers updated. Remove
50113 `note_img' and `path'. Do not load a file from `note_path'.
50114 Initialize a struct grub_ieee1275_note and write that to `out'.
50115 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50117 2005-01-05 Marco Gerards <metgerards@student.han.nl>
50119 * util/misc.c (grub_util_read_image): Revert last change. It
50120 called `grub_util_read_at', which seeks from the beginning of the
50123 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50125 * TODO: Add note about endianness in grub-mkimage.
50126 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50128 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50129 (grub_mkimage_SOURCES): New target.
50130 * include/grub/kernel.h (grub_start_addr): Remove variable.
50131 (grub_end_addr): Likewise.
50132 (grub_total_module_size): Likewise.
50133 (grub_kernel_image_size): Likewise.
50134 (GRUB_MODULE_MAGIC): New constant.
50135 (grub_module_info): New structure.
50136 (grub_arch_modules_addr): New prototype.
50137 (grub_get_end_addr): Remove prototype.
50138 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50139 * include/grub/powerpc/ieee1275/kernel.h: New file.
50140 * include/grub/util/misc.h (grub_util_get_fp_size): New
50142 (grub_util_read_at): Likewise.
50143 (grub_util_write_image_at): Likewise.
50144 * kern/main.c (grub_get_end_addr): Remove function.
50145 (grub_load_modules): Call grub_arch_modules_addr instead of using
50146 grub_end_addr. Look for a grub_module_info struct in memory. Use
50147 the grub_module_info fields instead of calling grub_get_end_addr
50148 as loop conditions. Move grub_add_unused_region code here.
50149 (grub_add_unused_region): Remove function.
50150 * kern/i386/pc/init.c: Include grub/cache.h.
50151 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50152 one call to add_mem_region.
50153 (grub_arch_modules_addr): New function.
50154 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50155 (grub_total_module_size): Likewise.
50156 Include grub/machine/kernel.h.
50157 (grub_arch_modules_addr): New function.
50158 * util/grub-emu.c (grub_end_addr): Remove variable.
50159 (grub_total_module_size): Likewise.
50160 (grub_arch_modules_addr): New function.
50161 * util/misc.c: Include unistd.h.
50162 (grub_util_get_fp_size): New function.
50163 (grub_util_read_at): Likewise.
50164 (grub_util_write_image_at): Likewise.
50165 (grub_util_read_image): Call grub_util_read_at.
50166 (grub_util_write_image): Call grub_util_write_image_at.
50167 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50168 additional memory in kernel_img for a struct grub_module_info.
50169 Fill in that grub_module_info.
50170 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50172 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50174 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50176 * include/grub/powerpc/ieee1275/ieee1275.h
50177 (grub_ieee1275_milliseconds): New prototype.
50178 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50180 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50181 grub_ieee1275_milliseconds.
50183 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50185 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50187 (find_options): New function.
50188 (cmain): Call find_options.
50189 * include/grub/powerpc/ieee1275/ieee1275.h
50190 (grub_ieee1275_realmode): New extern variable.
50191 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50192 grub_map if grub_ieee1275_realmode is false.
50194 2004-12-29 Marco Gerards <metgerards@student.han.nl>
50196 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50197 lines are inserted and make it work like readline. Reported by
50198 Vincent Pelletier <subdino2004@yahoo.fr>.
50200 2004-12-28 Marco Gerards <metgerards@student.han.nl>
50202 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50205 `kern/powerpc/cache.S'.
50207 2004-12-27 Marco Gerards <metgerards@student.han.nl>
50209 * genmk.rb: Handle the `Program' class in the main loop. Written
50210 by Johan Rydberg <jrydberg@gnu.org>.
50211 (Program): New class.
50212 (programs): New variable.
50213 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50214 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50215 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50216 (help_arch): Function removed.
50217 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50218 `powerpc/libgcc.h' and `loader.h'.
50219 (pkgdata_PROGRAMS): New variable.
50220 (sbin_UTILITIES): Variable removed.
50221 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50222 (grubof_SOURCES): Variable re-defined so it only includes the
50223 core functionality.
50224 (grubof_CFLAGS): Remove `-DGRUBOF'.
50225 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50226 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50227 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50228 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50229 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50230 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50231 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50232 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50233 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50234 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50235 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50236 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50237 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50238 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50239 (pc_mod_CFLAGS): New variables.
50240 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50241 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50242 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50243 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50245 * include/grub/i386/pc/init.h (grub_os_area_addr)
50246 (rub_os_area_size): ... to here.
50247 * include/grub/powerpc/ieee1275/ieee1275.h
50248 (grub_ieee1275_entry_fn): Export symbol.
50249 * include/grub/powerpc/ieee1275/init.h: New file.
50250 * include/grub/powerpc/libgcc.h: Likewise.
50251 * include/grub/cache.h: Likewise.
50252 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50253 <hollis@penguinppc.org>.
50254 * kern/dl.c: Include <grub/cache.h>.
50255 (grub_dl_flush_cache): New function.
50256 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50258 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50259 (grub_console_init): Removed prototypes.
50260 (grub_machine_init): Don't initialize the modules anymore.
50261 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50263 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50264 Macro undef removed.
50265 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50266 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50267 relocation `R_PPC_REL32'. Return an error when the relocation is
50269 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50270 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50271 * util/misc.c (grub_arch_sync_caches): Likewise.
50273 2004-12-19 Marco Gerards <metgerards@student.han.nl>
50275 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50276 `symlist.c', add `grubof_symlist.c'.
50277 (symlist.c): Variable removed.
50278 (grubof_HEADERS): Variable added.
50279 (grubof_symlist.c): New target.
50280 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50281 `kernel_img_HEADERS'.
50282 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50283 * kern/powerpc/dl.c: New file.
50284 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50286 (grub_arch_dl_relocate_symbols): Likewise.
50287 (grub_register_exported_symbols): Likewise.
50289 2004-12-13 Marco Gerards <metgerards@student.han.nl>
50291 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50292 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50293 to fail instead. Reported by Vincent Pelletier
50294 <subdino2004@yahoo.fr>.
50296 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50297 it is not allocated. Reported by Vincent Pelletier
50298 <subdino2004@yahoo.fr>.
50300 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50301 output so the output looks better.
50303 2004-12-04 Marco Gerards <metgerards@student.han.nl>
50305 Modulize the partition map support and add support for the amiga
50308 * commands/ls.c: Include <grub/partition.h> instead of
50309 <grub/machine/partition.h>.
50310 * kern/disk.c: Likewise.
50311 * kern/rescue.c: Likewise.
50312 * loader/i386/pc/chainloader.c: Likewise.
50313 * normal/cmdline.c: Likewise.
50314 * kern/powerpc/ieee1275/init.c: Likewise.
50315 (grub_machine_init): Call `grub_pc_partition_map_init',
50316 `grub_amiga_partition_map_init' and
50317 `grub_apple_partition_map_init'.
50318 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50319 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50320 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50321 `partition.h' and `pc_partition.h'.
50322 (grub_setup_SOURCES): Remove
50323 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50324 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50325 (grub_emu_SOURCES): Likewise.
50326 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50327 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50328 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50330 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50331 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50332 (grubof_SOURCES): Likewise.
50333 * disk/i386/pc/partition.c: File removed.
50334 * disk/powerpc/ieee1275/partition.c: Likewise.
50335 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50336 * include/grub/i386/pc/partition.h: Likewise.
50337 * kern/partition.c: New file.
50338 * partmap/amiga.c: Likewise.
50339 * partmap/apple.c: Likewise.
50340 * partmap/pc.c: Likewise.
50341 * include/grub/partition.h: Likewise..
50342 * include/grub/pc_partition.h: Likewise.
50343 * util/grub-emu.c: Include <grub/partition.h> instead of
50344 <grub/machine/partition.h>.
50345 (main): Call `grub_pc_partition_map_init',
50346 `grub_amiga_partition_map_init' and
50347 `grub_apple_partition_map_init' and deinitialize afterwards.
50348 * util/i386/pc/biosdisk.c: Include `#include
50349 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50350 `<grub/machine/partition.h>'.
50351 * util/i386/pc/grub-setup.c: Likewise.
50352 * util/i386/pc/biosdisk.c: Likewise.
50353 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50354 partition information in case of a PC partition.
50355 * util/i386/pc/grub-setup.c: Include `#include
50356 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50357 `<grub/machine/partition.h>'.
50358 (setup): Only access the PC specific partition information in case
50361 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
50363 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50364 (grub_longjmp): Likewise.
50365 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50367 * normal/powerpc/setjmp.S: New file.
50368 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50369 `normal/powerpc/setjmp.S'.
50370 (grubof_CFLAGS): Add `-DGRUBOF'.
50371 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50372 [GRUB_UTIL && !GRUBOF].
50374 2004-11-16 Marco Gerards <metgerards@student.han.nl>
50376 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50377 property named `name'. Correctly handle the error returned by
50378 `grub_ieee1275_finddevice' if a device can not be opened.
50380 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50382 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50383 `actual' for negativity.
50384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50387 2004-11-01 Marco Gerards <metgerards@student.han.nl>
50389 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50390 (PAGE_OFFSET): New macro.
50391 (CRTC_ADDR_PORT): Likewise.
50392 (CRTC_DATA_PORT): Likewise.
50393 (START_ADDR_HIGH_REGISTER): Likewise.
50394 (START_ADDR_LOW_REGISTER): Likewise.
50395 (GRAPHICS_ADDR_PORT): Likewise.
50396 (GRAPHICS_DATA_PORT): Likewise.
50397 (READ_MAP_REGISTER): Likewise.
50398 (INPUT_STATUS1_REGISTER): Likewise.
50399 (INPUT_STATUS1_VERTR_BIT): Likewise.
50400 (page): New variable.
50401 (wait_vretrace): New function.
50402 (set_read_map): Likewise.
50403 (set_start_address): Likewise.
50404 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50406 (check_vga_mem): Take the page into account.
50407 (write_char): Likewise.
50408 (write_cursor): Likewise.
50409 (scroll_up): Likewise. Copy the page to the page that is not
50410 shown and switch between both pages.
50411 (grub_vga_putchar): Fix off by one error.
50412 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50415 2004-11-01 Marco Gerards <metgerards@student.han.nl>
50417 Add support for iso9660 (including rockridge).
50419 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50420 (iso9660_mod_SOURCES): New variable.
50421 (iso9660_mod_CFLAGS): Likewise.
50422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50423 * include/grub/fs.h (grub_iso9660_init): New prototype.
50424 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50425 * fs/iso9660.c: New file.
50427 * include/grub/misc.h (grub_strncat): New prototype.
50428 * kern/misc.c (grub_strncat): New function.
50430 * fs/hfs.c (grub_hfs_mount): Translate the error
50431 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50432 * fs/jfs.c (grub_jfs_mount): Likewise.
50433 * fs/ufs.c (grub_ufs_mount): Likewise.
50435 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50437 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50438 which initialized BAT registers.
50439 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50440 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50442 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50443 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50445 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50446 (grub_mapclaim): Likewise.
50447 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50448 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50451 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50453 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50454 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50455 -ffreestanding and -msoft-float.
50457 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50459 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50460 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50461 set in grub_ieee1275_flags.
50463 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50465 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50467 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50468 grub_console_init first.
50469 Change the memory range used for grub_ieee1275_claim and
50470 grub_mm_init_region.
50471 Print an error message if the claim fails.
50472 Include <grub/misc.h>.
50474 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50476 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50477 Call grub_children_iterate for device nodes of type `scsi',
50479 (grub_ofdisk_open): Remove manual device alias resolution.
50480 Fix memory leak when device cannot be opened.
50481 * include/grub/powerpc/ieee1275/ieee1275.h
50482 (grub_children_iterate): New prototype.
50483 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50485 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50486 Return -1 if args.size was -1.
50488 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50490 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50491 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50492 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50493 Open Firmware's memory for it; claim memory from _start to _end.
50494 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50495 (_end): New extern.
50496 (_start): Zero BSS from __bss_start to _end.
50497 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50499 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50501 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50503 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50504 -1 if args.base was -1.
50506 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50508 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50509 escape sequence instead of a literal ^L. Also call
50510 grub_ofconsole_gotoxy.
50512 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50514 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50515 void * arguments to grub_addr_t. All callers updated. Also make
50516 the `result' argument optional.
50517 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50518 All callers updated.
50520 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50522 * commands/ls.c (grub_ls_list_files): Use the string following the
50523 initial ')', if present, as the filesystem path.
50524 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50526 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50528 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50530 Make the source code of the menu interface more readable.
50532 * normal/menu.c: Include grub/mm.h.
50533 (TERM_WIDTH): New macro.
50534 (TERM_HEIGHT): Likewise.
50535 (TERM_INFO_HEIGHT): Likewise.
50536 (TERM_MARGIN): Likewise.
50537 (TERM_SCROLL_WIDTH): Likewise.
50538 (TERM_TOP_BORDER_Y): Likewise.
50539 (TERM_LEFT_BORDER_X): Likewise.
50540 (TERM_BORDER_WIDTH): Likewise.
50541 (TERM_MESSAGE_HEIGHT): Likewise.
50542 (TERM_BORDER_HEIGHT): Likewise.
50543 (TERM_NUM_ENTRIES): Likewise.
50544 (TERM_FIRST_ENTRY_Y): Likewise.
50545 (TERM_ENTRY_WIDTH): Likewise.
50546 (TERM_CURSOR_X): Likewise.
50547 (draw_border): Use macros instead of magic numbers.
50548 (print_entry): Likewise.
50549 (print_entries): Likewise.
50550 (run_menu): Likewise. Also, handle the key 'e'.
50551 (run_menu_entry): Ignore empty command lines.
50552 (print_message): Added a new argument EDIT. If EDIT is true,
50553 print a different message.
50554 (init_page): Likewise.
50555 (edit_menu_entry): New function. Not implemented yet.
50557 2004-09-17 Marco Gerards <metgerards@student.han.nl>
50559 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50560 can be loaded from normal mode.
50562 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50564 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50565 (multiboot_mod_CFLAGS): New variables.
50566 * loader/i386/pc/linux_normal.c: New file.
50567 * loader/i386/pc/multiboot_normal.c: Likewise.
50569 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50570 attribute `unused'.
50572 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50573 `fdiro' to read the mode information from instead of `diro'.
50575 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50576 looking up a symlink.
50578 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50580 * normal/command.c (grub_command_execute): Don't parse the
50581 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50582 flags of the command.
50584 * normal/menu.c (grub_menu_run): Fix typo.
50586 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50588 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50590 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50591 `y + 1' instead of `y - 1'.
50593 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
50595 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50597 From Hollis Blanchard <hollis@penguinppc.org>:
50598 * kern/misc.c (memmove): New alias for grub_memmove.
50599 (memcmp): New alias for grub_memcmp.
50600 (memset): New alias for grub_memset.
50601 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50602 Change "int handle" to "grub_ieee1275_phandle_t handle".
50603 * include/grub/powerpc/ieee1275/ieee1275.h
50604 (grub_ieee1275_get_property): Likewise.
50606 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50608 Added normal mode command `chainloader' as module chain.mod, which
50609 depends on normal.mod and _chain.mod.
50611 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50612 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50613 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50615 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50616 but arguments parsing moved to ...
50617 (grub_chainloader_cmd): ... here. New function.
50618 * include/grub/i386/pc/chainloader.h: New file.
50619 * loader/i386/pc/chainloader_normal.c: Likewise.
50621 2004-09-11 Marco Gerards <metgerards@student.han.nl>
50623 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50624 (grub_mkimage_LDFLAGS): Likewise.
50625 (grub_emu_SOURCES): Likewise.
50626 (kernel_img_HEADERS): Added fshelp.h.
50627 * fs/ext2.c: Include <grub/fshelp.h>.
50628 (FILETYPE_REG): New macro.
50629 (FILETYPE_INO_REG): Likewise.
50630 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50632 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50634 (grub_fshelp_node): New struct.
50635 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50637 (grub_ext2_get_file_block): Removed function.
50638 (grub_ext2_read_block): New function.
50639 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50640 This function was written.
50641 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50642 (grub_ext2_find_file): Removed function.
50643 (grub_ext2_read_symlink): New function.
50644 (grub_ext2_iterate_dir): Likewise.
50645 (grub_ext2_open): Rewritten.
50646 (grub_ext2_dir): Rewritten.
50647 * include/grub/fshelp.h: New file.
50648 * fs/fshelp.c: Likewise.
50650 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50652 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50653 (print_message): Add a missing newline.
50654 (run_menu): Added timeout support.
50655 (run_menu_entry): New local function.
50656 (grub_menu_run): Added support for booting.
50658 * kern/loader.c (grub_loader_is_loaded): New function.
50660 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50661 (grub_get_rtc): Exported.
50663 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50664 (grub_get_rtc): Exported.
50666 * include/grub/normal.h (struct grub_command_list): Remove
50667 constant from the member `command'.
50669 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50671 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50673 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50675 2004-08-28 Marco Gerards <metgerards@student.han.nl>
50677 Add support for the JFS filesystem.
50679 * fs/jfs.c: New file.
50680 * include/grub/fs.h (grub_jfs_init): New prototype.
50681 (grub_jfs_fini): New prototype.
50682 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50683 (grub_emu_SOURCES): Likewise.
50684 (pkgdata_MODULES): Add jfs.mod.
50685 (jfs_mod_SOURCES): New variable.
50686 (jfs_mod_CFLAGS): Likewise.
50687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50688 (grubof_SOURCES): Likewise.
50689 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50691 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50692 endian to the host endian.
50693 (grub_fat_utf16_to_utf8): Move function from there...
50694 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
50695 the endianness of the source string anymore.
50696 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50698 2004-08-24 Marco Gerards <metgerards@student.han.nl>
50700 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50701 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50702 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50703 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
50705 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50706 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50707 for `node_found' and `it_dir'.
50708 (grub_hfs_dir): Add prototype for `dir_hook'.
50710 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50711 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50712 and `indir32' to silence a gcc warning.
50714 * include/grub/fs.h (grub_hfs_init): New prototype.
50715 (grub_hfs_fini): Likewise.
50718 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50720 Each disk device has its own id now. This is useful to make use
50721 of multiple disk devices.
50723 * include/grub/disk.h (grub_disk_dev_id): New enum.
50724 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50725 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50727 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50728 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50730 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50731 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50733 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50734 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50736 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50737 "id" which is used by the cache manager.
50739 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50742 2004-08-18 Marco Gerards <metgerards@student.han.nl>
50744 * fs/hfs.c: New file.
50745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50746 (grub_emu_SOURCES): Likewise.
50747 (pkgdata_MODULES): Add hfs.mod.
50748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50749 (grubof_SOURCES): Likewise.
50750 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50752 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50753 * kern/misc.c (grub_strncasecmp): Add function.
50755 2004-08-14 Marco Gerards <metgerards@student.han.nl>
50757 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50760 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50761 (grub_ext2_dir): In case the directory entry type is unknown, read
50764 2004-08-02 Peter Bruin <pjbruin@dds.nl>
50766 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50767 grub_load_linux instead of grub_rescue_cmd_linux as second
50768 argument of grub_rescue_register_command.
50770 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50772 2004-07-27 Marco Gerards <metgerards@student.han.nl>
50774 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50776 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50777 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50778 `loader/powerpc/ieee1275/linux.c',
50779 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50780 * include/grub/powerpc/ieee1275/ieee1275.h
50781 (grub_ieee1275_release): New prototype.
50782 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50783 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50784 normal, boot, linux and linux_normal.
50785 * loader/powerpc/ieee1275/linux.c: New file.
50786 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50788 2004-07-12 Marco Gerards <metgerards@student.han.nl>
50790 * normal/arg.c (grub_arg_parse): Correct error handling after
50791 reallocating the argumentlist (check if `argl' is not null instead
50792 of checking if `args' is not null).
50793 * kern/mm.c (grub_realloc): Return the same pointer when using the
50794 same region, instead of returning the header address.
50796 2004-07-11 Marco Gerards <metgerards@student.han.nl>
50798 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50799 one block instead of two when looking for the initial partition.
50800 (grub_partition_probe): Initialize the local variable `p' with 0.
50801 Use base 10 for the grub_strtoul call.
50802 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50803 need for one local variable.
50804 (grub_strtoul): Don't add the new value to `num', instead of that
50807 2004-07-11 Marco Gerards <metgerards@student.han.nl>
50809 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50810 (pxeboot_img_SOURCES): New variable.
50811 (pxeboot_img_ASFLAGS): Likewise.
50812 (pxeboot_img_LDFLAGS): Likewise.
50813 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50814 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50815 <lode_leroy@hotmail.com>.
50817 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50819 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50820 there was no input.
50822 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50824 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50825 the history buffer logic.
50827 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50829 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50830 (FILETYPE_INO_SYMLINK): New macros.
50831 (grub_ext2_find_file): Check if the node is a directory using the
50832 inode stat information instead of using the filetype in the
50833 dirent. Exclude the first character of an absolute symlink.
50834 (grub_ext2_dir): Mask out the filetype part of the mode member of
50837 2004-05-24 Marco Gerards <metgerards@student.han.nl>
50839 Add support for UFS version 1 and 2. Add support for the minix
50840 filesystem version 1 and 2, both the variants with 14 and 30 long
50843 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50845 (grub_emu_SOURCES): Likewise.
50846 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50847 (ufs_mod_SOURCES): New variable.
50848 (ufs_mod_CFLAGS): Likewise.
50849 (minix_mod_SOURCES): Likewise.
50850 (minix_mod_CFLAGS): Likewise.
50851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50853 (grubof_SOURCES): Likewise.
50854 * fs/ufs.c: New file.
50855 * fs/minix.c: New file.
50856 * include/grub/fs.h (grub_ufs_init): New prototype.
50857 (grub_ufs_fini): Likewise.
50858 (grub_minix_init): Likewise.
50859 (grub_minix_fini): Likewise.
50860 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50863 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50866 commands/ls.c, commands/terminal.c, commands/boot.c,
50867 commands/cmp.c and commands/cat.c.
50868 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50870 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50873 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50875 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50876 and grub_, respectively. Because the conversion is trivial and
50877 mechanical, I omit the details here. Please refer to the CVS
50878 if you need more information.
50880 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50882 * include/pupa: Renamed to ...
50883 * include/grub: ... this.
50884 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50885 * util/i386/pc/grub-mkimage.c: ... this.
50886 * util/i386/pc/pupa-setup.c: Renamed to ...
50887 * util/i386/pc/grub-setup.c: ... this.
50888 * util/pupa-emu.c: Renamed to ...
50889 * util/grub-emu.c: ... this.
50891 2004-03-29 Marco Gerards <metgerards@student.han.nl>
50893 Add support for the newworld apple macintosh (PPC). This has been
50894 tested on the powerbook 2000 only. It only adds support for
50895 generic ieee1275 functions, console and disk support. This should
50896 be easy to port to other architectures with support for Open
50899 * configure.ac: Accept the powerpc as host_cpu. In the case of
50900 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50901 specific tests are only executed while building for the i386.
50902 Inverse test for crosscompile.
50903 * genmk.rb (Utility): Allow assembler files.
50904 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50905 * conf/powerpc-ieee1275.rmk: New file.
50906 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50907 * disk/powerpc/ieee1275/partition.c: Likewise.
50908 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50909 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50910 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50911 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50912 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50913 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50914 * include/pupa/powerpc/ieee1275/loader.h
50915 * include/pupa/powerpc/setjmp.h: Likewise.
50916 * include/pupa/powerpc/types.h: Likewise.
50917 * kern/powerpc/ieee1275/init.c: Likewise.
50918 * kern/powerpc/ieee1275/openfw.c: Likewise.
50919 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50921 These files were written by Johan Rydberg
50922 (jrydberg@night.trouble.net) and I only modified them slightly.
50924 * boot/powerpc/ieee1275/cmain.c: New file.
50925 * boot/powerpc/ieee1275/crt0.S: Likewise.
50926 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50927 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50929 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50931 * Makefile.in: Update copyright.
50932 * genmodsrc.sh: Likewise.
50933 * gensymlist.sh: Likewise.
50934 * term/i386/pc/vga.c: Indent correctly.
50936 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50937 bugreporting address.
50938 * util/i386/pc/pupa-setup.c (usage): Likewise,
50939 (main): Call pupa_ext2_init and pupa_ext2_fini.
50941 * fs/fat.c (log2): Renamed to ...
50942 (fat_log2): ... this.
50943 All callers changed.
50944 * kern/misc.c (memcpy): Alias to pupa_memmove.
50945 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50947 * util/console.c (pupa_ncurses_fini): Return 0.
50949 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50950 Move fail label here.
50951 [__GNU__]: Don't warn when using stat.
50952 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50953 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50954 long int. Use strtol instead of strtoul.
50956 2004-03-14 Marco Gerards <metgerards@student.han.nl>
50958 * commands/boot.c: New file.
50959 * commands/cat.c: Likewise.
50960 * commands/cmp.c: Likewise.
50961 * commands/ls.c: Likewise.
50962 * commands/terminal.c: Likewise.
50963 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50964 (pupa_register_command): Changed interface to match the new
50966 (pupa_command_execute): Changed (almost rewritten) so it uses
50967 pupa_split_command. Added support for setting variables using the
50969 (rescue_command): Changed to work with the new argument parser.
50970 (terminal_command): Moved from here to commands/terminal.c.
50971 (set_command): New function.
50972 (unset_command): New function.
50973 (insmod_command): New function.
50974 (rmmod_command): New function.
50975 (lsmod_command): New function.
50976 (pupa_command_init): Don't initialize the command terminal
50977 anymore. Initialize the commands set, unset, insmod, rmmod and
50979 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50980 (kernel_img_HEADERS): Add arg.h and env.h.
50981 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50982 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50983 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50985 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50987 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50988 (boot_mod_SOURCES): New variable.
50989 (terminal_mod_SOURCES): Likewise.
50990 (ls_mod_SOURCES): Likewise.
50991 (cmp_mod_SOURCES): Likewise.
50992 (cat_mod_SOURCES): Likewise.
50994 * normal/arg.c: New file.
50995 * kern/env.c: Likewise.
50996 * include/pupa/arg.h: Likewise.
50997 * include/pupa/env.h: Likewise.
50998 * font/manager.c (font_command): Changed to match argument parsing
51000 (PUPA_MOD_INIT): Likewise.
51001 * hello/hello.c (pupa_cmd_hello): Likewise.
51002 (PUPA_MOD_INIT): Likewise.
51003 * include/pupa/disk.h: Include <pupa/device.h>.
51004 (pupa_print_partinfo): New prototype.
51005 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
51006 (pupa_dl_get_prefix): Likewise.
51007 * include/pupa/misc.h: Include <pupa/err.h>.
51008 (pupa_isgraph): New prototype.
51009 (pupa_isdigit): Likewise.
51010 (pupa_split_cmdline): Likewise.
51011 * include/pupa/normal.h: Include <pupa/arg.h>.
51012 (pupa_command): Changed the prototype of the member `func' to
51013 match the argument parsing interface. Added member `options'.
51014 (pupa_register_command): Updated to match function.
51015 (pupa_arg_parse): New prototype.
51016 (pupa_hello_init) [PUPA_UTIL]: New prototype.
51017 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
51018 (pupa_ls_init) [PUPA_UTIL]: Likewise.
51019 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
51020 (pupa_cat_init) [PUPA_UTIL]: Likewise.
51021 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
51022 (pupa_boot_init) [PUPA_UTIL]: Likewise.
51023 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
51024 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
51025 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
51026 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
51027 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
51028 * kern/disk.c: Include <pupa/file.h>.
51029 (pupa_print_partinfo): New function.
51030 * kern/dl.c: Include <pupa/env.h>.
51031 (pupa_dl_dir): Variable removed.
51032 (pupa_dl_load): Use the environment variable `prefix' instead of
51033 the variable pupa_dl_dir.
51034 (pupa_dl_set_prefix): Function removed.
51035 (pupa_dl_get_prefix): Likewise.
51036 * kern/i386/pc/init.c: Include <pupa/env.h>.
51037 (pupa_machine_init): Use the environment variable `prefix' instead of
51038 using pupa_dl_set_prefix to set the prefix.
51039 * kern/main.c: Include <pupa/env.h>.
51040 (pupa_set_root_dev): Use the environment variable `prefix' instead of
51041 using pupa_dl_get_prefix to get the prefix.
51042 * kern/misc.c: Include <pupa/env.h>.
51043 (pupa_isdigit): New function.
51044 (pupa_isgraph): Likewise.
51045 (pupa_ftoa): Likewise.
51046 (pupa_vsprintf): Added support for printing values of the type
51047 `double'. Make it possible to format variable output when using
51048 formatting like `%1.2%f'.
51049 (pupa_split_cmdline): New function.
51050 * kern/rescue.c: Include <pupa/env.h>.
51051 (next_word): Removed function.
51052 (pupa_rescue_cmd_prefix): Likewise.
51053 (pupa_rescue_cmd_set): New function.
51054 (pupa_rescue_cmd_unset): New function.
51055 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
51056 split the command line instead of splitting it here. Added
51057 support for setting variables using the syntax `foo=bar'. Don't
51058 initialize the prefix command anymore. Initialized the set and
51060 * normal/cmdline.c: Include <pupa/env.h>.
51061 (pupa_tab_complete): Added prototypes for print_simple_completion,
51062 print_partition_completion, add_completion, iterate_commands,
51063 iterate_dev, iterate_part and iterate_dir. Moved code to print
51064 partition information from here to kern/disk.c.
51065 (pupa_cmdline_run): Don't check if the function exists anymore.
51066 * normal/main.c: Include <pupa/env.h>.
51067 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
51068 instead of using pupa_dl_get_prefix to get the prefix.
51069 * term/i386/pc/vga.c: Include <pupa/arg.h>.
51070 (check_vga_mem): Cast pointers to `void *' to silence a gcc
51072 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
51073 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51074 ((unused))' to silence a gcc warning.
51075 (pupa_vga_setcolor): Likewise.
51076 (debug_command): Changed to match argument parsing
51078 * util/pupa-emu.c: Include <pupa/env.h>.
51079 (options): Added 0's for unused fields to silence a gcc warning.
51081 (main): Use the environment variable `prefix' instead of using
51082 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51083 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51086 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51087 * util/misc.c: Include <malloc.h>.
51088 (pupa_malloc): Rewritten so errors are correctly reported.
51089 (pupa_realloc): Likewise.
51090 (pupa_memalign): Likewise.
51091 (pupa_mm_init_region): Declare unused variables with
51092 `__attribute__ ((unused))' to silence a gcc warning.
51093 * normal/i386/setjmp.S: Remove tab at the end of the file to
51094 silence a gcc warning.
51095 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51096 variables with `__attribute__ ((unused))' to silence a gcc
51098 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51099 local variable i unsigned to silence a gcc warning.
51101 * kern/term.c: Include <pupa/misc.h>.
51102 (pupa_more_lines): New variable.
51103 (pupa_more): Likewise.
51104 (pupa_putcode): When the pager is active pause at the end of every
51106 (pupa_set_more): New function.
51107 * include/pupa/term.h (pupa_set_more): New prototype.
51110 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51112 Now this project is GRUB 2 rather than PUPA. The location of
51113 the CVS repository was moved to GRUB's.
51115 * configure.ac: Use bug-grub as the reporting address.
51116 Use GRUB instead of PUPA.
51117 Change the version number to 1.90.
51119 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51121 * genkernsyms.sh: Updated copyright information.
51122 * genmk.rb: Likewise.
51123 * genmodsrc.sh: Likewise.
51124 * gensymlist.sh: Likewise.
51125 * boot/i386/pc/boot.S: Likewise.
51126 * boot/i386/pc/diskboot.S: Likewise.
51127 * disk/i386/pc/biosdisk.c: Likewise.
51128 * disk/i386/pc/partition.c: Likewise.
51129 * font/manager.c: Likewise.
51130 * fs/ext2.c: Likewise.
51131 * fs/fat.c: Likewise.
51132 * include/pupa/boot.h: Likewise.
51133 * include/pupa/device.h: Likewise.
51134 * include/pupa/disk.h: Likewise.
51135 * include/pupa/dl.h: Likewise.
51136 * include/pupa/elf.h: Likewise.
51137 * include/pupa/err.h: Likewise.
51138 * include/pupa/file.h: Likewise.
51139 * include/pupa/font.h: Likewise.
51140 * include/pupa/fs.h: Likewise.
51141 * include/pupa/kernel.h: Likewise.
51142 * include/pupa/loader.h: Likewise.
51143 * include/pupa/misc.h: Likewise.
51144 * include/pupa/mm.h: Likewise.
51145 * include/pupa/net.h: Likewise.
51146 * include/pupa/normal.h: Likewise.
51147 * include/pupa/rescue.h: Likewise.
51148 * include/pupa/setjmp.h: Likewise.
51149 * include/pupa/symbol.h: Likewise.
51150 * include/pupa/term.h: Likewise.
51151 * include/pupa/types.h: Likewise.
51152 * include/pupa/i386/setjmp.h: Likewise.
51153 * include/pupa/i386/types.h: Likewise.
51154 * include/pupa/i386/pc/biosdisk.h: Likewise.
51155 * include/pupa/i386/pc/boot.h: Likewise.
51156 * include/pupa/i386/pc/console.h: Likewise.
51157 * include/pupa/i386/pc/init.h: Likewise.
51158 * include/pupa/i386/pc/kernel.h: Likewise.
51159 * include/pupa/i386/pc/linux.h: Likewise.
51160 * include/pupa/i386/pc/loader.h: Likewise.
51161 * include/pupa/i386/pc/memory.h: Likewise.
51162 * include/pupa/i386/pc/multiboot.h: Likewise.
51163 * include/pupa/i386/pc/partition.h: Likewise.
51164 * include/pupa/i386/pc/time.h: Likewise.
51165 * include/pupa/i386/pc/vga.h: Likewise.
51166 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51167 * include/pupa/util/getroot.h: Likewise.
51168 * include/pupa/util/misc.h: Likewise.
51169 * include/pupa/util/resolve.h: Likewise.
51170 * kern/device.c: Likewise.
51171 * kern/disk.c: Likewise.
51172 * kern/dl.c: Likewise.
51173 * kern/err.c: Likewise.
51174 * kern/file.c: Likewise.
51175 * kern/fs.c: Likewise.
51176 * kern/loader.c: Likewise.
51177 * kern/main.c: Likewise.
51178 * kern/misc.c: Likewise.
51179 * kern/mm.c: Likewise.
51180 * kern/rescue.c: Likewise.
51181 * kern/term.c: Likewise.
51182 * kern/i386/dl.c: Likewise.
51183 * kern/i386/pc/init.c: Likewise.
51184 * kern/i386/pc/lzo1x.S: Likewise.
51185 * kern/i386/pc/startup.S: Likewise.
51186 * loader/i386/pc/chainloader.c: Likewise.
51187 * loader/i386/pc/linux.c: Likewise.
51188 * loader/i386/pc/multiboot.c: Likewise.
51189 * normal/cmdline.c: Likewise.
51190 * normal/command.c: Likewise.
51191 * normal/main.c: Likewise.
51192 * normal/menu.c: Likewise.
51193 * normal/i386/setjmp.S: Likewise.
51194 * term/i386/pc/console.c: Likewise.
51195 * term/i386/pc/vga.c: Likewise.
51196 * util/console.c: Likewise.
51197 * util/genmoddep.c: Likewise.
51198 * util/misc.c: Likewise.
51199 * util/pupa-emu.c: Likewise.
51200 * util/resolve.c: Likewise.
51201 * util/unifont2pff.rb: Likewise.
51202 * util/i386/pc/biosdisk.c: Likewise.
51203 * util/i386/pc/getroot.c: Likewise.
51204 * util/i386/pc/pupa-mkimage.c: Likewise.
51205 * util/i386/pc/pupa-setup.c: Likewise.
51207 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51209 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51210 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51211 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51212 reading and reset it after reading.
51213 (pupa_ext2_close): Return PUPA_ERR_NONE.
51215 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51217 (struct linux_kernel_header): Add kernel_version and
51219 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51220 pupa_file_read succeeds.
51221 (pupa_rescue_cmd_initrd): Implement.
51223 2003-12-03 Marco Gerards <metgerards@student.han.nl>
51225 * fs/ext2.c (pupa_ext2_label): New function.
51226 (pupa_ext2_fs): Added label.
51227 * fs/fat.c (pupa_fat_label): New function.
51228 (pupa_fat_fs): Added label.
51229 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51231 * kern/misc.c (pupa_strndup): New function.
51232 * include/pupa/misc.h (pupa_strndup): New prototype.
51234 * include/pupa/normal.h: Include <pupa/err.h>.
51235 (pupa_set_history): New prototype.
51236 (pupa_iterate_commands): New prototype.
51237 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51238 <pupa/disk.h>, <pupa/file.h>.
51239 (hist_size): New variable.
51240 (hist_lines): Likewise.
51241 (hist_end): Likewise.
51242 (hist_used): Likewise.
51243 (pupa_set_history): New function.
51244 (pupa_history_get): Likewise.
51245 (pupa_history_add): Likewise.
51246 (pupa_history_replace): Likewise.
51247 (pupa_tab_complete): Likewise.
51248 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51249 completion shows partitionnames while completing partitions, this
51250 feature was suggested by Jeff Bailey.
51251 * normal/command.c (pupa_iterate_commands): New function.
51252 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51253 (pupa_normal_init): Initialize history buffer.
51254 (PUPA_MOD_INIT): Likewise.
51255 (pupa_normal_fini): Free the history buffer.
51256 (PUPA_MOD_FINI): Likewise.
51258 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51261 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51262 * configure.ac [i386]: Check for regparam bug.
51263 (NESTED_FUNC_ATTR) [! i386]: Defined.
51265 2003-11-17 Marco Gerards <metgerards@student.han.nl>
51267 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51268 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51269 (pupa_emu_SOURCES): New variable.
51270 (pupa_emu_LDFLAGS): Likewise.
51271 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51272 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51273 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51274 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51275 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51276 (pupa_jmp_buf): New typedef.
51277 (pupa_setjmp) [PUPA_UTIL]: New macro.
51278 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51279 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51280 (pupa_refresh): New prototype.
51281 * include/pupa/util/getroot.h: New file.
51282 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51284 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51285 (pupa_rescue_cmd_cat): Likewise.
51286 (pupa_rescue_cmd_ls): Likewise.
51287 (pupa_rescue_cmd_testload): Likewise.
51288 (pupa_rescue_cmd_lsmod): Likewise.
51289 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51290 * normal/menu.c (run_menu): Likewise.
51291 * kern/term.c (pupa_cls): Likewise.
51292 (pupa_refresh): New function.
51293 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51294 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51295 * util/console.c: New file.
51297 * util/i386/pc/getroot.c: New file.
51298 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51299 (pupa_putchar): New function.
51300 (pupa_refresh): Likewise.
51301 (xgetcwd): Function moved to ...
51302 (strip_extra_slashes): Likewise.
51303 (get_prefix): Likewise.
51304 * util/i386/pc/getroot.c: ... here.
51305 (find_root_device): Function moved and renamed to...
51306 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51307 Changed all callers.
51308 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51310 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51311 Changed all callers.
51312 * util/misc.c (pupa_memalign): New function.
51313 (pupa_mm_init_region): Likewise.
51314 (pupa_register_exported_symbols): Likewise.
51315 (pupa_putchar): Function removed.
51316 * util/pupa-emu.c: New file.
51318 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51320 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51321 (_multiboot_mod_SOURCES): New variable.
51322 (_multiboot_mod_CFLAGS): Likewise.
51323 * loader/i386/pc/multiboot.c: New file.
51324 * include/pupa/i386/pc/multiboot.h: Likewise.
51325 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51326 (pupa_multiboot_real_boot): New function.
51327 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51328 (pupa_multiboot_real_boot): New prototype.
51329 (pupa_rescue_cmd_multiboot): Likewise
51330 (pupa_rescue_cmd_module): Likewise.
51332 * kern/loader.c (pupa_loader_set): Continue when
51333 pupa_loader_unload_func() fails.
51334 (pupa_loader_unset): New function.
51335 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51337 * kern/misc.c (pupa_stpcpy): New function.
51338 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51340 2003-11-12 Marco Gerards <metgerards@student.han.nl>
51342 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51343 for available extensions.
51345 * include/pupa/i386/pc/time.h: New file.
51346 * kern/disk.c: Include <pupa/machine/time.h>.
51347 (PUPA_CACHE_TIMEOUT): New macro.
51348 (pupa_last_time): New variable.
51349 (pupa_disk_open): Flush the cache when there was a timeout.
51350 (pupa_disk_close): Reset the timer.
51351 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51353 * util/misc.c: Include <sys/times.h>
51354 (pupa_get_rtc): New function.
51356 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51358 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51360 (pupa_ext2_get_file_block): Use blocks member.
51362 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51363 first block. Return -1 instead of pupa_errno on error.
51365 2003-10-27 Marco Gerards <metgerards@student.han.nl>
51367 * README: In the pupa-mkimage example use _chain instead of chain
51368 and ext2 instead of fat.
51369 * TODO: Replace ext2fs with jfs as an example. Add an item for
51370 adding journal playback for ext2fs.
51371 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51372 (pkgdata_MODULES): Added ext2.mod.
51373 (ext2_mod_SOURCES): New variable.
51374 (ext2_mod_CFLAGS): Likewise.
51375 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51376 * include/pupa/misc.h (pupa_strncpy): New prototype.
51377 (pupa_strcat): Likewise.
51378 (pupa_strncmp): Likewise.
51379 * kern/misc.c (pupa_strcat): Enable function.
51380 (pupa_strncpy): New function.
51381 (pupa_strncmp): Likewise.
51382 * fs/ext2.c: New file.
51384 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51385 when the read failed before retrying.
51386 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51387 (_FILE_OFFSET_BITS): Likewise.
51388 * configure.ac: Added AC_SYS_LARGEFILE.
51390 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51392 * genmk.rb (PModule#rule): Make sure to get only symbol names
51393 from the output of nm.
51394 Reported by Robert Millan <rmh.grub@aybabtu.com>.
51396 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51398 I forgot to check in these changes for a long time. This adds
51399 incomplete support for VGA console, and this is still very
51400 buggy. Also, a lot of consideration is required for I18N,
51401 UNICODE, and VGA font issues. Therefore, assume that this is
51402 such that "better than nothing".
51404 * font/manager.c: New file.
51405 * include/pupa/font.h: Likewise.
51406 * include/pupa/i386/pc/vga.h: Likewise.
51407 * term/i386/pc/vga.c: Likewise.
51408 * util/unifont2pff.rb: Likewise.
51410 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51411 (pkgdata_MODULES): Added vga.mod and font.mod.
51412 (vga_mod_SOURCES): New variables.
51413 (vga_mod_CFLAGS): Likewise.
51414 (font_mod_SOURCES): Likewise.
51415 (font_mod_CFLAGS): Likewise.
51417 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51419 * include/pupa/term.h: Include pupa/err.h.
51420 (struct pupa_term): Added init and fini.
51421 Changed the argument of putchar to pupa_uint32_t.
51423 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51424 (pupa_console_real_putchar): New prototype.
51425 (pupa_console_putchar): Removed.
51426 (pupa_console_checkkey): Exported.
51427 (pupa_console_getkey): Likewise.
51429 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51432 * kern/term.c (pupa_term_set_current): Rewritten.
51433 (pupa_putchar): Likewise.
51434 (pupa_putcode): New function.
51436 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51437 (pupa_console_real_putchar): ... this.
51438 (pupa_vga_set_mode): New function.
51439 (pupa_vga_get_font): Likewise.
51441 * normal/command.c: Include pupa/term.h.
51442 (terminal_command): New function.
51443 (pupa_command_init): Register the command "terminal".
51445 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51446 (DISP_UP): Likewise.
51447 (DISP_RIGHT): Likewise.
51448 (DISP_DOWN): Likewise.
51449 (DISP_HLINE): Likewise.
51450 (DISP_VLINE): Likewise.
51451 (DISP_UL): Likewise.
51452 (DISP_UR): Likewise.
51453 (DISP_LL): Likewise.
51454 (DISP_LR): Likewise.
51456 * term/i386/pc/console.c (pupa_console_putchar): New function.
51458 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51460 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51461 FIX. Reverse the path_list.
51463 * include/pupa/normal.h: Export pupa_register_command and
51464 pupa_unregister_command.
51466 * hello/hello.c (pupa_cmd_hello): New module.
51467 * conf/i386-pc.rmk: Added hello.mod.
51469 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51471 * kern/i386/pc/lzo1x.S: New file.
51473 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51474 (compress_kernel): New variable.
51475 (generate_image): Heavily modified to support compressing a
51476 large part of the core image.
51478 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51480 (pupa_util_load_image): New function.
51482 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51483 (pupa_compressed_size): New variable.
51484 (codestart): Enable Gate A20 here.
51485 Decompress the compressed part of the core image.
51486 Rearrange the code to put functions and variables which are
51487 required for initialization in the non-compressed part.
51490 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51493 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51495 * include/pupa/i386/pc/kernel.h
51496 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51497 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51498 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51499 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51500 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51502 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51504 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51505 (Utility#rule): Likewise.
51507 * configure.ac: Check if LZO is available.
51509 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51511 * include/pupa/normal.h: New file.
51512 * include/pupa/setjmp.h: Likewise.
51513 * include/pupa/i386/setjmp.h: Likewise.
51514 * normal/cmdline.c: Likewise.
51515 * normal/command.c: Likewise.
51516 * normal/main.c: Likewise.
51517 * normal/menu.c: Likewise.
51518 * normal/i386/setjmp.S: Likewise.
51520 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51521 (pupa_rescue_cmd_initrd): Likewise.
51523 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51526 * kern/i386/pc/startup.S (translation_table): New variable.
51527 (translate_keycode): New function.
51528 (pupa_console_getkey): Call translate_keycode.
51530 * kern/rescue.c (attempt_normal_mode): New function.
51531 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51532 it failed, print a message.
51534 * kern/mm.c (pupa_real_malloc): Print more information when a
51535 free magic is broken.
51536 (pupa_free): If the first free header is not free actually, set
51539 * kern/main.c (pupa_load_normal_mode): Just load the module
51541 (pupa_main): Don't print the message
51542 "Entering into rescue mode..." here.
51544 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51546 (pupa_rescue_cmd_initrd): Likewise.
51547 (pupa_rescue_cmd_initrd): Likewise.
51549 * include/pupa/symbol.h (FUNCTION): Specify the type.
51550 (VARIABLE): Likewise.
51552 * include/pupa/err.h (pupa_err_t): Added
51553 PUPA_ERR_UNKNOWN_COMMAND.
51555 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51556 (pupa_dl_get_prefix): Likewise.
51558 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51559 Added _chain.mod and _linux.mod instead of chain.mod and
51561 (chain_mod_SOURCES): Renamed to ...
51562 (_chain_mod_SOURCES): ... this.
51563 (chain_mod_CFLAGS): Renamed to ...
51564 (_chain_mod_CFLAGS): ... this.
51565 (linux_mod_SOURCES): Renamed to ...
51566 (_linux_mod_SOURCES): ... this.
51567 (linux_mod_CFLAGS): Renamed to ...
51568 (_linux_mod_CFLAGS): ... this.
51569 (normal_mod_SOURCES): New variable.
51570 (normal_mod_CFLAGS): Likewise.
51571 (normal_mod_ASFLAGS): Likewise.
51573 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51575 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51578 * kern/dl.c (pupa_dl_ref): Refer depending modules
51580 (pupa_dl_unref): Unrefer depending modules recursively.
51581 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51582 a module is unloaded before one depending on that module is
51584 (pupa_dl_unload): Unload depending modules explicitly,
51587 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51589 * include/pupa/i386/pc/linux.h: New file.
51590 * loader/i386/pc/linux.c: Likewise.
51592 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51594 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51595 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51596 of PUPA_CHAINLOADER_BOOT_SECTOR.
51598 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51599 (pupa_linux_prot_size): New variable.
51600 (pupa_linux_tmp_addr): Likewise.
51601 (pupa_linux_real_addr): Likewise.
51602 (pupa_linux_boot_zimage): New function.
51603 (pupa_linux_boot_bzimage): Likewise.
51605 * kern/i386/pc/init.c (struct mem_region): New structure.
51606 (MAX_REGIONS): New macro.
51607 (mem_regions): New variable.
51608 (num_regions): Likewise.
51609 (pupa_os_area_addr): Likewise.
51610 (pupa_os_area_size): Likewise.
51611 (pupa_lower_mem): Likewise.
51612 (pupa_upper_mem): Likewise.
51613 (add_mem_region): New function.
51614 (compact_mem_regions): Likewise.
51615 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51616 the size of the conventional memory and that of so-called upper
51617 memory (before the first memory hole).
51618 Instead of adding each found region to free memory, use
51619 add_mem_region and add them after removing overlaps.
51620 Also, add only 1/4 of the upper memory to free memory. The rest
51621 is used for loading OS images. Maybe this is ad hoc, but this
51622 makes it much easier to relocate OS images when booting.
51624 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51625 (pupa_enter_rescue_mode): Don't register initrd and module.
51627 * kern/mm.c: Include pupa/dl.h.
51629 * kern/main.c: Include pupa/file.h and pupa/device.h.
51631 * kern/loader.c (pupa_loader_load_module_func): Removed.
51632 (pupa_loader_load_module): Likewise.
51634 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51637 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51638 (pupa_linux_tmp_addr): Likewise.
51639 (pupa_linux_real_addr): Likewise.
51640 (pupa_linux_boot_zimage): Likewise.
51641 (pupa_linux_boot_bzimage): Likewise.
51643 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51644 (pupa_upper_mem): Likewise.
51645 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51646 module is too dangerous.
51648 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51649 (pupa_os_area_size): Likewise.
51650 (pupa_loader_set): Remove the first argument. Loader doesn't
51651 manage modules or initrd any longer.
51652 (pupa_loader_load_module): Removed.
51654 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51655 (linux_mod_SOURCES): New variable.
51656 (linux_mod_CFLAGS): Likewise.
51658 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51660 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51661 the length of a blocklist correctly.
51663 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51664 Use ioctl only if the OS file is a block device.
51665 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51666 not very useful for normal files.
51668 * kern/main.c (pupa_set_root_dev): New function.
51669 (pupa_load_normal_mode): Likewise.
51670 (pupa_main): Call those above.
51672 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51675 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51677 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51679 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51680 (setup): Configure the installed partition information and the
51683 * loader/i386/pc/chainloader.c (my_mod): New variable.
51684 (pupa_chainloader_unload): New function.
51685 (pupa_rescue_cmd_chainloader): Refer itself.
51686 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51688 * kern/i386/pc/startup.S (install_partition): Removed.
51689 (version_string): Likewise.
51690 (config_file): Likewise.
51691 (pupa_install_dos_part): New variable.
51692 (pupa_install_bsd_part): Likewise.
51693 (pupa_prefix): Likewise.
51694 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51696 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51698 (make_install_device): New function.
51699 (pupa_machine_init): Set the dl prefix.
51701 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51702 (buf): Renamed to ...
51703 (linebuf): ... this.
51704 (pupa_rescue_cmd_prefix): New function.
51705 (pupa_rescue_cmd_insmod): Likewise.
51706 (pupa_rescue_cmd_rmmod): Likewise.
51707 (pupa_rescue_cmd_lsmod): Likewise.
51708 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51711 * kern/mm.c (pupa_memalign): If failed even after invalidating
51712 disk caches, unload unneeded modules and retry.
51714 * kern/misc.c (pupa_memmove): New function.
51715 (pupa_memcpy): Removed.
51716 (pupa_strcpy): New function.
51717 (pupa_itoa): Made static.
51719 * kern/dl.c (pupa_dl_iterate): New function.
51720 (pupa_dl_ref): Likewise.
51721 (pupa_dl_unref): Likewise.
51722 (pupa_dl_unload): Return if succeeded or not.
51723 (pupa_dl_unload_unneeded): New function.
51724 (pupa_dl_unload_all): Likewise.
51725 (pupa_dl_init): Renamed to ...
51726 (pupa_dl_set_prefix): ... this.
51727 (pupa_dl_get_prefix): New function.
51729 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51730 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51731 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51732 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51733 (pupa_install_dos_part): Declared.
51734 (pupa_install_bsd_part): Likewise.
51735 (pupa_prefix): Likewise.
51736 (pupa_boot_drive): Likewise.
51738 * include/pupa/types.h: Fix a typo.
51740 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51742 (pupa_memmove): Declared.
51743 (pupa_strcpy): Likewise.
51745 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51746 pupa_mod_init takes one argument, its own module.
51747 (pupa_dl_unload_unneeded): Declared.
51748 (pupa_dl_unload_all): Likewise.
51749 (pupa_dl_ref): Likewise.
51750 (pupa_dl_unref): Likewise.
51751 (pupa_dl_iterate): Likewise.
51752 (pupa_dl_init): Renamed to ...
51753 (pupa_dl_set_prefix): ... this.
51754 (pupa_dl_get_prefix): Declared.
51756 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
51757 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
51759 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51760 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51762 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51763 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51765 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51767 * util/i386/pc/pupa-setup.c (setup): Define the internal
51768 function find_first_partition_start at the top level, because GCC
51769 3.0.x cannot compile internal functions in deeper scopes
51771 (find_root_device): Use lstat instead of stat.
51772 Don't follow symbolic links.
51773 Fix the path-constructing code.
51775 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51776 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51777 by a BLKGETSIZE ioctl first, because block devices don't fill
51778 the member st_mode of the structure stat on Linux.
51779 [__linux__] (linux_find_partition): Use a temporary buffer
51780 REAL_DEV for the working space. Copy it to DEV before returning.
51781 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51782 buffer cache consistent.
51783 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51784 strncmp. The previous value was merely wrong.
51785 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51787 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51788 FAT size is 12. The previous value was merely wrong.
51790 * kern/main.c (pupa_main): Don't split the starting message from
51793 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51794 LF, because BIOS goes crazy about character attributes in this
51797 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51799 * include/i386/pc/util/biosdisk.h: New file.
51800 * util/i386/pc/biosdisk.c: Likewise.
51801 * util/i386/pc/pupa-setup.c: Likewise.
51803 * Makefile.in (INCLUDE_DISTFILES): Added
51804 include/pupa/i386/pc/util/biosdisk.h.
51805 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51806 directory util/i386/pc.
51807 (install-local): Added a rule for sbin_UTILITIES.
51808 (uninstall): Likewise.
51810 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51812 * util/misc.c (xrealloc): New function.
51813 (pupa_malloc): Likewise.
51814 (pupa_free): Likewise.
51815 (pupa_realloc): Likewise.
51816 (pupa_stop): Likewise.
51817 (pupa_putchar): Likewise.
51819 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51821 * include/pupa/util/misc.h (xrealloc): Declared.
51823 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51825 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51826 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51828 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51829 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51831 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51832 way should be implemented.
51833 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51835 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51836 the size of NAME for safety.
51837 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51840 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51841 (pupa_setup_SOURCES): Likewise.
51843 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51845 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51847 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51848 bunch of pushl's from pusha, because this destroys the return
51851 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51853 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51854 This means that any missing prototypes could be fatal. Also, you
51855 must take care when writing assembly code. See the comments at
51856 the beginning of startup.S, for more details.
51858 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51859 compilation mechanism.
51860 (pupa_chainloader_real_boot): Likewise.
51861 (pupa_biosdisk_rw_int13_extensions): Likewise.
51862 (pupa_biosdisk_rw_standard): Likewise.
51863 (pupa_biosdisk_check_int13_extensions): Likewise.
51864 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51865 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51866 (pupa_get_memsize): Likewise.
51867 (pupa_get_mmap_entry): Likewise.
51868 (pupa_console_putchar): Likewise.
51869 (pupa_console_setcursor): Likewise.
51870 (pupa_getrtsecs): Use pushl instead of push.
51872 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51873 memory instead of the stack for a mmap entry, because some
51874 BIOSes may ignore the maximum size and overflow.
51876 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51878 * genmk.rb (PModule#rule): Compile automatically generated
51879 sources with module-specific CFLAGS as well as other sources.
51881 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51883 * configure.ac: Check ld.
51884 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51885 respectively, before checking endianness and sizes.
51887 * Makefile.in (LD): New variable.
51889 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51891 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51893 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51895 * Changelog: New file.